Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add plugin-based viewer authentication gate

Gabe Kangas4102d6ba3664
diff --git a/docs/plugin-auth-gate-design.md b/docs/plugin-auth-gate-design.md
new file mode 100644
index 0000000000..da27e5a5d8
--- /dev/null
+++ b/docs/plugin-auth-gate-design.md
@@ -0,0 +1,285 @@
+# Plugin-based Viewer Authentication ("Auth Gate") — Design
+
+Status: draft for review (no code yet)
+Branch: `plugin-auth-gate` (worktree off `develop`)
+
+## Goal
+
+Let operators require viewers to authenticate before they can access an Owncast
+instance, where the *authentication method* is supplied entirely by a plugin
+(OAuth, Discord, x.com, magic links, SAML, anything reachable over HTTP). This
+replaces the high-friction "put Vouch/oauth2-proxy in front of Owncast" pattern
+with a first-class plugin capability.
+
+The plugin is the **identity provider**; Owncast core is the **gatekeeper and
+session authority**.
+
+## Scope decision: gate the whole web server
+
+When auth is on, the **entire web server is gated** — not just the HTML page.
+The viewer page (`/`), the video (`/hls/*`), chat (`/ws`), and the API are all
+behind the gate. Consequence, accepted: **the stream is only viewable through
+Owncast's own web UI** — VLC/QuickTime/other native players can't carry the
+session and therefore can't play a gated stream.
+
+Gating only the HTML page was rejected: the page embeds nothing secret, and the
+HLS URL would remain openly fetchable, so it would be privacy theater.
+
+### External storage (S3/CDN) caveat — DOCUMENT, don't block
+
+Under S3 storage, `rewritePlaylistLocations` rewrites playlists to **absolute
+remote URLs**, so segments are fetched directly from S3/CDN and never touch the
+Owncast server. The gate cannot see those requests.
+
+- Gating `/hls/stream.m3u8` still prevents an unauthenticated visitor from
+ *discovering* the current segment list.
+- But under S3 the segment URLs themselves are world-readable, so a *leaked or
+ shared* segment URL remains fetchable.
+
+Therefore: **gate + local storage = airtight; gate + S3 = good friction, not
+airtight.** This is a documentation item for operators and plugin authors, not a
+hard block.
+
+## Architecture
+
+### The plugin is out of the per-request hot path
+
+Once auth is on, every request hits the gate, including each HLS segment (a live
+viewer pulls a new segment every ~2-4s × N viewers). Calling into the plugin's
+embedded JS/Python engine per request would melt the server. So:
+
+- **The plugin runs the login flow only** (infrequent: ~once per viewer session),
+ over its existing `onHttpRequest` routes under `/plugins/<slug>/*`.
+- **Core mints and checks a signed session cookie.** The per-request gate check
+ is pure Go (verify signature + expiry) — no DB lookup, no engine call.
+
+### Three tiers of checking
+
+| Tier | When | Cost | What happens |
+|------|------|------|--------------|
+| 1 | every request (`/hls/*`, images, `/ws`, API) | Go-only: verify cookie signature + expiry | valid → pass; invalid/absent → 302 to login |
+| 2 | `/` (index navigation) only | optional engine call: `onAuthCheck` | re-validate against provider; `ok`/`refresh`/`deny` |
+| 3 | n/a | — | (no per-request denylist; revocation is Tier 2) |
+
+### The session cookie = a signed carrier for the existing access token
+
+We do **not** invent a new identity primitive. Owncast already identifies users
+by **access token** (`GetUserByToken`) and already links external identities to
+users via `AddAuth(userID, authToken, authType)` / `GetUserByAuth` — this is how
+IndieAuth and Fediverse auth work today. **A plugin auth gate is just a new
+`AuthType`** feeding the same machinery.
+
+The gate cookie is a **signed envelope carrying that user's existing access
+token** plus a gate-session expiry:
+
+```
+cookie = sign({ accessToken, exp }, coreSecret)
+```
+
+Two readers, one cookie, both keyed on the access token you already understand:
+
+| Path | Reader | Mechanism |
+|------|--------|-----------|
+| `/`, `/hls/*`, images | gate | verify signature + expiry → pass (no DB; this is why it's signed) |
+| `/ws`, chat REST | chat | extract `accessToken` → `GetUserByToken(accessToken)` → existing chat identity path |
+
+Why signed rather than a raw token in a cookie:
+1. **Hot path** — the gate trusts `sig+exp` without a `GetUserByToken` per segment.
+2. **Session expiry** — Owncast access tokens are long-lived; the envelope's
+ `exp` gives the *gate session* its own sliding lifetime without changing the
+ token model.
+
+Backward compatible: the existing `localStorage` + `?accessToken=` path still
+works on ungated servers; on a gated server, chat gains a "no query param? read
+the access token from the gate cookie" fallback.
+
+## Authoring surface
+
+### New permissions
+
+- **`auth.gate`** — be the gate plugin; use `grantSession` / `endSession`.
+- **`users.register`** — create/link an *authenticated* user (separate so a
+ non-gating chat-auth plugin, e.g. an IndieAuth-style "verified member" badge,
+ can use identity without gating). Host fn: `owncast.users.register` (plural, to
+ match existing `users.read` / `users.list`).
+
+### New host functions
+
+```ts
+// Identity — find-or-create the user for an external identity, link + authenticate it.
+// Core namespaces authId by plugin slug internally (github-auth:github:583231),
+// so plugins cannot collide or spoof each other's users.
+owncast.users.register({ authId: string, displayName?: string, scopes?: string[] })
+ : { userId: string }
+
+// Session — issue the signed gate cookie carrying that user's access token.
+// Only valid inside onHttpRequest (needs a live response to attach Set-Cookie).
+owncast.auth.grantSession({ userId: string, ttl?: number }): void
+
+// Self-logout — clear the current viewer's gate cookie on this response.
+// Only valid inside onHttpRequest. Plugin still controls the redirect (and may
+// bounce to the provider's logout for single-logout).
+owncast.auth.endSession(): void
+```
+
+Core owns the cookie end to end: it reserves the cookie name, mints + signs, and
+attaches `Set-Cookie` to the in-flight `onHttpRequest` response. The plugin never
+sees or sets the signed token, so it can't forge or leak it.
+
+### New optional hook
+
+```ts
+// Fires ONLY on '/' navigation (Tier 2). Optional. Core-driven (not a host fn).
+// Lets the plugin re-validate against the provider and refresh/deny.
+onAuthCheck(input: { user: { userId, displayName, scopes, authId } }):
+ | { action: "ok" } // pass, cookie unchanged
+ | { action: "refresh", displayName?, scopes?, ttl? } // still good; re-mint cookie
+ | { action: "deny", reason?: string } // clear cookie, bounce to login
+
+// Error / timeout in onAuthCheck → fail closed (treat as deny for that request).
+```
+
+Revocation model: a plugin that wants to kick a user (deleted upstream) returns
+`deny` from `onAuthCheck` on that user's next `/` load. **Accepted limitation:** a
+revoked viewer with an open tab keeps pulling segments until they reload `/` or
+the cookie expires — so the cookie TTL is the hard backstop (see TTL below).
+There is intentionally **no per-request denylist and no cross-user `revoke()`**.
+
+## Lifecycle & enforcement
+
+### Designation and arming
+
+- A plugin declares `auth.gate`. **Declaring it does nothing on its own.**
+- **Arming = enabling the plugin** via the existing enable/disable lifecycle
+ (`services/plugins` Manager). There is **no separate "Require viewer auth"
+ toggle** — that framing would falsely imply built-in Owncast auth. The plugin's
+ admin page states plainly: *"While enabled, all viewers must authenticate
+ through this plugin before accessing the site."*
+- **`Manager.Enable` refuses to enable a second `auth.gate` plugin** while one is
+ already enabled ("disable X first"). Centralized enablement means two can never
+ be live at once — no load-order tie-break needed.
+- Configure-before-live and fast-off-switch fall out for free: configure while
+ discovered-but-disabled, enable to go live; disable to drop the gate instantly.
+
+### Control loop (Model 1: plugin = web app)
+
+```
+GET / gate: no cookie → 302 /plugins/<slug>/?return_to=%2F
+ (gate-plugin namespace is exempt)
+GET /plugins/<slug>/ plugin renders login screen ("Sign in with GitHub")
+ → 302 to provider (github.com/login/oauth/authorize?...&state=<rand>)
+GET /plugins/<slug>/callback?code&state
+ plugin: validate state (KV), exchange code (fetch), fetch user, enforce org
+ → owncast.users.register({ authId, displayName }) → { userId }
+ → owncast.auth.grantSession({ userId }) → core attaches Set-Cookie
+ → return 302 → <sanitized return_to>
+GET / gate: cookie valid → Tier 2 onAuthCheck → ok → render
+GET /hls/3.ts gate: cookie valid → serve segment
+WS /ws chat: cookie → accessToken → GetUserByToken → "octocat"
+```
+
+- **Entry path by convention:** `/plugins/<slug>/`. No manifest field.
+- **`return_to`** is appended by core and **sanitized to same-origin absolute
+ paths** (reject `//host`, `https://…`) to avoid an open redirect.
+
+### Fail-closed
+
+The gate's posture is **decoupled from plugin runtime health**:
+
+- armed + plugin healthy → normal flow
+- armed + plugin unavailable (crashed, failed to load, errored, hit the
+ auto-disable strike threshold) → **deny all viewer traffic**, serve a static
+ core-owned "Authentication temporarily unavailable" page. **Never open.**
+- **admin always bypasses** (existing Basic Auth) to fix config or disable.
+- **already-valid sessions survive** an outage (cookie check needs no plugin).
+
+The existing auto-disable-on-strikes must resolve to **closed + loud admin
+alert**, never to a silently open site.
+
+### Exemption set (bypass the gate)
+
+Principle: **the gate covers only the otherwise-public surface; any route that
+already enforces its own credential bypasses it.**
+
+- the designated gate plugin's namespace `/plugins/<slug>/*` + its static assets
+ (bootstrap)
+- `/admin/*` — already `RequireAdminAuth`
+- all external-API-token routes — already `RequireExternalAPIAccessToken`
+ (a valid Bearer client carries no cookie; gating would 302 it into login)
+- health/liveness endpoint (if present)
+
+**Everything else is gated, including `/api/status` and embeds** — leaking
+live-status / viewer count to anonymous visitors would undercut the privacy goal.
+A future "advertise live status even when gated" option would be an explicit
+operator opt-in, not a default bypass.
+
+### Session credential details
+
+- **Stateless signed cookie**, `HttpOnly`, `Secure`, `SameSite=Lax` (Lax, not
+ Strict — the provider callback is a cross-site top-level redirect), `Path=/`.
+- **Signing secret is core's responsibility**: auto-generated on first use,
+ persisted in config, core-owned rotation (rotating = invalidate all sessions =
+ panic button). Mechanically required: core verifies on the hot path without
+ calling the plugin, so core must hold the secret. Plugin authors never touch it.
+ (The OAuth *client* secret is a separate, plugin-config concern.)
+- **TTL: operator-configurable, default 24h**, with **sliding refresh** on each
+ `/` load. TTL is a real security knob because it's the revocation backstop.
+
+## The chat / identity bridge
+
+A gate login produces an authenticated chat identity automatically, because
+`users.register` creates/links a real Owncast `User` (`Authenticated=true`,
+display name seeded from the provider) and the cookie carries that user's access
+token. Required core change: **`/ws` connect (and chat REST) gain a fallback —
+no `?accessToken=` query param → read the access token from the gate cookie →
+`GetUserByToken`.** No token is ever shuttled into the browser's localStorage.
+
+## Worked example: "Sign in with GitHub" plugin
+
+`manifest.json` permissions:
+`["auth.gate", "users.register", "http.serve", "network.fetch", "storage.kv", "server.read"]`
+with `network.allowedHosts: ["github.com", "api.github.com"]` and config fields
+`clientId`, `clientSecret`, `allowedOrg`.
+
+Handlers: `onHttpRequest` (routes `/`, `/callback`, `/logout`) + optional
+`onAuthCheck` (re-verify org membership on each `/`).
+
+- The plugin learns its own public base URL from `owncast.server.info()` (errors
+ if the operator hasn't set the server URL) to build `redirect_uri` and to show
+ the admin the exact callback URL to register at GitHub:
+ `<serverURL>/plugins/github-auth/callback`.
+- CSRF `state` stored in `storage.kv` with a short TTL, keyed to `return_to`.
+
+## Open / deferred items
+
+- **`onAuthCheck` precise input fields** (above is the proposed shape).
+- **Admin UX**: callback-URL display + "configure before enabling" guidance +
+ the "enabling gates the whole site" warning. Author-built page; core supplies
+ `server.info()`.
+- **Signing secret config key + rotation UI** in core admin.
+- **Static maintenance page** for the fail-closed state.
+- **Hard per-session revocation** (KV denylist) — explicitly deferred; revocation
+ is page-load granularity via `onAuthCheck`.
+
+## Implementation surface (where code lands)
+
+**Owncast core** (`services/plugins` is the single source of truth; runtime
+features go here):
+- Gate middleware in the chi chain (`webserver/router`), with the exemption set.
+- Signed session cookie mint/verify + persisted signing secret in config.
+- Host functions `owncast.users.register`, `owncast.auth.grantSession`,
+ `owncast.auth.endSession`; new plugin `AuthType`; per-plugin `authId` namespacing.
+- `auth.gate` + `users.register` permission enforcement.
+- `Manager.Enable` single-gate guard; fail-closed wiring + auto-disable → closed.
+- `/ws` + chat REST cookie fallback (`HandleClientConnection`).
+- `onAuthCheck` dispatch on the index path; fail-closed on error.
+- Static "auth unavailable" page.
+
+**Plugin SDK** (`owncast-plugin-sdk`, JS + Python in parallel):
+- Type/handler for `onAuthCheck`; facades for `users.register`,
+ `auth.grantSession`, `auth.endSession`.
+- `auth.gate` / `users.register` permission docs; manifest validation.
+- Wire-protocol doc updates; author guide section.
+- Example plugin (`github-auth`) in `examples/js` **and** `examples/python`
+ (kept in sync, README + INSTRUCTIONS).
+```
diff --git a/main.go b/main.go
index 3ab69b8134..23bd5cd7ec 100644
--- a/main.go
+++ b/main.go
@@ -310,6 +310,7 @@ func main() {
// /plugins/<name>/* HTTP handler mounted by the router below.
var pluginContentHandler http.Handler
var pluginAdminHandler http.Handler
+ var viewerAuthGate func(http.Handler) http.Handler
pluginHostInstance, err := pluginhost.New(ctx, pluginhost.Deps{
Datastore: dataStore,
Chat: chatSvc,
@@ -329,6 +330,7 @@ func main() {
} else {
pluginContentHandler = pluginHostInstance.Handler()
pluginAdminHandler = pluginHostInstance.AdminHandler()
+ viewerAuthGate = pluginHostInstance.AuthGateMiddleware()
defer pluginHostInstance.Stop(ctx)
}
@@ -423,7 +425,7 @@ func main() {
})
// Stage 10: serve. Blocks until shutdown.
- if err := router.Start(cfg, *enableVerboseLogging, h, mw, apSvc.Controllers(), pluginContentHandler, pluginAdminHandler); err != nil {
+ if err := router.Start(cfg, *enableVerboseLogging, h, mw, apSvc.Controllers(), pluginContentHandler, pluginAdminHandler, viewerAuthGate); err != nil {
log.Fatalln("failed to start/run the router", err)
}
}
diff --git a/models/auth.go b/models/auth.go
index ac1327e62f..3c65e37fe9 100644
--- a/models/auth.go
+++ b/models/auth.go
@@ -8,4 +8,8 @@ const (
// IndieAuth https://indieauth.spec.indieweb.org/.
IndieAuth AuthType = "indieauth"
Fediverse AuthType = "fediverse"
+ // PluginAuth is an identity established by a viewer-auth plugin
+ // (owncast.users.register). The stored auth token is the plugin's external
+ // identity, namespaced by the plugin slug (e.g. "github-auth:github:583231").
+ PluginAuth AuthType = "plugin.auth"
)
diff --git a/persistence/userrepository/userrepository.go b/persistence/userrepository/userrepository.go
index 325371c78b..067b3187bd 100644
--- a/persistence/userrepository/userrepository.go
+++ b/persistence/userrepository/userrepository.go
@@ -42,6 +42,8 @@ type UserRepository interface {
HasValidScopes(scopes []string) bool
GetUserByAuth(authToken string, authType models.AuthType) *models.User
AddAuth(userID, authToken string, authType models.AuthType) error
+ AddAccessTokenForUser(accessToken, userID string) error
+ SetUserScopes(userID string, scopes []string) error
SetExternalAPIUserAccessTokenAsUsed(token string) error
GetUsersCount() int
}
@@ -150,6 +152,12 @@ func (r *SqlUserRepository) addAccessTokenForUser(accessToken, userID string) er
})
}
+// AddAccessTokenForUser associates a new access token with an existing user.
+// Used by the viewer-auth gate to mint a session token the gate cookie carries.
+func (r *SqlUserRepository) AddAccessTokenForUser(accessToken, userID string) error {
+ return r.addAccessTokenForUser(accessToken, userID)
+}
+
func (r *SqlUserRepository) create(user *models.User) error {
r.datastore.DbLock.Lock()
defer r.datastore.DbLock.Unlock()
@@ -313,6 +321,14 @@ func (r *SqlUserRepository) GetUserByAuth(authToken string, authType models.Auth
}
}
+// SetUserScopes replaces a user's full scope set. Used by viewer-auth plugins
+// (owncast.users.register) to map an external provider's roles onto Owncast
+// scopes (e.g. granting MODERATOR). Callers should validate with
+// HasValidScopes first.
+func (r *SqlUserRepository) SetUserScopes(userID string, scopes []string) error {
+ return r.setScopesOnUser(userID, scopes)
+}
+
// SetModerator will add or remove moderator status for a single user by ID.
func (r *SqlUserRepository) SetModerator(userID string, isModerator bool) error {
if isModerator {
diff --git a/pluginhost/authgate.go b/pluginhost/authgate.go
new file mode 100644
index 0000000000..c22371069c
--- /dev/null
+++ b/pluginhost/authgate.go
@@ -0,0 +1,295 @@
+package pluginhost
+
+// Viewer-authentication gate middleware. When an admin has enabled a plugin
+// holding the auth.gate permission, this blanket middleware (mounted ahead of
+// every route) requires a valid signed session cookie before any request is
+// served — the whole web server is gated, not just the page. A few things stay
+// reachable so a visitor can actually log in (the gate plugin's own routes) or
+// so other credentials still work (admin, external-API tokens).
+//
+// The per-request check is pure crypto (verify the cookie signature + expiry),
+// no plugin call and no database lookup, so it is cheap enough for the
+// per-segment HLS hot path.
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "io"
+ "io/fs"
+ "net/http"
+ "net/url"
+ "os"
+ "strings"
+ "time"
+
+ plugins "github.com/owncast/owncast/services/plugins"
+ "github.com/owncast/owncast/static"
+)
+
+type gateOutcome int
+
+const (
+ gateAllow gateOutcome = iota
+ gateLogin
+ gateUnavailable
+)
+
+// authUnavailableHTML is shown (503) when a gate is armed but its plugin is not
+// available — the fail-closed state. The admin can still reach /admin to fix it.
+const authUnavailableHTML = `<!doctype html><html><head><meta charset="utf-8">` +
+ `<title>Authentication unavailable</title></head><body>` +
+ `<h1>Authentication temporarily unavailable</h1>` +
+ `<p>This site requires sign-in, but the authentication plugin is not ` +
+ `currently available. Please try again shortly.</p></body></html>`
+
+// decideGate is the pure decision for one request: allow it, send it to the
+// login screen, or serve the fail-closed page. gateSlug is the enabled
+// auth.gate plugin's slug ("" when none is enabled); gateLoaded reports whether
+// that plugin is actually running.
+// The viewer-auth gate is opt-out: every request is gated unless a rule here
+// exempts it. Keeping the exemptions as a small, named, individually-testable
+// list — rather than string compares buried in the decision — makes the policy
+// explicit: adding a bypass means adding a named rule, in the open, here.
+type gateExemption struct {
+ name string
+ allow func(r *http.Request, gateSlug string) bool
+}
+
+var gateExemptions = []gateExemption{
+ {"admin", exemptAdminRoutes},
+ {"static-assets", exemptStaticAssets},
+ {"active-gate-plugin", exemptActiveGatePluginRoutes},
+ {"self-credentialed", exemptSelfCredentialed},
+}
+
+// webFS is the embedded web build (rooted at web/), resolved once. We test
+// request paths against it to decide what's a static asset.
+var webFS = static.GetWeb()
+
+// exemptStaticAssets exempts any request that resolves to a real file in the
+// embedded web build — the Next.js bundles, stylesheets, fonts, images, service
+// worker, manifest, etc. that the (exempt) admin app needs to render. This is
+// deliberately based on "does the build actually ship this file" rather than a
+// hardcoded list of path prefixes or extensions, so it stays correct as webpack
+// emits hash-named and relocated assets across builds.
+//
+// Two things are intentionally NOT matched, so they stay gated:
+// - the SPA HTML entry points (index.html, the embed shell): those are pages,
+// not assets — serving them unauthenticated would leak the viewer UI.
+// - HLS media (/hls/*.ts, *.m3u8): it lives in the HLS store, not the web
+// embed, so fs.Stat here never finds it.
+func exemptStaticAssets(r *http.Request, _ string) bool {
+ p := strings.TrimPrefix(r.URL.Path, "/")
+ if p == "" || strings.HasSuffix(p, ".html") {
+ return false
+ }
+ info, err := fs.Stat(webFS, p)
+ return err == nil && !info.IsDir()
+}
+
+// exemptAdminRoutes: the admin surfaces carry their own credential (Basic auth
+// or the admin session cookie) and have their own RequireAdminAuth gate, so
+// they are never behind the viewer gate — an operator can always reach the
+// dashboard and the admin API, even to disable a broken gate. Covers both the
+// admin SPA (/admin/*) and the admin API (/api/admin/*); the latter often
+// authenticates via the admin session cookie rather than an Authorization
+// header, so the self-credentialed rule alone would miss it.
+func exemptAdminRoutes(r *http.Request, _ string) bool {
+ p := r.URL.Path
+ return p == "/admin" || strings.HasPrefix(p, "/admin/") ||
+ p == "/api/admin" || strings.HasPrefix(p, "/api/admin/")
+}
+
+// exemptActiveGatePluginRoutes: the active gate plugin's own namespace must stay
+// reachable while unauthenticated — it serves the login screen, the auth
+// callback, and its assets. Dynamic: only the currently-enabled gate plugin is
+// exempt; every other plugin's routes stay gated.
+func exemptActiveGatePluginRoutes(r *http.Request, gateSlug string) bool {
+ if gateSlug == "" {
+ return false
+ }
+ base := "/plugins/" + gateSlug
+ return r.URL.Path == base || strings.HasPrefix(r.URL.Path, base+"/")
+}
+
+// exemptSelfCredentialed: requests carrying their own credential (admin Basic
+// auth, external-API Bearer tokens) are left for the downstream handler's own
+// auth to evaluate, rather than bounced to the viewer login screen.
+func exemptSelfCredentialed(r *http.Request, _ string) bool {
+ return r.Header.Get("Authorization") != ""
+}
+
+// gateExemptionFor returns the name of the first exemption that applies, or ""
+// if the request is subject to the gate.
+func gateExemptionFor(r *http.Request, gateSlug string) string {
+ for _, e := range gateExemptions {
+ if e.allow(r, gateSlug) {
+ return e.name
+ }
+ }
+ return ""
+}
+
+// decideGate is the pure gate decision. secretConfigured reports whether a
+// signing secret exists (without one an armed gate can't verify sessions, so it
+// fails closed); sessionValid reports whether the request carries a valid
+// session cookie (the middleware verifies it once, up front).
+func decideGate(r *http.Request, gateSlug string, gateLoaded bool, secretConfigured bool, sessionValid bool) (gateOutcome, string) {
+ // Gate off: no enabled auth.gate plugin.
+ if gateSlug == "" {
+ return gateAllow, ""
+ }
+
+ // A valid session is always allowed — checked first so it short-circuits the
+ // hot path (no exemption work, no per-request file stat), and so existing
+ // sessions keep working even while the gate plugin is unavailable (the cookie
+ // is verified with crypto alone, no plugin needed).
+ if sessionValid {
+ return gateAllow, ""
+ }
+
+ // Explicit, opt-out policy: anything on the named exemption list bypasses
+ // the gate (this also keeps admin + the gate plugin's own routes reachable
+ // while the gate is unavailable, so a broken gate can be recovered from).
+ if gateExemptionFor(r, gateSlug) != "" {
+ return gateAllow, ""
+ }
+
+ // Armed but we can't verify sessions (no signing secret) or the gate plugin
+ // isn't running (crashed, failed to load, auto-disabled) → fail closed.
+ // Never silently open.
+ if !secretConfigured || !gateLoaded {
+ return gateUnavailable, ""
+ }
+
+ // Otherwise the visitor is unauthenticated: send them to the plugin's login
+ // screen with a sanitized, same-origin return_to (it is built from this
+ // server's own request URI, so it can't be an open redirect).
+ loginURL := "/plugins/" + gateSlug + "/?return_to=" + url.QueryEscape(r.URL.RequestURI())
+ return gateLogin, loginURL
+}
+
+// AuthGateMiddleware returns the blanket viewer-auth gate as chi middleware.
+// It is a no-op while no auth.gate plugin is enabled.
+func (h *Host) AuthGateMiddleware() func(http.Handler) http.Handler {
+ return func(next http.Handler) http.Handler {
+ return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ now := time.Now().Unix()
+ secretConfigured := len(h.authSecret) > 0
+
+ // Verify the session once, up front, and propagate the identity it
+ // carries into the request context — for ALL requests with a valid
+ // cookie, including exempt paths (so the gate plugin's own login
+ // screen can tell the viewer is already signed in) and chat (/ws).
+ sessionValid := false
+ sessionToken := ""
+ if secretConfigured {
+ if token, ok := plugins.SessionFromRequest(h.authSecret, r, now); ok {
+ sessionValid = true
+ sessionToken = token
+ r = r.WithContext(plugins.WithSessionToken(r.Context(), token))
+ }
+ }
+
+ slug, loaded := h.manager.ActiveAuthGate()
+ outcome, loginURL := decideGate(r, slug, loaded, secretConfigured, sessionValid)
+ switch outcome {
+ case gateAllow:
+ // On the viewer's page load, let the active gate plugin
+ // re-validate (and optionally revoke or refresh) the session via
+ // onAuthCheck. Only when the allow is due to a real session on a
+ // non-exempt index navigation — not for exempt paths or API/asset
+ // requests.
+ if sessionValid && slug != "" && isIndexNavigation(r) && gateExemptionFor(r, slug) == "" {
+ h.runAuthCheckOnIndex(w, r, next, slug, sessionToken)
+ return
+ }
+ next.ServeHTTP(w, r)
+ case gateUnavailable:
+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
+ w.WriteHeader(http.StatusServiceUnavailable)
+ _, _ = io.WriteString(w, authUnavailableHTML)
+ case gateLogin:
+ // Redirect navigations; 401 anything else so XHR/API callers
+ // get a status they can act on instead of an HTML body.
+ if r.Method == http.MethodGet || r.Method == http.MethodHead {
+ http.Redirect(w, r, loginURL, http.StatusFound)
+ } else {
+ http.Error(w, "authentication required", http.StatusUnauthorized)
+ }
+ }
+ })
+ }
+}
+
+// authVerdict is the JSON a gate plugin's onAuthCheck returns.
+type authVerdict struct {
+ Action string `json:"action"` // "ok" | "refresh" | "deny"
+ TTL int64 `json:"ttl"` // refresh: new lifetime in seconds (0 = host default)
+ Reason string `json:"reason"`
+}
+
+// isIndexNavigation reports whether a request is a viewer landing on the main
+// page — the point at which the gate re-validates the session via onAuthCheck.
+func isIndexNavigation(r *http.Request) bool {
+ return r.URL.Path == "/" && (r.Method == http.MethodGet || r.Method == http.MethodHead)
+}
+
+// runAuthCheckOnIndex calls the gate plugin's onAuthCheck for the current
+// viewer and acts on the verdict: ok → continue, refresh → re-issue the cookie
+// with a fresh expiry and continue, deny (or any error) → clear the session and
+// bounce to the login screen. Errors fail closed.
+func (h *Host) runAuthCheckOnIndex(w http.ResponseWriter, r *http.Request, next http.Handler, slug, token string) {
+ secure := plugins.RequestIsSecure(r)
+ verdict, err := h.callAuthCheck(r.Context(), slug, token)
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "plugin auth: onAuthCheck failed for %s, denying session: %v\n", slug, err)
+ h.denySession(w, r, slug, secure)
+ return
+ }
+ switch verdict.Action {
+ case "deny":
+ h.denySession(w, r, slug, secure)
+ case "refresh":
+ ttl := plugins.ClampSessionTTL(verdict.TTL)
+ refreshed := plugins.SignSession(h.authSecret, token, time.Now().Add(ttl).Unix())
+ http.SetCookie(w, plugins.NewSessionCookie(refreshed, ttl, secure))
+ next.ServeHTTP(w, r)
+ default: // "ok" (and anything unrecognized) → let them through
+ next.ServeHTTP(w, r)
+ }
+}
+
+// callAuthCheck builds the identity envelope for token and invokes the gate
+// plugin's onAuthCheck, returning its verdict.
+func (h *Host) callAuthCheck(ctx context.Context, slug, token string) (authVerdict, error) {
+ if h.userByToken == nil {
+ return authVerdict{}, fmt.Errorf("no user resolver configured")
+ }
+ user := h.userByToken(token)
+ if user == nil {
+ return authVerdict{}, fmt.Errorf("session token resolves to no user")
+ }
+ input, err := json.Marshal(map[string]any{"user": user})
+ if err != nil {
+ return authVerdict{}, err
+ }
+ out, err := h.server.CallAuthCheck(ctx, slug, input)
+ if err != nil {
+ return authVerdict{}, err
+ }
+ var v authVerdict
+ if err := json.Unmarshal(out, &v); err != nil {
+ return authVerdict{}, err
+ }
+ return v, nil
+}
+
+// denySession clears the gate cookie and redirects the viewer to the login
+// screen (called on a deny verdict or an onAuthCheck failure).
+func (h *Host) denySession(w http.ResponseWriter, r *http.Request, slug string, secure bool) {
+ http.SetCookie(w, plugins.ClearSessionCookie(secure))
+ loginURL := "/plugins/" + slug + "/?return_to=" + url.QueryEscape(r.URL.RequestURI())
+ http.Redirect(w, r, loginURL, http.StatusFound)
+}
diff --git a/pluginhost/authgate_test.go b/pluginhost/authgate_test.go
new file mode 100644
index 0000000000..84dd09b8a7
--- /dev/null
+++ b/pluginhost/authgate_test.go
@@ -0,0 +1,94 @@
+package pluginhost
+
+import (
+ "net/http"
+ "net/http/httptest"
+ "strings"
+ "testing"
+)
+
+func TestDecideGate(t *testing.T) {
+ newReq := func(method, path, authHeader string) *http.Request {
+ r := httptest.NewRequest(method, path, nil)
+ if authHeader != "" {
+ r.Header.Set("Authorization", authHeader)
+ }
+ return r
+ }
+
+ cases := []struct {
+ name string
+ req *http.Request
+ slug string
+ loaded bool
+ secretConfigured bool
+ sessionValid bool
+ wantOutcome gateOutcome
+ }{
+ {"gate off allows everything", newReq("GET", "/", ""), "", false, true, false, gateAllow},
+ {"admin always allowed", newReq("GET", "/admin/config", ""), "github-auth", true, true, false, gateAllow},
+ {"gate plugin namespace allowed (login screen)", newReq("GET", "/plugins/github-auth/", ""), "github-auth", true, true, false, gateAllow},
+ {"gate plugin callback allowed", newReq("GET", "/plugins/github-auth/callback?code=x", ""), "github-auth", true, true, false, gateAllow},
+ {"armed but not loaded fails closed", newReq("GET", "/", ""), "github-auth", false, true, false, gateUnavailable},
+ {"armed with no secret fails closed", newReq("GET", "/", ""), "github-auth", true, false, false, gateUnavailable},
+ {"no session redirects to login", newReq("GET", "/", ""), "github-auth", true, true, false, gateLogin},
+ {"valid session allowed", newReq("GET", "/hls/0.ts", ""), "github-auth", true, true, true, gateAllow},
+ {"valid session survives a gate-plugin outage", newReq("GET", "/", ""), "github-auth", false, true, true, gateAllow},
+ {"authorization header allowed (self-credentialed)", newReq("GET", "/api/integrations/foo", "Bearer xyz"), "github-auth", true, true, false, gateAllow},
+ }
+
+ for _, tc := range cases {
+ t.Run(tc.name, func(t *testing.T) {
+ got, loginURL := decideGate(tc.req, tc.slug, tc.loaded, tc.secretConfigured, tc.sessionValid)
+ if got != tc.wantOutcome {
+ t.Fatalf("outcome: got %d want %d", got, tc.wantOutcome)
+ }
+ if got == gateLogin && !strings.HasPrefix(loginURL, "/plugins/github-auth/?return_to=") {
+ t.Fatalf("login URL wrong: %q", loginURL)
+ }
+ })
+ }
+}
+
+func TestGateExemptions(t *testing.T) {
+ req := func(path, auth string) *http.Request {
+ r := httptest.NewRequest("GET", path, nil)
+ if auth != "" {
+ r.Header.Set("Authorization", auth)
+ }
+ return r
+ }
+ cases := []struct {
+ name string
+ req *http.Request
+ gateSlug string
+ want string // expected matching exemption, "" = gated
+ }{
+ {"admin root", req("/admin", ""), "g", "admin"},
+ {"admin subpath", req("/admin/config", ""), "g", "admin"},
+ {"admin API is exempt (cookie-authed, no Authorization header)", req("/api/admin/status", ""), "g", "admin"},
+ {"admin API subpath", req("/api/admin/plugins/x/enable", ""), "g", "admin"},
+ {"public api/config is still gated", req("/api/config", ""), "g", ""},
+ {"active gate plugin root", req("/plugins/g", ""), "g", "active-gate-plugin"},
+ {"active gate plugin subpath", req("/plugins/g/callback", ""), "g", "active-gate-plugin"},
+ {"a different plugin is NOT exempt", req("/plugins/other/x", ""), "g", ""},
+ {"self-credentialed", req("/api/x", "Bearer t"), "g", "self-credentialed"},
+ // Real files in the embedded web build are exempt (resolved by fs.Stat).
+ {"admin stylesheet exempt", req("/styles/admin/chat.css", ""), "g", "static-assets"},
+ {"service worker exempt", req("/sw.js", ""), "g", "static-assets"},
+ {"web manifest exempt", req("/manifest.json", ""), "g", "static-assets"},
+ // The SPA index is a page, not an asset → gated (would leak the viewer UI).
+ {"index.html is a page, gated", req("/index.html", ""), "g", ""},
+ // HLS media isn't in the web embed, so it's never matched here.
+ {"HLS segment is NOT a web asset, stays gated", req("/hls/stream/0.ts", ""), "g", ""},
+ {"plain viewer path is gated", req("/hls/0.ts", ""), "g", ""},
+ {"plugin path with no active gate is gated", req("/plugins/g", ""), "", ""},
+ }
+ for _, tc := range cases {
+ t.Run(tc.name, func(t *testing.T) {
+ if got := gateExemptionFor(tc.req, tc.gateSlug); got != tc.want {
+ t.Fatalf("gateExemptionFor: got %q want %q", got, tc.want)
+ }
+ })
+ }
+}
diff --git a/pluginhost/pluginhost.go b/pluginhost/pluginhost.go
index 9b439b3e66..32e5b11128 100644
--- a/pluginhost/pluginhost.go
+++ b/pluginhost/pluginhost.go
@@ -3,6 +3,8 @@ package pluginhost
import (
"bytes"
"context"
+ "crypto/rand"
+ "encoding/hex"
"encoding/json"
"fmt"
"io"
@@ -103,6 +105,14 @@ type Host struct {
// (via the accessToken query parameter). Used by PageContent and Tabs to
// pass viewer identity to dynamic onPageContent / onTabContent handlers.
getRequestUser func(*http.Request) *plugins.HostUser
+ // authSecret is the HMAC key the viewer-auth gate uses to mint and verify
+ // session cookies. The same persisted secret is used by GrantSession (wired
+ // into the host env). Empty if it could not be established.
+ authSecret []byte
+ // userByToken resolves a viewer's identity from their access token, used by
+ // the onAuthCheck re-validation hook to build the identity it passes the
+ // gate plugin.
+ userByToken func(token string) *plugins.HostUser
}
// runtimeActionsConfigKey is the reserved key inside a plugin's own
@@ -630,6 +640,14 @@ func New(ctx context.Context, deps Deps) (*Host, error) {
server.RequireAdmin = deps.RequireAdminAuth
server.GetRequestUser = env.GetRequestUser
+ // The gate session signing secret is read once here (idempotent: it returns
+ // the persisted secret, generating one on first use) so the gate middleware
+ // and GrantSession share the same key.
+ authSecret, err := ensureSigningSecret(deps.Datastore)
+ if err != nil {
+ log.Errorln("plugin auth: could not establish session signing secret:", err)
+ }
+
return &Host{
manager: manager,
server: server,
@@ -639,6 +657,15 @@ func New(ctx context.Context, deps Deps) (*Host, error) {
kv: env.KV,
tickCancel: tickCancel,
getRequestUser: env.GetRequestUser,
+ authSecret: authSecret,
+ userByToken: func(token string) *plugins.HostUser {
+ u := deps.UserRepository.GetUserByToken(token)
+ if u == nil {
+ return nil
+ }
+ hu := toHostUser(u)
+ return &hu
+ },
}, nil
}
@@ -1358,6 +1385,96 @@ func wireUserHostFns(env *plugins.HostEnv, deps Deps) {
}
}
+// pluginAuthSigningSecretKey is where the gate session signing secret is
+// persisted. Generated once on first use; rotating it (clearing the row)
+// invalidates every outstanding session.
+const pluginAuthSigningSecretKey = "plugin_auth_signing_secret"
+
+// ensureSigningSecret returns the persisted gate session signing secret,
+// generating and storing one on first use.
+func ensureSigningSecret(ds *datastore.Datastore) ([]byte, error) {
+ if hexStr, err := ds.GetString(pluginAuthSigningSecretKey); err == nil && hexStr != "" {
+ if b, derr := hex.DecodeString(hexStr); derr == nil && len(b) > 0 {
+ return b, nil
+ }
+ }
+ secret := make([]byte, 32)
+ if _, err := rand.Read(secret); err != nil {
+ return nil, err
+ }
+ if err := ds.SetString(pluginAuthSigningSecretKey, hex.EncodeToString(secret)); err != nil {
+ return nil, err
+ }
+ return secret, nil
+}
+
+// wireAuthHostFns wires the viewer-authentication host functions: register an
+// authenticated user for an external (plugin-provided) identity, and mint a
+// signed gate session for them.
+func wireAuthHostFns(env *plugins.HostEnv, deps Deps) {
+ users := deps.UserRepository
+
+ secret, err := ensureSigningSecret(deps.Datastore)
+ if err != nil {
+ log.Errorln("plugin auth: could not establish session signing secret:", err)
+ // Leave RegisterUser/GrantSession unset: the host functions then report
+ // "not available" to the plugin rather than minting unsigned sessions.
+ return
+ }
+
+ env.RegisterUser = func(pluginName, authID, displayName string, scopes []string) (string, error) {
+ // Namespace the external identity by plugin slug so two auth plugins
+ // can't collide on, or impersonate, each other's users.
+ namespaced := pluginName + ":" + authID
+ var userID string
+ if existing := users.GetUserByAuth(namespaced, models.PluginAuth); existing != nil {
+ userID = existing.ID
+ } else {
+ user, _, err := users.CreateAnonymousUser(displayName)
+ if err != nil {
+ return "", err
+ }
+ if err := users.AddAuth(user.ID, namespaced, models.PluginAuth); err != nil {
+ return "", err
+ }
+ if err := users.SetUserAsAuthenticated(user.ID); err != nil {
+ log.Errorln("plugin", pluginName, "set user authenticated:", err)
+ }
+ userID = user.ID
+ }
+ // Map the provider's roles onto Owncast scopes (e.g. MODERATOR). Applied
+ // on every login so a role change upstream takes effect. Invalid scopes
+ // are rejected rather than silently stored.
+ if len(scopes) > 0 {
+ if users.HasValidScopes(scopes) {
+ if err := users.SetUserScopes(userID, scopes); err != nil {
+ log.Errorln("plugin", pluginName, "set user scopes:", err)
+ }
+ } else {
+ log.Errorln("plugin", pluginName, "ignoring invalid scopes:", scopes)
+ }
+ }
+ return userID, nil
+ }
+
+ env.GrantSession = func(pluginName, userID string, ttlSeconds int64) (string, error) {
+ // Mint an access token for this session and carry it (signed) in the
+ // cookie, so the chat /ws path can resolve the viewer via the existing
+ // GetUserByToken lookup. Login is infrequent, so a token per session is
+ // acceptable.
+ token, err := utils.GenerateAccessToken()
+ if err != nil {
+ return "", err
+ }
+ if err := users.AddAccessTokenForUser(token, userID); err != nil {
+ return "", err
+ }
+ ttl := plugins.ClampSessionTTL(ttlSeconds)
+ exp := time.Now().Add(ttl).Unix()
+ return plugins.SignSession(secret, token, exp), nil
+ }
+}
+
func wireNotificationHostFns(env *plugins.HostEnv, deps Deps) {
cfg := deps.ConfigRepository
@@ -1432,6 +1549,14 @@ func wireRequestHostFns(env *plugins.HostEnv, deps Deps) {
env.GetRequestUser = func(r *http.Request) *plugins.HostUser {
token := utils.ChatAccessTokenFromRequest(r)
+ if token == "" {
+ // Fall back to the viewer-auth gate session: the gate middleware
+ // verified the signed cookie and stashed the access token it
+ // carries in the request context. This is what lets a plugin's
+ // onHttpRequest (and page/tab content) see req.user for a viewer
+ // who authenticated through the gate rather than via a chat token.
+ token = plugins.SessionTokenFromContext(r.Context())
+ }
if token == "" {
return nil
}
diff --git a/services/chat/server.go b/services/chat/server.go
index 011b55614e..d897dab594 100644
--- a/services/chat/server.go
+++ b/services/chat/server.go
@@ -21,6 +21,7 @@ import (
"github.com/owncast/owncast/services/datastore"
"github.com/owncast/owncast/services/dispatcher"
"github.com/owncast/owncast/services/geoip"
+ plugins "github.com/owncast/owncast/services/plugins"
"github.com/owncast/owncast/services/webhooks"
"github.com/owncast/owncast/utils"
)
@@ -289,6 +290,12 @@ func (s *Service) HandleClientConnection(w http.ResponseWriter, r *http.Request)
if accessToken != "" {
responseHeader = http.Header{}
utils.AddChatAccessTokenCookieHeader(responseHeader, r, accessToken)
+ } else if t := plugins.SessionTokenFromContext(r.Context()); t != "" {
+ // Viewer authenticated through the plugin auth gate: the signed gate
+ // session cookie (already verified by the gate middleware) carries the
+ // access token, surfaced here via the request context. No query param
+ // and no extra cookie needed — the gate cookie is the credential.
+ accessToken = t
}
conn, err := upgrader.Upgrade(w, r, responseHeader)
diff --git a/services/plugins/authsession.go b/services/plugins/authsession.go
new file mode 100644
index 0000000000..18e7094b3b
--- /dev/null
+++ b/services/plugins/authsession.go
@@ -0,0 +1,239 @@
+package plugins
+
+// Viewer-authentication sessions. A viewer-auth plugin (one holding the
+// auth.gate permission) calls owncast.auth.grantSession after it verifies a
+// visitor; the host mints a signed, stateless session cookie carrying the
+// viewer's Owncast access token and an expiry, and attaches it to the in-flight
+// on_http_request response. The gate (added separately) verifies the cookie
+// signature + expiry on every request — pure crypto, no database lookup, so it
+// is cheap enough for the per-segment HLS hot path.
+//
+// The plugin never sees the cookie or the signing secret: it only names the
+// user (via grantSession) and the host owns the credential end to end.
+
+import (
+ "context"
+ "crypto/hmac"
+ "crypto/sha256"
+ "encoding/base64"
+ "net/http"
+ "strconv"
+ "strings"
+ "sync"
+ "time"
+)
+
+const (
+ // SessionCookieName is the gate session cookie. Core owns it; plugins
+ // cannot set it (the response writer strips a plugin-supplied value).
+ SessionCookieName = "owncast_session"
+
+ // DefaultSessionTTL is used when a plugin requests ttl 0. It is intentionally
+ // short-ish because, with page-load-granularity revocation, the TTL is the
+ // hard backstop on how long a revoked-but-idle viewer can linger.
+ DefaultSessionTTL = 24 * time.Hour
+ // MaxSessionTTL caps a plugin-requested ttl.
+ MaxSessionTTL = 30 * 24 * time.Hour
+)
+
+// ClampSessionTTL resolves a plugin-requested ttl (in seconds) to a duration,
+// applying the default for 0 and the ceiling for anything too large. Both the
+// cookie MaxAge and the signed token's expiry derive from it, so they stay in
+// sync.
+func ClampSessionTTL(ttlSeconds int64) time.Duration {
+ if ttlSeconds <= 0 {
+ return DefaultSessionTTL
+ }
+ ttl := time.Duration(ttlSeconds) * time.Second
+ if ttl > MaxSessionTTL {
+ return MaxSessionTTL
+ }
+ return ttl
+}
+
+// SignSession produces a stateless session token: base64url(payload) "."
+// base64url(HMAC-SHA256(payload)). payload is "userID|expUnix".
+func SignSession(secret []byte, userID string, expUnix int64) string {
+ payload := userID + "|" + strconv.FormatInt(expUnix, 10)
+ mac := hmac.New(sha256.New, secret)
+ mac.Write([]byte(payload))
+ return base64.RawURLEncoding.EncodeToString([]byte(payload)) + "." +
+ base64.RawURLEncoding.EncodeToString(mac.Sum(nil))
+}
+
+// VerifySession checks a token's signature against secret and its expiry
+// against nowUnix, returning the user ID it carries. ok is false for a
+// malformed, tampered, or expired token.
+func VerifySession(secret []byte, token string, nowUnix int64) (userID string, ok bool) {
+ dot := strings.IndexByte(token, '.')
+ if dot < 0 {
+ return "", false
+ }
+ payloadBytes, err := base64.RawURLEncoding.DecodeString(token[:dot])
+ if err != nil {
+ return "", false
+ }
+ sig, err := base64.RawURLEncoding.DecodeString(token[dot+1:])
+ if err != nil {
+ return "", false
+ }
+ mac := hmac.New(sha256.New, secret)
+ mac.Write(payloadBytes)
+ if !hmac.Equal(sig, mac.Sum(nil)) {
+ return "", false
+ }
+ payload := string(payloadBytes)
+ bar := strings.LastIndexByte(payload, '|')
+ if bar < 0 {
+ return "", false
+ }
+ exp, err := strconv.ParseInt(payload[bar+1:], 10, 64)
+ if err != nil || nowUnix > exp {
+ return "", false
+ }
+ return payload[:bar], true
+}
+
+// newSessionCookie builds the gate session cookie. SameSite=Lax is required:
+// the auth provider's OAuth callback is a cross-site top-level redirect, and
+// Strict would drop the cookie on return. Secure is set whenever the request
+// arrived over HTTPS — this is an auth credential, so it should never travel in
+// cleartext when the connection is encrypted. It is intentionally NOT forced on
+// plain-HTTP requests, since many deployments terminate TLS at a proxy and
+// serve the app over HTTP internally (the proxy hop is the secure boundary).
+func NewSessionCookie(token string, ttl time.Duration, secure bool) *http.Cookie {
+ return &http.Cookie{
+ Name: SessionCookieName,
+ Value: token,
+ Path: "/",
+ HttpOnly: true,
+ Secure: secure,
+ SameSite: http.SameSiteLaxMode,
+ MaxAge: int(ttl.Seconds()),
+ }
+}
+
+// clearSessionCookie expires the gate session cookie (logout).
+func ClearSessionCookie(secure bool) *http.Cookie {
+ return &http.Cookie{
+ Name: SessionCookieName,
+ Value: "",
+ Path: "/",
+ HttpOnly: true,
+ Secure: secure,
+ SameSite: http.SameSiteLaxMode,
+ MaxAge: -1,
+ }
+}
+
+// SessionFromRequest reads and verifies the gate session cookie on a request,
+// returning the user ID it carries. ok is false when the cookie is absent,
+// malformed, tampered, or expired. The gate middleware and the chat /ws bridge
+// use this to resolve identity without a database hit.
+func SessionFromRequest(secret []byte, r *http.Request, nowUnix int64) (userID string, ok bool) {
+ c, err := r.Cookie(SessionCookieName)
+ if err != nil || c.Value == "" {
+ return "", false
+ }
+ return VerifySession(secret, c.Value, nowUnix)
+}
+
+// --- request-scoped grant sink ---------------------------------------------
+//
+// grantSession/endSession are called from inside a plugin's on_http_request
+// wasm execution, but the cookie must be attached to the response the host
+// writes AFTER the wasm returns. We bridge the two by stashing a sink in the
+// call context (which extism propagates to host functions). serveDynamic seeds
+// it before the call and drains it after.
+
+type sessionAction struct {
+ clear bool
+ token string
+ ttl time.Duration
+}
+
+type authSink struct {
+ mu sync.Mutex
+ actions []sessionAction
+}
+
+func (s *authSink) grant(token string, ttl time.Duration) {
+ s.mu.Lock()
+ defer s.mu.Unlock()
+ s.actions = append(s.actions, sessionAction{token: token, ttl: ttl})
+}
+
+func (s *authSink) end() {
+ s.mu.Lock()
+ defer s.mu.Unlock()
+ s.actions = append(s.actions, sessionAction{clear: true})
+}
+
+// cookies renders the recorded actions into Set-Cookie values, in order (a
+// plugin should issue at most one per request, but the browser applies the
+// last regardless). secure marks the cookies Secure (set when the request
+// arrived over HTTPS).
+func (s *authSink) cookies(secure bool) []*http.Cookie {
+ s.mu.Lock()
+ defer s.mu.Unlock()
+ out := make([]*http.Cookie, 0, len(s.actions))
+ for _, a := range s.actions {
+ if a.clear {
+ out = append(out, ClearSessionCookie(secure))
+ } else {
+ out = append(out, NewSessionCookie(a.token, a.ttl, secure))
+ }
+ }
+ return out
+}
+
+// RequestIsSecure reports whether a request arrived over HTTPS, either directly
+// (r.TLS) or via a TLS-terminating proxy that set X-Forwarded-Proto. Used to
+// decide whether the session cookie should be marked Secure.
+func RequestIsSecure(r *http.Request) bool {
+ if r.TLS != nil {
+ return true
+ }
+ return strings.EqualFold(r.Header.Get("X-Forwarded-Proto"), "https")
+}
+
+type authSinkKeyType struct{}
+
+var authSinkKey authSinkKeyType
+
+// --- resolved-session propagation -------------------------------------------
+//
+// The gate middleware verifies the session cookie once per request; it stashes
+// the access token it carries in the request context so downstream handlers
+// (notably chat's /ws) can resolve the viewer's identity without re-verifying
+// or re-reading the cookie. This is how a gate login flows through to chat.
+
+type sessionTokenKeyType struct{}
+
+var sessionTokenKey sessionTokenKeyType
+
+// WithSessionToken returns a context carrying the verified gate-session access
+// token.
+func WithSessionToken(ctx context.Context, token string) context.Context {
+ return context.WithValue(ctx, sessionTokenKey, token)
+}
+
+// SessionTokenFromContext returns the gate-session access token the middleware
+// resolved for this request, or "" if the request had no valid gate session.
+func SessionTokenFromContext(ctx context.Context) string {
+ t, _ := ctx.Value(sessionTokenKey).(string)
+ return t
+}
+
+// withAuthSink returns a context carrying a fresh sink and the sink itself.
+func withAuthSink(ctx context.Context) (context.Context, *authSink) {
+ sink := &authSink{}
+ return context.WithValue(ctx, authSinkKey, sink), sink
+}
+
+// authSinkFrom returns the sink in ctx, or nil when none was seeded (e.g. the
+// test harness, which exercises host functions without an HTTP response).
+func authSinkFrom(ctx context.Context) *authSink {
+ sink, _ := ctx.Value(authSinkKey).(*authSink)
+ return sink
+}
diff --git a/services/plugins/authsession_test.go b/services/plugins/authsession_test.go
new file mode 100644
index 0000000000..0f2ba283ff
--- /dev/null
+++ b/services/plugins/authsession_test.go
@@ -0,0 +1,131 @@
+package plugins
+
+import (
+ "net/http"
+ "net/http/httptest"
+ "testing"
+ "time"
+)
+
+func TestSignVerifySession_Roundtrip(t *testing.T) {
+ secret := []byte("test-secret-0123456789")
+ now := time.Now().Unix()
+ exp := now + 3600
+ tok := SignSession(secret, "user-abc", exp)
+
+ got, ok := VerifySession(secret, tok, now)
+ if !ok {
+ t.Fatal("expected valid token")
+ }
+ if got != "user-abc" {
+ t.Fatalf("userID: got %q want %q", got, "user-abc")
+ }
+}
+
+func TestVerifySession_Expired(t *testing.T) {
+ secret := []byte("test-secret")
+ exp := int64(1000)
+ tok := SignSession(secret, "u1", exp)
+ if _, ok := VerifySession(secret, tok, exp+1); ok {
+ t.Fatal("expected expired token to be rejected")
+ }
+ if _, ok := VerifySession(secret, tok, exp); !ok {
+ t.Fatal("token should still be valid at exactly exp")
+ }
+}
+
+func TestVerifySession_Tampered(t *testing.T) {
+ secret := []byte("test-secret")
+ now := time.Now().Unix()
+ tok := SignSession(secret, "u1", now+3600)
+
+ // Wrong secret.
+ if _, ok := VerifySession([]byte("other-secret"), tok, now); ok {
+ t.Fatal("expected rejection under a different secret")
+ }
+ // Flipped last byte of the signature.
+ bad := tok[:len(tok)-1] + map[bool]string{true: "A", false: "B"}[tok[len(tok)-1] != 'A']
+ if _, ok := VerifySession(secret, bad, now); ok {
+ t.Fatal("expected rejection of a tampered signature")
+ }
+ // Garbage.
+ for _, junk := range []string{"", "no-dot", "a.b", ".", "x."} {
+ if _, ok := VerifySession(secret, junk, now); ok {
+ t.Fatalf("expected rejection of malformed token %q", junk)
+ }
+ }
+}
+
+func TestSessionFromRequest(t *testing.T) {
+ secret := []byte("test-secret")
+ now := time.Now().Unix()
+ tok := SignSession(secret, "viewer-1", now+3600)
+
+ r := httptest.NewRequest("GET", "/", nil)
+ r.AddCookie(&http.Cookie{Name: SessionCookieName, Value: tok})
+ if got, ok := SessionFromRequest(secret, r, now); !ok || got != "viewer-1" {
+ t.Fatalf("SessionFromRequest: got (%q,%v) want (viewer-1,true)", got, ok)
+ }
+
+ // No cookie.
+ if _, ok := SessionFromRequest(secret, httptest.NewRequest("GET", "/", nil), now); ok {
+ t.Fatal("expected no session when cookie absent")
+ }
+}
+
+func TestClampSessionTTL(t *testing.T) {
+ if got := ClampSessionTTL(0); got != DefaultSessionTTL {
+ t.Fatalf("ttl 0: got %v want default %v", got, DefaultSessionTTL)
+ }
+ if got := ClampSessionTTL(60); got != time.Minute {
+ t.Fatalf("ttl 60: got %v want 1m", got)
+ }
+ if got := ClampSessionTTL(int64(MaxSessionTTL.Seconds()) + 10_000); got != MaxSessionTTL {
+ t.Fatalf("oversized ttl: got %v want max %v", got, MaxSessionTTL)
+ }
+}
+
+func TestAuthSink_CookiesGrantAndClear(t *testing.T) {
+ s := &authSink{}
+ if len(s.cookies(false)) != 0 {
+ t.Fatal("empty sink should yield no cookies")
+ }
+ s.grant("tok123", time.Hour)
+ cookies := s.cookies(false)
+ if len(cookies) != 1 || cookies[0].Name != SessionCookieName || cookies[0].Value != "tok123" {
+ t.Fatalf("grant cookie wrong: %+v", cookies)
+ }
+ if cookies[0].MaxAge != int(time.Hour.Seconds()) || !cookies[0].HttpOnly || cookies[0].SameSite != http.SameSiteLaxMode {
+ t.Fatalf("grant cookie attributes wrong: %+v", cookies[0])
+ }
+
+ s2 := &authSink{}
+ s2.end()
+ cl := s2.cookies(false)
+ if len(cl) != 1 || cl[0].MaxAge != -1 || cl[0].Value != "" {
+ t.Fatalf("clear cookie wrong: %+v", cl)
+ }
+}
+
+func TestSessionCookie_SecureFollowsRequest(t *testing.T) {
+ // Secure off on plain HTTP, on over HTTPS.
+ s := &authSink{}
+ s.grant("tok", time.Hour)
+ if s.cookies(false)[0].Secure {
+ t.Fatal("cookie should not be Secure on plain HTTP")
+ }
+ if !s.cookies(true)[0].Secure {
+ t.Fatal("cookie should be Secure over HTTPS")
+ }
+
+ // RequestIsSecure honors r.TLS and X-Forwarded-Proto.
+ plain := httptest.NewRequest("GET", "http://x/", nil)
+ if RequestIsSecure(plain) {
+ t.Fatal("plain http request should not be secure")
+ }
+ fwd := httptest.NewRequest("GET", "http://x/", nil)
+ fwd.Header.Set("X-Forwarded-Proto", "https")
+ if !RequestIsSecure(fwd) {
+ t.Fatal("X-Forwarded-Proto=https should be treated as secure")
+ }
+}
diff --git a/services/plugins/engines/javascript/engine.wasm b/services/plugins/engines/javascript/engine.wasm
index b2639c78d5..9a21c76ea6 100644
Binary files a/services/plugins/engines/javascript/engine.wasm and b/services/plugins/engines/javascript/engine.wasm differ
diff --git a/services/plugins/engines/python/engine.wasm b/services/plugins/engines/python/engine.wasm
index e322afba93..69e1960b03 100644
Binary files a/services/plugins/engines/python/engine.wasm and b/services/plugins/engines/python/engine.wasm differ
diff --git a/services/plugins/hostfns.go b/services/plugins/hostfns.go
index ff16c98595..8ba7cf24be 100644
--- a/services/plugins/hostfns.go
+++ b/services/plugins/hostfns.go
@@ -44,9 +44,20 @@ const (
PermNotificationsSend = "notifications.send"
PermUsersRead = "users.read"
PermUsersModerate = "users.moderate"
- PermFediversePost = "fediverse.post"
- PermVideoConfigRead = "videoconfig.read"
- PermVideoConfigWrite = "videoconfig.write"
+ // PermUsersRegister lets a plugin create/find an authenticated user for an
+ // external identity (owncast.users.register) — the same find-or-link pattern
+ // IndieAuth and Fediverse auth use, exposed to plugins as a new AuthType.
+ // Separate from auth.gate so a non-gating plugin (e.g. a "verified member"
+ // badge) can establish identity without gating the whole site.
+ PermUsersRegister = "users.register"
+ // PermAuthGate marks a plugin as a viewer-authentication gate and grants
+ // owncast.auth.grantSession / owncast.auth.endSession. Declaring it does
+ // nothing on its own; the gate only goes live when an admin enables the
+ // plugin, and only one auth.gate plugin may be enabled at a time.
+ PermAuthGate = "auth.gate"
+ PermFediversePost = "fediverse.post"
+ PermVideoConfigRead = "videoconfig.read"
+ PermVideoConfigWrite = "videoconfig.write"
// PermUIModify lets a plugin add UI surfaces to Owncast: admin pages
// (manifest.admin.pages) and viewer action buttons (manifest.actions).
// A plugin can serve HTTP on /plugins/<name>/ without this permission
@@ -286,11 +297,27 @@ type HostEnv struct {
KickClient func(pluginName string, clientID uint64) // chat.moderate
SendDiscord func(pluginName, text string) // notifications.send
SendBrowserPush func(pluginName string, p BrowserPushPayload)
- Users func() []HostUser // users.read
- UserGet func(id string) (HostUser, bool) // users.read
- SetUserEnabled func(pluginName, userID string, enabled bool, reason string) // users.moderate
- BanIP func(pluginName, ip string) // users.moderate
- UploadStorage func(pluginName, name string, data []byte) (string, error) // storage.upload
+ Users func() []HostUser // users.read
+ UserGet func(id string) (HostUser, bool) // users.read
+ // RegisterUser finds-or-creates an authenticated Owncast user for an external
+ // identity (users.register). pluginName namespaces authID internally so two
+ // auth plugins can't collide on, or spoof, each other's identities. Returns
+ // the Owncast user ID. Optional; nil → the host function reports an error to
+ // the plugin.
+ RegisterUser func(pluginName, authID, displayName string, scopes []string) (userID string, err error)
+ // GrantSession mints a signed, stateless session token for an
+ // already-registered user (auth.gate). ttlSeconds of 0 means the host
+ // default. It returns the token; the host function attaches it as a cookie
+ // to the in-flight onHttpRequest response (via the request-scoped sink).
+ // Optional; nil → the host function reports an error to the plugin.
+ GrantSession func(pluginName, userID string, ttlSeconds int64) (token string, err error)
+ // EndSession is an optional server-side hook on logout (auth.gate). The
+ // cookie itself is cleared via the request-scoped sink regardless; this is
+ // for any additional cleanup. Optional; nil → no-op.
+ EndSession func(pluginName string)
+ SetUserEnabled func(pluginName, userID string, enabled bool, reason string) // users.moderate
+ BanIP func(pluginName, ip string) // users.moderate
+ UploadStorage func(pluginName, name string, data []byte) (string, error) // storage.upload
// Sandboxed per-plugin filesystem (storage.fs). Each plugin sees only
// its own directory under data/plugin-data/<slug>/; the host rejects any
// path that escapes it. Paths are relative to that root.
@@ -388,6 +415,11 @@ func BuildHostFunctions(env *HostEnv) []extism.HostFunction {
)
fns = append(fns, hostChatClients(env))
fns = append(fns, hostUsersList(env), hostUserGet(env))
+ fns = append(fns,
+ hostUsersRegister(env),
+ hostAuthGrantSession(env),
+ hostAuthEndSession(env),
+ )
fns = append(fns,
hostUserSetEnabled(env),
hostBanIP(env),
@@ -697,6 +729,156 @@ func hostUserGet(env *HostEnv) extism.HostFunction {
return fn
}
+// UserRegisterRequest is the JSON payload a plugin sends to owncast.users.register.
+type UserRegisterRequest struct {
+ AuthID string `json:"authId"`
+ DisplayName string `json:"displayName,omitempty"`
+ Scopes []string `json:"scopes,omitempty"`
+}
+
+// UserRegisterResult is the JSON envelope returned to the plugin: the resolved
+// Owncast user ID on success, or a human-readable error.
+type UserRegisterResult struct {
+ UserID string `json:"userId,omitempty"`
+ Error string `json:"error,omitempty"`
+}
+
+// GrantSessionRequest is the JSON payload a plugin sends to owncast.auth.grantSession.
+type GrantSessionRequest struct {
+ UserID string `json:"userId"`
+ TTL int64 `json:"ttl,omitempty"` // seconds; 0 = host default
+}
+
+// authResult is the {error?} envelope returned by grantSession.
+type authResult struct {
+ Error string `json:"error,omitempty"`
+}
+
+// writeJSON marshals v and writes it into plugin memory, returning the offset
+// (0 on failure) for the host function's PTR return slot.
+func writeJSON(p *extism.CurrentPlugin, v any) uint64 {
+ data, err := json.Marshal(v)
+ if err != nil {
+ return 0
+ }
+ offset, err := p.WriteBytes(data)
+ if err != nil {
+ return 0
+ }
+ return offset
+}
+
+func hostUsersRegister(env *HostEnv) extism.HostFunction {
+ fn := extism.NewHostFunctionWithStack(
+ "owncast_users_register",
+ func(ctx context.Context, p *extism.CurrentPlugin, stack []uint64) {
+ ident, ok := resolveCaller(ctx, "owncast_users_register", PermUsersRegister)
+ if !ok {
+ stack[0] = 0
+ return
+ }
+ raw, err := p.ReadString(stack[0])
+ if err != nil {
+ stack[0] = 0
+ return
+ }
+ var req UserRegisterRequest
+ if err := json.Unmarshal([]byte(raw), &req); err != nil {
+ stack[0] = writeJSON(p, UserRegisterResult{Error: "invalid request: " + err.Error()})
+ return
+ }
+ if req.AuthID == "" {
+ stack[0] = writeJSON(p, UserRegisterResult{Error: "authId is required"})
+ return
+ }
+ if env.RegisterUser == nil {
+ stack[0] = writeJSON(p, UserRegisterResult{Error: "users.register is not available on this host"})
+ return
+ }
+ userID, err := env.RegisterUser(ident.slug, req.AuthID, req.DisplayName, req.Scopes)
+ if err != nil {
+ stack[0] = writeJSON(p, UserRegisterResult{Error: err.Error()})
+ return
+ }
+ stack[0] = writeJSON(p, UserRegisterResult{UserID: userID})
+ },
+ []extism.ValueType{extism.ValueTypePTR},
+ []extism.ValueType{extism.ValueTypePTR},
+ )
+ fn.SetNamespace("extism:host/user")
+ return fn
+}
+
+func hostAuthGrantSession(env *HostEnv) extism.HostFunction {
+ fn := extism.NewHostFunctionWithStack(
+ "owncast_auth_grant_session",
+ func(ctx context.Context, p *extism.CurrentPlugin, stack []uint64) {
+ ident, ok := resolveCaller(ctx, "owncast_auth_grant_session", PermAuthGate)
+ if !ok {
+ stack[0] = 0
+ return
+ }
+ raw, err := p.ReadString(stack[0])
+ if err != nil {
+ stack[0] = 0
+ return
+ }
+ var req GrantSessionRequest
+ if err := json.Unmarshal([]byte(raw), &req); err != nil {
+ stack[0] = writeJSON(p, authResult{Error: "invalid request: " + err.Error()})
+ return
+ }
+ if req.UserID == "" {
+ stack[0] = writeJSON(p, authResult{Error: "userId is required"})
+ return
+ }
+ if env.GrantSession == nil {
+ stack[0] = writeJSON(p, authResult{Error: "auth.gate is not available on this host"})
+ return
+ }
+ token, err := env.GrantSession(ident.slug, req.UserID, req.TTL)
+ if err != nil {
+ stack[0] = writeJSON(p, authResult{Error: err.Error()})
+ return
+ }
+ // Hand the freshly-minted token to the request-scoped sink so the
+ // HTTP layer can set the cookie on the response after the wasm
+ // returns. Absent in non-HTTP contexts (e.g. the test harness).
+ if sink := authSinkFrom(ctx); sink != nil {
+ sink.grant(token, ClampSessionTTL(req.TTL))
+ }
+ stack[0] = writeJSON(p, authResult{})
+ },
+ []extism.ValueType{extism.ValueTypePTR},
+ []extism.ValueType{extism.ValueTypePTR},
+ )
+ fn.SetNamespace("extism:host/user")
+ return fn
+}
+
+func hostAuthEndSession(env *HostEnv) extism.HostFunction {
+ fn := extism.NewHostFunctionWithStack(
+ "owncast_auth_end_session",
+ func(ctx context.Context, p *extism.CurrentPlugin, stack []uint64) {
+ ident, ok := resolveCaller(ctx, "owncast_auth_end_session", PermAuthGate)
+ if !ok {
+ return
+ }
+ if env.EndSession != nil {
+ env.EndSession(ident.slug)
+ }
+ // Clear the session cookie on the in-flight response.
+ if sink := authSinkFrom(ctx); sink != nil {
+ sink.end()
+ }
+ },
+ []extism.ValueType{},
+ []extism.ValueType{},
+ )
+ fn.SetNamespace("extism:host/user")
+ return fn
+}
+
func hostUserSetEnabled(env *HostEnv) extism.HostFunction {
fn := extism.NewHostFunctionWithStack(
"owncast_user_set_enabled",
diff --git a/services/plugins/manager.go b/services/plugins/manager.go
index 77c2366455..4676003746 100644
--- a/services/plugins/manager.go
+++ b/services/plugins/manager.go
@@ -525,6 +525,38 @@ func (m *Manager) List() []DiscoveredEntry {
return out
}
+// ActiveAuthGate returns the slug of the enabled auth.gate plugin (if any) and
+// whether it is currently loaded. The viewer-auth gate middleware calls this on
+// every request, so it scans under a read lock without allocating the full
+// List(). Only one auth.gate plugin can be enabled at a time (see Enable), so
+// the first match is authoritative.
+func (m *Manager) ActiveAuthGate() (slug string, loaded bool) {
+ m.mu.RLock()
+ defer m.mu.RUnlock()
+ for name, on := range m.enabledSet {
+ if !on {
+ continue
+ }
+ d := m.discovered[name]
+ if d == nil || !hasPerm(d.Permissions, PermAuthGate) {
+ continue
+ }
+ _, isLoaded := m.loaded[name]
+ return d.Slug, isLoaded
+ }
+ return "", false
+}
+
+// hasPerm reports whether perms contains want.
+func hasPerm(perms []string, want string) bool {
+ for _, p := range perms {
+ if p == want {
+ return true
+ }
+ }
+ return false
+}
+
// Snapshot returns the currently-loaded plugins. Dispatcher and Server call
// this on every operation so changes from Enable/Disable take effect
// without restarting anything.
@@ -556,6 +588,19 @@ func (m *Manager) Enable(ctx context.Context, name string) error {
return nil
}
}
+ // Only one auth.gate plugin may be enabled at a time — the viewer-auth gate
+ // is singular (two gates would be ambiguous). Refuse to enable a second.
+ if hasPerm(d.Permissions, PermAuthGate) {
+ for other, on := range m.enabledSet {
+ if !on || other == name {
+ continue
+ }
+ if od := m.discovered[other]; od != nil && hasPerm(od.Permissions, PermAuthGate) {
+ m.mu.Unlock()
+ return fmt.Errorf("cannot enable %q: another authentication-gate plugin (%q) is already enabled; disable it first", d.Slug, od.Slug)
+ }
+ }
+ }
m.enabledSet[name] = true
snapshot := append([]string(nil), d.Permissions...)
sort.Strings(snapshot)
diff --git a/services/plugins/manager_authgate_test.go b/services/plugins/manager_authgate_test.go
new file mode 100644
index 0000000000..f9d1a73be7
--- /dev/null
+++ b/services/plugins/manager_authgate_test.go
@@ -0,0 +1,75 @@
+package plugins
+
+import (
+ "context"
+ "strings"
+ "testing"
+)
+
+// seedManager builds a Manager with the given discovered entries and enabled
+// set, bypassing disk scanning so we can unit-test the auth.gate guard and
+// ActiveAuthGate without loading real wasm.
+func seedManager(discovered map[string]*DiscoveredEntry, enabled map[string]bool, loaded map[string]*Loaded) *Manager {
+ m := NewManager(".", &HostEnv{})
+ m.discovered = discovered
+ m.enabledSet = enabled
+ if loaded != nil {
+ m.loaded = loaded
+ }
+ return m
+}
+
+func TestManager_RefusesSecondAuthGate(t *testing.T) {
+ m := seedManager(
+ map[string]*DiscoveredEntry{
+ "gate-a": {Slug: "gate-a", Permissions: []string{PermAuthGate}},
+ "gate-b": {Slug: "gate-b", Permissions: []string{PermAuthGate}},
+ },
+ map[string]bool{"gate-a": true},
+ nil,
+ )
+
+ err := m.Enable(context.Background(), "gate-b")
+ if err == nil {
+ t.Fatal("expected enabling a second auth.gate plugin to fail")
+ }
+ if !strings.Contains(err.Error(), "another authentication-gate plugin") {
+ t.Fatalf("unexpected error: %v", err)
+ }
+ // The second gate must not have been added to the enabled set.
+ if m.enabledSet["gate-b"] {
+ t.Fatal("gate-b should not be enabled after the guard rejected it")
+ }
+}
+
+func TestManager_ActiveAuthGate(t *testing.T) {
+ // Enabled + loaded gate.
+ m := seedManager(
+ map[string]*DiscoveredEntry{"gate-a": {Slug: "gate-a", Permissions: []string{PermAuthGate}}},
+ map[string]bool{"gate-a": true},
+ map[string]*Loaded{"gate-a": {}},
+ )
+ if slug, loaded := m.ActiveAuthGate(); slug != "gate-a" || !loaded {
+ t.Fatalf("ActiveAuthGate: got (%q,%v) want (gate-a,true)", slug, loaded)
+ }
+
+ // Enabled but not loaded → armed but unavailable.
+ m2 := seedManager(
+ map[string]*DiscoveredEntry{"gate-a": {Slug: "gate-a", Permissions: []string{PermAuthGate}}},
+ map[string]bool{"gate-a": true},
+ map[string]*Loaded{},
+ )
+ if slug, loaded := m2.ActiveAuthGate(); slug != "gate-a" || loaded {
+ t.Fatalf("ActiveAuthGate (unloaded): got (%q,%v) want (gate-a,false)", slug, loaded)
+ }
+
+ // No gate enabled.
+ m3 := seedManager(
+ map[string]*DiscoveredEntry{"chatbot": {Slug: "chatbot", Permissions: []string{"chat.send"}}},
+ map[string]bool{"chatbot": true},
+ map[string]*Loaded{"chatbot": {}},
+ )
+ if slug, _ := m3.ActiveAuthGate(); slug != "" {
+ t.Fatalf("ActiveAuthGate with no gate: got %q want empty", slug)
+ }
+}
diff --git a/services/plugins/plugin-contract.json b/services/plugins/plugin-contract.json
index 0e2bb8f3cf..deccce065b 100644
--- a/services/plugins/plugin-contract.json
+++ b/services/plugins/plugin-contract.json
@@ -1,5 +1,6 @@
{
"permissions": {
+ "PermAuthGate": "auth.gate",
"PermChatFilter": "chat.filter",
"PermChatHistory": "chat.history",
"PermChatModerate": "chat.moderate",
@@ -17,12 +18,15 @@
"PermUIModify": "ui.modify",
"PermUsersModerate": "users.moderate",
"PermUsersRead": "users.read",
+ "PermUsersRegister": "users.register",
"PermVideoConfigRead": "videoconfig.read",
"PermVideoConfigWrite": "videoconfig.write"
},
"hostFunctions": [
"owncast_add_actions",
"owncast_asset_read",
+ "owncast_auth_end_session",
+ "owncast_auth_grant_session",
"owncast_ban_ip",
"owncast_chat_clients",
"owncast_chat_history",
@@ -60,6 +64,7 @@
"owncast_user_get",
"owncast_user_set_enabled",
"owncast_users_list",
+ "owncast_users_register",
"owncast_video_config_read",
"owncast_video_config_write"
],
@@ -84,6 +89,10 @@
"link": "string",
"type": "string"
},
+ "GrantSessionRequest": {
+ "ttl": "int64",
+ "userId": "string"
+ },
"HostChatClient": {
"connectedAt": "string",
"displayName": "string",
@@ -165,6 +174,15 @@
"UploadResult": {
"url": "string"
},
+ "UserRegisterRequest": {
+ "authId": "string",
+ "displayName": "string",
+ "scopes": "[]string"
+ },
+ "UserRegisterResult": {
+ "error": "string",
+ "userId": "string"
+ },
"VideoConfig": {
"codec": "string",
"latencyLevel": "int",
@@ -174,6 +192,9 @@
"codec": "*string",
"latencyLevel": "*int",
"variants": "[]StreamVariant"
+ },
+ "authResult": {
+ "error": "string"
}
}
}
diff --git a/services/plugins/server.go b/services/plugins/server.go
index 72a2b63573..dd39e4c6f9 100644
--- a/services/plugins/server.go
+++ b/services/plugins/server.go
@@ -492,6 +492,10 @@ func (s *Server) serveDynamic(w http.ResponseWriter, r *http.Request, p *Loaded,
callCtx, cancel := context.WithTimeout(r.Context(), HTTPHandlerTimeout)
defer cancel()
+ // Seed a request-scoped sink so owncast.auth.grantSession/endSession (called
+ // from inside the wasm) can hand session cookies back to be set on the
+ // response after the call returns.
+ callCtx, sink := withAuthSink(callCtx)
p.mu.Lock()
_, out, err := p.plugin.CallWithContext(callCtx, "on_http_request", envelopeJSON)
p.mu.Unlock()
@@ -512,7 +516,25 @@ func (s *Server) serveDynamic(w http.ResponseWriter, r *http.Request, p *Loaded,
return
}
- writePluginHTTPResponse(w, out, injectStyles)
+ writePluginHTTPResponse(w, out, injectStyles, sink.cookies(RequestIsSecure(r)))
+}
+
+// CallAuthCheck invokes the on_auth_check export of the loaded plugin with the
+// given slug, passing the identity envelope and returning the raw verdict JSON.
+// Used by the viewer-auth gate to re-validate a session on page load. Returns
+// an error if the plugin isn't loaded or doesn't implement the hook (the caller
+// fails closed on error).
+func (s *Server) CallAuthCheck(ctx context.Context, slug string, input []byte) ([]byte, error) {
+ p := s.lookup(slug)
+ if p == nil || p.plugin == nil || !p.plugin.FunctionExists("on_auth_check") {
+ return nil, fmt.Errorf("auth check unavailable for plugin %q", slug)
+ }
+ callCtx, cancel := context.WithTimeout(ctx, HTTPHandlerTimeout)
+ defer cancel()
+ p.mu.Lock()
+ _, out, err := p.plugin.CallWithContext(callCtx, "on_auth_check", input)
+ p.mu.Unlock()
+ return out, err
}
// buildRequestEnvelope marshals the JSON envelope passed to a plugin's
@@ -552,7 +574,7 @@ func (s *Server) buildRequestEnvelope(r *http.Request, requestPath string, authe
// text/html) to include the host's admin stylesheet links — same behavior
// as static HTML assets, so a plugin returning admin HTML from
// on_http_request gets the iframe theme automatically.
-func writePluginHTTPResponse(w http.ResponseWriter, out []byte, injectStyles bool) {
+func writePluginHTTPResponse(w http.ResponseWriter, out []byte, injectStyles bool, sessionCookies []*http.Cookie) {
var resp struct {
Status int `json:"status"`
Headers map[string]string `json:"headers"`
@@ -581,10 +603,39 @@ func writePluginHTTPResponse(w http.ResponseWriter, out []byte, injectStyles boo
}
w.Header().Set(k, v)
}
+ // Core owns the gate session cookie: drop any plugin-supplied value for it,
+ // then set the host-minted cookies (grant/clear) the plugin asked for via
+ // owncast.auth.grantSession / endSession.
+ if len(sessionCookies) > 0 {
+ stripSetCookie(w.Header(), SessionCookieName)
+ for _, c := range sessionCookies {
+ http.SetCookie(w, c)
+ }
+ }
w.WriteHeader(resp.Status)
_, _ = io.WriteString(w, body)
}
+// stripSetCookie removes any existing Set-Cookie header values for the named
+// cookie, so a plugin cannot forge or clobber a core-owned cookie.
+func stripSetCookie(h http.Header, name string) {
+ existing := h.Values("Set-Cookie")
+ if len(existing) == 0 {
+ return
+ }
+ kept := existing[:0:0]
+ prefix := name + "="
+ for _, v := range existing {
+ if !strings.HasPrefix(v, prefix) {
+ kept = append(kept, v)
+ }
+ }
+ h.Del("Set-Cookie")
+ for _, v := range kept {
+ h.Add("Set-Cookie", v)
+ }
+}
+
// responseIsHTML reports whether the plugin-declared headers identify the
// response body as HTML. Case-insensitive on the header name; only the
// media type prefix is inspected so charset/boundary parameters don't
diff --git a/test/automated/auth/auth-gate.test.js b/test/automated/auth/auth-gate.test.js
new file mode 100644
index 0000000000..ea431ee7b5
--- /dev/null
+++ b/test/automated/auth/auth-gate.test.js
@@ -0,0 +1,228 @@
+// End-to-end viewer-authentication gate test. Runs against a live Owncast
+// instance (started by run.sh) with the SDK's `basic-auth` example installed.
+// It enables the gate, proves endpoints are blocked until you authenticate,
+// then proves the issued session cookie unlocks them.
+var request = require('supertest');
+request = request('http://127.0.0.1:8080');
+
+const ADMIN = ['admin', 'abc123'];
+const SLUG = 'basic-auth';
+const PASSWORD = 'letmein'; // basic-auth manifest default
+const SESSION_COOKIE = 'owncast_session';
+const LOGIN_PREFIX = `/plugins/${SLUG}/`;
+
+const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
+
+// Pull the "owncast_session=<value>" pair out of a response's Set-Cookie.
+function sessionCookieFrom(res) {
+ const setCookie = res.headers['set-cookie'] || [];
+ const match = setCookie.find((c) => c.startsWith(`${SESSION_COOKIE}=`));
+ return match ? match.split(';')[0] : null;
+}
+
+beforeAll(async () => {
+ // Enabling returns 200 only once the plugin actually loads.
+ await request
+ .post(`/api/admin/plugins/${SLUG}/enable`)
+ .auth(...ADMIN)
+ .expect(200);
+ await sleep(1500);
+});
+
+afterAll(async () => {
+ // Always lift the gate so it can't leak into other suites / a left-on state.
+ await request.post(`/api/admin/plugins/${SLUG}/disable`).auth(...ADMIN);
+});
+
+describe('before authenticating', () => {
+ test('a viewer API endpoint is blocked and redirected to the login screen', async () => {
+ const res = await request.get('/api/config').redirects(0).expect(302);
+ expect(res.headers.location).toContain(LOGIN_PREFIX);
+ });
+
+ test('the home page is blocked and redirected to the login screen', async () => {
+ const res = await request.get('/').redirects(0).expect(302);
+ expect(res.headers.location).toContain(LOGIN_PREFIX);
+ });
+
+ test('the gate plugin\'s own login screen stays reachable (bootstrap)', async () => {
+ await request.get(LOGIN_PREFIX).redirects(0).expect(200);
+ });
+
+ test('the admin API stays reachable with admin credentials', async () => {
+ await request
+ .get('/api/admin/plugins')
+ .auth(...ADMIN)
+ .redirects(0)
+ .expect(200);
+ });
+});
+
+describe('authenticating', () => {
+ let sessionCookie;
+
+ test('a wrong password issues no session', async () => {
+ const res = await request
+ .get(`${LOGIN_PREFIX}login?password=wrong-password`)
+ .redirects(0)
+ .expect(200);
+ expect(sessionCookieFrom(res)).toBeNull();
+ });
+
+ test('the correct password issues a signed session cookie', async () => {
+ const res = await request
+ .get(`${LOGIN_PREFIX}login?password=${PASSWORD}&return_to=%2F`)
+ .redirects(0)
+ .expect(302);
+ sessionCookie = sessionCookieFrom(res);
+ expect(sessionCookie).toBeTruthy();
+ expect(sessionCookie.startsWith(`${SESSION_COOKIE}=`)).toBe(true);
+ // The signed token is "<base64url payload>.<base64url sig>".
+ const value = sessionCookie.slice(SESSION_COOKIE.length + 1);
+ expect(value).toContain('.');
+ });
+
+ test('the session cookie unlocks the viewer API', async () => {
+ await request
+ .get('/api/config')
+ .set('Cookie', sessionCookie)
+ .redirects(0)
+ .expect(200);
+ });
+
+ test('the session cookie unlocks the home page', async () => {
+ await request.get('/').set('Cookie', sessionCookie).redirects(0).expect(200);
+ });
+
+ test('a tampered cookie is rejected and redirected to login', async () => {
+ const value = sessionCookie.slice(SESSION_COOKIE.length + 1);
+ const flipped = value.slice(0, -1) + (value.endsWith('A') ? 'B' : 'A');
+ const res = await request
+ .get('/api/config')
+ .set('Cookie', `${SESSION_COOKIE}=${flipped}`)
+ .redirects(0)
+ .expect(302);
+ expect(res.headers.location).toContain(LOGIN_PREFIX);
+ });
+
+ test('logout clears the session cookie', async () => {
+ const res = await request
+ .get(`${LOGIN_PREFIX}logout`)
+ .set('Cookie', sessionCookie)
+ .redirects(0)
+ .expect(302);
+ const setCookie = res.headers['set-cookie'] || [];
+ const cleared = setCookie.find((c) => c.startsWith(`${SESSION_COOKIE}=`));
+ expect(cleared).toBeTruthy();
+ // A clearing cookie has an empty value and an immediate expiry.
+ expect(cleared).toMatch(/owncast_session=;|Max-Age=0/i);
+ });
+});
+
+describe('revocation via onAuthCheck', () => {
+ let cookie;
+
+ test('a fresh login establishes a working session', async () => {
+ const res = await request
+ .get(`${LOGIN_PREFIX}login?password=${PASSWORD}&return_to=%2F`)
+ .redirects(0)
+ .expect(302);
+ cookie = sessionCookieFrom(res);
+ expect(cookie).toBeTruthy();
+ // Index page allows the session — this also proves the host resolves the
+ // viewer identity and passes it to onAuthCheck (which returns ok).
+ await request.get('/').set('Cookie', cookie).redirects(0).expect(200);
+ });
+
+ test('after an admin revokes, the index page denies the session', async () => {
+ await request
+ .get(`${LOGIN_PREFIX}revoke`)
+ .auth(...ADMIN)
+ .redirects(0)
+ .expect(200);
+ const res = await request.get('/').set('Cookie', cookie).redirects(0).expect(302);
+ expect(res.headers.location).toContain(LOGIN_PREFIX);
+ });
+
+ test('after the revocation is lifted, the index page allows the session again', async () => {
+ await request
+ .get(`${LOGIN_PREFIX}unrevoke`)
+ .auth(...ADMIN)
+ .redirects(0)
+ .expect(200);
+ await request.get('/').set('Cookie', cookie).redirects(0).expect(200);
+ });
+});
+
+describe('admin config form (auto-generated from the manifest config block)', () => {
+ const CONFIG_URL = `/api/admin/plugins/${SLUG}/config`;
+
+ test('the plugin list exposes the config schema', async () => {
+ const res = await request.get('/api/admin/plugins').auth(...ADMIN).redirects(0).expect(200);
+ const entry = res.body.find((p) => p.slug === SLUG);
+ expect(entry).toBeTruthy();
+ expect(entry.config).toBeTruthy();
+ expect(entry.config.password.type).toBe('string');
+ expect(entry.config.password.default).toBe('letmein');
+ });
+
+ test('GET returns current effective values (defaults until overridden)', async () => {
+ const res = await request.get(CONFIG_URL).auth(...ADMIN).redirects(0).expect(200);
+ expect(res.body.password).toBe('letmein');
+ });
+
+ test('POST rejects an unknown key', async () => {
+ await request
+ .post(CONFIG_URL)
+ .auth(...ADMIN)
+ .send({ nope: 'x' })
+ .redirects(0)
+ .expect(400);
+ });
+
+ test('saving an override persists and is reflected by GET and by config.get()', async () => {
+ await request
+ .post(CONFIG_URL)
+ .auth(...ADMIN)
+ .send({ password: 'config-test-pass' })
+ .redirects(0)
+ .expect(200);
+
+ // GET now returns the override.
+ const after = await request.get(CONFIG_URL).auth(...ADMIN).redirects(0).expect(200);
+ expect(after.body.password).toBe('config-test-pass');
+
+ // The plugin reads it via owncast.config.get: the NEW password logs in,
+ // the old default no longer does — proving the override is wired through.
+ const ok = await request
+ .get(`${LOGIN_PREFIX}login?password=config-test-pass&return_to=%2F`)
+ .redirects(0)
+ .expect(302);
+ expect(sessionCookieFrom(ok)).toBeTruthy();
+
+ const bad = await request
+ .get(`${LOGIN_PREFIX}login?password=letmein`)
+ .redirects(0)
+ .expect(200); // re-shows the form, no redirect/cookie
+ expect(sessionCookieFrom(bad)).toBeNull();
+ });
+
+ test('reset the override back to the default', async () => {
+ await request
+ .post(CONFIG_URL)
+ .auth(...ADMIN)
+ .send({ password: 'letmein' })
+ .redirects(0)
+ .expect(200);
+ const res = await request.get(CONFIG_URL).auth(...ADMIN).redirects(0).expect(200);
+ expect(res.body.password).toBe('letmein');
+ });
+});
+
+describe('after the gate is disabled', () => {
+ test('viewer endpoints are reachable again without a session', async () => {
+ await request.post(`/api/admin/plugins/${SLUG}/disable`).auth(...ADMIN).expect(200);
+ await sleep(1000);
+ await request.get('/api/config').redirects(0).expect(200);
+ });
+});
diff --git a/test/automated/auth/package-lock.json b/test/automated/auth/package-lock.json
new file mode 100644
index 0000000000..89ebdaa5b1
--- /dev/null
+++ b/test/automated/auth/package-lock.json
@@ -0,0 +1,4160 @@
+{
+ "name": "owncast-auth-gate-integration-tests",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "owncast-auth-gate-integration-tests",
+ "version": "1.0.0",
+ "dependencies": {
+ "supertest": "^6.3.2"
+ },
+ "devDependencies": {
+ "jest": "^29.7.0",
+ "jest-jasmine2": "^29.7.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",
+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",
+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-compilation-targets": "^7.29.7",
+ "@babel/helper-module-transforms": "^7.29.7",
+ "@babel/helpers": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz",
+ "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",
+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",
+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",
+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",
+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",
+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",
+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",
+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",
+ "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-async-generators": {
+ "version": "7.8.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
+ "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-bigint": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz",
+ "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-class-properties": {
+ "version": "7.12.13",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz",
+ "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.12.13"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-class-static-block": {
+ "version": "7.14.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz",
+ "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-import-attributes": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.29.7.tgz",
+ "integrity": "sha512-zGYcYfq/WmZ4V+kBIXQon9dSSc8ircGZqw9ZaNhhGj9nZkeBu1jHLBDQqYYi5WA9uawvA2sIMbry2nCFhf5Djg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-import-meta": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz",
+ "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-json-strings": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
+ "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-jsx": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz",
+ "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-logical-assignment-operators": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz",
+ "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
+ "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-numeric-separator": {
+ "version": "7.10.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",
+ "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-object-rest-spread": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
+ "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-optional-catch-binding": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
+ "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-optional-chaining": {
+ "version": "7.8.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
+ "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-private-property-in-object": {
+ "version": "7.14.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz",
+ "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-top-level-await": {
+ "version": "7.14.5",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz",
+ "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-typescript": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz",
+ "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",
+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz",
+ "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",
+ "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@bcoe/v8-coverage": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
+ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@istanbuljs/load-nyc-config": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
+ "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^5.3.1",
+ "find-up": "^4.1.0",
+ "get-package-type": "^0.1.0",
+ "js-yaml": "^3.13.1",
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@istanbuljs/schema": {
+ "version": "0.1.6",
+ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.6.tgz",
+ "integrity": "sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@jest/console": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz",
+ "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "jest-message-util": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/core": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz",
+ "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/console": "^29.7.0",
+ "@jest/reporters": "^29.7.0",
+ "@jest/test-result": "^29.7.0",
+ "@jest/transform": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.0.0",
+ "ci-info": "^3.2.0",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.9",
+ "jest-changed-files": "^29.7.0",
+ "jest-config": "^29.7.0",
+ "jest-haste-map": "^29.7.0",
+ "jest-message-util": "^29.7.0",
+ "jest-regex-util": "^29.6.3",
+ "jest-resolve": "^29.7.0",
+ "jest-resolve-dependencies": "^29.7.0",
+ "jest-runner": "^29.7.0",
+ "jest-runtime": "^29.7.0",
+ "jest-snapshot": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "jest-validate": "^29.7.0",
+ "jest-watcher": "^29.7.0",
+ "micromatch": "^4.0.4",
+ "pretty-format": "^29.7.0",
+ "slash": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "node-notifier": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@jest/environment": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz",
+ "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/fake-timers": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "jest-mock": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/expect": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz",
+ "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "expect": "^29.7.0",
+ "jest-snapshot": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/expect-utils": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz",
+ "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "jest-get-type": "^29.6.3"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/fake-timers": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz",
+ "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "@sinonjs/fake-timers": "^10.0.2",
+ "@types/node": "*",
+ "jest-message-util": "^29.7.0",
+ "jest-mock": "^29.7.0",
+ "jest-util": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/globals": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz",
+ "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^29.7.0",
+ "@jest/expect": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "jest-mock": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/reporters": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz",
+ "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@bcoe/v8-coverage": "^0.2.3",
+ "@jest/console": "^29.7.0",
+ "@jest/test-result": "^29.7.0",
+ "@jest/transform": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@jridgewell/trace-mapping": "^0.3.18",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "collect-v8-coverage": "^1.0.0",
+ "exit": "^0.1.2",
+ "glob": "^7.1.3",
+ "graceful-fs": "^4.2.9",
+ "istanbul-lib-coverage": "^3.0.0",
+ "istanbul-lib-instrument": "^6.0.0",
+ "istanbul-lib-report": "^3.0.0",
+ "istanbul-lib-source-maps": "^4.0.0",
+ "istanbul-reports": "^3.1.3",
+ "jest-message-util": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "jest-worker": "^29.7.0",
+ "slash": "^3.0.0",
+ "string-length": "^4.0.1",
+ "strip-ansi": "^6.0.0",
+ "v8-to-istanbul": "^9.0.1"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "node-notifier": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@jest/schemas": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",
+ "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@sinclair/typebox": "^0.27.8"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/source-map": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz",
+ "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "^0.3.18",
+ "callsites": "^3.0.0",
+ "graceful-fs": "^4.2.9"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/test-result": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz",
+ "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/console": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "collect-v8-coverage": "^1.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/test-sequencer": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz",
+ "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/test-result": "^29.7.0",
+ "graceful-fs": "^4.2.9",
+ "jest-haste-map": "^29.7.0",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/transform": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz",
+ "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.11.6",
+ "@jest/types": "^29.6.3",
+ "@jridgewell/trace-mapping": "^0.3.18",
+ "babel-plugin-istanbul": "^6.1.1",
+ "chalk": "^4.0.0",
+ "convert-source-map": "^2.0.0",
+ "fast-json-stable-stringify": "^2.1.0",
+ "graceful-fs": "^4.2.9",
+ "jest-haste-map": "^29.7.0",
+ "jest-regex-util": "^29.6.3",
+ "jest-util": "^29.7.0",
+ "micromatch": "^4.0.4",
+ "pirates": "^4.0.4",
+ "slash": "^3.0.0",
+ "write-file-atomic": "^4.0.2"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jest/types": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz",
+ "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/schemas": "^29.6.3",
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "@types/istanbul-reports": "^3.0.0",
+ "@types/node": "*",
+ "@types/yargs": "^17.0.8",
+ "chalk": "^4.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@paralleldrive/cuid2": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@paralleldrive/cuid2/-/cuid2-2.3.1.tgz",
+ "integrity": "sha512-XO7cAxhnTZl0Yggq6jOgjiOHhbgcO4NqFqwSmQpjK3b6TEE6Uj/jfSk6wzYyemh3+I0sHirKSetjQwn5cZktFw==",
+ "license": "MIT",
+ "dependencies": {
+ "@noble/hashes": "^1.1.5"
+ }
+ },
+ "node_modules/@sinclair/typebox": {
+ "version": "0.27.10",
+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz",
+ "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@sinonjs/commons": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz",
+ "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "type-detect": "4.0.8"
+ }
+ },
+ "node_modules/@sinonjs/fake-timers": {
+ "version": "10.3.0",
+ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz",
+ "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@sinonjs/commons": "^3.0.0"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/graceful-fs": {
+ "version": "4.1.9",
+ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz",
+ "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/istanbul-lib-coverage": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
+ "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/istanbul-lib-report": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz",
+ "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/istanbul-lib-coverage": "*"
+ }
+ },
+ "node_modules/@types/istanbul-reports": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz",
+ "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/istanbul-lib-report": "*"
+ }
+ },
+ "node_modules/@types/node": {
+ "version": "26.0.0",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.0.0.tgz",
+ "integrity": "sha512-vf2YFi1iY9lHGwNJMs01biZFbKJkrZR1T6/MlzjhJLPdntOHLhTrDSnSVcdtvjihi4VQNlrFRIxLsDBlQpAipA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~8.3.0"
+ }
+ },
+ "node_modules/@types/stack-utils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",
+ "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/yargs": {
+ "version": "17.0.35",
+ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz",
+ "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/yargs-parser": "*"
+ }
+ },
+ "node_modules/@types/yargs-parser": {
+ "version": "21.0.3",
+ "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",
+ "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ansi-escapes": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
+ "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "type-fest": "^0.21.3"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "node_modules/asap": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
+ "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==",
+ "license": "MIT"
+ },
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "license": "MIT"
+ },
+ "node_modules/babel-jest": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz",
+ "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/transform": "^29.7.0",
+ "@types/babel__core": "^7.1.14",
+ "babel-plugin-istanbul": "^6.1.1",
+ "babel-preset-jest": "^29.6.3",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.9",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.8.0"
+ }
+ },
+ "node_modules/babel-plugin-istanbul": {
+ "version": "6.1.1",
+ "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz",
+ "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@istanbuljs/load-nyc-config": "^1.0.0",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-instrument": "^5.0.4",
+ "test-exclude": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz",
+ "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/core": "^7.12.3",
+ "@babel/parser": "^7.14.7",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.2.0",
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/babel-plugin-jest-hoist": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz",
+ "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.3.3",
+ "@babel/types": "^7.3.3",
+ "@types/babel__core": "^7.1.14",
+ "@types/babel__traverse": "^7.0.6"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/babel-preset-current-node-syntax": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz",
+ "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/plugin-syntax-async-generators": "^7.8.4",
+ "@babel/plugin-syntax-bigint": "^7.8.3",
+ "@babel/plugin-syntax-class-properties": "^7.12.13",
+ "@babel/plugin-syntax-class-static-block": "^7.14.5",
+ "@babel/plugin-syntax-import-attributes": "^7.24.7",
+ "@babel/plugin-syntax-import-meta": "^7.10.4",
+ "@babel/plugin-syntax-json-strings": "^7.8.3",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+ "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
+ "@babel/plugin-syntax-top-level-await": "^7.14.5"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0 || ^8.0.0-0"
+ }
+ },
+ "node_modules/babel-preset-jest": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz",
+ "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "babel-plugin-jest-hoist": "^29.6.3",
+ "babel-preset-current-node-syntax": "^1.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.10.38",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.38.tgz",
+ "integrity": "sha512-31/02mVB4yuQU6adKk5SlY6m+mxDwUq5KZkyYgnLrrKl7TEm1+3PyDtDBz2kOv/wxZz41GHsvV1A/u6RmiyBvw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz",
+ "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.28.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
+ "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.10.12",
+ "caniuse-lite": "^1.0.30001782",
+ "electron-to-chromium": "^1.5.328",
+ "node-releases": "^2.0.36",
+ "update-browserslist-db": "^1.2.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/bser": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz",
+ "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "node-int64": "^0.4.0"
+ }
+ },
+ "node_modules/buffer-from": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001799",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001799.tgz",
+ "integrity": "sha512-hG1bReV+OUU+MOqK4t/ZWI0tZOyz3rqS9XuhOUz1cIcbwBKjOyJEJuw9ER5JuNyqxNk8u/JUVbGibBOL1yrjFw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/char-regex": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz",
+ "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/ci-info": {
+ "version": "3.9.0",
+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
+ "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/sibiraj-s"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cjs-module-lexer": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz",
+ "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/co": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
+ "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">= 1.0.0",
+ "node": ">= 0.12.0"
+ }
+ },
+ "node_modules/collect-v8-coverage": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz",
+ "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/component-emitter": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz",
+ "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cookiejar": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz",
+ "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==",
+ "license": "MIT"
+ },
+ "node_modules/create-jest": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz",
+ "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "chalk": "^4.0.0",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.9",
+ "jest-config": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "prompts": "^2.0.1"
+ },
+ "bin": {
+ "create-jest": "bin/create-jest.js"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/dedent": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz",
+ "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "babel-plugin-macros": "^3.1.0"
+ },
+ "peerDependenciesMeta": {
+ "babel-plugin-macros": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/deepmerge": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
+ "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/detect-newline": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
+ "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dezalgo": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz",
+ "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==",
+ "license": "ISC",
+ "dependencies": {
+ "asap": "^2.0.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/diff-sequences": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",
+ "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.376",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.376.tgz",
+ "integrity": "sha512-cUVA7/RvbFTEuw/i3obUwDTRIXojaxkResf+ibByPFxjc6XK3VNtcQXV0NSbAlJ0FMjcJGgftVVB4Qo184EXvA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/emittery": {
+ "version": "0.13.1",
+ "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz",
+ "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/emittery?sponsor=1"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
+ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
+ "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/execa": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^7.0.3",
+ "get-stream": "^6.0.0",
+ "human-signals": "^2.1.0",
+ "is-stream": "^2.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^4.0.1",
+ "onetime": "^5.1.2",
+ "signal-exit": "^3.0.3",
+ "strip-final-newline": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
+ "node_modules/exit": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
+ "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/expect": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz",
+ "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/expect-utils": "^29.7.0",
+ "jest-get-type": "^29.6.3",
+ "jest-matcher-utils": "^29.7.0",
+ "jest-message-util": "^29.7.0",
+ "jest-util": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-safe-stringify": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",
+ "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==",
+ "license": "MIT"
+ },
+ "node_modules/fb-watchman": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz",
+ "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "bser": "2.1.1"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/form-data": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",
+ "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.4",
+ "mime-types": "^2.1.35"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/formidable": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.5.tgz",
+ "integrity": "sha512-Oz5Hwvwak/DCaXVVUtPn4oLMLLy1CdclLKO1LFgU7XzDpVMUU5UjlSLpGMocyQNNk8F6IJW9M/YdooSn2MRI+Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@paralleldrive/cuid2": "^2.2.2",
+ "dezalgo": "^1.0.4",
+ "once": "^1.4.0",
+ "qs": "^6.11.0"
+ },
+ "funding": {
+ "url": "https://ko-fi.com/tunnckoCore/commissions"
+ }
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-package-type": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
+ "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-stream": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/html-escaper": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
+ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/human-signals": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=10.17.0"
+ }
+ },
+ "node_modules/import-local": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz",
+ "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pkg-dir": "^4.2.0",
+ "resolve-cwd": "^3.0.0"
+ },
+ "bin": {
+ "import-local-fixture": "fixtures/cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-core-module": {
+ "version": "2.16.2",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz",
+ "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-generator-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz",
+ "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-stream": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/istanbul-lib-coverage": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
+ "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-instrument": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz",
+ "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/core": "^7.23.9",
+ "@babel/parser": "^7.23.9",
+ "@istanbuljs/schema": "^0.1.3",
+ "istanbul-lib-coverage": "^3.2.0",
+ "semver": "^7.5.4"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-lib-instrument/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-lib-report": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
+ "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^4.0.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-lib-source-maps": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz",
+ "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "istanbul-lib-coverage": "^3.0.0",
+ "source-map": "^0.6.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-reports": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
+ "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jest": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",
+ "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/core": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "import-local": "^3.0.2",
+ "jest-cli": "^29.7.0"
+ },
+ "bin": {
+ "jest": "bin/jest.js"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "node-notifier": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jest-changed-files": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz",
+ "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "execa": "^5.0.0",
+ "jest-util": "^29.7.0",
+ "p-limit": "^3.1.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-circus": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz",
+ "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^29.7.0",
+ "@jest/expect": "^29.7.0",
+ "@jest/test-result": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "co": "^4.6.0",
+ "dedent": "^1.0.0",
+ "is-generator-fn": "^2.0.0",
+ "jest-each": "^29.7.0",
+ "jest-matcher-utils": "^29.7.0",
+ "jest-message-util": "^29.7.0",
+ "jest-runtime": "^29.7.0",
+ "jest-snapshot": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "p-limit": "^3.1.0",
+ "pretty-format": "^29.7.0",
+ "pure-rand": "^6.0.0",
+ "slash": "^3.0.0",
+ "stack-utils": "^2.0.3"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-cli": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz",
+ "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/core": "^29.7.0",
+ "@jest/test-result": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "chalk": "^4.0.0",
+ "create-jest": "^29.7.0",
+ "exit": "^0.1.2",
+ "import-local": "^3.0.2",
+ "jest-config": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "jest-validate": "^29.7.0",
+ "yargs": "^17.3.1"
+ },
+ "bin": {
+ "jest": "bin/jest.js"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "node-notifier": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jest-config": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz",
+ "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.11.6",
+ "@jest/test-sequencer": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "babel-jest": "^29.7.0",
+ "chalk": "^4.0.0",
+ "ci-info": "^3.2.0",
+ "deepmerge": "^4.2.2",
+ "glob": "^7.1.3",
+ "graceful-fs": "^4.2.9",
+ "jest-circus": "^29.7.0",
+ "jest-environment-node": "^29.7.0",
+ "jest-get-type": "^29.6.3",
+ "jest-regex-util": "^29.6.3",
+ "jest-resolve": "^29.7.0",
+ "jest-runner": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "jest-validate": "^29.7.0",
+ "micromatch": "^4.0.4",
+ "parse-json": "^5.2.0",
+ "pretty-format": "^29.7.0",
+ "slash": "^3.0.0",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "peerDependencies": {
+ "@types/node": "*",
+ "ts-node": ">=9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "ts-node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jest-diff": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz",
+ "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.0.0",
+ "diff-sequences": "^29.6.3",
+ "jest-get-type": "^29.6.3",
+ "pretty-format": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-docblock": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz",
+ "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "detect-newline": "^3.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-each": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz",
+ "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "chalk": "^4.0.0",
+ "jest-get-type": "^29.6.3",
+ "jest-util": "^29.7.0",
+ "pretty-format": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-environment-node": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz",
+ "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^29.7.0",
+ "@jest/fake-timers": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "jest-mock": "^29.7.0",
+ "jest-util": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-get-type": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz",
+ "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-haste-map": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz",
+ "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "@types/graceful-fs": "^4.1.3",
+ "@types/node": "*",
+ "anymatch": "^3.0.3",
+ "fb-watchman": "^2.0.0",
+ "graceful-fs": "^4.2.9",
+ "jest-regex-util": "^29.6.3",
+ "jest-util": "^29.7.0",
+ "jest-worker": "^29.7.0",
+ "micromatch": "^4.0.4",
+ "walker": "^1.0.8"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "^2.3.2"
+ }
+ },
+ "node_modules/jest-jasmine2": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-29.7.0.tgz",
+ "integrity": "sha512-N3nRpBVTM5erHtMi6ODBUEqG/LpVgSJC8qk14duw88d9Eigx2vL+n4LF1d8eV8pegnnzKyNHdTGxa/NsIKj0Zw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^29.7.0",
+ "@jest/expect": "^29.7.0",
+ "@jest/source-map": "^29.6.3",
+ "@jest/test-result": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "co": "^4.6.0",
+ "is-generator-fn": "^2.0.0",
+ "jest-each": "^29.7.0",
+ "jest-matcher-utils": "^29.7.0",
+ "jest-message-util": "^29.7.0",
+ "jest-runtime": "^29.7.0",
+ "jest-snapshot": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "p-limit": "^3.1.0",
+ "pretty-format": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-leak-detector": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz",
+ "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "jest-get-type": "^29.6.3",
+ "pretty-format": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-matcher-utils": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz",
+ "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.0.0",
+ "jest-diff": "^29.7.0",
+ "jest-get-type": "^29.6.3",
+ "pretty-format": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-message-util": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz",
+ "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.12.13",
+ "@jest/types": "^29.6.3",
+ "@types/stack-utils": "^2.0.0",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.9",
+ "micromatch": "^4.0.4",
+ "pretty-format": "^29.7.0",
+ "slash": "^3.0.0",
+ "stack-utils": "^2.0.3"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-mock": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz",
+ "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "jest-util": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-pnp-resolver": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",
+ "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "peerDependencies": {
+ "jest-resolve": "*"
+ },
+ "peerDependenciesMeta": {
+ "jest-resolve": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jest-regex-util": {
+ "version": "29.6.3",
+ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz",
+ "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-resolve": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz",
+ "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.9",
+ "jest-haste-map": "^29.7.0",
+ "jest-pnp-resolver": "^1.2.2",
+ "jest-util": "^29.7.0",
+ "jest-validate": "^29.7.0",
+ "resolve": "^1.20.0",
+ "resolve.exports": "^2.0.0",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-resolve-dependencies": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz",
+ "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "jest-regex-util": "^29.6.3",
+ "jest-snapshot": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-runner": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz",
+ "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/console": "^29.7.0",
+ "@jest/environment": "^29.7.0",
+ "@jest/test-result": "^29.7.0",
+ "@jest/transform": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "emittery": "^0.13.1",
+ "graceful-fs": "^4.2.9",
+ "jest-docblock": "^29.7.0",
+ "jest-environment-node": "^29.7.0",
+ "jest-haste-map": "^29.7.0",
+ "jest-leak-detector": "^29.7.0",
+ "jest-message-util": "^29.7.0",
+ "jest-resolve": "^29.7.0",
+ "jest-runtime": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "jest-watcher": "^29.7.0",
+ "jest-worker": "^29.7.0",
+ "p-limit": "^3.1.0",
+ "source-map-support": "0.5.13"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-runtime": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz",
+ "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^29.7.0",
+ "@jest/fake-timers": "^29.7.0",
+ "@jest/globals": "^29.7.0",
+ "@jest/source-map": "^29.6.3",
+ "@jest/test-result": "^29.7.0",
+ "@jest/transform": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "cjs-module-lexer": "^1.0.0",
+ "collect-v8-coverage": "^1.0.0",
+ "glob": "^7.1.3",
+ "graceful-fs": "^4.2.9",
+ "jest-haste-map": "^29.7.0",
+ "jest-message-util": "^29.7.0",
+ "jest-mock": "^29.7.0",
+ "jest-regex-util": "^29.6.3",
+ "jest-resolve": "^29.7.0",
+ "jest-snapshot": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "slash": "^3.0.0",
+ "strip-bom": "^4.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-snapshot": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz",
+ "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.11.6",
+ "@babel/generator": "^7.7.2",
+ "@babel/plugin-syntax-jsx": "^7.7.2",
+ "@babel/plugin-syntax-typescript": "^7.7.2",
+ "@babel/types": "^7.3.3",
+ "@jest/expect-utils": "^29.7.0",
+ "@jest/transform": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "babel-preset-current-node-syntax": "^1.0.0",
+ "chalk": "^4.0.0",
+ "expect": "^29.7.0",
+ "graceful-fs": "^4.2.9",
+ "jest-diff": "^29.7.0",
+ "jest-get-type": "^29.6.3",
+ "jest-matcher-utils": "^29.7.0",
+ "jest-message-util": "^29.7.0",
+ "jest-util": "^29.7.0",
+ "natural-compare": "^1.4.0",
+ "pretty-format": "^29.7.0",
+ "semver": "^7.5.3"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-snapshot/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/jest-util": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz",
+ "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "ci-info": "^3.2.0",
+ "graceful-fs": "^4.2.9",
+ "picomatch": "^2.2.3"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-validate": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz",
+ "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^29.6.3",
+ "camelcase": "^6.2.0",
+ "chalk": "^4.0.0",
+ "jest-get-type": "^29.6.3",
+ "leven": "^3.1.0",
+ "pretty-format": "^29.7.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-validate/node_modules/camelcase": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
+ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/jest-watcher": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz",
+ "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/test-result": "^29.7.0",
+ "@jest/types": "^29.6.3",
+ "@types/node": "*",
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.0.0",
+ "emittery": "^0.13.1",
+ "jest-util": "^29.7.0",
+ "string-length": "^4.0.1"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-worker": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz",
+ "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "jest-util": "^29.7.0",
+ "merge-stream": "^2.0.0",
+ "supports-color": "^8.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/jest-worker/node_modules/supports-color": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/supports-color?sponsor=1"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "3.14.2",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz",
+ "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/kleur": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/leven": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
+ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/make-dir": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
+ "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.5.3"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/make-dir/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/makeerror": {
+ "version": "1.0.12",
+ "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz",
+ "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tmpl": "1.0.5"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/merge-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/mime": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",
+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-int64": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
+ "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.48",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.48.tgz",
+ "integrity": "sha512-1uz8041X6LoI6ZSdZacM9lVY28vuzDlSKitnpbSNK0RfKoIJkX29NBPVEFXhnuSuEOA9Ww0xnPJ+ILWbGAv8DA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/npm-run-path": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/p-locate/node_modules/p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-try": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pirates": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/pkg-dir": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
+ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pretty-format": {
+ "version": "29.7.0",
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",
+ "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/schemas": "^29.6.3",
+ "ansi-styles": "^5.0.0",
+ "react-is": "^18.0.0"
+ },
+ "engines": {
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
+ }
+ },
+ "node_modules/pretty-format/node_modules/ansi-styles": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/prompts": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kleur": "^3.0.3",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/pure-rand": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz",
+ "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/dubzzz"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fast-check"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/qs": {
+ "version": "6.15.2",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz",
+ "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/react-is": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "1.22.12",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz",
+ "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.16.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-cwd": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz",
+ "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/resolve.exports": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz",
+ "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4",
+ "side-channel-list": "^1.0.1",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "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": "3.0.0",
+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-support": {
+ "version": "0.5.13",
+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz",
+ "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
+ }
+ },
+ "node_modules/sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/stack-utils": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",
+ "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "escape-string-regexp": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/string-length": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz",
+ "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "char-regex": "^1.0.2",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-bom": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",
+ "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-final-newline": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/superagent": {
+ "version": "8.1.2",
+ "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.1.2.tgz",
+ "integrity": "sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA==",
+ "deprecated": "Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net",
+ "license": "MIT",
+ "dependencies": {
+ "component-emitter": "^1.3.0",
+ "cookiejar": "^2.1.4",
+ "debug": "^4.3.4",
+ "fast-safe-stringify": "^2.1.1",
+ "form-data": "^4.0.0",
+ "formidable": "^2.1.2",
+ "methods": "^1.1.2",
+ "mime": "2.6.0",
+ "qs": "^6.11.0",
+ "semver": "^7.3.8"
+ },
+ "engines": {
+ "node": ">=6.4.0 <13 || >=14"
+ }
+ },
+ "node_modules/superagent/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/supertest": {
+ "version": "6.3.4",
+ "resolved": "https://registry.npmjs.org/supertest/-/supertest-6.3.4.tgz",
+ "integrity": "sha512-erY3HFDG0dPnhw4U+udPfrzXa4xhSG+n4rxfRuZWCUvjFWwKl+OxWf/7zk50s84/fAAs7vf5QAb9uRa0cCykxw==",
+ "deprecated": "Please upgrade to supertest v7.1.3+, see release notes at https://github.com/forwardemail/supertest/releases/tag/v7.1.3 - maintenance is supported by Forward Email @ https://forwardemail.net",
+ "license": "MIT",
+ "dependencies": {
+ "methods": "^1.1.2",
+ "superagent": "^8.1.2"
+ },
+ "engines": {
+ "node": ">=6.4.0"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/test-exclude": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz",
+ "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@istanbuljs/schema": "^0.1.2",
+ "glob": "^7.1.4",
+ "minimatch": "^3.0.4"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tmpl": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
+ "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/type-detect": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
+ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/type-fest": {
+ "version": "0.21.3",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
+ "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/v8-to-istanbul": {
+ "version": "9.3.0",
+ "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",
+ "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "^0.3.12",
+ "@types/istanbul-lib-coverage": "^2.0.1",
+ "convert-source-map": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10.12.0"
+ }
+ },
+ "node_modules/walker": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",
+ "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "makeerror": "1.0.12"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC"
+ },
+ "node_modules/write-file-atomic": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz",
+ "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "imurmurhash": "^0.1.4",
+ "signal-exit": "^3.0.7"
+ },
+ "engines": {
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yargs": {
+ "version": "17.7.3",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz",
+ "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ }
+ }
+}
diff --git a/test/automated/auth/package.json b/test/automated/auth/package.json
new file mode 100644
index 0000000000..b584c2984b
--- /dev/null
+++ b/test/automated/auth/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "owncast-auth-gate-integration-tests",
+ "version": "1.0.0",
+ "scripts": {
+ "test": "jest *.test.js"
+ },
+ "dependencies": {
+ "supertest": "^6.3.2"
+ },
+ "devDependencies": {
+ "jest": "^29.7.0",
+ "jest-jasmine2": "^29.7.0"
+ },
+ "jest": {
+ "verbose": true,
+ "maxWorkers": 1,
+ "testRunner": "jest-jasmine2"
+ }
+}
diff --git a/test/automated/auth/run.sh b/test/automated/auth/run.sh
new file mode 100755
index 0000000000..0d10d11aae
--- /dev/null
+++ b/test/automated/auth/run.sh
@@ -0,0 +1,73 @@
+#!/bin/bash
+
+# Standalone end-to-end viewer-authentication ("auth gate") integration test.
+#
+# Builds the SDK's `basic-auth` example (a shared-password auth.gate plugin),
+# installs it into a real Owncast instance, then verifies via HTTP that:
+# - viewer endpoints are blocked (302 to the login screen) before auth,
+# - the admin API and the gate plugin's own routes stay reachable,
+# - a correct password issues a signed `owncast_session` cookie,
+# - that cookie unlocks the gated endpoints, and a tampered one does not,
+# - logout clears the cookie.
+#
+# Env overrides (same contract as test/automated/plugins/run.sh):
+# PLUGIN_SDK_DIR path to an existing SDK checkout (skips the clone)
+# PLUGIN_SDK_REPO git URL of the plugin SDK (default: owncast/plugin-sdk)
+# PLUGIN_SDK_REF branch/tag/sha to build from (default: main)
+
+set -e
+
+source ../tools.sh
+
+REPO_ROOT="$(git rev-parse --show-toplevel)"
+PLUGIN_SDK_DIR="${PLUGIN_SDK_DIR:-}"
+PLUGIN_SDK_REPO="${PLUGIN_SDK_REPO:-https://github.com/owncast/plugin-sdk}"
+PLUGIN_SDK_REF="${PLUGIN_SDK_REF:-main}"
+
+PLUGIN_NAME="basic-auth"
+PLUGIN_DIR="${REPO_ROOT}/data/plugins"
+
+# Resolve the SDK source: an existing local checkout, or a fresh clone.
+if [[ -n "$PLUGIN_SDK_DIR" ]]; then
+ echo "Using local plugin SDK at ${PLUGIN_SDK_DIR}"
+ SDK_DIR="$PLUGIN_SDK_DIR"
+ CLONED_SDK=0
+else
+ echo "Cloning the plugin SDK (${PLUGIN_SDK_REPO}@${PLUGIN_SDK_REF})..."
+ SDK_DIR="$(mktemp -d)"
+ CLONED_SDK=1
+ export GIT_TERMINAL_PROMPT=0
+ git clone "$PLUGIN_SDK_REPO" "$SDK_DIR"
+ (cd "$SDK_DIR" && git checkout "$PLUGIN_SDK_REF")
+fi
+
+# Tear down installed plugins (and the SDK clone, never a caller-supplied local
+# checkout) on top of tools.sh's server/database cleanup.
+auth_finish() {
+ rm -rf "$PLUGIN_DIR"
+ if [[ "$CLONED_SDK" == "1" ]]; then
+ rm -rf "$SDK_DIR"
+ fi
+ finish
+}
+trap auth_finish EXIT
+
+echo "Installing plugin SDK build dependencies..."
+(cd "${SDK_DIR}/sdks/js" && npm install --no-audit --no-fund)
+
+echo "Building the ${PLUGIN_NAME} plugin..."
+rm -rf "$PLUGIN_DIR"
+mkdir -p "$PLUGIN_DIR"
+(cd "$SDK_DIR" && ./tools/build-plugin.sh "examples/js/${PLUGIN_NAME}")
+cp "${SDK_DIR}/plugins/${PLUGIN_NAME}.ocpkg" "${PLUGIN_DIR}/"
+
+echo "Installing the JS test framework..."
+npm install --quiet --no-progress
+
+install_ffmpeg
+start_owncast
+
+# The plugin is installed (discovered) but disabled; the test enables it in
+# its beforeAll and disables it in afterAll so the gate is only live for the
+# duration of this suite.
+npm test
diff --git a/web/components/admin/plugins/permissionDescriptions.ts b/web/components/admin/plugins/permissionDescriptions.ts
index 911d6a84b3..e20a064ccf 100644
--- a/web/components/admin/plugins/permissionDescriptions.ts
+++ b/web/components/admin/plugins/permissionDescriptions.ts
@@ -27,6 +27,8 @@ export const permissionDescriptionKey: Record<string, string> = {
[PluginPermission.VideoConfigWrite]: Localization.Admin.Plugins.Permissions.videoconfigWrite,
[PluginPermission.UIModify]: Localization.Admin.Plugins.Permissions.uiModify,
[PluginPermission.ChatFilter]: Localization.Admin.Plugins.Permissions.chatFilter,
+ [PluginPermission.UsersRegister]: Localization.Admin.Plugins.Permissions.usersRegister,
+ [PluginPermission.AuthGate]: Localization.Admin.Plugins.Permissions.authGate,
};
// permissionNameKey maps a permission identifier to the i18n key for
@@ -54,4 +56,6 @@ export const permissionNameKey: Record<string, string> = {
[PluginPermission.VideoConfigWrite]: Localization.Admin.Plugins.PermissionNames.videoconfigWrite,
[PluginPermission.UIModify]: Localization.Admin.Plugins.PermissionNames.uiModify,
[PluginPermission.ChatFilter]: Localization.Admin.Plugins.PermissionNames.chatFilter,
+ [PluginPermission.UsersRegister]: Localization.Admin.Plugins.PermissionNames.usersRegister,
+ [PluginPermission.AuthGate]: Localization.Admin.Plugins.PermissionNames.authGate,
};
diff --git a/web/i18n/en/translation.json b/web/i18n/en/translation.json
index 345bd16f3b..03e084d4d7 100644
--- a/web/i18n/en/translation.json
+++ b/web/i18n/en/translation.json
@@ -176,7 +176,9 @@
"usersModerate": "Moderate users",
"usersRead": "Read user list",
"videoconfigRead": "Read video settings",
- "videoconfigWrite": "Change video settings"
+ "videoconfigWrite": "Change video settings",
+ "usersRegister": "Sign in viewers",
+ "authGate": "Gate viewer access"
},
"Permissions": {
"chatFilter": "Inspect and modify chat messages before they are broadcast, or drop them entirely.",
@@ -197,7 +199,9 @@
"usersModerate": "Disable or re-enable chat users.",
"usersRead": "Read the chat user list and per-user details.",
"videoconfigRead": "Read stream and video output configuration (encoders, variants).",
- "videoconfigWrite": "Modify stream and video output configuration."
+ "videoconfigWrite": "Modify stream and video output configuration.",
+ "usersRegister": "Create and sign in Owncast users for an external identity (such as an OAuth or social account).",
+ "authGate": "Require every viewer to sign in through this plugin before they can access the site."
},
"allowedHostsLabel": "Allowed hosts:",
"approveButton": "Approve",
diff --git a/web/interfaces/plugin.ts b/web/interfaces/plugin.ts
index 07ec4671ee..27b122dc51 100644
--- a/web/interfaces/plugin.ts
+++ b/web/interfaces/plugin.ts
@@ -16,6 +16,7 @@ export const PluginPermission = {
ChatFilter: 'chat.filter',
UsersRead: 'users.read',
UsersModerate: 'users.moderate',
+ UsersRegister: 'users.register',
NetworkFetch: 'network.fetch',
EventsEmit: 'events.emit',
HttpServe: 'http.serve',
@@ -26,6 +27,7 @@ export const PluginPermission = {
NotificationsSend: 'notifications.send',
FediversePost: 'fediverse.post',
UIModify: 'ui.modify',
+ AuthGate: 'auth.gate',
} as const;
// The const above and this type intentionally share a name: TypeScript
diff --git a/web/types/localization.ts b/web/types/localization.ts
index f558c244b6..abfc887f58 100644
--- a/web/types/localization.ts
+++ b/web/types/localization.ts
@@ -521,6 +521,8 @@ export const Localization = {
videoconfigWrite: 'Admin.Plugins.Permissions.videoconfigWrite',
uiModify: 'Admin.Plugins.Permissions.uiModify',
chatFilter: 'Admin.Plugins.Permissions.chatFilter',
+ usersRegister: 'Admin.Plugins.Permissions.usersRegister',
+ authGate: 'Admin.Plugins.Permissions.authGate',
},
// Short plain-language labels for each permission. Shown on
// permission Tags in the plugins list with the full description
@@ -545,6 +547,8 @@ export const Localization = {
videoconfigWrite: 'Admin.Plugins.PermissionNames.videoconfigWrite',
uiModify: 'Admin.Plugins.PermissionNames.uiModify',
chatFilter: 'Admin.Plugins.PermissionNames.chatFilter',
+ usersRegister: 'Admin.Plugins.PermissionNames.usersRegister',
+ authGate: 'Admin.Plugins.PermissionNames.authGate',
},
},
},
diff --git a/webserver/router/router.go b/webserver/router/router.go
index ee46a49dfd..51ab38e8ae 100644
--- a/webserver/router/router.go
+++ b/webserver/router/router.go
@@ -26,7 +26,7 @@ import (
// mw carries the methodified HTTP middleware (admin basic-auth, federation
// content-type gating). apc carries the methodified ActivityPub HTTP
// handler set.
-func Start(cfg *config.Config, enableVerboseLogging bool, h *handlers.Handlers, mw *middleware.Middleware, apc *apcontrollers.Controllers, pluginContent http.Handler, pluginAdmin http.Handler) error {
+func Start(cfg *config.Config, enableVerboseLogging bool, h *handlers.Handlers, mw *middleware.Middleware, apc *apcontrollers.Controllers, pluginContent http.Handler, pluginAdmin http.Handler, viewerAuthGate func(http.Handler) http.Handler) error {
// @behlers New Router
r := chi.NewRouter()
@@ -36,6 +36,15 @@ func Start(cfg *config.Config, enableVerboseLogging bool, h *handlers.Handlers,
}
r.Use(chiMW.Recoverer)
+ // Viewer-authentication gate (from a plugin holding auth.gate). Mounted
+ // ahead of every route so an unauthenticated visitor can't reach the page,
+ // the video, chat, or the API. No-op while no such plugin is enabled; it
+ // internally exempts the gate plugin's own routes, /admin, and
+ // self-credentialed requests.
+ if viewerAuthGate != nil {
+ r.Use(viewerAuthGate)
+ }
+
addStaticFileEndpoints(r, h, apc)
// websocket