Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

Add codeful MCP tool generation and self-contained widgets (#556)

Tanner Dozarkd409d0145f5c
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..2ef85d7ea
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+# This generated runtime has a recorded byte-level SHA-256 digest, so Git must
+# not rewrite its line endings on Windows checkouts.
+plugins/mcp-apps/assets/self-contained/mcp-app-runtime.min.js -text
diff --git a/.github/workflows/mcp-apps-script-tests.yml b/.github/workflows/mcp-apps-script-tests.yml
new file mode 100644
index 000000000..ba98ffbc7
--- /dev/null
+++ b/.github/workflows/mcp-apps-script-tests.yml
@@ -0,0 +1,63 @@
+# Functional tests for the MCP Apps plugin's committed runtime assets and
+# single-file composition tooling. The matrix protects path handling because
+# generated widgets must work from local plugin installs on every supported OS.
+name: mcp-apps-script-tests
+
+on:
+ pull_request:
+ branches:
+ - main
+ paths:
+ - "plugins/mcp-apps/**"
+ - "evals/mcp-apps/**"
+ - ".github/workflows/mcp-apps-script-tests.yml"
+
+jobs:
+ test-mcp-apps-scripts:
+ name: test-mcp-apps-scripts (${{ matrix.os }}, node ${{ matrix.node }})
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - ubuntu-latest
+ - windows-latest
+ - macos-latest
+ node:
+ - 20
+ - 22
+ steps:
+ - name: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
+
+ - name: setup-node
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
+ with:
+ node-version: ${{ matrix.node }}
+
+ - name: run-mcp-apps-script-tests
+ shell: bash
+ working-directory: plugins/mcp-apps
+ run: node --test scripts/tests/*.test.js
+
+ check-mcp-apps-runtime:
+ name: check-mcp-apps-runtime
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
+
+ - name: setup-node
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
+ with:
+ node-version: 22
+
+ - name: install-pinned-vendor-dependencies
+ shell: bash
+ working-directory: plugins/mcp-apps/scripts/_vendor-build
+ run: npm ci --ignore-scripts --no-audit --no-fund
+
+ - name: verify-committed-runtime
+ shell: bash
+ working-directory: plugins/mcp-apps/scripts/_vendor-build
+ run: npm run check
diff --git a/README.md b/README.md
index 2dd6ddd79..7441f6f21 100644
--- a/README.md
+++ b/README.md
@@ -74,9 +74,17 @@ generative pages for an app that already exists. Use either independently — ne
### [MCP Apps](plugins/mcp-apps/README.md) (`plugins/mcp-apps`)
-Generate interactive MCP App widgets for MCP tools.
+Generate self-contained JavaScript server runtimes, JSON Schema registration metadata,
+and interactive single-file MCP App widgets for codeful MCP tools.
-**Stack**: HTML widgets using the MCP Apps protocol
+**Skills**: `/generate-codeful-mcp-tool` creates a named `runTool` server entry point plus
+its description, MCP behavior annotations, input schema, and structured output schema,
+with verified Dataverse access; `/generate-mcp-app-ui` creates an HTML widget that embeds
+its runtime by default for hosts that block public URLs, while retaining an opt-in CDN
+mode. It can consume model-visible content, structured output, and widget-private
+metadata.
+
+**Stack**: JavaScript codeful tools + HTML widgets using the MCP Apps protocol
### [Code Apps](plugins/code-apps/AGENTS.md) (`plugins/code-apps`)
@@ -213,7 +221,7 @@ power-platform-skills/
│ | ├── skills/
│ | ├── shared/ # Shared references + samples
│ | └── github/ # GitHub Copilot instructions
-│ ├── mcp-apps/ # MCP Apps widget generator plugin
+│ ├── mcp-apps/ # MCP codeful tool + widget generator plugin
│ │ ├── .plugin/
│ │ │ └── plugin.json
│ │ ├── references/
diff --git a/evals/mcp-apps/generate-codeful-mcp-tool/eval-runbook.md b/evals/mcp-apps/generate-codeful-mcp-tool/eval-runbook.md
new file mode 100644
index 000000000..0a2c66b9c
--- /dev/null
+++ b/evals/mcp-apps/generate-codeful-mcp-tool/eval-runbook.md
@@ -0,0 +1,112 @@
+# Eval Runbook for generate-codeful-mcp-tool
+
+Evaluate the skill in three layers. Run the smoke tier on every relevant change and the
+full tier before release.
+
+## Related files
+
+- **Skill:** `plugins/mcp-apps/skills/generate-codeful-mcp-tool/SKILL.md`
+- **Host contract:** `plugins/mcp-apps/references/codeful-tool-host-data-api.d.ts`
+- **Known-good sample:** `plugins/mcp-apps/samples/account-summary.tool.js`
+- **Known-good metadata:** `plugins/mcp-apps/samples/account-summary.tool.json`
+- **Eval definitions:** `evals.json`
+
+## Eval data
+
+Each case contains:
+
+- `prompt`: the user request passed to the skill;
+- `input_sample`: representative `toolInput`;
+- `dataverse`: tables and columns the schema-discovery phase must verify, when applicable;
+- `expected_result_sample`: an expected result shape, when result-channel behavior matters;
+- `assertions`: behavior specific to that case.
+
+Apply every `common_assertions` entry to every generated tool pair.
+
+## Layer 1: Static source assertions
+
+Inspect the generated output and verify:
+
+1. Exactly one final `.tool.js` and one matching `.tool.json` exist.
+2. The module exports an async `runTool({ toolInput, dataApi })`.
+3. The sidecar parses as JSON, contains exactly `name`, `description`, `annotations`,
+ `inputSchema`, and `outputSchema`, and its name matches both file basenames.
+4. The description is concise and model-actionable. `annotations` contains boolean
+ `readOnlyHint`, `destructiveHint`, `idempotentHint`, and `openWorldHint` values that
+ match the implementation, with `openWorldHint` always `false`. Both schemas have object
+ roots; `inputSchema` captures all accepted fields and constraints; and `outputSchema`
+ describes only the `structuredContent` business payload.
+5. There are no imports, `require` calls, package references, host transports, direct HTTP,
+ filesystem calls, environment reads, or top-level side effects.
+6. Input validation occurs before data access.
+7. Every Dataverse table, column, lookup, and choice value appears in the generated
+ `RuntimeTypes.ts` used during the run.
+8. Queries use `page.rows`; pagination guards both `hasMoreRows` and `loadMoreRows`.
+9. Result objects follow either the plain-object or intentional-envelope contract.
+10. Reserved business keys are wrapped in `structuredContent`.
+11. There are no placeholders, credentials, real environment identifiers, or temporary
+ schema files.
+
+## Layer 2: Execute with a mock dataApi
+
+Use Node.js built-ins only. Import the generated source as an ESM data URL, assert
+`typeof runTool === "function"`, and call it with the eval's `input_sample` plus an
+in-memory `dataApi` mock.
+
+The mock should:
+
+- record every operation and argument;
+- return the rows/pages required by the case;
+- provide `loadMoreRows` only when another page exists;
+- throw a known error for failure-path cases;
+- reject unexpected method calls.
+
+Assert:
+
+- representative valid input conforms to `inputSchema`;
+- representative invalid input is rejected by `inputSchema` and the runtime;
+- calls use the expected singular table names and exact options;
+- invalid input produces no data API calls;
+- pagination stops at the requested bound;
+- result values are JSON-serializable;
+- the plain return or envelope `structuredContent` conforms to `outputSchema`;
+- `outputSchema` excludes result-channel transport fields while retaining any same-named
+ business fields nested inside the structured payload;
+- errors reject with actionable messages;
+- plain objects match the expected structured payload;
+- envelopes partition `content`, `structuredContent`, and `meta` correctly.
+
+Do not save the harness beside the generated tool. Run it inline or from a disposable
+temporary location, then remove it.
+
+## Layer 3: Requirement and safety review
+
+Score each output from 1-5 on:
+
+| Dimension | Question |
+| --- | --- |
+| Requirement fidelity | Does the implementation perform exactly the requested tool behavior? |
+| Input safety | Are types, required fields, bounds, GUIDs, and OData strings validated? |
+| Schema safety | Are all Dataverse names and values verified instead of inferred? |
+| Runtime compatibility | Is the file self-contained ESM with the exact host entry point? |
+| Metadata contract | Does the sidecar accurately describe the tool and match runtime validation and structured output? |
+| Tool annotations | Do the read-only, destructive, and idempotent hints match behavior, with open-world access disabled? |
+| Result visibility | Is data placed intentionally in model-visible or widget-private channels? |
+| Error behavior | Do failures throw without leaking internals or pretending success? |
+| UI handoff | When requested, does the widget receive the normalized complete result? |
+
+A case passes when all static and execution assertions pass and no review dimension scores
+below 4.
+
+## Tiers
+
+| Tier | Cases | Purpose |
+| --- | ---: | --- |
+| `smoke` | 3 | Plain result, Dataverse read, and server-plus-widget composition |
+| `full` | 5 | Writes, pagination, reserved keys, failures, and lookups |
+
+## Recording results
+
+For each run, record the eval id, generated runtime and sidecar names, assertion failures,
+runtime error output, review scores, and whether temporary schema artifacts were removed.
+Do not commit generated eval outputs or environment-specific `RuntimeTypes.ts` files.
diff --git a/evals/mcp-apps/generate-codeful-mcp-tool/evals.json b/evals/mcp-apps/generate-codeful-mcp-tool/evals.json
new file mode 100644
index 000000000..9f2b4307e
--- /dev/null
+++ b/evals/mcp-apps/generate-codeful-mcp-tool/evals.json
@@ -0,0 +1,210 @@
+{
+ "skill_name": "generate-codeful-mcp-tool",
+ "common_assertions": [
+ "Creates exactly one final JavaScript file with a .tool.js suffix and one matching JSON file with a .tool.json suffix",
+ "Exports an async function named runTool",
+ "Uses the runTool parameter shape { toolInput, dataApi }",
+ "The .tool.json parses as JSON and contains exactly name, description, annotations, inputSchema, and outputSchema",
+ "The sidecar name matches the kebab-case basename shared by the .tool.js and .tool.json files",
+ "The sidecar description concisely explains what the tool does and when a model should call it",
+ "annotations contains boolean readOnlyHint, destructiveHint, idempotentHint, and openWorldHint fields that match the generated behavior",
+ "annotations.openWorldHint is always false",
+ "inputSchema has an object root and represents every accepted input field, required field, default, and runtime constraint",
+ "inputSchema sets additionalProperties to false unless the prompt explicitly requires extensible input",
+ "outputSchema has an object root and describes only the model-visible structuredContent business payload",
+ "Contains no runtime import, require, package, network, filesystem, or environment access",
+ "Contains no TODOs, ellipses, placeholder implementations, credentials, or real environment identifiers",
+ "Validates externally supplied toolInput before using it",
+ "Uses only methods defined by CodefulToolHostDataApi",
+ "Returns only JSON-serializable data",
+ "Throws actionable errors instead of returning a success-shaped fallback",
+ "Leaves no RuntimeTypes.ts or schema-discovery artifacts beside the final output"
+ ],
+ "evals": [
+ {
+ "id": 1,
+ "tier": "smoke",
+ "prompt": "Generate a codeful MCP tool named calculate-order-total. It accepts an array of items with quantity and unitPrice and returns subtotal, 8 percent tax, and total, rounded to two decimal places. It does not use Dataverse.",
+ "input_sample": {
+ "items": [
+ { "quantity": 2, "unitPrice": 12.5 },
+ { "quantity": 1, "unitPrice": 5 }
+ ]
+ },
+ "expected_result_sample": {
+ "subtotal": 30,
+ "tax": 2.4,
+ "total": 32.4
+ },
+ "assertions": [
+ "Does not invoke PAC CLI because Dataverse is not used",
+ "Rejects missing, empty, negative, or non-numeric item values",
+ "Returns a plain object so the host promotes it to structuredContent",
+ "Marks the deterministic calculation as read-only, non-destructive, idempotent, and not open-world",
+ "inputSchema requires items and constrains each quantity and unitPrice consistently with runtime validation",
+ "outputSchema requires subtotal, tax, and total as numbers"
+ ]
+ },
+ {
+ "id": 2,
+ "tier": "smoke",
+ "prompt": "Generate a codeful MCP tool named search-accounts. It accepts nameContains and limit, queries account records, and returns account name, revenue, and status label.",
+ "input_sample": {
+ "nameContains": "Contoso",
+ "limit": 20
+ },
+ "dataverse": {
+ "tables": ["account"],
+ "required_columns": ["accountid", "name", "revenue", "statecode"]
+ },
+ "assertions": [
+ "Runs exact-match PAC table discovery and temporary RuntimeTypes generation",
+ "Uses account as a singular logical table name",
+ "Escapes nameContains before interpolating it into an OData filter",
+ "Reads rows from queryTable result.rows",
+ "Reads the status label from [email protected]",
+ "Marks the query as read-only, non-destructive, idempotent, and not open-world",
+ "inputSchema represents nameContains as an optional string and limit as a bounded integer",
+ "outputSchema describes the returned account summaries and count fields"
+ ]
+ },
+ {
+ "id": 3,
+ "tier": "full",
+ "prompt": "Generate a codeful MCP tool named update-account-category. It accepts accountId and categoryValue, validates both, verifies the account table schema, updates accountcategorycode, and returns the updated id and category value.",
+ "input_sample": {
+ "accountId": "00000000-0000-0000-0000-000000000001",
+ "categoryValue": 1
+ },
+ "dataverse": {
+ "tables": ["account"],
+ "required_columns": ["accountid", "accountcategorycode"]
+ },
+ "assertions": [
+ "Uses only writable columns verified in RuntimeTypes.ts",
+ "Validates the GUID and permits only verified numeric choice values",
+ "Calls updateRow with the singular account logical name",
+ "Does not return success when updateRow throws",
+ "Marks the set-value update as writable, destructive, idempotent, and not open-world",
+ "inputSchema requires accountId with UUID format and constrains categoryValue to verified choices",
+ "outputSchema describes the updated id and category value"
+ ]
+ },
+ {
+ "id": 4,
+ "tier": "full",
+ "prompt": "Generate a codeful MCP tool named list-active-contacts. It accepts limit up to 100, requests pages of 25 contacts, follows continuation pages until the limit, and reports whether more rows remain.",
+ "input_sample": {
+ "limit": 60
+ },
+ "dataverse": {
+ "tables": ["contact"],
+ "required_columns": ["contactid", "fullname", "statecode"]
+ },
+ "assertions": [
+ "Uses page.rows instead of treating queryTable as an array",
+ "Calls loadMoreRows only when hasMoreRows is true and loadMoreRows exists",
+ "Stops at the validated limit",
+ "Does not include loadMoreRows or another function in the returned object",
+ "Marks the paged query as read-only, non-destructive, idempotent, and not open-world",
+ "inputSchema constrains limit to an integer from 1 through 100",
+ "outputSchema includes the returned contacts and hasMoreRows flag"
+ ]
+ },
+ {
+ "id": 5,
+ "tier": "smoke",
+ "prompt": "Generate a codeful MCP tool named account-revenue-summary and an MCP App bar-chart widget. Return a short model-visible sentence, structured account totals, and widget-private chart hints.",
+ "input_sample": {
+ "limit": 10
+ },
+ "expected_result_sample": {
+ "content": "Found 2 accounts.",
+ "structuredContent": {
+ "accounts": [
+ { "name": "Contoso", "revenue": 1500000 },
+ { "name": "Fabrikam", "revenue": 2300000 }
+ ],
+ "totalCount": 2
+ },
+ "meta": {
+ "preferredView": "bar-chart",
+ "categoryField": "name",
+ "valueField": "revenue"
+ }
+ },
+ "assertions": [
+ "Returns an intentional content, structuredContent, and meta envelope",
+ "Explains that authored meta is delivered to the widget as runtime _meta",
+ "Marks the account query as read-only, non-destructive, idempotent, and not open-world",
+ "outputSchema describes only the accounts and totalCount inside structuredContent and excludes content, meta, and _meta",
+ "Invokes generate-mcp-app-ui after validating the server file",
+ "Passes content, structuredContent, and normalized _meta to the UI skill",
+ "Produces one .tool.js, one .tool.json, and one .html artifact"
+ ]
+ },
+ {
+ "id": 6,
+ "tier": "full",
+ "prompt": "Generate a codeful MCP tool named inspect-document that returns business data with fields named content, meta, and owner. These are domain fields and must all remain model-visible.",
+ "input_sample": {
+ "documentId": "doc-123"
+ },
+ "expected_result_sample": {
+ "structuredContent": {
+ "content": "Document body",
+ "meta": { "revision": 4 },
+ "owner": "A. User"
+ }
+ },
+ "assertions": [
+ "Recognizes content and meta as reserved result-envelope keys",
+ "Wraps the complete business payload inside structuredContent",
+ "Does not accidentally move the business meta field into widget-private _meta",
+ "Marks the document inspection as read-only, non-destructive, idempotent, and not open-world",
+ "outputSchema directly describes the business content, meta, and owner fields without adding a structuredContent wrapper"
+ ]
+ },
+ {
+ "id": 7,
+ "tier": "full",
+ "prompt": "Generate a codeful MCP tool named retrieve-account that accepts accountId and returns the account name. Invalid input and Dataverse failures must be surfaced.",
+ "input_sample": {
+ "accountId": "not-a-guid"
+ },
+ "dataverse": {
+ "tables": ["account"],
+ "required_columns": ["accountid", "name"]
+ },
+ "assertions": [
+ "Rejects malformed accountId before calling dataApi",
+ "Adds useful context to a retrieveRow failure and rethrows it",
+ "Does not return an empty account or ok false object as a fallback",
+ "Marks the retrieval as read-only, non-destructive, idempotent, and not open-world",
+ "inputSchema requires accountId with UUID format"
+ ]
+ },
+ {
+ "id": 8,
+ "tier": "full",
+ "prompt": "Generate a codeful MCP tool named create-follow-up-task. It accepts subject and regardingAccountId, creates a task linked to the account, and returns the new task id.",
+ "input_sample": {
+ "subject": "Call customer",
+ "regardingAccountId": "00000000-0000-0000-0000-000000000001"
+ },
+ "dataverse": {
+ "tables": ["task", "account"],
+ "required_columns": ["activityid", "subject", "_regardingobjectid_value"]
+ },
+ "assertions": [
+ "Verifies the writable lookup shape in RuntimeTypes.ts",
+ "Writes the lookup through _regardingobjectid_value using /account(guid)",
+ "Does not emit @odata.bind or a plural entity-set path",
+ "Returns the id resolved by createRow",
+ "Marks the create as writable, non-destructive, non-idempotent, and not open-world",
+ "inputSchema requires subject and regardingAccountId and constrains regardingAccountId with UUID format",
+ "outputSchema describes the newly created task id"
+ ]
+ }
+ ]
+}
diff --git a/evals/mcp-apps/generate-mcp-app-ui/eval-runbook.md b/evals/mcp-apps/generate-mcp-app-ui/eval-runbook.md
index 02a802767..497306ba6 100644
--- a/evals/mcp-apps/generate-mcp-app-ui/eval-runbook.md
+++ b/evals/mcp-apps/generate-mcp-app-ui/eval-runbook.md
@@ -7,15 +7,26 @@ How to evaluate the `generate-mcp-app-ui` skill. Three layers, run in order.
- **Skill definition:** `plugins/mcp-apps/skills/generate-mcp-app-ui/SKILL.md`
- **Reference docs:** `plugins/mcp-apps/references/mcp-apps-reference.md`, `plugins/mcp-apps/references/design-guidelines.md`
- **Sample widgets:** `plugins/mcp-apps/samples/flight-status-widget.html`, `plugins/mcp-apps/samples/weather-refresh-widget.html`
+- **Self-contained template:** `plugins/mcp-apps/samples/self-contained-widget.template.html`
+- **Runtime composer:** `plugins/mcp-apps/scripts/inline-self-contained-runtime.js`
## Eval data
All eval definitions live in `evals.json` alongside this file. The file contains:
- `common_assertions`: 13 assertions every generated widget must pass
-- `evals`: 53 test cases, each with a `prompt`, inline `data`, per-widget `assertions`, and a `tier` field
+- `mode_assertions`: additional checks for `self-contained` and `cdn` output
+- `evals`: 58 test cases, each with a `prompt`, inline `data`, per-widget `assertions`, and a `tier` field
-The `data` field on each eval is the JSON object that an MCP tool would return at runtime. During widget generation, you paste it into the conversation as "the tool's test output." During rendering tests, it becomes the value of `result.structuredContent` in the JSON-RPC `toolResult` message that the host sends to the widget's iframe.
+The `data` field is the tool's test output. Most cases contain a plain object, which is
+treated as `result.structuredContent`. Result-channel cases contain a full authoring
+envelope (`content`, `structuredContent`, `meta`) or runtime result (`content`,
+`structuredContent`, `_meta`). During rendering tests, authoring `meta` is renamed to
+runtime `_meta`.
+
+`delivery_mode` is explicit on cases that exercise mode selection. For cases without the
+field, answer the skill's question with **No CDNs / self-contained**, which is the
+default.
### Tiers
@@ -23,8 +34,8 @@ Each eval has a `tier` to support selective running:
| Tier | Count | Purpose |
| -------- | ----- | -------------------------------------------------------------------------------------------------------- |
-| `smoke` | 7 | Diverse representatives (map, chart, table, cards, complex layout, structured, stress). Run on every PR. |
-| `full` | 44 | All remaining core widget types. Run nightly or pre-release. |
+| `smoke` | 9 | Diverse representatives plus explicit self-contained and CDN delivery cases. Run on every PR. |
+| `full` | 47 | All remaining core widget types and result-channel cases. Run nightly or pre-release. |
| `stress` | 2 | Type-mismatch edge cases (string booleans, empty-string coordinates). Run with full suite. |
Eval id 51 is tagged `smoke` (not `stress`) so quick runs still exercise type coercion. Its assertions are stress-style (string-to-number parsing), but it runs with the smoke set rather than requiring the full suite.
@@ -56,10 +67,11 @@ Here is a complete example using eval id 2 (weather widget).
> }
> ```
-3. Save the generated HTML file.
-4. **Layer 1 check:** Open the HTML in a text editor and verify: starts with `<!DOCTYPE html>`, has one `<script type="module">`, uses `result.structuredContent`, etc. Then check the per-widget assertions: "Shows current temperature prominently", "Shows 5-day forecast strip", "Uses weather icons/emoji for conditions."
-5. **Layer 2 check:** Open the HTML in a browser (it needs a JSON-RPC host to send it the tool data, see Step 3 below).
-6. **Layer 3 check:** Score the visual result against the rubric.
+3. When asked about public CDNs, choose **No CDNs / self-contained** for this example.
+4. Save the generated HTML file.
+5. **Layer 1 check:** Open the HTML in a text editor and verify: starts with `<!DOCTYPE html>`, has one `<script type="module">`, uses `globalThis.McpAppsRuntime`, contains no public runtime/resource URL, uses `result.structuredContent`, etc. Then check the per-widget assertions: "Shows current temperature prominently", "Shows 5-day forecast strip", "Uses weather icons/emoji for conditions."
+6. **Layer 2 check:** Open the HTML in a browser (it needs a JSON-RPC host to send it the tool data, see Step 3 below).
+7. **Layer 3 check:** Score the visual result against the rubric.
## How to run evals
@@ -71,6 +83,8 @@ For each eval in `evals.json`:
- Use the `prompt` as the user message
- Paste the `data` object as the tool's test output JSON
+- If `delivery_mode` is present, select that answer when the skill asks about public
+ CDNs. Otherwise select **No CDNs / self-contained**.
Save each generated HTML file for testing.
@@ -78,27 +92,44 @@ To run only a subset, filter by `tier` (e.g., smoke-only for quick validation).
### Step 2: Layer 1 - Static assertions
-Check each generated HTML file against the `common_assertions` (13 checks) plus the eval's per-widget `assertions`.
+Check each generated HTML file against the `common_assertions` (13 checks), the selected
+entry in `mode_assertions`, and the eval's per-widget `assertions`.
**Common assertions verify:**
1. Complete HTML file starting with `<!DOCTYPE html>`
2. Exactly one `<script type="module">` block
-3. Named import: `import { App } from ...`
+3. Correct runtime access for the mode: named `App` import for CDN mode or
+ `globalThis.McpAppsRuntime` for self-contained mode
4. `app.ontoolresult` set before `app.connect()`
5. `app.onhostcontextchanged` set before `app.connect()`
6. `app.onteardown` set before `app.connect()`
-7. Uses `result.structuredContent` to access data
+7. Preserves `result.content`, `result.structuredContent`, and `result._meta` without reading `result.meta`
8. Defines and uses `escapeHtml` for user data in innerHTML
9. No `window.openai`
10. No `max-width` on the main container (responsive `@media (max-width:...)` is fine)
11. Uses `var(--color` Fluent design tokens
-12. Includes `<fluent-spinner>` loading state
+12. Includes an accessible loading state (`<fluent-spinner>` for CDN mode or a native
+ inline spinner for self-contained mode)
13. Includes an error state
+**Self-contained mode assertions verify:**
+
+1. The runtime is embedded and the source marker is gone
+2. There are no remote script/module/style/font/image/media/iframe/worker/map-tile or
+ literal fetch dependencies
+3. Visualizations and controls use native HTML/CSS/SVG/Canvas, not `<fluent-*>` elements
+
+**CDN mode assertions verify:**
+
+1. `App` uses the named public-CDN import
+2. Fluent Web Components and Fluent tokens load from public CDNs
+3. Any additional external library adds clear visual value
+
These can be checked with text search / regex against the HTML source. No browser needed.
-**Pass criteria:** Every widget passes all common assertions plus its own specific assertions.
+**Pass criteria:** Every widget passes all common assertions, its selected mode
+assertions, and its own specific assertions.
### Step 3: Layer 2 - Rendering tests
@@ -110,9 +141,16 @@ Load each widget in a browser to verify it actually runs.
- Content renders (not stuck on "Loading..." or showing the error state)
- Layout is not broken (no overlapping elements, no blank page)
-**Important:** Widgets import ES modules from CDN, so they must be served over HTTP (e.g., `npx serve .` or `python -m http.server`). Opening via `file://` will fail due to CORS restrictions on module imports.
+Serve the host and widget over HTTP (for example, `npx serve .` or
+`python -m http.server`) so iframe messaging behaves consistently. CDN mode also
+requires network access. Self-contained mode must render with public network access
+blocked; use browser request interception or an offline environment to prove it makes no
+runtime asset requests.
-This can be done manually or automated with Playwright / Puppeteer. The widget needs a host page that simulates the MCP Apps JSON-RPC protocol, sending the eval's `data` as the `structuredContent` in a `toolResult` message.
+This can be done manually or automated with Playwright / Puppeteer. The widget needs a host page that simulates the MCP Apps JSON-RPC protocol. For plain eval
+data, send it as `structuredContent`. For an envelope, send `content`,
+`structuredContent`, and `_meta` as separate `toolResult` parameters, renaming authoring
+`meta` to `_meta`.
To build a minimal test host: create an HTML page that loads the widget in an iframe and posts JSON-RPC messages via `postMessage`. The key message to send after the widget connects:
@@ -142,7 +180,12 @@ The widget also expects an initial `hostContext` message for theming:
See the [MCP Apps protocol spec](https://modelcontextprotocol.io/specification/2025-03-26/extensions/apps) for the full message format.
-**Pass criteria:** All widgets render with visible content, zero JS errors.
+For eval 57, trigger **Refresh** and verify `callServerTool` returns through the same
+`content`, `structuredContent`, and `_meta` normalization path. For eval 58, verify the
+CDN resources load and the chart renders.
+
+**Pass criteria:** All widgets render with visible content and zero JS errors.
+Self-contained widgets make zero public runtime/resource requests.
### Step 4: Layer 3 - UX scoring
diff --git a/evals/mcp-apps/generate-mcp-app-ui/evals.json b/evals/mcp-apps/generate-mcp-app-ui/evals.json
index b84ead381..dc867a3ee 100644
--- a/evals/mcp-apps/generate-mcp-app-ui/evals.json
+++ b/evals/mcp-apps/generate-mcp-app-ui/evals.json
@@ -3,18 +3,30 @@
"common_assertions": [
"Output is a complete HTML file starting with <!DOCTYPE html>",
"Contains exactly one <script type=\"module\"> block",
- "Uses named import: import { App } from ... (not default import: import App from ...)",
+ "Uses the selected runtime path: named import { App } in CDN mode or globalThis.McpAppsRuntime in self-contained mode",
"Sets app.ontoolresult before calling app.connect()",
"Sets app.onhostcontextchanged before calling app.connect()",
"Sets app.onteardown before calling app.connect()",
- "Uses result.structuredContent to access tool data (not result.data, not result directly)",
+ "Preserves result.content, result.structuredContent, and result._meta and does not use result.meta",
"Defines an escapeHtml function and uses it for user data in innerHTML",
"Does not contain window.openai",
"Does not use max-width on the main container",
"Uses var(--color Fluent design tokens for colors instead of hardcoded values",
- "Includes a loading state with <fluent-spinner>",
+ "Includes an accessible loading state using <fluent-spinner> in CDN mode or an inline native spinner in self-contained mode",
"Includes an error state"
],
+ "mode_assertions": {
+ "self-contained": [
+ "Contains the embedded MCP Apps runtime and does not contain the MCP_APPS_SELF_CONTAINED_RUNTIME marker",
+ "Contains no public script, module, stylesheet, font, image, media, iframe, worker, map tile, or literal fetch dependency",
+ "Uses native semantic HTML and inline CSS/SVG/Canvas rather than <fluent-*> elements or external visualization libraries"
+ ],
+ "cdn": [
+ "Uses the named import: import { App } from a public CDN",
+ "Loads Fluent Web Components and Fluent theme tokens from public CDNs",
+ "Uses only external libraries that add clear visual value"
+ ]
+ },
"evals": [
{
"id": 1,
@@ -58,9 +70,9 @@
]
},
"assertions": [
- "Uses a mapping library with interactive markers",
- "Loads map library before Fluent UI to avoid global collision",
- "Saves map library global reference to avoid Fluent overwriting it",
+ "Uses interactive markers implemented with inline SVG/Canvas in self-contained mode or a mapping library in CDN mode",
+ "Does not fetch map tiles in self-contained mode",
+ "If CDN mode uses a UMD map library, loads it before Fluent UI and preserves its global reference",
"Shows markers for all attractions",
"Map has explicit height"
]
@@ -2420,7 +2432,7 @@
"stories_remaining": 4
},
"assertions": [
- "Uses a charting library for the chart",
+ "Uses inline SVG/Canvas in self-contained mode or a charting library in CDN mode",
"Shows actual burndown line",
"Shows ideal burndown line",
"Displays sprint dates"
@@ -3711,13 +3723,131 @@
]
},
"assertions": [
- "Uses a mapping library for the map",
+ "Uses inline SVG/Canvas in self-contained mode or a mapping library in CDN mode",
"Does not place markers at [0,0] for leads with empty string coordinates",
"Leads with empty string lat/lng use city/state fallback or are omitted",
"Leads with valid string coordinates (e.g. '36.1627') are parsed and placed correctly",
"Uses parseFloat or equivalent for coordinate parsing, not Number()",
"Does not use != null as the sole guard for coordinate presence"
]
+ },
+ {
+ "id": 54,
+ "tier": "full",
+ "prompt": "Create an account revenue chart. The supplied test output is an authoring envelope; use its structured account data and private presentation hints.",
+ "data": {
+ "content": "Found 2 accounts.",
+ "structuredContent": {
+ "accounts": [
+ { "name": "Contoso", "revenue": 1500000 },
+ { "name": "Fabrikam", "revenue": 2300000 }
+ ]
+ },
+ "meta": {
+ "preferredView": "bar-chart",
+ "categoryField": "name",
+ "valueField": "revenue"
+ }
+ },
+ "assertions": [
+ "Normalizes authoring meta to runtime _meta",
+ "Uses structuredContent for account data",
+ "Uses the private preferredView hint without exposing it as conversational content",
+ "Does not read result.meta at runtime"
+ ]
+ },
+ {
+ "id": 55,
+ "tier": "full",
+ "prompt": "Create a warehouse occupancy heatmap. The summary is model-visible while detailed cell values are widget-private runtime metadata.",
+ "data": {
+ "content": [
+ { "type": "text", "text": "Warehouse occupancy is 72 percent." }
+ ],
+ "structuredContent": {
+ "facility": "North Warehouse",
+ "occupancyPercent": 72
+ },
+ "_meta": {
+ "cells": [
+ { "zone": "A1", "occupancyPercent": 92 },
+ { "zone": "A2", "occupancyPercent": 68 },
+ { "zone": "B1", "occupancyPercent": 55 },
+ { "zone": "B2", "occupancyPercent": 73 }
+ ]
+ }
+ },
+ "assertions": [
+ "Reads heatmap cells from result._meta",
+ "Reads the model-visible summary from content or structuredContent",
+ "Keeps private cell values out of generated conversational text",
+ "Handles content as an array of text blocks"
+ ]
+ },
+ {
+ "id": 56,
+ "tier": "full",
+ "prompt": "Create a compact success banner from a content-only tool result.",
+ "data": {
+ "content": [
+ { "type": "text", "text": "The deployment completed successfully." }
+ ]
+ },
+ "assertions": [
+ "Renders a meaningful state when structuredContent and _meta are absent",
+ "Extracts text safely from content blocks",
+ "Does not report No data received for a content-only result"
+ ]
+ },
+ {
+ "id": 57,
+ "tier": "smoke",
+ "delivery_mode": "self-contained",
+ "prompt": "Create a self-contained interactive service-health widget for MCP Inspector. Public CDN URLs and all other remote runtime assets are forbidden. Include a Refresh button that calls the get_service_health tool.",
+ "tool_name": "get_service_health",
+ "tool_input": {
+ "region": "west"
+ },
+ "data": {
+ "content": "Two of three services are healthy.",
+ "structuredContent": {
+ "region": "west",
+ "services": [
+ { "name": "API", "status": "healthy", "latencyMs": 82 },
+ { "name": "Worker", "status": "degraded", "latencyMs": 410 },
+ { "name": "Database", "status": "healthy", "latencyMs": 35 }
+ ]
+ }
+ },
+ "assertions": [
+ "Uses globalThis.McpAppsRuntime rather than an import",
+ "Produces one HTML file with the runtime embedded",
+ "Contains no public URL dependencies",
+ "Uses native HTML controls rather than Fluent Web Components",
+ "Refresh calls get_service_health and preserves all result channels"
+ ]
+ },
+ {
+ "id": 58,
+ "tier": "smoke",
+ "delivery_mode": "cdn",
+ "prompt": "Public CDNs are allowed. Create a compact incident trend widget with a line chart.",
+ "data": {
+ "service": "Orders API",
+ "incidents": [
+ { "month": "Apr", "count": 7 },
+ { "month": "May", "count": 4 },
+ { "month": "Jun", "count": 6 },
+ { "month": "Jul", "count": 3 },
+ { "month": "Aug", "count": 2 }
+ ]
+ },
+ "assertions": [
+ "Uses the named App import from a public CDN",
+ "Loads Fluent Web Components and Fluent theme tokens from public CDNs",
+ "Shows an incident trend line",
+ "Does not inline the vendored MCP Apps runtime"
+ ]
}
]
}
diff --git a/plugins/mcp-apps/.claude-plugin/plugin.json b/plugins/mcp-apps/.claude-plugin/plugin.json
index 3356cafc2..c6b00ec9b 100644
--- a/plugins/mcp-apps/.claude-plugin/plugin.json
+++ b/plugins/mcp-apps/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "mcp-apps",
- "version": "1.0.0",
- "description": "Generate MCP App widgets for MCP tools. Produces self-contained HTML widgets using the MCP Apps protocol.",
+ "version": "1.2.0",
+ "description": "Generate JavaScript server runtimes and CDN-free or CDN-enabled MCP App widgets.",
"author": {
"name": "Microsoft",
"url": "https://www.microsoft.com"
@@ -12,6 +12,9 @@
"keywords": [
"mcp-apps",
"mcp",
+ "codeful-tool",
+ "dataverse",
+ "javascript",
"widget",
"ext-apps",
"fluent-ui",
diff --git a/plugins/mcp-apps/.plugin/plugin.json b/plugins/mcp-apps/.plugin/plugin.json
index 3356cafc2..c6b00ec9b 100644
--- a/plugins/mcp-apps/.plugin/plugin.json
+++ b/plugins/mcp-apps/.plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "mcp-apps",
- "version": "1.0.0",
- "description": "Generate MCP App widgets for MCP tools. Produces self-contained HTML widgets using the MCP Apps protocol.",
+ "version": "1.2.0",
+ "description": "Generate JavaScript server runtimes and CDN-free or CDN-enabled MCP App widgets.",
"author": {
"name": "Microsoft",
"url": "https://www.microsoft.com"
@@ -12,6 +12,9 @@
"keywords": [
"mcp-apps",
"mcp",
+ "codeful-tool",
+ "dataverse",
+ "javascript",
"widget",
"ext-apps",
"fluent-ui",
diff --git a/plugins/mcp-apps/README.md b/plugins/mcp-apps/README.md
index 32fc55d2f..07261a8fd 100644
--- a/plugins/mcp-apps/README.md
+++ b/plugins/mcp-apps/README.md
@@ -1,6 +1,8 @@
-# MCP Apps Widget Generator
+# MCP Apps Tool and Widget Generator
-Generate interactive MCP App widgets for MCP tools using Claude Code or Visual Studio Code.
+Generate JavaScript server runtimes and JSON Schema registration metadata for codeful MCP
+tools, plus single-file HTML widgets that visualize their results. Widgets can embed
+their runtime for restrictive hosts or use public CDNs when explicitly allowed.
## Installation
@@ -17,52 +19,194 @@ Generate interactive MCP App widgets for MCP tools using Claude Code or Visual S
claude --plugin-dir /path/to/power-platform-skills/plugins/mcp-apps
```
-## What it does
+## Skills
-Describe the visual you want, paste your tool's JSON output, and get a self-contained HTML widget that uses the [MCP Apps protocol](https://modelcontextprotocol.io/extensions/apps/overview). The widget works in any MCP Apps host (Claude, ChatGPT, VS Code, Microsoft 365 Copilot).
+### Generate a codeful MCP tool
-## Usage
+Run `/generate-codeful-mcp-tool` with the tool's purpose, inputs, expected result, and any
+Dataverse data it needs:
-1. Test your custom tool and copy the JSON output (make sure your tool's output is set to JSON)
-2. Run `/generate-mcp-app-ui` and describe the visual you want, pasting your tool's test output
+```text
+/generate-codeful-mcp-tool Create a tool named account-summary.
+It accepts nameContains (string) and limit (integer, maximum 100), queries matching
+accounts, and returns their names, revenue, and status.
+```
+
+For Dataverse-backed tools, the skill uses PAC CLI to discover exact table logical names
+and generates a temporary `RuntimeTypes.ts` for verified columns, lookup shapes, and choice
+values. The type file is removed after generation. The final output is a matched pair:
+
+- `<tool-name>.tool.js` contains the self-contained runtime.
+- `<tool-name>.tool.json` contains the tool registration metadata and MCP tool annotations.
+
+The JavaScript file exports:
-### Example
+```javascript
+export async function runTool({ toolInput, dataApi }) {
+ // Complete server implementation.
+}
+```
+
+The runtime is self-contained: no packages, imports, network access, filesystem access,
+environment variables, or persistent state.
+
+The JSON sidecar keeps registration concerns out of executable code:
+
+```json
+{
+ "name": "account-summary",
+ "description": "Search accounts by name and return revenue and status summaries.",
+ "annotations": {
+ "readOnlyHint": true,
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": false
+ },
+ "inputSchema": {
+ "type": "object",
+ "properties": {}
+ },
+ "outputSchema": {
+ "type": "object",
+ "properties": {}
+ }
+}
+```
+`inputSchema` describes the complete `toolInput` object and its validation constraints.
+`outputSchema` describes only the model-visible `structuredContent` business payload. It
+does not include conversational `content`, authored `meta`, or runtime `_meta`.
+`annotations` always includes `readOnlyHint`, `destructiveHint`, `idempotentHint`, and an
+`openWorldHint` fixed to `false` for the constrained codeful runtime.
+
+### Generate an MCP App widget
+
+Run `/generate-mcp-app-ui`, describe the visual, and provide the tool's test output:
+
+```text
+/generate-mcp-app-ui Show account revenue as a bar chart.
+
+Here is the tool's test output:
+{
+ "content": "Found 2 accounts.",
+ "structuredContent": {
+ "accounts": [
+ { "name": "Contoso", "revenue": 1500000 },
+ { "name": "Fabrikam", "revenue": 2300000 }
+ ]
+ },
+ "meta": { "preferredView": "bar-chart" }
+}
```
-/generate-mcp-app-ui Show travel attractions on an interactive map
-Here's my tool's test output:
-{"attractions":[{"name":"Space Needle","latitude":47.6205,"longitude":-122.3493,"description":"Observation tower"},{"name":"Pike Place Market","latitude":47.6097,"longitude":-122.3425,"description":"Historic public market"}]}
+The skill asks whether public CDN URLs are allowed. **No CDNs / self-contained** is the
+recommended default for MCP Inspector and other hosts with restrictive content security
+policies. In that mode, the generated HTML embeds the MCP Apps runtime and Fluent theme
+tokens, uses native HTML/CSS/SVG/Canvas for visuals, and has no runtime library downloads.
+If CDNs are allowed, the skill retains the smaller CDN-based output.
+
+The UI skill accepts:
+
+- a plain object representing `structuredContent`;
+- an authoring envelope with `content`, `structuredContent`, and `meta`; or
+- a runtime MCP result with `content`, `structuredContent`, and `_meta`.
+
+`content` and `structuredContent` are visible to the model. Authored `meta` becomes runtime
+`_meta`, which is available to the widget but excluded from model context.
+
+### Generate both
+
+Ask `/generate-codeful-mcp-tool` for a widget in the same request. After validating the
+paired tool files, it invokes the UI skill with a representative normalized result. The
+outputs remain separate: one `.tool.js` server runtime, one `.tool.json` metadata
+sidecar, and one `.html` widget.
+
+## Codeful tool result contract
+
+For a simple structured result, return a plain object. The host promotes it to
+`structuredContent`:
+
+```javascript
+return { records, totalCount: records.length };
```
-### Refining
+Use an envelope when the result channels need different visibility:
+
+```javascript
+return {
+ content: `Found ${records.length} records.`,
+ structuredContent: { records },
+ meta: { preferredView: "table" },
+};
+```
-After generating, describe changes in the chat:
-- "Make it more colorful"
-- "Add a chart"
-- "Switch to a card layout"
+The envelope keys are reserved. If business data itself contains `content`,
+`structuredContent`, or `meta`, wrap the payload explicitly in `structuredContent`.
## What it produces
-A single HTML file that:
-- Uses the MCP Apps protocol (`@modelcontextprotocol/ext-apps`)
-- Includes Fluent UI components for a polished look
-- Supports light and dark themes automatically
-- Loads everything from CDN (no build step, no dependencies)
+- A self-contained `.tool.js` for codeful server logic and a matching `.tool.json`
+ registration sidecar.
+- Optionally, a single `.html` widget using `@modelcontextprotocol/ext-apps`, either
+ embedded with no CDN dependencies or loaded from public CDNs with Fluent UI Web
+ Components.
+
+See [`samples/account-summary.tool.js`](samples/account-summary.tool.js) and
+[`samples/account-summary.tool.json`](samples/account-summary.tool.json) for a complete
+paired tool example, [`samples/flight-status-widget.html`](samples/flight-status-widget.html)
+for a read-only widget, and
+[`samples/weather-refresh-widget.html`](samples/weather-refresh-widget.html) for an
+interactive CDN widget. The marker-based
+[`samples/self-contained-widget.template.html`](samples/self-contained-widget.template.html)
+shows the source shape used before the bundled runtime is inlined.
## Skill structure
-```
-skills/generate-mcp-app-ui/SKILL.md - Main skill
-references/mcp-apps-reference.md - MCP Apps API, Fluent UI components, CDN patterns
-references/design-guidelines.md - Visual design defaults, theme tokens
-samples/flight-status-widget.html - Example widget (read-only)
-samples/weather-refresh-widget.html - Example widget with callServerTool (interactive)
+```text
+skills/generate-codeful-mcp-tool/SKILL.md - Server runtime generator
+skills/generate-mcp-app-ui/SKILL.md - Widget generator
+references/codeful-tool-host-data-api.d.ts - Injected server API contract
+references/mcp-apps-reference.md - MCP Apps result and lifecycle patterns
+references/design-guidelines.md - Visual design defaults
+assets/self-contained/mcp-app-runtime.min.js - Vendored no-CDN browser runtime
+scripts/inline-self-contained-runtime.js - Deterministic single-file composer
+scripts/_vendor-build/ - Pinned runtime rebuild tooling
+samples/account-summary.tool.js - Codeful tool example
+samples/account-summary.tool.json - Tool registration metadata example
+samples/flight-status-widget.html - Read-only widget example
+samples/weather-refresh-widget.html - Interactive widget example
+samples/self-contained-widget.template.html - No-CDN source template
```
## Evals
-53 eval test cases covering different widget types (maps, charts, dashboards, tables, cards, etc.) plus type-mismatch stress tests. See [`evals/mcp-apps/generate-mcp-app-ui/`](../../evals/mcp-apps/generate-mcp-app-ui/) for the eval definitions and [eval-runbook.md](../../evals/mcp-apps/generate-mcp-app-ui/eval-runbook.md) for how to run them.
+- [`evals/mcp-apps/generate-codeful-mcp-tool/`](../../evals/mcp-apps/generate-codeful-mcp-tool/)
+ covers server generation, Dataverse access, result channels, errors, and UI handoff.
+- [`evals/mcp-apps/generate-mcp-app-ui/`](../../evals/mcp-apps/generate-mcp-app-ui/)
+ covers widget types, result envelopes, private metadata, and type-mismatch stress cases.
+
+Each suite includes `evals.json` and an `eval-runbook.md`.
+
+## Maintaining the self-contained runtime
+
+The no-CDN runtime is committed at
+`assets/self-contained/mcp-app-runtime.min.js`. It is generated code; do not edit it by
+hand. Its pinned build inputs live under `scripts/_vendor-build/`.
+
+After intentionally changing a dependency version:
+
+```bash
+cd plugins/mcp-apps/scripts/_vendor-build
+npm ci
+npm run build
+npm run check
+```
+
+Review `PROVENANCE.json` and `THIRD-PARTY-NOTICES.md` with every runtime update. Normal
+widget generation does not install packages: it uses the committed bundle through
+`scripts/inline-self-contained-runtime.js`. That script also supports `--prepare` to
+replace the embedded runtime region with the editable source marker before refining an
+existing widget.
## License
diff --git a/plugins/mcp-apps/assets/self-contained/PROVENANCE.json b/plugins/mcp-apps/assets/self-contained/PROVENANCE.json
new file mode 100644
index 000000000..353535a32
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/PROVENANCE.json
@@ -0,0 +1,29 @@
+{
+ "artifact": "mcp-app-runtime.min.js",
+ "sha256": "d29345e06683378efd21354896488945df22b14c19c49b2a1d597e030b5f88d2",
+ "build": {
+ "entry": "scripts/_vendor-build/entry.js",
+ "command": "npm ci && npm run build",
+ "nodeTarget": "es2022",
+ "esbuild": "0.28.2"
+ },
+ "packages": {
+ "@fluentui/tokens": {
+ "version": "1.0.0-alpha.22",
+ "source": "https://github.com/microsoft/fluentui"
+ },
+ "@modelcontextprotocol/ext-apps": {
+ "version": "1.7.5",
+ "source": "https://github.com/modelcontextprotocol/ext-apps"
+ }
+ },
+ "licenses": "THIRD-PARTY-NOTICES.md",
+ "licensePackagesEmbeddedInArtifact": [
+ "@modelcontextprotocol/ext-apps",
+ "@modelcontextprotocol/sdk",
+ "@fluentui/tokens",
+ "@standard-schema/spec",
+ "@swc/helpers",
+ "zod"
+ ]
+}
diff --git a/plugins/mcp-apps/assets/self-contained/THIRD-PARTY-NOTICES.md b/plugins/mcp-apps/assets/self-contained/THIRD-PARTY-NOTICES.md
new file mode 100644
index 000000000..21cfb2f32
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/THIRD-PARTY-NOTICES.md
@@ -0,0 +1,30 @@
+# Third-party notices
+
+`mcp-app-runtime.min.js` is generated from these direct packages:
+
+- `@modelcontextprotocol/ext-apps` 1.7.5
+- `@fluentui/tokens` 1.0.0-alpha.22
+
+The dependency-complete `@modelcontextprotocol/ext-apps/app-with-deps` distribution and
+the Fluent token build also contain code from their runtime dependencies, including:
+
+- `@modelcontextprotocol/sdk`
+- `@standard-schema/spec`
+- `@swc/helpers`
+- `zod`
+
+The license texts distributed by those packages are preserved in [`licenses/`](licenses/):
+
+| Package | License file |
+| --- | --- |
+| `@modelcontextprotocol/ext-apps` | [`modelcontextprotocol-ext-apps.txt`](licenses/modelcontextprotocol-ext-apps.txt) |
+| `@modelcontextprotocol/sdk` | [`modelcontextprotocol-sdk.txt`](licenses/modelcontextprotocol-sdk.txt) |
+| `@fluentui/tokens` | [`fluentui-tokens.txt`](licenses/fluentui-tokens.txt) |
+| `@standard-schema/spec` | [`standard-schema-spec.txt`](licenses/standard-schema-spec.txt) |
+| `@swc/helpers` | [`swc-helpers.txt`](licenses/swc-helpers.txt) |
+| `zod` | [`zod.txt`](licenses/zod.txt) |
+
+See [`PROVENANCE.json`](PROVENANCE.json) and
+`scripts/_vendor-build/package-lock.json` for pinned direct build inputs and integrity
+hashes. The same license texts are embedded in `mcp-app-runtime.min.js` so every generated
+single-file widget carries the notices required for redistribution.
diff --git a/plugins/mcp-apps/assets/self-contained/licenses/fluentui-tokens.txt b/plugins/mcp-apps/assets/self-contained/licenses/fluentui-tokens.txt
new file mode 100644
index 000000000..3881db925
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/licenses/fluentui-tokens.txt
@@ -0,0 +1,15 @@
+@fluentui/tokens
+
+Copyright (c) Microsoft Corporation
+
+All rights reserved.
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
diff --git a/plugins/mcp-apps/assets/self-contained/licenses/modelcontextprotocol-ext-apps.txt b/plugins/mcp-apps/assets/self-contained/licenses/modelcontextprotocol-ext-apps.txt
new file mode 100644
index 000000000..4a9398576
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/licenses/modelcontextprotocol-ext-apps.txt
@@ -0,0 +1,216 @@
+The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
+
+Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
+
+No rights beyond those granted by the applicable original license are conveyed for such contributions.
+
+---
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to the Licensor for inclusion in the Work by the copyright
+ owner or by an individual or Legal Entity authorized to submit on behalf
+ of the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+---
+
+MIT License
+
+Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+---
+
+Creative Commons Attribution 4.0 International (CC-BY-4.0)
+
+Documentation in this project (excluding specifications) is licensed under
+CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
+the full license text.
diff --git a/plugins/mcp-apps/assets/self-contained/licenses/modelcontextprotocol-sdk.txt b/plugins/mcp-apps/assets/self-contained/licenses/modelcontextprotocol-sdk.txt
new file mode 100644
index 000000000..3d4843545
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/licenses/modelcontextprotocol-sdk.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Anthropic, PBC
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/mcp-apps/assets/self-contained/licenses/standard-schema-spec.txt b/plugins/mcp-apps/assets/self-contained/licenses/standard-schema-spec.txt
new file mode 100644
index 000000000..ea54e0dda
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/licenses/standard-schema-spec.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Colin McDonnell
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/plugins/mcp-apps/assets/self-contained/licenses/swc-helpers.txt b/plugins/mcp-apps/assets/self-contained/licenses/swc-helpers.txt
new file mode 100644
index 000000000..6a0850490
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/licenses/swc-helpers.txt
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright 2024 SWC contributors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/plugins/mcp-apps/assets/self-contained/licenses/zod.txt b/plugins/mcp-apps/assets/self-contained/licenses/zod.txt
new file mode 100644
index 000000000..c06579627
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/licenses/zod.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 Colin McDonnell
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/plugins/mcp-apps/assets/self-contained/mcp-app-runtime.min.js b/plugins/mcp-apps/assets/self-contained/mcp-app-runtime.min.js
new file mode 100644
index 000000000..bb05d501c
--- /dev/null
+++ b/plugins/mcp-apps/assets/self-contained/mcp-app-runtime.min.js
@@ -0,0 +1,588 @@
+/*!
+Self-contained MCP Apps runtime third-party licenses
+
+----- @modelcontextprotocol/ext-apps -----
+The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
+
+Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
+
+No rights beyond those granted by the applicable original license are conveyed for such contributions.
+
+---
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to the Licensor for inclusion in the Work by the copyright
+ owner or by an individual or Legal Entity authorized to submit on behalf
+ of the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+---
+
+MIT License
+
+Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+---
+
+Creative Commons Attribution 4.0 International (CC-BY-4.0)
+
+Documentation in this project (excluding specifications) is licensed under
+CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
+the full license text.
+
+----- @modelcontextprotocol/sdk -----
+MIT License
+
+Copyright (c) 2024 Anthropic, PBC
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+----- @fluentui/tokens -----
+@fluentui/tokens
+
+Copyright (c) Microsoft Corporation
+
+All rights reserved.
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
+
+----- @standard-schema/spec -----
+MIT License
+
+Copyright (c) 2024 Colin McDonnell
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+----- @swc/helpers -----
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright 2024 SWC contributors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+----- zod -----
+MIT License
+
+Copyright (c) 2025 Colin McDonnell
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+*/
+(()=>{var g={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},Y={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},de={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},Hl={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},ql={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},ca={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},z="#ffffff",nt="#000000";var Jl={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"};var ma={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},Wl={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},Vl={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"};var Kl={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},Gl={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},Xl={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},Yl={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},Ql={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},ed={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},td={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},id={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"};var rd={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},nd={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},ad={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},fa={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},od={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},sd={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},ud={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"};var ld={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"};var dd={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},cd={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"};var md={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},fd={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},pd={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},gd={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"};var hd={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},vd={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},bd={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},$d={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"};var _d={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},yd={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},kd={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},Sd={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"};var xd={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},Id={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"};var j={red:Wl,green:fa,darkOrange:Vl,yellow:Ql,berry:vd,lightGreen:ad,marigold:Yl},Se={darkRed:Jl,cranberry:ma,pumpkin:Kl,peach:Xl,gold:ed,brass:td,brown:id,forest:rd,seafoam:nd,darkGreen:od,lightTeal:sd,teal:ud,steel:ld,blue:dd,royalBlue:cd,cornflower:md,navy:fd,lavender:pd,purple:gd,grape:hd,lilac:bd,pink:$d,magenta:_d,plum:yd,beige:kd,mink:Sd,platinum:xd,anchor:Id},Z={cranberry:ma,green:fa,orange:Gl};var zr=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],Nr=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"];var ae={success:"green",warning:"orange",danger:"cranberry"};var Wt=zr.reduce((e,i)=>{let r=i.slice(0,1).toUpperCase()+i.slice(1),a={[`colorPalette${r}Background1`]:j[i].tint60,[`colorPalette${r}Background2`]:j[i].tint40,[`colorPalette${r}Background3`]:j[i].primary,[`colorPalette${r}Foreground1`]:j[i].shade10,[`colorPalette${r}Foreground2`]:j[i].shade30,[`colorPalette${r}Foreground3`]:j[i].primary,[`colorPalette${r}BorderActive`]:j[i].primary,[`colorPalette${r}Border1`]:j[i].tint40,[`colorPalette${r}Border2`]:j[i].primary};return Object.assign(e,a)},{});Wt.colorPaletteYellowForeground1=j.yellow.shade30;Wt.colorPaletteRedForegroundInverted=j.red.tint20;Wt.colorPaletteGreenForegroundInverted=j.green.tint20;Wt.colorPaletteYellowForegroundInverted=j.yellow.tint40;var kp=Nr.reduce((e,i)=>{let r=i.slice(0,1).toUpperCase()+i.slice(1),a={[`colorPalette${r}Background2`]:Se[i].tint40,[`colorPalette${r}Foreground2`]:Se[i].shade30,[`colorPalette${r}BorderActive`]:Se[i].primary};return Object.assign(e,a)},{}),wd={...Wt,...kp},Ce=Object.entries(ae).reduce((e,[i,r])=>{let a=i.slice(0,1).toUpperCase()+i.slice(1),t={[`colorStatus${a}Background1`]:Z[r].tint60,[`colorStatus${a}Background2`]:Z[r].tint40,[`colorStatus${a}Background3`]:Z[r].primary,[`colorStatus${a}Foreground1`]:Z[r].shade10,[`colorStatus${a}Foreground2`]:Z[r].shade30,[`colorStatus${a}Foreground3`]:Z[r].primary,[`colorStatus${a}ForegroundInverted`]:Z[r].tint30,[`colorStatus${a}BorderActive`]:Z[r].primary,[`colorStatus${a}Border1`]:Z[r].tint40,[`colorStatus${a}Border2`]:Z[r].primary};return Object.assign(e,t)},{});Ce.colorStatusDangerBackground3Hover=Z[ae.danger].shade10;Ce.colorStatusDangerBackground3Pressed=Z[ae.danger].shade20;Ce.colorStatusWarningForeground1=Z[ae.warning].shade20;Ce.colorStatusWarningForeground3=Z[ae.warning].shade20;Ce.colorStatusWarningBorder2=Z[ae.warning].shade20;var zd=e=>({colorNeutralForeground1:g[14],colorNeutralForeground1Hover:g[14],colorNeutralForeground1Pressed:g[14],colorNeutralForeground1Selected:g[14],colorNeutralForeground2:g[26],colorNeutralForeground2Hover:g[14],colorNeutralForeground2Pressed:g[14],colorNeutralForeground2Selected:g[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:g[38],colorNeutralForeground3Hover:g[26],colorNeutralForeground3Pressed:g[26],colorNeutralForeground3Selected:g[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:g[44],colorNeutralForegroundDisabled:g[74],colorNeutralForegroundInvertedDisabled:Y[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:g[26],colorNeutralForeground2LinkHover:g[14],colorNeutralForeground2LinkPressed:g[14],colorNeutralForeground2LinkSelected:g[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:g[14],colorNeutralForegroundStaticInverted:z,colorNeutralForegroundInverted:z,colorNeutralForegroundInvertedHover:z,colorNeutralForegroundInvertedPressed:z,colorNeutralForegroundInvertedSelected:z,colorNeutralForegroundInverted2:z,colorNeutralForegroundOnBrand:z,colorNeutralForegroundInvertedLink:z,colorNeutralForegroundInvertedLinkHover:z,colorNeutralForegroundInvertedLinkPressed:z,colorNeutralForegroundInvertedLinkSelected:z,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:z,colorNeutralBackground1Hover:g[96],colorNeutralBackground1Pressed:g[88],colorNeutralBackground1Selected:g[92],colorNeutralBackground2:g[98],colorNeutralBackground2Hover:g[94],colorNeutralBackground2Pressed:g[86],colorNeutralBackground2Selected:g[90],colorNeutralBackground3:g[96],colorNeutralBackground3Hover:g[92],colorNeutralBackground3Pressed:g[84],colorNeutralBackground3Selected:g[88],colorNeutralBackground4:g[94],colorNeutralBackground4Hover:g[98],colorNeutralBackground4Pressed:g[96],colorNeutralBackground4Selected:z,colorNeutralBackground5:g[92],colorNeutralBackground5Hover:g[96],colorNeutralBackground5Pressed:g[94],colorNeutralBackground5Selected:g[98],colorNeutralBackground6:g[90],colorNeutralBackgroundInverted:g[16],colorNeutralBackgroundStatic:g[20],colorNeutralBackgroundAlpha:Y[50],colorNeutralBackgroundAlpha2:Y[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:g[96],colorSubtleBackgroundPressed:g[88],colorSubtleBackgroundSelected:g[92],colorSubtleBackgroundLightAlphaHover:Y[70],colorSubtleBackgroundLightAlphaPressed:Y[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:de[10],colorSubtleBackgroundInvertedPressed:de[30],colorSubtleBackgroundInvertedSelected:de[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:g[94],colorNeutralBackgroundInvertedDisabled:Y[10],colorNeutralStencil1:g[90],colorNeutralStencil2:g[98],colorNeutralStencil1Alpha:de[10],colorNeutralStencil2Alpha:de[5],colorBackgroundOverlay:de[40],colorScrollbarOverlay:de[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:z,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:g[98],colorNeutralCardBackgroundHover:z,colorNeutralCardBackgroundPressed:g[96],colorNeutralCardBackgroundSelected:g[92],colorNeutralCardBackgroundDisabled:g[94],colorNeutralStrokeAccessible:g[38],colorNeutralStrokeAccessibleHover:g[34],colorNeutralStrokeAccessiblePressed:g[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:g[82],colorNeutralStroke1Hover:g[78],colorNeutralStroke1Pressed:g[70],colorNeutralStroke1Selected:g[74],colorNeutralStroke2:g[88],colorNeutralStroke3:g[94],colorNeutralStrokeSubtle:g[88],colorNeutralStrokeOnBrand:z,colorNeutralStrokeOnBrand2:z,colorNeutralStrokeOnBrand2Hover:z,colorNeutralStrokeOnBrand2Pressed:z,colorNeutralStrokeOnBrand2Selected:z,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:g[88],colorNeutralStrokeInvertedDisabled:Y[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:de[5],colorNeutralStrokeAlpha2:Y[20],colorStrokeFocus1:z,colorStrokeFocus2:nt,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"});var Vt={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"};var Ur={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"};var Or={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"};var Kt={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Gt={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Xt={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},Yt={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"};var K={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Tr={spacingHorizontalNone:K.none,spacingHorizontalXXS:K.xxs,spacingHorizontalXS:K.xs,spacingHorizontalSNudge:K.sNudge,spacingHorizontalS:K.s,spacingHorizontalMNudge:K.mNudge,spacingHorizontalM:K.m,spacingHorizontalL:K.l,spacingHorizontalXL:K.xl,spacingHorizontalXXL:K.xxl,spacingHorizontalXXXL:K.xxxl},Pr={spacingVerticalNone:K.none,spacingVerticalXXS:K.xxs,spacingVerticalXS:K.xs,spacingVerticalSNudge:K.sNudge,spacingVerticalS:K.s,spacingVerticalMNudge:K.mNudge,spacingVerticalM:K.m,spacingVerticalL:K.l,spacingVerticalXL:K.xl,spacingVerticalXXL:K.xxl,spacingVerticalXXXL:K.xxxl};var Qt={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"};function at(e,i,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${i}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${i}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${i}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${i}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${i}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${i}`}}var Nd=e=>{let i=zd(e);return{...Vt,...Kt,...Gt,...Yt,...Xt,...Qt,...Tr,...Pr,...Or,...Ur,...i,...wd,...Ce,...at(i.colorNeutralShadowAmbient,i.colorNeutralShadowKey),...at(i.colorBrandShadowAmbient,i.colorBrandShadowKey,"Brand")}};var Dr={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"};var xe=zr.reduce((e,i)=>{let r=i.slice(0,1).toUpperCase()+i.slice(1),a={[`colorPalette${r}Background1`]:j[i].shade40,[`colorPalette${r}Background2`]:j[i].shade30,[`colorPalette${r}Background3`]:j[i].primary,[`colorPalette${r}Foreground1`]:j[i].tint30,[`colorPalette${r}Foreground2`]:j[i].tint40,[`colorPalette${r}Foreground3`]:j[i].tint20,[`colorPalette${r}BorderActive`]:j[i].tint30,[`colorPalette${r}Border1`]:j[i].primary,[`colorPalette${r}Border2`]:j[i].tint20};return Object.assign(e,a)},{});xe.colorPaletteRedForeground3=j.red.tint30;xe.colorPaletteRedBorder2=j.red.tint30;xe.colorPaletteGreenForeground3=j.green.tint40;xe.colorPaletteGreenBorder2=j.green.tint40;xe.colorPaletteDarkOrangeForeground3=j.darkOrange.tint30;xe.colorPaletteDarkOrangeBorder2=j.darkOrange.tint30;xe.colorPaletteRedForegroundInverted=j.red.primary;xe.colorPaletteGreenForegroundInverted=j.green.primary;xe.colorPaletteYellowForegroundInverted=j.yellow.shade30;var pa=Nr.reduce((e,i)=>{let r=i.slice(0,1).toUpperCase()+i.slice(1),a={[`colorPalette${r}Background2`]:Se[i].shade30,[`colorPalette${r}Foreground2`]:Se[i].tint40,[`colorPalette${r}BorderActive`]:Se[i].tint30};return Object.assign(e,a)},{});pa.colorPaletteDarkRedBackground2=Se.darkRed.shade20;pa.colorPalettePlumBackground2=Se.plum.shade20;var Ud={...xe,...pa},ze=Object.entries(ae).reduce((e,[i,r])=>{let a=i.slice(0,1).toUpperCase()+i.slice(1),t={[`colorStatus${a}Background1`]:Z[r].shade40,[`colorStatus${a}Background2`]:Z[r].shade30,[`colorStatus${a}Background3`]:Z[r].primary,[`colorStatus${a}Foreground1`]:Z[r].tint30,[`colorStatus${a}Foreground2`]:Z[r].tint40,[`colorStatus${a}Foreground3`]:Z[r].tint20,[`colorStatus${a}BorderActive`]:Z[r].tint30,[`colorStatus${a}ForegroundInverted`]:Z[r].shade10,[`colorStatus${a}Border1`]:Z[r].primary,[`colorStatus${a}Border2`]:Z[r].tint20};return Object.assign(e,t)},{});ze.colorStatusDangerBackground3Hover=Z[ae.danger].shade10;ze.colorStatusDangerBackground3Pressed=Z[ae.danger].shade20;ze.colorStatusDangerForeground3=Z[ae.danger].tint40;ze.colorStatusDangerBorder2=Z[ae.danger].tint30;ze.colorStatusSuccessForeground3=Z[ae.success].tint40;ze.colorStatusSuccessBorder2=Z[ae.success].tint40;ze.colorStatusWarningForegroundInverted=Z[ae.warning].shade20;var ei=Nd(Dr);var Od=e=>({colorNeutralForeground1:z,colorNeutralForeground1Hover:z,colorNeutralForeground1Pressed:z,colorNeutralForeground1Selected:z,colorNeutralForeground2:g[84],colorNeutralForeground2Hover:z,colorNeutralForeground2Pressed:z,colorNeutralForeground2Selected:z,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:g[68],colorNeutralForeground3Hover:g[84],colorNeutralForeground3Pressed:g[84],colorNeutralForeground3Selected:g[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:g[60],colorNeutralForegroundDisabled:g[36],colorNeutralForegroundInvertedDisabled:Y[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:g[84],colorNeutralForeground2LinkHover:z,colorNeutralForeground2LinkPressed:z,colorNeutralForeground2LinkSelected:z,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:g[14],colorNeutralForegroundStaticInverted:z,colorNeutralForegroundInverted:g[14],colorNeutralForegroundInvertedHover:g[14],colorNeutralForegroundInvertedPressed:g[14],colorNeutralForegroundInvertedSelected:g[14],colorNeutralForegroundInverted2:g[14],colorNeutralForegroundOnBrand:z,colorNeutralForegroundInvertedLink:z,colorNeutralForegroundInvertedLinkHover:z,colorNeutralForegroundInvertedLinkPressed:z,colorNeutralForegroundInvertedLinkSelected:z,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:g[16],colorNeutralBackground1Hover:g[24],colorNeutralBackground1Pressed:g[12],colorNeutralBackground1Selected:g[22],colorNeutralBackground2:g[12],colorNeutralBackground2Hover:g[20],colorNeutralBackground2Pressed:g[8],colorNeutralBackground2Selected:g[18],colorNeutralBackground3:g[8],colorNeutralBackground3Hover:g[16],colorNeutralBackground3Pressed:g[4],colorNeutralBackground3Selected:g[14],colorNeutralBackground4:g[4],colorNeutralBackground4Hover:g[12],colorNeutralBackground4Pressed:nt,colorNeutralBackground4Selected:g[10],colorNeutralBackground5:nt,colorNeutralBackground5Hover:g[8],colorNeutralBackground5Pressed:g[2],colorNeutralBackground5Selected:g[6],colorNeutralBackground6:g[20],colorNeutralBackgroundInverted:z,colorNeutralBackgroundStatic:g[24],colorNeutralBackgroundAlpha:Hl[50],colorNeutralBackgroundAlpha2:ql[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:g[22],colorSubtleBackgroundPressed:g[18],colorSubtleBackgroundSelected:g[20],colorSubtleBackgroundLightAlphaHover:ca[80],colorSubtleBackgroundLightAlphaPressed:ca[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:de[10],colorSubtleBackgroundInvertedPressed:de[30],colorSubtleBackgroundInvertedSelected:de[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:g[8],colorNeutralBackgroundInvertedDisabled:Y[10],colorNeutralStencil1:g[34],colorNeutralStencil2:g[20],colorNeutralStencil1Alpha:Y[10],colorNeutralStencil2Alpha:Y[5],colorBackgroundOverlay:de[50],colorScrollbarOverlay:Y[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:z,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:g[20],colorNeutralCardBackgroundHover:g[24],colorNeutralCardBackgroundPressed:g[18],colorNeutralCardBackgroundSelected:g[22],colorNeutralCardBackgroundDisabled:g[8],colorNeutralStrokeAccessible:g[68],colorNeutralStrokeAccessibleHover:g[74],colorNeutralStrokeAccessiblePressed:g[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:g[40],colorNeutralStroke1Hover:g[46],colorNeutralStroke1Pressed:g[42],colorNeutralStroke1Selected:g[44],colorNeutralStroke2:g[32],colorNeutralStroke3:g[24],colorNeutralStrokeSubtle:g[4],colorNeutralStrokeOnBrand:g[16],colorNeutralStrokeOnBrand2:z,colorNeutralStrokeOnBrand2Hover:z,colorNeutralStrokeOnBrand2Pressed:z,colorNeutralStrokeOnBrand2Selected:z,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:g[26],colorNeutralStrokeInvertedDisabled:Y[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Y[10],colorNeutralStrokeAlpha2:Y[20],colorStrokeFocus1:nt,colorStrokeFocus2:z,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"});var Td=e=>{let i=Od(e);return{...Vt,...Kt,...Gt,...Yt,...Xt,...Qt,...Tr,...Pr,...Or,...Ur,...i,...Ud,...ze,...at(i.colorNeutralShadowAmbient,i.colorNeutralShadowKey),...at(i.colorBrandShadowAmbient,i.colorBrandShadowKey,"Brand")}};var ti=Td(Dr);var Sp=Object.defineProperty,xp=e=>e;function Ip(e,i){this[e]=xp.bind(null,i)}var Ie=(e,i)=>{for(var r in i)Sp(e,r,{get:i[r],enumerable:!0,configurable:!0,set:Ip.bind(i,r)})},_=(e,i)=>()=>(e&&(i=e(e=0)),i);function m(e,i,r){function a(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),i(s,l);let d=o.prototype,c=Object.keys(d);for(let p=0;p<c.length;p++){let h=c[p];h in s||(s[h]=d[h].bind(s))}}let t=r?.Parent??Object;class n extends t{}Object.defineProperty(n,"name",{value:e});function o(s){var l;let d=r?.Parent?new n:this;a(d,s),(l=d._zod).deferred??(l.deferred=[]);for(let c of d._zod.deferred)c();return d}return Object.defineProperty(o,"init",{value:a}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function ee(e){return e&&Object.assign(li,e),li}var un,ln,Ze,ui,li,pi=_(()=>{un=Object.freeze({status:"aborted"}),ln=Symbol("zod_brand"),Ze=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ui=class extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}},li={}}),D={};Ie(D,{unwrapMessage:()=>ai,uint8ArrayToHex:()=>Kp,uint8ArrayToBase64url:()=>Wp,uint8ArrayToBase64:()=>fc,stringifyPrimitive:()=>I,slugify:()=>lc,shallowClone:()=>dc,safeExtend:()=>Fp,required:()=>Hp,randomString:()=>jp,propertyKeyTypes:()=>di,promiseAllObject:()=>Zp,primitiveTypes:()=>Ta,prefixIssues:()=>ke,pick:()=>Bp,partial:()=>Mp,parsedType:()=>w,optionalKeys:()=>cc,omit:()=>Rp,objectClone:()=>Tp,numKeys:()=>Ep,nullish:()=>Le,normalizeParams:()=>b,mergeDefs:()=>Pe,merge:()=>Lp,jsonStringifyReplacer:()=>Lr,joinValues:()=>v,issue:()=>Mr,isPlainObject:()=>Ke,isObject:()=>ut,hexToUint8Array:()=>Vp,getSizableOrigin:()=>Cr,getParsedType:()=>Gp,getLengthableOrigin:()=>Fr,getEnumValues:()=>Ua,getElementAtPath:()=>Dp,floatSafeRemainder:()=>uc,finalizeIssue:()=>be,extend:()=>Cp,escapeRegex:()=>Ue,esc:()=>ha,defineLazy:()=>T,createTransparentProxy:()=>Ap,cloneDef:()=>Pp,clone:()=>ge,cleanRegex:()=>Rr,cleanEnum:()=>qp,captureStackTrace:()=>dn,cached:()=>oi,base64urlToUint8Array:()=>Jp,base64ToUint8Array:()=>mc,assignProp:()=>Ae,assertNotEqual:()=>zp,assertNever:()=>Up,assertIs:()=>Np,assertEqual:()=>wp,assert:()=>Op,allowsEval:()=>Oa,aborted:()=>He,NUMBER_FORMAT_RANGES:()=>Pa,Class:()=>va,BIGINT_FORMAT_RANGES:()=>Da});function wp(e){return e}function zp(e){return e}function Np(e){}function Up(e){throw Error("Unexpected value in exhaustive check")}function Op(e){}function Ua(e){let i=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>i.indexOf(+r)===-1).map(([r,a])=>a)}function v(e,i="|"){return e.map(r=>I(r)).join(i)}function Lr(e,i){return typeof i=="bigint"?i.toString():i}function oi(e){return{get value(){{let i=e();return Object.defineProperty(this,"value",{value:i}),i}throw Error("cached value already set")}}}function Le(e){return e==null}function Rr(e){let i=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(i,r)}function uc(e,i){let r=(e.toString().split(".")[1]||"").length,a=i.toString(),t=(a.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(a)){let l=a.match(/\d?e-(\d?)/);l?.[1]&&(t=Number.parseInt(l[1]))}let n=r>t?r:t,o=Number.parseInt(e.toFixed(n).replace(".","")),s=Number.parseInt(i.toFixed(n).replace(".",""));return o%s/10**n}function T(e,i,r){let a;Object.defineProperty(e,i,{get(){if(a!==ba)return a===void 0&&(a=ba,a=r()),a},set(t){Object.defineProperty(e,i,{value:t})},configurable:!0})}function Tp(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ae(e,i,r){Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Pe(...e){let i={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(i,a)}return Object.defineProperties({},i)}function Pp(e){return Pe(e._zod.def)}function Dp(e,i){return i?i.reduce((r,a)=>r?.[a],e):e}function Zp(e){let i=Object.keys(e),r=i.map(a=>e[a]);return Promise.all(r).then(a=>{let t={};for(let n=0;n<i.length;n++)t[i[n]]=a[n];return t})}function jp(e=10){let i="";for(let r=0;r<e;r++)i+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return i}function ha(e){return JSON.stringify(e)}function lc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function ut(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ke(e){if(ut(e)===!1)return!1;let i=e.constructor;if(i===void 0||typeof i!="function")return!0;let r=i.prototype;return!(ut(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function dc(e){return Ke(e)?{...e}:Array.isArray(e)?[...e]:e}function Ep(e){let i=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&i++;return i}function Ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ge(e,i,r){let a=new e._zod.constr(i??e._zod.def);return(!i||r?.parent)&&(a._zod.parent=e),a}function b(e){let i=e;if(!i)return{};if(typeof i=="string")return{error:()=>i};if(i?.message!==void 0){if(i?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");i.error=i.message}return delete i.message,typeof i.error=="string"?{...i,error:()=>i.error}:i}function Ap(e){let i;return new Proxy({},{get(r,a,t){return i??(i=e()),Reflect.get(i,a,t)},set(r,a,t,n){return i??(i=e()),Reflect.set(i,a,t,n)},has(r,a){return i??(i=e()),Reflect.has(i,a)},deleteProperty(r,a){return i??(i=e()),Reflect.deleteProperty(i,a)},ownKeys(r){return i??(i=e()),Reflect.ownKeys(i)},getOwnPropertyDescriptor(r,a){return i??(i=e()),Reflect.getOwnPropertyDescriptor(i,a)},defineProperty(r,a,t){return i??(i=e()),Reflect.defineProperty(i,a,t)}})}function I(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function cc(e){return Object.keys(e).filter(i=>e[i]._zod.optin==="optional"&&e[i]._zod.optout==="optional")}function Bp(e,i){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let t=Pe(e._zod.def,{get shape(){let n={};for(let o in i){if(!(o in r.shape))throw Error(`Unrecognized key: "${o}"`);i[o]&&(n[o]=r.shape[o])}return Ae(this,"shape",n),n},checks:[]});return ge(e,t)}function Rp(e,i){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let t=Pe(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let o in i){if(!(o in r.shape))throw Error(`Unrecognized key: "${o}"`);i[o]&&delete n[o]}return Ae(this,"shape",n),n},checks:[]});return ge(e,t)}function Cp(e,i){if(!Ke(i))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let t=e._zod.def.shape;for(let n in i)if(Object.getOwnPropertyDescriptor(t,n)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=Pe(e._zod.def,{get shape(){let t={...e._zod.def.shape,...i};return Ae(this,"shape",t),t}});return ge(e,a)}function Fp(e,i){if(!Ke(i))throw Error("Invalid input to safeExtend: expected a plain object");let r=Pe(e._zod.def,{get shape(){let a={...e._zod.def.shape,...i};return Ae(this,"shape",a),a}});return ge(e,r)}function Lp(e,i){let r=Pe(e._zod.def,{get shape(){let a={...e._zod.def.shape,...i._zod.def.shape};return Ae(this,"shape",a),a},get catchall(){return i._zod.def.catchall},checks:[]});return ge(e,r)}function Mp(e,i,r){let a=i._zod.def.checks;if(a&&a.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let t=Pe(i._zod.def,{get shape(){let n=i._zod.def.shape,o={...n};if(r)for(let s in r){if(!(s in n))throw Error(`Unrecognized key: "${s}"`);r[s]&&(o[s]=e?new e({type:"optional",innerType:n[s]}):n[s])}else for(let s in n)o[s]=e?new e({type:"optional",innerType:n[s]}):n[s];return Ae(this,"shape",o),o},checks:[]});return ge(i,t)}function Hp(e,i,r){let a=Pe(i._zod.def,{get shape(){let t=i._zod.def.shape,n={...t};if(r)for(let o in r){if(!(o in n))throw Error(`Unrecognized key: "${o}"`);r[o]&&(n[o]=new e({type:"nonoptional",innerType:t[o]}))}else for(let o in t)n[o]=new e({type:"nonoptional",innerType:t[o]});return Ae(this,"shape",n),n}});return ge(i,a)}function He(e,i=0){if(e.aborted===!0)return!0;for(let r=i;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ke(e,i){return i.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function ai(e){return typeof e=="string"?e:e?.message}function be(e,i,r){let a={...e,path:e.path??[]};if(!e.message){let t=ai(e.inst?._zod.def?.error?.(e))??ai(i?.error?.(e))??ai(r.customError?.(e))??ai(r.localeError?.(e))??"Invalid input";a.message=t}return delete a.inst,delete a.continue,!i?.reportInput&&delete a.input,a}function Cr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Fr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function w(e){let i=typeof e;switch(i){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return i}function Mr(...e){let[i,r,a]=e;return typeof i=="string"?{message:i,code:"custom",input:r,inst:a}:{...i}}function qp(e){return Object.entries(e).filter(([i,r])=>Number.isNaN(Number.parseInt(i,10))).map(i=>i[1])}function mc(e){let i=atob(e),r=new Uint8Array(i.length);for(let a=0;a<i.length;a++)r[a]=i.charCodeAt(a);return r}function fc(e){let i="";for(let r=0;r<e.length;r++)i+=String.fromCharCode(e[r]);return btoa(i)}function Jp(e){let i=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-i.length%4)%4);return mc(i+r)}function Wp(e){return fc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Vp(e){let i=e.replace(/^0x/,"");if(i.length%2!==0)throw Error("Invalid hex string length");let r=new Uint8Array(i.length/2);for(let a=0;a<i.length;a+=2)r[a/2]=Number.parseInt(i.slice(a,a+2),16);return r}function Kp(e){return Array.from(e).map(i=>i.toString(16).padStart(2,"0")).join("")}var va=class{constructor(...i){}},ba,dn,Oa,Gp=e=>{let i=typeof e;switch(i){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw Error(`Unknown data type: ${i}`)}},di,Ta,Pa,Da,x=_(()=>{ba=Symbol("evaluating"),dn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{},Oa=oi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}}),di=new Set(["string","number","symbol"]),Ta=new Set(["string","number","bigint","boolean","symbol","undefined"]),Pa={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Da={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]}});function cn(e,i=r=>r.message){let r={},a=[];for(let t of e.issues)t.path.length>0?(r[t.path[0]]=r[t.path[0]]||[],r[t.path[0]].push(i(t))):a.push(i(t));return{formErrors:a,fieldErrors:r}}function mn(e,i=r=>r.message){let r={_errors:[]},a=t=>{for(let n of t.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(o=>a({issues:o}));else if(n.code==="invalid_key")a({issues:n.issues});else if(n.code==="invalid_element")a({issues:n.issues});else if(n.path.length===0)r._errors.push(i(n));else{let o=r,s=0;for(;s<n.path.length;){let l=n.path[s];s!==n.path.length-1?o[l]=o[l]||{_errors:[]}:(o[l]=o[l]||{_errors:[]},o[l]._errors.push(i(n))),o=o[l],s++}}};return a(e),r}function Za(e,i=r=>r.message){let r={errors:[]},a=(t,n=[])=>{var o,s;for(let l of t.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(d=>a({issues:d},l.path));else if(l.code==="invalid_key")a({issues:l.issues},l.path);else if(l.code==="invalid_element")a({issues:l.issues},l.path);else{let d=[...n,...l.path];if(d.length===0){r.errors.push(i(l));continue}let c=r,p=0;for(;p<d.length;){let h=d[p],k=p===d.length-1;typeof h=="string"?(c.properties??(c.properties={}),(o=c.properties)[h]??(o[h]={errors:[]}),c=c.properties[h]):(c.items??(c.items=[]),(s=c.items)[h]??(s[h]={errors:[]}),c=c.items[h]),k&&c.errors.push(i(l)),p++}}};return a(e),r}function pc(e){let i=[],r=e.map(a=>typeof a=="object"?a.key:a);for(let a of r)typeof a=="number"?i.push(`[${a}]`):typeof a=="symbol"?i.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?i.push(`[${JSON.stringify(a)}]`):(i.length&&i.push("."),i.push(a));return i.join("")}function ja(e){let i=[],r=[...e.issues].sort((a,t)=>(a.path??[]).length-(t.path??[]).length);for(let a of r)i.push(`\u2716 ${a.message}`),a.path?.length&&i.push(` \u2192 at ${pc(a.path)}`);return i.join(`
+`)}var Pd=(e,i)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:i,enumerable:!1}),e.message=JSON.stringify(i,Lr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fn,ce,gc=_(()=>{pi(),x(),fn=m("$ZodError",Pd),ce=m("$ZodError",Pd,{Parent:Error})}),gi=e=>(i,r,a,t)=>{let n=a?Object.assign(a,{async:!1}):{async:!1},o=i._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Ze;if(o.issues.length){let s=new(t?.Err??e)(o.issues.map(l=>be(l,n,ee())));throw dn(s,t?.callee),s}return o.value},Hr,hi=e=>async(i,r,a,t)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=i._zod.run({value:r,issues:[]},n);if(o instanceof Promise&&(o=await o),o.issues.length){let s=new(t?.Err??e)(o.issues.map(l=>be(l,n,ee())));throw dn(s,t?.callee),s}return o.value},qr,vi=e=>(i,r,a)=>{let t=a?{...a,async:!1}:{async:!1},n=i._zod.run({value:r,issues:[]},t);if(n instanceof Promise)throw new Ze;return n.issues.length?{success:!1,error:new(e??fn)(n.issues.map(o=>be(o,t,ee())))}:{success:!0,data:n.value}},pn,bi=e=>async(i,r,a)=>{let t=a?Object.assign(a,{async:!0}):{async:!0},n=i._zod.run({value:r,issues:[]},t);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(o=>be(o,t,ee())))}:{success:!0,data:n.value}},Ea,Aa=e=>(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return gi(e)(i,r,t)},hc,Ba=e=>(i,r,a)=>gi(e)(i,r,a),vc,Ra=e=>async(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return hi(e)(i,r,t)},bc,Ca=e=>async(i,r,a)=>hi(e)(i,r,a),$c,Fa=e=>(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return vi(e)(i,r,t)},_c,La=e=>(i,r,a)=>vi(e)(i,r,a),yc,Ma=e=>async(i,r,a)=>{let t=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return bi(e)(i,r,t)},kc,Ha=e=>async(i,r,a)=>bi(e)(i,r,a),Sc,xc=_(()=>{pi(),gc(),x(),Hr=gi(ce),qr=hi(ce),pn=vi(ce),Ea=bi(ce),hc=Aa(ce),vc=Ba(ce),bc=Ra(ce),$c=Ca(ce),_c=Fa(ce),yc=La(ce),kc=Ma(ce),Sc=Ha(ce)}),Be={};Ie(Be,{xid:()=>Va,uuid7:()=>Pc,uuid6:()=>Tc,uuid4:()=>Oc,uuid:()=>lt,uppercase:()=>po,unicodeEmail:()=>$a,undefined:()=>mo,ulid:()=>Wa,time:()=>zc,string:()=>Fc,sha512_hex:()=>tm,sha512_base64url:()=>rm,sha512_base64:()=>im,sha384_hex:()=>Yc,sha384_base64url:()=>em,sha384_base64:()=>Qc,sha256_hex:()=>Kc,sha256_base64url:()=>Xc,sha256_base64:()=>Gc,sha1_hex:()=>Jc,sha1_base64url:()=>Vc,sha1_base64:()=>Wc,rfc5322Email:()=>Zc,number:()=>Jr,null:()=>co,nanoid:()=>Ga,md5_hex:()=>Mc,md5_base64url:()=>qc,md5_base64:()=>Hc,mac:()=>Ac,lowercase:()=>fo,ksuid:()=>Ka,ipv6:()=>to,ipv4:()=>eo,integer:()=>uo,idnEmail:()=>jc,html5Email:()=>Dc,hostname:()=>Bc,hex:()=>Lc,guid:()=>Ya,extendedDuration:()=>Uc,emoji:()=>Ic,email:()=>Qa,e164:()=>ao,duration:()=>Xa,domain:()=>Rc,datetime:()=>Nc,date:()=>oo,cuid2:()=>Ja,cuid:()=>qa,cidrv6:()=>ro,cidrv4:()=>io,browserEmail:()=>Ec,boolean:()=>lo,bigint:()=>so,base64url:()=>gn,base64:()=>no});function Ic(){return new RegExp(Xp,"u")}function wc(e){return typeof e.precision=="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function zc(e){return new RegExp(`^${wc(e)}$`)}function Nc(e){let i=wc({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${i}(?:${r.join("|")})`;return new RegExp(`^${Cc}T(?:${a})$`)}function ii(e,i){return new RegExp(`^[A-Za-z0-9+/]{${e}}${i}$`)}function ri(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var qa,Ja,Wa,Va,Ka,Ga,Xa,Uc,Ya,lt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Oc,Tc,Pc,Qa,Dc,Zc,$a,jc,Ec,Xp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",eo,to,Ac=e=>{let i=Ue(e??":");return new RegExp(`^(?:[0-9A-F]{2}${i}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${i}){5}[0-9a-f]{2}$`)},io,ro,no,gn,Bc,Rc,ao,Cc="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",oo,Fc=e=>{let i=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${i}$`)},so,uo,Jr,lo,co,mo,fo,po,Lc,Mc,Hc,qc,Jc,Wc,Vc,Kc,Gc,Xc,Yc,Qc,em,tm,im,rm,go=_(()=>{x(),qa=/^[cC][^\s-]{8,}$/,Ja=/^[0-9a-z]+$/,Wa=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Va=/^[0-9a-vA-V]{20}$/,Ka=/^[A-Za-z0-9]{27}$/,Ga=/^[a-zA-Z0-9_-]{21}$/,Xa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Uc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ya=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Oc=lt(4),Tc=lt(6),Pc=lt(7),Qa=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Dc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Zc=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,$a=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,jc=$a,Ec=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,eo=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,to=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,io=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ro=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,no=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,gn=/^[A-Za-z0-9_-]*$/,Bc=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Rc=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ao=/^\+[1-9]\d{6,14}$/,oo=new RegExp(`^${Cc}$`),so=/^-?\d+n?$/,uo=/^-?\d+$/,Jr=/^-?\d+(?:\.\d+)?$/,lo=/^(?:true|false)$/i,co=/^null$/i,mo=/^undefined$/i,fo=/^[^A-Z]*$/,po=/^[^a-z]*$/,Lc=/^[0-9a-fA-F]*$/,Mc=/^[0-9a-fA-F]{32}$/,Hc=ii(22,"=="),qc=ri(22),Jc=/^[0-9a-fA-F]{40}$/,Wc=ii(27,"="),Vc=ri(27),Kc=/^[0-9a-fA-F]{64}$/,Gc=ii(43,"="),Xc=ri(43),Yc=/^[0-9a-fA-F]{96}$/,Qc=ii(64,""),em=ri(64),tm=/^[0-9a-fA-F]{128}$/,im=ii(86,"=="),rm=ri(86)});function Dd(e,i,r){e.issues.length&&i.issues.push(...ke(r,e.issues))}var V,ga,hn,vn,ho,vo,bo,$o,_o,yo,ko,So,xo,st,Io,wo,zo,No,Uo,Oo,To,Po,Do,Zo=_(()=>{pi(),go(),x(),V=m("$ZodCheck",(e,i)=>{var r;e._zod??(e._zod={}),e._zod.def=i,(r=e._zod).onattach??(r.onattach=[])}),ga={number:"number",bigint:"bigint",object:"date"},hn=m("$ZodCheckLessThan",(e,i)=>{V.init(e,i);let r=ga[typeof i.value];e._zod.onattach.push(a=>{let t=a._zod.bag,n=(i.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value<n&&(i.inclusive?t.maximum=i.value:t.exclusiveMaximum=i.value)}),e._zod.check=a=>{(i.inclusive?a.value<=i.value:a.value<i.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof i.value=="object"?i.value.getTime():i.value,input:a.value,inclusive:i.inclusive,inst:e,continue:!i.abort})}}),vn=m("$ZodCheckGreaterThan",(e,i)=>{V.init(e,i);let r=ga[typeof i.value];e._zod.onattach.push(a=>{let t=a._zod.bag,n=(i.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;i.value>n&&(i.inclusive?t.minimum=i.value:t.exclusiveMinimum=i.value)}),e._zod.check=a=>{(i.inclusive?a.value>=i.value:a.value>i.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:a.value,inclusive:i.inclusive,inst:e,continue:!i.abort})}}),ho=m("$ZodCheckMultipleOf",(e,i)=>{V.init(e,i),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=i.value)}),e._zod.check=r=>{if(typeof r.value!=typeof i.value)throw Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%i.value===BigInt(0):uc(r.value,i.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:i.value,input:r.value,inst:e,continue:!i.abort})}}),vo=m("$ZodCheckNumberFormat",(e,i)=>{V.init(e,i),i.format=i.format||"float64";let r=i.format?.includes("int"),a=r?"int":"number",[t,n]=Pa[i.format];e._zod.onattach.push(o=>{let s=o._zod.bag;s.format=i.format,s.minimum=t,s.maximum=n,r&&(s.pattern=uo)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s)){o.issues.push({expected:a,format:i.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!i.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!i.abort});return}}s<t&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!i.abort}),s>n&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!i.abort})}}),bo=m("$ZodCheckBigIntFormat",(e,i)=>{V.init(e,i);let[r,a]=Da[i.format];e._zod.onattach.push(t=>{let n=t._zod.bag;n.format=i.format,n.minimum=r,n.maximum=a}),e._zod.check=t=>{let n=t.value;n<r&&t.issues.push({origin:"bigint",input:n,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!i.abort}),n>a&&t.issues.push({origin:"bigint",input:n,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!i.abort})}}),$o=m("$ZodCheckMaxSize",(e,i)=>{var r;V.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Le(t)&&t.size!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<t&&(a._zod.bag.maximum=i.maximum)}),e._zod.check=a=>{let t=a.value;t.size<=i.maximum||a.issues.push({origin:Cr(t),code:"too_big",maximum:i.maximum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),_o=m("$ZodCheckMinSize",(e,i)=>{var r;V.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Le(t)&&t.size!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>t&&(a._zod.bag.minimum=i.minimum)}),e._zod.check=a=>{let t=a.value;t.size>=i.minimum||a.issues.push({origin:Cr(t),code:"too_small",minimum:i.minimum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),yo=m("$ZodCheckSizeEquals",(e,i)=>{var r;V.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Le(t)&&t.size!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag;t.minimum=i.size,t.maximum=i.size,t.size=i.size}),e._zod.check=a=>{let t=a.value,n=t.size;if(n===i.size)return;let o=n>i.size;a.issues.push({origin:Cr(t),...o?{code:"too_big",maximum:i.size}:{code:"too_small",minimum:i.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!i.abort})}}),ko=m("$ZodCheckMaxLength",(e,i)=>{var r;V.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Le(t)&&t.length!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<t&&(a._zod.bag.maximum=i.maximum)}),e._zod.check=a=>{let t=a.value;if(t.length<=i.maximum)return;let n=Fr(t);a.issues.push({origin:n,code:"too_big",maximum:i.maximum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),So=m("$ZodCheckMinLength",(e,i)=>{var r;V.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Le(t)&&t.length!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>t&&(a._zod.bag.minimum=i.minimum)}),e._zod.check=a=>{let t=a.value;if(t.length>=i.minimum)return;let n=Fr(t);a.issues.push({origin:n,code:"too_small",minimum:i.minimum,inclusive:!0,input:t,inst:e,continue:!i.abort})}}),xo=m("$ZodCheckLengthEquals",(e,i)=>{var r;V.init(e,i),(r=e._zod.def).when??(r.when=a=>{let t=a.value;return!Le(t)&&t.length!==void 0}),e._zod.onattach.push(a=>{let t=a._zod.bag;t.minimum=i.length,t.maximum=i.length,t.length=i.length}),e._zod.check=a=>{let t=a.value,n=t.length;if(n===i.length)return;let o=Fr(t),s=n>i.length;a.issues.push({origin:o,...s?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!i.abort})}}),st=m("$ZodCheckStringFormat",(e,i)=>{var r,a;V.init(e,i),e._zod.onattach.push(t=>{let n=t._zod.bag;n.format=i.format,i.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(i.pattern))}),i.pattern?(r=e._zod).check??(r.check=t=>{i.pattern.lastIndex=0,!i.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:i.format,input:t.value,...i.pattern?{pattern:i.pattern.toString()}:{},inst:e,continue:!i.abort})}):(a=e._zod).check??(a.check=()=>{})}),Io=m("$ZodCheckRegex",(e,i)=>{st.init(e,i),e._zod.check=r=>{i.pattern.lastIndex=0,!i.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:i.pattern.toString(),inst:e,continue:!i.abort})}}),wo=m("$ZodCheckLowerCase",(e,i)=>{i.pattern??(i.pattern=fo),st.init(e,i)}),zo=m("$ZodCheckUpperCase",(e,i)=>{i.pattern??(i.pattern=po),st.init(e,i)}),No=m("$ZodCheckIncludes",(e,i)=>{V.init(e,i);let r=Ue(i.includes),a=new RegExp(typeof i.position=="number"?`^.{${i.position}}${r}`:r);i.pattern=a,e._zod.onattach.push(t=>{let n=t._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(a)}),e._zod.check=t=>{t.value.includes(i.includes,i.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:t.value,inst:e,continue:!i.abort})}}),Uo=m("$ZodCheckStartsWith",(e,i)=>{V.init(e,i);let r=new RegExp(`^${Ue(i.prefix)}.*`);i.pattern??(i.pattern=r),e._zod.onattach.push(a=>{let t=a._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(i.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:a.value,inst:e,continue:!i.abort})}}),Oo=m("$ZodCheckEndsWith",(e,i)=>{V.init(e,i);let r=new RegExp(`.*${Ue(i.suffix)}$`);i.pattern??(i.pattern=r),e._zod.onattach.push(a=>{let t=a._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(i.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:a.value,inst:e,continue:!i.abort})}}),To=m("$ZodCheckProperty",(e,i)=>{V.init(e,i),e._zod.check=r=>{let a=i.schema._zod.run({value:r.value[i.property],issues:[]},{});if(a instanceof Promise)return a.then(t=>Dd(t,r,i.property));Dd(a,r,i.property)}}),Po=m("$ZodCheckMimeType",(e,i)=>{V.init(e,i);let r=new Set(i.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=i.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:i.mime,input:a.value.type,inst:e,continue:!i.abort})}}),Do=m("$ZodCheckOverwrite",(e,i)=>{V.init(e,i),e._zod.check=r=>{r.value=i.tx(r.value)}})}),Wr=class{constructor(i=[]){this.content=[],this.indent=0,this&&(this.args=i)}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i=="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}let r=i.split(`
+`).filter(n=>n),a=Math.min(...r.map(n=>n.length-n.trimStart().length)),t=r.map(n=>n.slice(a)).map(n=>" ".repeat(this.indent*2)+n);for(let n of t)this.content.push(n)}compile(){let i=Function,r=this?.args,a=[...(this?.content??[""]).map(t=>` ${t}`)];return new i(...r,a.join(`
+`))}},jo,nm=_(()=>{jo={major:4,minor:3,patch:5}});function Eo(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}function am(e){if(!gn.test(e))return!1;let i=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=i.padEnd(Math.ceil(i.length/4)*4,"=");return Eo(r)}function om(e,i=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let t=JSON.parse(atob(a));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||i&&(!("alg"in t)||t.alg!==i))}catch{return!1}}function Zd(e,i,r){e.issues.length&&i.issues.push(...ke(r,e.issues)),i.value[r]=e.value}function Vr(e,i,r,a,t){if(e.issues.length){if(t&&!(r in a))return;i.issues.push(...ke(r,e.issues))}e.value===void 0?r in a&&(i.value[r]=void 0):i.value[r]=e.value}function jd(e){let i=Object.keys(e.shape);for(let a of i)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${a}": expected a Zod schema`);let r=cc(e.shape);return{...e,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(r)}}function Ed(e,i,r,a,t,n){let o=[],s=t.keySet,l=t.catchall._zod,d=l.def.type,c=l.optout==="optional";for(let p in i){if(s.has(p))continue;if(d==="never"){o.push(p);continue}let h=l.run({value:i[p],issues:[]},a);h instanceof Promise?e.push(h.then(k=>Vr(k,r,p,i,c))):Vr(h,r,p,i,c)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:i,inst:n}),e.length?Promise.all(e).then(()=>r):r}function Ad(e,i,r,a){for(let n of e)if(n.issues.length===0)return i.value=n.value,i;let t=e.filter(n=>!He(n));return t.length===1?(i.value=t[0].value,t[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:r,errors:e.map(n=>n.issues.map(o=>be(o,a,ee())))}),i)}function Bd(e,i,r,a){let t=e.filter(n=>n.issues.length===0);return t.length===1?(i.value=t[0].value,i):(t.length===0?i.issues.push({code:"invalid_union",input:i.value,inst:r,errors:e.map(n=>n.issues.map(o=>be(o,a,ee())))}):i.issues.push({code:"invalid_union",input:i.value,inst:r,errors:[],inclusive:!1}),i)}function _a(e,i){if(e===i)return{valid:!0,data:e};if(e instanceof Date&&i instanceof Date&&+e==+i)return{valid:!0,data:e};if(Ke(e)&&Ke(i)){let r=Object.keys(i),a=Object.keys(e).filter(n=>r.indexOf(n)!==-1),t={...e,...i};for(let n of a){let o=_a(e[n],i[n]);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};t[n]=o.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(i)){if(e.length!==i.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let a=0;a<e.length;a++){let t=e[a],n=i[a],o=_a(t,n);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Rd(e,i,r){let a=new Map,t;for(let s of i.issues)if(s.code==="unrecognized_keys"){t??(t=s);for(let l of s.keys)a.has(l)||a.set(l,{}),a.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)a.has(l)||a.set(l,{}),a.get(l).r=!0;else e.issues.push(s);let n=[...a].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(n.length&&t&&e.issues.push({...t,keys:n}),He(e))return e;let o=_a(i.value,r.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Zr(e,i,r){e.issues.length&&i.issues.push(...ke(r,e.issues)),i.value[r]=e.value}function Cd(e,i,r,a,t,n,o){e.issues.length&&(di.has(typeof a)?r.issues.push(...ke(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:t,inst:n,issues:e.issues.map(s=>be(s,o,ee()))})),i.issues.length&&(di.has(typeof a)?r.issues.push(...ke(a,i.issues)):r.issues.push({origin:"map",code:"invalid_element",input:t,inst:n,key:a,issues:i.issues.map(s=>be(s,o,ee()))})),r.value.set(e.value,i.value)}function Fd(e,i){e.issues.length&&i.issues.push(...e.issues),i.value.add(e.value)}function Ld(e,i){return e.issues.length&&i===void 0?{issues:[],value:void 0}:e}function Md(e,i){return e.value===void 0&&(e.value=i.defaultValue),e}function Hd(e,i){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:i}),e}function jr(e,i,r){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:e.value,issues:e.issues},r)}function Er(e,i,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let a=i.transform(e.value,e);return a instanceof Promise?a.then(t=>Ar(e,t,i.out,r)):Ar(e,a,i.out,r)}else{let a=i.reverseTransform(e.value,e);return a instanceof Promise?a.then(t=>Ar(e,t,i.in,r)):Ar(e,a,i.in,r)}}function Ar(e,i,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:i,issues:e.issues},a)}function qd(e){return e.value=Object.freeze(e.value),e}function Jd(e,i,r,a){if(!e){let t={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(t.params=a._zod.def.params),i.issues.push(Mr(t))}}var N,ct,F,Ao,Bo,Ro,Co,Fo,Lo,Mo,Ho,qo,Jo,Wo,Vo,Ko,Go,Xo,Yo,Qo,es,ts,is,rs,ns,as,os,ss,Kr,us,bn,Gr,ls,ds,cs,ms,fs,ps,gs,hs,vs,bs,ya,$s,si,_s,ys,ks,Xr,Ss,xs,Is,ws,zs,Ns,Us,Yr,Os,Ts,Ps,Ds,Zs,js,Es,As,Bs,$n,Rs,Cs,Fs,Ls,Ms,Hs,sm=_(()=>{Zo(),pi(),xc(),go(),x(),nm(),x(),N=m("$ZodType",(e,i)=>{var r;e??(e={}),e._zod.def=i,e._zod.bag=e._zod.bag||{},e._zod.version=jo;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let t of a)for(let n of t._zod.onattach)n(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(o,s,l)=>{let d=He(o),c;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(o))continue}else if(d)continue;let h=o.issues.length,k=p._zod.check(o);if(k instanceof Promise&&l?.async===!1)throw new Ze;if(c||k instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await k,o.issues.length!==h&&(d||(d=He(o,h)))});else{if(o.issues.length===h)continue;d||(d=He(o,h))}}return c?c.then(()=>o):o},n=(o,s,l)=>{if(He(o))return o.aborted=!0,o;let d=t(s,a,l);if(d instanceof Promise){if(l.async===!1)throw new Ze;return d.then(c=>e._zod.parse(c,l))}return e._zod.parse(d,l)};e._zod.run=(o,s)=>{if(s.skipChecks)return e._zod.parse(o,s);if(s.direction==="backward"){let d=e._zod.parse({value:o.value,issues:[]},{...s,skipChecks:!0});return d instanceof Promise?d.then(c=>n(c,o,s)):n(d,o,s)}let l=e._zod.parse(o,s);if(l instanceof Promise){if(s.async===!1)throw new Ze;return l.then(d=>t(d,a,s))}return t(l,a,s)}}T(e,"~standard",()=>({validate:t=>{try{let n=pn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ea(e,t).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}))}),ct=m("$ZodString",(e,i)=>{N.init(e,i),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Fc(e._zod.bag),e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),F=m("$ZodStringFormat",(e,i)=>{st.init(e,i),ct.init(e,i)}),Ao=m("$ZodGUID",(e,i)=>{i.pattern??(i.pattern=Ya),F.init(e,i)}),Bo=m("$ZodUUID",(e,i)=>{if(i.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(r===void 0)throw Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=lt(r))}else i.pattern??(i.pattern=lt());F.init(e,i)}),Ro=m("$ZodEmail",(e,i)=>{i.pattern??(i.pattern=Qa),F.init(e,i)}),Co=m("$ZodURL",(e,i)=>{F.init(e,i),e._zod.check=r=>{try{let a=r.value.trim(),t=new URL(a);i.hostname&&(i.hostname.lastIndex=0,!i.hostname.test(t.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:r.value,inst:e,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,!i.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:r.value,inst:e,continue:!i.abort})),i.normalize?r.value=t.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!i.abort})}}}),Fo=m("$ZodEmoji",(e,i)=>{i.pattern??(i.pattern=Ic()),F.init(e,i)}),Lo=m("$ZodNanoID",(e,i)=>{i.pattern??(i.pattern=Ga),F.init(e,i)}),Mo=m("$ZodCUID",(e,i)=>{i.pattern??(i.pattern=qa),F.init(e,i)}),Ho=m("$ZodCUID2",(e,i)=>{i.pattern??(i.pattern=Ja),F.init(e,i)}),qo=m("$ZodULID",(e,i)=>{i.pattern??(i.pattern=Wa),F.init(e,i)}),Jo=m("$ZodXID",(e,i)=>{i.pattern??(i.pattern=Va),F.init(e,i)}),Wo=m("$ZodKSUID",(e,i)=>{i.pattern??(i.pattern=Ka),F.init(e,i)}),Vo=m("$ZodISODateTime",(e,i)=>{i.pattern??(i.pattern=Nc(i)),F.init(e,i)}),Ko=m("$ZodISODate",(e,i)=>{i.pattern??(i.pattern=oo),F.init(e,i)}),Go=m("$ZodISOTime",(e,i)=>{i.pattern??(i.pattern=zc(i)),F.init(e,i)}),Xo=m("$ZodISODuration",(e,i)=>{i.pattern??(i.pattern=Xa),F.init(e,i)}),Yo=m("$ZodIPv4",(e,i)=>{i.pattern??(i.pattern=eo),F.init(e,i),e._zod.bag.format="ipv4"}),Qo=m("$ZodIPv6",(e,i)=>{i.pattern??(i.pattern=to),F.init(e,i),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!i.abort})}}}),es=m("$ZodMAC",(e,i)=>{i.pattern??(i.pattern=Ac(i.delimiter)),F.init(e,i),e._zod.bag.format="mac"}),ts=m("$ZodCIDRv4",(e,i)=>{i.pattern??(i.pattern=io),F.init(e,i)}),is=m("$ZodCIDRv6",(e,i)=>{i.pattern??(i.pattern=ro),F.init(e,i),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw Error();let[t,n]=a;if(!n)throw Error();let o=Number(n);if(`${o}`!==n||o<0||o>128)throw Error();new URL(`http://[${t}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!i.abort})}}}),rs=m("$ZodBase64",(e,i)=>{i.pattern??(i.pattern=no),F.init(e,i),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Eo(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!i.abort})}}),ns=m("$ZodBase64URL",(e,i)=>{i.pattern??(i.pattern=gn),F.init(e,i),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{am(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!i.abort})}}),as=m("$ZodE164",(e,i)=>{i.pattern??(i.pattern=ao),F.init(e,i)}),os=m("$ZodJWT",(e,i)=>{F.init(e,i),e._zod.check=r=>{om(r.value,i.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!i.abort})}}),ss=m("$ZodCustomStringFormat",(e,i)=>{F.init(e,i),e._zod.check=r=>{i.fn(r.value)||r.issues.push({code:"invalid_format",format:i.format,input:r.value,inst:e,continue:!i.abort})}}),Kr=m("$ZodNumber",(e,i)=>{N.init(e,i),e._zod.pattern=e._zod.bag.pattern??Jr,e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=Number(r.value)}catch{}let t=r.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return r;let n=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...n?{received:n}:{}}),r}}),us=m("$ZodNumberFormat",(e,i)=>{vo.init(e,i),Kr.init(e,i)}),bn=m("$ZodBoolean",(e,i)=>{N.init(e,i),e._zod.pattern=lo,e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=!!r.value}catch{}let t=r.value;return typeof t=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),r}}),Gr=m("$ZodBigInt",(e,i)=>{N.init(e,i),e._zod.pattern=so,e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),ls=m("$ZodBigIntFormat",(e,i)=>{bo.init(e,i),Gr.init(e,i)}),ds=m("$ZodSymbol",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;return typeof t=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),r}}),cs=m("$ZodUndefined",(e,i)=>{N.init(e,i),e._zod.pattern=mo,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let t=r.value;return typeof t>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),r}}),ms=m("$ZodNull",(e,i)=>{N.init(e,i),e._zod.pattern=co,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let t=r.value;return t===null||r.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),r}}),fs=m("$ZodAny",(e,i)=>{N.init(e,i),e._zod.parse=r=>r}),ps=m("$ZodUnknown",(e,i)=>{N.init(e,i),e._zod.parse=r=>r}),gs=m("$ZodNever",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),hs=m("$ZodVoid",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;return typeof t>"u"||r.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),r}}),vs=m("$ZodDate",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{if(i.coerce)try{r.value=new Date(r.value)}catch{}let t=r.value,n=t instanceof Date;return n&&!Number.isNaN(t.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:t,...n?{received:"Invalid Date"}:{},inst:e}),r}}),bs=m("$ZodArray",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;if(!Array.isArray(t))return r.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),r;r.value=Array(t.length);let n=[];for(let o=0;o<t.length;o++){let s=t[o],l=i.element._zod.run({value:s,issues:[]},a);l instanceof Promise?n.push(l.then(d=>Zd(d,r,o))):Zd(l,r,o)}return n.length?Promise.all(n).then(()=>r):r}}),ya=m("$ZodObject",(e,i)=>{if(N.init(e,i),!Object.getOwnPropertyDescriptor(i,"shape")?.get){let o=i.shape;Object.defineProperty(i,"shape",{get:()=>{let s={...o};return Object.defineProperty(i,"shape",{value:s}),s}})}let r=oi(()=>jd(i));T(e._zod,"propValues",()=>{let o=i.shape,s={};for(let l in o){let d=o[l]._zod;if(d.values){s[l]??(s[l]=new Set);for(let c of d.values)s[l].add(c)}}return s});let a=ut,t=i.catchall,n;e._zod.parse=(o,s)=>{n??(n=r.value);let l=o.value;if(!a(l))return o.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),o;o.value={};let d=[],c=n.shape;for(let p of n.keys){let h=c[p],k=h._zod.optout==="optional",O=h._zod.run({value:l[p],issues:[]},s);O instanceof Promise?d.push(O.then(ye=>Vr(ye,o,p,l,k))):Vr(O,o,p,l,k)}return t?Ed(d,l,o,s,r.value,e):d.length?Promise.all(d).then(()=>o):o}}),$s=m("$ZodObjectJIT",(e,i)=>{ya.init(e,i);let r=e._zod.parse,a=oi(()=>jd(i)),t=p=>{let h=new Wr(["shape","payload","ctx"]),k=a.value,O=q=>{let W=ha(q);return`shape[${W}]._zod.run({ value: input[${W}], issues: [] }, ctx)`};h.write("const input = payload.value;");let ye=Object.create(null),Jt=0;for(let q of k.keys)ye[q]=`key_${Jt++}`;h.write("const newResult = {};");for(let q of k.keys){let W=ye[q],ne=ha(q),yp=p[q]?._zod?.optout==="optional";h.write(`const ${W} = ${O(q)};`),yp?h.write(`
+ if (${W}.issues.length) {
+ if (${ne} in input) {
+ payload.issues = payload.issues.concat(${W}.issues.map(iss => ({
+ ...iss,
+ path: iss.path ? [${ne}, ...iss.path] : [${ne}]
+ })));
+ }
+ }
+
+ if (${W}.value === undefined) {
+ if (${ne} in input) {
+ newResult[${ne}] = undefined;
+ }
+ } else {
+ newResult[${ne}] = ${W}.value;
+ }
+
+ `):h.write(`
+ if (${W}.issues.length) {
+ payload.issues = payload.issues.concat(${W}.issues.map(iss => ({
+ ...iss,
+ path: iss.path ? [${ne}, ...iss.path] : [${ne}]
+ })));
+ }
+
+ if (${W}.value === undefined) {
+ if (${ne} in input) {
+ newResult[${ne}] = undefined;
+ }
+ } else {
+ newResult[${ne}] = ${W}.value;
+ }
+
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");let wr=h.compile();return(q,W)=>wr(p,q,W)},n,o=ut,s=!li.jitless,l=s&&Oa.value,d=i.catchall,c;e._zod.parse=(p,h)=>{c??(c=a.value);let k=p.value;return o(k)?s&&l&&h?.async===!1&&h.jitless!==!0?(n||(n=t(i.shape)),p=n(p,h),d?Ed([],k,p,h,c,e):p):r(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),p)}}),si=m("$ZodUnion",(e,i)=>{N.init(e,i),T(e._zod,"optin",()=>i.options.some(t=>t._zod.optin==="optional")?"optional":void 0),T(e._zod,"optout",()=>i.options.some(t=>t._zod.optout==="optional")?"optional":void 0),T(e._zod,"values",()=>{if(i.options.every(t=>t._zod.values))return new Set(i.options.flatMap(t=>Array.from(t._zod.values)))}),T(e._zod,"pattern",()=>{if(i.options.every(t=>t._zod.pattern)){let t=i.options.map(n=>n._zod.pattern);return new RegExp(`^(${t.map(n=>Rr(n.source)).join("|")})$`)}});let r=i.options.length===1,a=i.options[0]._zod.run;e._zod.parse=(t,n)=>{if(r)return a(t,n);let o=!1,s=[];for(let l of i.options){let d=l._zod.run({value:t.value,issues:[]},n);if(d instanceof Promise)s.push(d),o=!0;else{if(d.issues.length===0)return d;s.push(d)}}return o?Promise.all(s).then(l=>Ad(l,t,e,n)):Ad(s,t,e,n)}}),_s=m("$ZodXor",(e,i)=>{si.init(e,i),i.inclusive=!1;let r=i.options.length===1,a=i.options[0]._zod.run;e._zod.parse=(t,n)=>{if(r)return a(t,n);let o=!1,s=[];for(let l of i.options){let d=l._zod.run({value:t.value,issues:[]},n);d instanceof Promise?(s.push(d),o=!0):s.push(d)}return o?Promise.all(s).then(l=>Bd(l,t,e,n)):Bd(s,t,e,n)}}),ys=m("$ZodDiscriminatedUnion",(e,i)=>{i.inclusive=!1,si.init(e,i);let r=e._zod.parse;T(e._zod,"propValues",()=>{let t={};for(let n of i.options){let o=n._zod.propValues;if(!o||Object.keys(o).length===0)throw Error(`Invalid discriminated union option at index "${i.options.indexOf(n)}"`);for(let[s,l]of Object.entries(o)){t[s]||(t[s]=new Set);for(let d of l)t[s].add(d)}}return t});let a=oi(()=>{let t=i.options,n=new Map;for(let o of t){let s=o._zod.propValues?.[i.discriminator];if(!s||s.size===0)throw Error(`Invalid discriminated union option at index "${i.options.indexOf(o)}"`);for(let l of s){if(n.has(l))throw Error(`Duplicate discriminator value "${String(l)}"`);n.set(l,o)}}return n});e._zod.parse=(t,n)=>{let o=t.value;if(!ut(o))return t.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),t;let s=a.value.get(o?.[i.discriminator]);return s?s._zod.run(t,n):i.unionFallback?r(t,n):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:o,path:[i.discriminator],inst:e}),t)}}),ks=m("$ZodIntersection",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value,n=i.left._zod.run({value:t,issues:[]},a),o=i.right._zod.run({value:t,issues:[]},a);return n instanceof Promise||o instanceof Promise?Promise.all([n,o]).then(([s,l])=>Rd(r,s,l)):Rd(r,n,o)}}),Xr=m("$ZodTuple",(e,i)=>{N.init(e,i);let r=i.items;e._zod.parse=(a,t)=>{let n=a.value;if(!Array.isArray(n))return a.issues.push({input:n,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let o=[],s=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!i.rest){let c=n.length>r.length,p=n.length<l-1;if(c||p)return a.issues.push({...c?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:n,inst:e,origin:"array"}),a}let d=-1;for(let c of r){if(d++,d>=n.length&&d>=l)continue;let p=c._zod.run({value:n[d],issues:[]},t);p instanceof Promise?o.push(p.then(h=>Zr(h,a,d))):Zr(p,a,d)}if(i.rest){let c=n.slice(r.length);for(let p of c){d++;let h=i.rest._zod.run({value:p,issues:[]},t);h instanceof Promise?o.push(h.then(k=>Zr(k,a,d))):Zr(h,a,d)}}return o.length?Promise.all(o).then(()=>a):a}}),Ss=m("$ZodRecord",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;if(!Ke(t))return r.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),r;let n=[],o=i.keyType._zod.values;if(o){r.value={};let s=new Set;for(let d of o)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){s.add(typeof d=="number"?d.toString():d);let c=i.valueType._zod.run({value:t[d],issues:[]},a);c instanceof Promise?n.push(c.then(p=>{p.issues.length&&r.issues.push(...ke(d,p.issues)),r.value[d]=p.value})):(c.issues.length&&r.issues.push(...ke(d,c.issues)),r.value[d]=c.value)}let l;for(let d in t)s.has(d)||(l=l??[],l.push(d));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(t)){if(s==="__proto__")continue;let l=i.keyType._zod.run({value:s,issues:[]},a);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Jr.test(s)&&l.issues.length&&l.issues.some(c=>c.code==="invalid_type"&&c.expected==="number")){let c=i.keyType._zod.run({value:Number(s),issues:[]},a);if(c instanceof Promise)throw Error("Async schemas not supported in object keys currently");c.issues.length===0&&(l=c)}if(l.issues.length){i.mode==="loose"?r.value[s]=t[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(c=>be(c,a,ee())),input:s,path:[s],inst:e});continue}let d=i.valueType._zod.run({value:t[s],issues:[]},a);d instanceof Promise?n.push(d.then(c=>{c.issues.length&&r.issues.push(...ke(s,c.issues)),r.value[l.value]=c.value})):(d.issues.length&&r.issues.push(...ke(s,d.issues)),r.value[l.value]=d.value)}}return n.length?Promise.all(n).then(()=>r):r}}),xs=m("$ZodMap",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;if(!(t instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),r;let n=[];r.value=new Map;for(let[o,s]of t){let l=i.keyType._zod.run({value:o,issues:[]},a),d=i.valueType._zod.run({value:s,issues:[]},a);l instanceof Promise||d instanceof Promise?n.push(Promise.all([l,d]).then(([c,p])=>{Cd(c,p,r,o,t,e,a)})):Cd(l,d,r,o,t,e,a)}return n.length?Promise.all(n).then(()=>r):r}}),Is=m("$ZodSet",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;if(!(t instanceof Set))return r.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),r;let n=[];r.value=new Set;for(let o of t){let s=i.valueType._zod.run({value:o,issues:[]},a);s instanceof Promise?n.push(s.then(l=>Fd(l,r))):Fd(s,r)}return n.length?Promise.all(n).then(()=>r):r}}),ws=m("$ZodEnum",(e,i)=>{N.init(e,i);let r=Ua(i.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(t=>di.has(typeof t)).map(t=>typeof t=="string"?Ue(t):t.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let o=t.value;return a.has(o)||t.issues.push({code:"invalid_value",values:r,input:o,inst:e}),t}}),zs=m("$ZodLiteral",(e,i)=>{if(N.init(e,i),i.values.length===0)throw Error("Cannot create literal schema with no valid values");let r=new Set(i.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${i.values.map(a=>typeof a=="string"?Ue(a):a?Ue(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,t)=>{let n=a.value;return r.has(n)||a.issues.push({code:"invalid_value",values:i.values,input:n,inst:e}),a}}),Ns=m("$ZodFile",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{let t=r.value;return t instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),r}}),Us=m("$ZodTransform",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ui(e.constructor.name);let t=i.transform(r.value,r);if(a.async)return(t instanceof Promise?t:Promise.resolve(t)).then(n=>(r.value=n,r));if(t instanceof Promise)throw new Ze;return r.value=t,r}}),Yr=m("$ZodOptional",(e,i)=>{N.init(e,i),e._zod.optin="optional",e._zod.optout="optional",T(e._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,void 0]):void 0),T(e._zod,"pattern",()=>{let r=i.innerType._zod.pattern;return r?new RegExp(`^(${Rr(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(i.innerType._zod.optin==="optional"){let t=i.innerType._zod.run(r,a);return t instanceof Promise?t.then(n=>Ld(n,r.value)):Ld(t,r.value)}return r.value===void 0?r:i.innerType._zod.run(r,a)}}),Os=m("$ZodExactOptional",(e,i)=>{Yr.init(e,i),T(e._zod,"values",()=>i.innerType._zod.values),T(e._zod,"pattern",()=>i.innerType._zod.pattern),e._zod.parse=(r,a)=>i.innerType._zod.run(r,a)}),Ts=m("$ZodNullable",(e,i)=>{N.init(e,i),T(e._zod,"optin",()=>i.innerType._zod.optin),T(e._zod,"optout",()=>i.innerType._zod.optout),T(e._zod,"pattern",()=>{let r=i.innerType._zod.pattern;return r?new RegExp(`^(${Rr(r.source)}|null)$`):void 0}),T(e._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:i.innerType._zod.run(r,a)}),Ps=m("$ZodDefault",(e,i)=>{N.init(e,i),e._zod.optin="optional",T(e._zod,"values",()=>i.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return i.innerType._zod.run(r,a);if(r.value===void 0)return r.value=i.defaultValue,r;let t=i.innerType._zod.run(r,a);return t instanceof Promise?t.then(n=>Md(n,i)):Md(t,i)}}),Ds=m("$ZodPrefault",(e,i)=>{N.init(e,i),e._zod.optin="optional",T(e._zod,"values",()=>i.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=i.defaultValue),i.innerType._zod.run(r,a))}),Zs=m("$ZodNonOptional",(e,i)=>{N.init(e,i),T(e._zod,"values",()=>{let r=i.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let t=i.innerType._zod.run(r,a);return t instanceof Promise?t.then(n=>Hd(n,e)):Hd(t,e)}}),js=m("$ZodSuccess",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ui("ZodSuccess");let t=i.innerType._zod.run(r,a);return t instanceof Promise?t.then(n=>(r.value=n.issues.length===0,r)):(r.value=t.issues.length===0,r)}}),Es=m("$ZodCatch",(e,i)=>{N.init(e,i),T(e._zod,"optin",()=>i.innerType._zod.optin),T(e._zod,"optout",()=>i.innerType._zod.optout),T(e._zod,"values",()=>i.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return i.innerType._zod.run(r,a);let t=i.innerType._zod.run(r,a);return t instanceof Promise?t.then(n=>(r.value=n.value,n.issues.length&&(r.value=i.catchValue({...r,error:{issues:n.issues.map(o=>be(o,a,ee()))},input:r.value}),r.issues=[]),r)):(r.value=t.value,t.issues.length&&(r.value=i.catchValue({...r,error:{issues:t.issues.map(n=>be(n,a,ee()))},input:r.value}),r.issues=[]),r)}}),As=m("$ZodNaN",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Bs=m("$ZodPipe",(e,i)=>{N.init(e,i),T(e._zod,"values",()=>i.in._zod.values),T(e._zod,"optin",()=>i.in._zod.optin),T(e._zod,"optout",()=>i.out._zod.optout),T(e._zod,"propValues",()=>i.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){let n=i.out._zod.run(r,a);return n instanceof Promise?n.then(o=>jr(o,i.in,a)):jr(n,i.in,a)}let t=i.in._zod.run(r,a);return t instanceof Promise?t.then(n=>jr(n,i.out,a)):jr(t,i.out,a)}}),$n=m("$ZodCodec",(e,i)=>{N.init(e,i),T(e._zod,"values",()=>i.in._zod.values),T(e._zod,"optin",()=>i.in._zod.optin),T(e._zod,"optout",()=>i.out._zod.optout),T(e._zod,"propValues",()=>i.in._zod.propValues),e._zod.parse=(r,a)=>{if((a.direction||"forward")==="forward"){let t=i.in._zod.run(r,a);return t instanceof Promise?t.then(n=>Er(n,i,a)):Er(t,i,a)}else{let t=i.out._zod.run(r,a);return t instanceof Promise?t.then(n=>Er(n,i,a)):Er(t,i,a)}}}),Rs=m("$ZodReadonly",(e,i)=>{N.init(e,i),T(e._zod,"propValues",()=>i.innerType._zod.propValues),T(e._zod,"values",()=>i.innerType._zod.values),T(e._zod,"optin",()=>i.innerType?._zod?.optin),T(e._zod,"optout",()=>i.innerType?._zod?.optout),e._zod.parse=(r,a)=>{if(a.direction==="backward")return i.innerType._zod.run(r,a);let t=i.innerType._zod.run(r,a);return t instanceof Promise?t.then(qd):qd(t)}}),Cs=m("$ZodTemplateLiteral",(e,i)=>{N.init(e,i);let r=[];for(let a of i.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let t=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${a._zod.traits}`);let n=t.startsWith("^")?1:0,o=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(n,o))}else if(a===null||Ta.has(typeof a))r.push(Ue(`${a}`));else throw Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,t)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:i.format??"template_literal",pattern:e._zod.pattern.source}),a)}),Fs=m("$ZodFunction",(e,i)=>(N.init(e,i),e._def=i,e._zod.def=i,e.implement=r=>{if(typeof r!="function")throw Error("implement() must be called with a function");return function(...a){let t=e._def.input?Hr(e._def.input,a):a,n=Reflect.apply(r,this,t);return e._def.output?Hr(e._def.output,n):n}},e.implementAsync=r=>{if(typeof r!="function")throw Error("implementAsync() must be called with a function");return async function(...a){let t=e._def.input?await qr(e._def.input,a):a,n=await Reflect.apply(r,this,t);return e._def.output?await qr(e._def.output,n):n}},e._zod.parse=(r,a)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new Xr({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>new e.constructor({type:"function",input:e._def.input,output:r}),e)),Ls=m("$ZodPromise",(e,i)=>{N.init(e,i),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(t=>i.innerType._zod.run({value:t,issues:[]},a))}),Ms=m("$ZodLazy",(e,i)=>{N.init(e,i),T(e._zod,"innerType",()=>i.getter()),T(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),T(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),T(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),T(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),Hs=m("$ZodCustom",(e,i)=>{V.init(e,i),N.init(e,i),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,t=i.fn(a);if(t instanceof Promise)return t.then(n=>Jd(n,r,a,e));Jd(t,r,a,e)}})});function Yp(){return{localeError:Qp()}}var Qp=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function i(t){return e[t]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${n}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return t.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${I(t.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${t.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${t.minimum.toString()} ${o.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${t.prefix}"`:n.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${n.suffix}"`:n.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${n.includes}"`:n.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${n.pattern}`:`${r[n.format]??t.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${v(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},eg=_(()=>{x()});function tg(){return{localeError:ig()}}var ig=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function i(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${n}, daxil olan ${s}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${I(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${n}${t.maximum.toString()} ${o.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${n}${t.minimum.toString()} ${o.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${n.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:n.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${n.suffix}" il\u0259 bitm\u0259lidir`:n.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${n.includes}" daxil olmal\u0131d\u0131r`:n.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${n.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[n.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},rg=_(()=>{x()});function Wd(e,i,r,a){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19?a:n===1?i:n>=2&&n<=4?r:a}function ng(){return{localeError:ag()}}var ag=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function i(t){return e[t]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},a={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${n}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${I(t.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);if(o){let s=Number(t.maximum),l=Wd(s,o.unit.one,o.unit.few,o.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${n}${t.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);if(o){let s=Number(t.minimum),l=Wd(s,o.unit.one,o.unit.few,o.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${n}${t.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[n.format]??t.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},og=_(()=>{x()});function sg(){return{localeError:ug()}}var ug=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function i(t){return e[t]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${I(t.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${n}${t.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${n}${t.minimum.toString()} ${o.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;if(n.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${n.prefix}"`;if(n.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${n.suffix}"`;if(n.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${n.includes}"`;if(n.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${n.pattern}`;let o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return n.format==="emoji"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="datetime"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="date"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),n.format==="time"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="duration"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${o} ${r[n.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${v(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},lg=_(()=>{x()});function dg(){return{localeError:cg()}}var cg=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function i(t){return e[t]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${n}, s'ha rebut ${s}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${I(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(t.values," o ")}`;case"too_big":{let n=t.inclusive?"com a m\xE0xim":"menys de",o=i(t.origin);return o?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${n} ${t.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${n} ${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?"com a m\xEDnim":"m\xE9s de",o=i(t.origin);return o?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${n} ${t.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${n} ${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${n.prefix}"`:n.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${n.suffix}"`:n.format==="includes"?`Format inv\xE0lid: ha d'incloure "${n.includes}"`:n.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${n.pattern}`:`Format inv\xE0lid per a ${r[n.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}},mg=_(()=>{x()});function fg(){return{localeError:pg()}}var pg=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function i(t){return e[t]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${n}, obdr\u017Eeno ${s}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${I(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${n}${t.maximum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${n}${t.minimum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${n.prefix}"`:n.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${n.suffix}"`:n.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${n.includes}"`:n.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${n.pattern}`:`Neplatn\xFD form\xE1t ${r[n.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}},gg=_(()=>{x()});function hg(){return{localeError:vg()}}var vg=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function i(t){return e[t]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${s}`:`Ugyldigt input: forventede ${n}, fik ${s}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${I(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin),s=a[t.origin]??t.origin;return o?`For stor: forventede ${s??"value"} ${o.verb} ${n} ${t.maximum.toString()} ${o.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${n} ${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin),s=a[t.origin]??t.origin;return o?`For lille: forventede ${s} ${o.verb} ${n} ${t.minimum.toString()} ${o.unit}`:`For lille: forventede ${s} havde ${n} ${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Ugyldig streng: skal starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: skal ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: skal indeholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${r[n.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}},bg=_(()=>{x()});function $g(){return{localeError:_g()}}var _g=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function i(t){return e[t]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},a={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${n}, erhalten ${s}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${I(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${n}${t.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${n}${t.maximum.toString()} ist`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Zu klein: erwartet, dass ${t.origin} ${n}${t.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${n}${t.minimum.toString()} ist`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Ung\xFCltiger String: muss mit "${n.prefix}" beginnen`:n.format==="ends_with"?`Ung\xFCltiger String: muss mit "${n.suffix}" enden`:n.format==="includes"?`Ung\xFCltiger String: muss "${n.includes}" enthalten`:n.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${n.pattern} entsprechen`:`Ung\xFCltig: ${r[n.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}},yg=_(()=>{x()});function um(){return{localeError:kg()}}var kg=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function i(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return`Invalid input: expected ${n}, received ${s}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${I(t.values[0])}`:`Invalid option: expected one of ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Too big: expected ${t.origin??"value"} to have ${n}${t.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Too small: expected ${t.origin} to have ${n}${t.minimum.toString()} ${o.unit}`:`Too small: expected ${t.origin} to be ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}},lm=_(()=>{x()});function Sg(){return{localeError:xg()}}var xg=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function i(t){return e[t]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${n}, ricevi\u011Dis ${s}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${I(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${n}${t.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${n}${t.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}},Ig=_(()=>{x()});function wg(){return{localeError:zg()}}var zg=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function i(t){return e[t]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${n}, recibido ${s}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${I(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin),s=a[t.origin]??t.origin;return o?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${n}${t.maximum.toString()} ${o.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin),s=a[t.origin]??t.origin;return o?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${n}${t.minimum.toString()} ${o.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${n.prefix}"`:n.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${n.suffix}"`:n.format==="includes"?`Cadena inv\xE1lida: debe incluir "${n.includes}"`:n.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${n.pattern}`:`Inv\xE1lido ${r[n.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${a[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${a[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}},Ng=_(()=>{x()});function Ug(){return{localeError:Og()}}var Og=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function i(t){return e[t]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${n} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${I(t.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${v(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${t.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${n}${t.minimum.toString()} ${o.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${n}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:n.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:n.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${n.includes}" \u0628\u0627\u0634\u062F`:n.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${n.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[n.format]??t.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},Tg=_(()=>{x()});function Pg(){return{localeError:Dg()}}var Dg=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function i(t){return e[t]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${n}, oli ${s}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${I(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Liian suuri: ${o.subject} t\xE4ytyy olla ${n}${t.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Liian pieni: ${o.subject} t\xE4ytyy olla ${n}${t.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${n.prefix}"`:n.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${n.suffix}"`:n.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${n.includes}"`:n.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${n.pattern}`:`Virheellinen ${r[n.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},Zg=_(()=>{x()});function jg(){return{localeError:Eg()}}var Eg=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function i(t){return e[t]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},a={nan:"NaN",number:"nombre",array:"tableau"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${n} attendu, ${s} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${I(t.values[0])} attendu`:`Option invalide : une valeur parmi ${v(t.values,"|")} attendue`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Trop grand : ${t.origin??"valeur"} doit ${o.verb} ${n}${t.maximum.toString()} ${o.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${t.origin??"valeur"} doit \xEAtre ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Trop petit : ${t.origin} doit ${o.verb} ${n}${t.minimum.toString()} ${o.unit}`:`Trop petit : ${t.origin} doit \xEAtre ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${n.pattern}`:`${r[n.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${v(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},Ag=_(()=>{x()});function Bg(){return{localeError:Rg()}}var Rg=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function i(t){return e[t]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${n}, re\xE7u ${s}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${I(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"\u2264":"<",o=i(t.origin);return o?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${n}${t.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?"\u2265":">",o=i(t.origin);return o?`Trop petit : attendu que ${t.origin} ait ${n}${t.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${t.origin} soit ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${n.pattern}`:`${r[n.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${v(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},Cg=_(()=>{x()});function Fg(){return{localeError:Lg()}}var Lg=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},i={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=d=>d?e[d]:void 0,a=d=>{let c=r(d);return c?c.label:d??e.unknown.label},t=d=>`\u05D4${a(d)}`,n=d=>(r(d)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",o=d=>d?i[d]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return d=>{switch(d.code){case"invalid_type":{let c=d.expected,p=l[c??""]??a(c),h=w(d.input),k=l[h]??e[h]?.label??h;return/^[A-Z]/.test(d.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${d.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${k}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${k}`}case"invalid_value":{if(d.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${I(d.values[0])}`;let c=d.values.map(h=>I(h));if(d.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let p=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let c=o(d.origin),p=t(d.origin??"value");if(d.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.maximum.toString()} ${c?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(d.origin==="number"){let O=d.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${d.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${O}`}if(d.origin==="array"||d.origin==="set"){let O=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",ye=d.inclusive?`${d.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${d.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${O} \u05DC\u05D4\u05DB\u05D9\u05DC ${ye}`.trim()}let h=d.inclusive?"<=":"<",k=n(d.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${p} ${k} ${h}${d.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${k} ${h}${d.maximum.toString()}`}case"too_small":{let c=o(d.origin),p=t(d.origin??"value");if(d.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.minimum.toString()} ${c?.unit??""} ${d.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(d.origin==="number"){let O=d.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${d.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${O}`}if(d.origin==="array"||d.origin==="set"){let O=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(d.minimum===1&&d.inclusive){let Jt=(d.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${O} \u05DC\u05D4\u05DB\u05D9\u05DC ${Jt}`}let ye=d.inclusive?`${d.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${d.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${O} \u05DC\u05D4\u05DB\u05D9\u05DC ${ye}`.trim()}let h=d.inclusive?">=":">",k=n(d.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${p} ${k} ${h}${d.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${k} ${h}${d.minimum.toString()}`}case"invalid_format":{let c=d;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let p=s[c.format],h=p?.label??c.format,k=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${k}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${d.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${d.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${d.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(d.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${t(d.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},Mg=_(()=>{x()});function Hg(){return{localeError:qg()}}var qg=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function i(t){return e[t]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},a={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${n}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${I(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${n}${t.maximum.toString()} ${o.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${n}${t.minimum.toString()} ${o.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\xC9rv\xE9nytelen string: "${n.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:n.format==="ends_with"?`\xC9rv\xE9nytelen string: "${n.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:n.format==="includes"?`\xC9rv\xE9nytelen string: "${n.includes}" \xE9rt\xE9ket kell tartalmaznia`:n.format==="regex"?`\xC9rv\xE9nytelen string: ${n.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[n.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},Jg=_(()=>{x()});function Vd(e,i,r){return Math.abs(e)===1?i:r}function ot(e){if(!e)return"";let i=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(i.includes(r)?"\u0576":"\u0568")}function Wg(){return{localeError:Vg()}}var Vg=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function i(t){return e[t]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},a={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${n}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return t.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${I(t.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);if(o){let s=Number(t.maximum),l=Vd(s,o.unit.one,o.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ot(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${t.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ot(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);if(o){let s=Number(t.minimum),l=Vd(s,o.unit.one,o.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ot(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${t.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ot(t.origin)} \u056C\u056B\u0576\u056B ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${n.prefix}"-\u0578\u057E`:n.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${n.suffix}"-\u0578\u057E`:n.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${n.includes}"`:n.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${n.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[n.format]??t.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${v(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${ot(t.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${ot(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},Kg=_(()=>{x()});function Gg(){return{localeError:Xg()}}var Xg=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function i(t){return e[t]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${n}, diterima ${s}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${I(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${n}${t.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Terlalu kecil: diharapkan ${t.origin} memiliki ${n}${t.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`String tidak valid: harus dimulai dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak valid: harus berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak valid: harus menyertakan "${n.includes}"`:n.format==="regex"?`String tidak valid: harus sesuai pola ${n.pattern}`:`${r[n.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}},Yg=_(()=>{x()});function Qg(){return{localeError:eh()}}var eh=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function i(t){return e[t]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},a={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${n}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${I(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${n}${t.maximum.toString()} ${o.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${n}${t.minimum.toString()} ${o.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${n.prefix}"`:n.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${n.suffix}"`:n.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${n.includes}"`:n.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${v(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}},th=_(()=>{x()});function ih(){return{localeError:rh()}}var rh=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function i(t){return e[t]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${s}`:`Input non valido: atteso ${n}, ricevuto ${s}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${I(t.values[0])}`:`Opzione non valida: atteso uno tra ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Troppo grande: ${t.origin??"valore"} deve avere ${n}${t.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Troppo piccolo: ${t.origin} deve avere ${n}${t.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${t.origin} deve essere ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Stringa non valida: deve iniziare con "${n.prefix}"`:n.format==="ends_with"?`Stringa non valida: deve terminare con "${n.suffix}"`:n.format==="includes"?`Stringa non valida: deve includere "${n.includes}"`:n.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${n.pattern}`:`Invalid ${r[n.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${v(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}},nh=_(()=>{x()});function ah(){return{localeError:oh()}}var oh=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function i(t){return e[t]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},a={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${n}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${I(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let n=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",o=i(t.origin);return o?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${o.unit??"\u8981\u7D20"}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let n=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",o=i(t.origin);return o?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${o.unit}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${n.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[n.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${t.keys.length>1?"\u7FA4":""}: ${v(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},sh=_(()=>{x()});function uh(){return{localeError:lh()}}var lh=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function i(t){return e[t]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},a={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return t.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${I(t.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${v(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${o.verb} ${n}${t.maximum.toString()} ${o.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${o.verb} ${n}${t.minimum.toString()} ${o.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${n.prefix}"-\u10D8\u10D7`:n.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${n.suffix}"-\u10D8\u10D7`:n.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${n.includes}"-\u10E1`:n.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${n.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[n.format]??t.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${t.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},dh=_(()=>{x()});function dm(){return{localeError:ch()}}var ch=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function i(t){return e[t]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},a={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return t.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${I(t.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${t.maximum.toString()} ${o.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${n} ${t.minimum.toString()} ${o.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${n} ${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${n.prefix}"`:n.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${n.suffix}"`:n.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${n.includes}"`:n.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${n.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[n.format]??t.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(t.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},cm=_(()=>{x()});function mh(){return dm()}var fh=_(()=>{cm()});function ph(){return{localeError:gh()}}var gh=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function i(t){return e[t]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${n}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${I(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let n=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",o=n==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=i(t.origin),l=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${l} ${n}${o}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${n}${o}`}case"too_small":{let n=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",o=n==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=i(t.origin),l=s?.unit??"\uC694\uC18C";return s?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${l} ${n}${o}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${n}${o}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:n.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${n.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[n.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},hh=_(()=>{x()});function Kd(e){let i=Math.abs(e),r=i%10,a=i%100;return a>=11&&a<=19||r===0?"many":r===1?"one":"few"}function vh(){return{localeError:bh()}}var ni=e=>e.charAt(0).toUpperCase()+e.slice(1),bh=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function i(t,n,o,s){let l=e[t]??null;return l===null?l:{unit:l.unit[n],verb:l.verb[s][o?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},a={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${n}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${I(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(t.values,"|")} pasirinkim\u0173`;case"too_big":{let n=a[t.origin]??t.origin,o=i(t.origin,Kd(Number(t.maximum)),t.inclusive??!1,"smaller");if(o?.verb)return`${ni(n??t.origin??"reik\u0161m\u0117")} ${o.verb} ${t.maximum.toString()} ${o.unit??"element\u0173"}`;let s=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ni(n??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${t.maximum.toString()} ${o?.unit}`}case"too_small":{let n=a[t.origin]??t.origin,o=i(t.origin,Kd(Number(t.minimum)),t.inclusive??!1,"bigger");if(o?.verb)return`${ni(n??t.origin??"reik\u0161m\u0117")} ${o.verb} ${t.minimum.toString()} ${o.unit??"element\u0173"}`;let s=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ni(n??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${t.minimum.toString()} ${o?.unit}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${n.prefix}"`:n.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${n.includes}"`:n.format==="regex"?`Eilut\u0117 privalo atitikti ${n.pattern}`:`Neteisingas ${r[n.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${v(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let n=a[t.origin]??t.origin;return`${ni(n??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},$h=_(()=>{x()});function _h(){return{localeError:yh()}}var yh=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function i(t){return e[t]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},a={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${I(t.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${n}${t.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${n}${t.minimum.toString()} ${o.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${n.pattern}`:`Invalid ${r[n.format]??t.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},kh=_(()=>{x()});function Sh(){return{localeError:xh()}}var xh=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function i(t){return e[t]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${s}`:`Input tidak sah: dijangka ${n}, diterima ${s}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${I(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Terlalu besar: dijangka ${t.origin??"nilai"} ${o.verb} ${n}${t.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Terlalu kecil: dijangka ${t.origin} ${o.verb} ${n}${t.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`String tidak sah: mesti bermula dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak sah: mesti mengandungi "${n.includes}"`:n.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${n.pattern}`:`${r[n.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}},Ih=_(()=>{x()});function wh(){return{localeError:zh()}}var zh=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function i(t){return e[t]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},a={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${n}, ontving ${s}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${I(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin),s=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return o?`Te ${s}: verwacht dat ${t.origin??"waarde"} ${n}${t.maximum.toString()} ${o.unit??"elementen"} ${o.verb}`:`Te ${s}: verwacht dat ${t.origin??"waarde"} ${n}${t.maximum.toString()} is`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin),s=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return o?`Te ${s}: verwacht dat ${t.origin} ${n}${t.minimum.toString()} ${o.unit} ${o.verb}`:`Te ${s}: verwacht dat ${t.origin} ${n}${t.minimum.toString()} is`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Ongeldige tekst: moet met "${n.prefix}" beginnen`:n.format==="ends_with"?`Ongeldige tekst: moet op "${n.suffix}" eindigen`:n.format==="includes"?`Ongeldige tekst: moet "${n.includes}" bevatten`:n.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`:`Ongeldig: ${r[n.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}},Nh=_(()=>{x()});function Uh(){return{localeError:Oh()}}var Oh=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function i(t){return e[t]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${s}`:`Ugyldig input: forventet ${n}, fikk ${s}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${I(t.values[0])}`:`Ugyldig valg: forventet en av ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${n}${t.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`For lite(n): forventet ${t.origin} til \xE5 ha ${n}${t.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${r[n.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}},Th=_(()=>{x()});function Ph(){return{localeError:Dh()}}var Dh=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function i(t){return e[t]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${n}, al\u0131nan ${s}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${I(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${n}${t.maximum.toString()} ${o.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${n}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${n}${t.minimum.toString()} ${o.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${n}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let n=t;return n.format==="starts_with"?`F\xE2sit metin: "${n.prefix}" ile ba\u015Flamal\u0131.`:n.format==="ends_with"?`F\xE2sit metin: "${n.suffix}" ile bitmeli.`:n.format==="includes"?`F\xE2sit metin: "${n.includes}" ihtiv\xE2 etmeli.`:n.format==="regex"?`F\xE2sit metin: ${n.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[n.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},Zh=_(()=>{x()});function jh(){return{localeError:Eh()}}var Eh=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function i(t){return e[t]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${n} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${I(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${t.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${n}${t.minimum.toString()} ${o.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${n}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:n.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:n.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${n.includes}" \u0648\u0644\u0631\u064A`:n.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${n.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[n.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},Ah=_(()=>{x()});function Bh(){return{localeError:Rh()}}var Rh=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function i(t){return e[t]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},a={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${n}, otrzymano ${s}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${I(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${t.maximum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${t.minimum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${n.prefix}"`:n.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${n.suffix}"`:n.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${n.includes}"`:n.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${n.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[n.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},Ch=_(()=>{x()});function Fh(){return{localeError:Lh()}}var Lh=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function i(t){return e[t]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${n}, recebido ${s}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${I(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${n}${t.maximum.toString()} ${o.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Muito pequeno: esperado que ${t.origin} tivesse ${n}${t.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${n.prefix}"`:n.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${n.suffix}"`:n.format==="includes"?`Texto inv\xE1lido: deve incluir "${n.includes}"`:n.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${n.pattern}`:`${r[n.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${v(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}},Mh=_(()=>{x()});function Gd(e,i,r,a){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19?a:n===1?i:n>=2&&n<=4?r:a}function Hh(){return{localeError:qh()}}var qh=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function i(t){return e[t]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${I(t.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);if(o){let s=Number(t.maximum),l=Gd(s,o.unit.one,o.unit.few,o.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${t.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);if(o){let s=Number(t.minimum),l=Gd(s,o.unit.one,o.unit.few,o.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${t.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[n.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${v(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},Jh=_(()=>{x()});function Wh(){return{localeError:Vh()}}var Vh=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function i(t){return e[t]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},a={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${n}, prejeto ${s}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${I(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${n}${t.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${n}${t.minimum.toString()} ${o.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${n.prefix}"`:n.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${n.suffix}"`:n.format==="includes"?`Neveljaven niz: mora vsebovati "${n.includes}"`:n.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`:`Neveljaven ${r[n.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}},Kh=_(()=>{x()});function Gh(){return{localeError:Xh()}}var Xh=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function i(t){return e[t]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},a={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${n}, fick ${s}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${I(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${n}${t.maximum.toString()} ${o.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${n}${t.minimum.toString()} ${o.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${n.prefix}"`:n.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${n.suffix}"`:n.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${n.includes}"`:n.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${n.pattern}"`:`Ogiltig(t) ${r[n.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},Yh=_(()=>{x()});function Qh(){return{localeError:ev()}}var ev=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function i(t){return e[t]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return t.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${I(t.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${v(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${t.maximum.toString()} ${o.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${n}${t.minimum.toString()} ${o.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${n}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${n.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[n.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${t.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},tv=_(()=>{x()});function iv(){return{localeError:rv()}}var rv=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function i(t){return e[t]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},a={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${n} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${I(t.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",o=i(t.origin);return o?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${t.maximum.toString()} ${o.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",o=i(t.origin);return o?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${t.minimum.toString()} ${o.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${n.prefix}"`:n.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${n.suffix}"`:n.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${n.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:n.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${n.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[n.format]??t.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${t.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${v(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},nv=_(()=>{x()});function av(){return{localeError:ov()}}var ov=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function i(t){return e[t]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${n}, al\u0131nan ${s}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${I(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${n}${t.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${n}${t.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Ge\xE7ersiz metin: "${n.prefix}" ile ba\u015Flamal\u0131`:n.format==="ends_with"?`Ge\xE7ersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Ge\xE7ersiz metin: "${n.includes}" i\xE7ermeli`:n.format==="regex"?`Ge\xE7ersiz metin: ${n.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[n.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},sv=_(()=>{x()});function mm(){return{localeError:uv()}}var uv=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function i(t){return e[t]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${n}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${I(t.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${o.verb} ${n}${t.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${o.verb} ${n}${t.minimum.toString()} ${o.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[n.format]??t.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${v(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},fm=_(()=>{x()});function lv(){return mm()}var dv=_(()=>{fm()});function cv(){return{localeError:mv()}}var mv=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function i(t){return e[t]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},a={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${n} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${I(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${n}${t.maximum.toString()} ${o.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${n}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${n}${t.minimum.toString()} ${o.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${n}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${n.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[n.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${t.keys.length>1?"\u0632":""}: ${v(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},fv=_(()=>{x()});function pv(){return{localeError:gv()}}var gv=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function i(t){return e[t]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},a={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${n}, qabul qilingan ${s}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${I(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Juda katta: kutilgan ${t.origin??"qiymat"} ${n}${t.maximum.toString()} ${o.unit} ${o.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Juda kichik: kutilgan ${t.origin} ${n}${t.minimum.toString()} ${o.unit} ${o.verb}`:`Juda kichik: kutilgan ${t.origin} ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${n.prefix}" bilan boshlanishi kerak`:n.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${n.suffix}" bilan tugashi kerak`:n.format==="includes"?`Noto\u2018g\u2018ri satr: "${n.includes}" ni o\u2018z ichiga olishi kerak`:n.format==="regex"?`Noto\u2018g\u2018ri satr: ${n.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[n.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},hv=_(()=>{x()});function vv(){return{localeError:bv()}}var bv=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function i(t){return e[t]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},a={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${n}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${I(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${o.verb} ${n}${t.maximum.toString()} ${o.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${o.verb} ${n}${t.minimum.toString()} ${o.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${n.prefix}"`:n.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${n.suffix}"`:n.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${n.includes}"`:n.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${n.pattern}`:`${r[n.format]??t.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},$v=_(()=>{x()});function _v(){return{localeError:yv()}}var yv=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function i(t){return e[t]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},a={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${n}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${I(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${n}${t.maximum.toString()} ${o.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${n}${t.minimum.toString()} ${o.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.prefix}" \u5F00\u5934`:n.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.suffix}" \u7ED3\u5C3E`:n.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${n.pattern}`:`\u65E0\u6548${r[n.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},kv=_(()=>{x()});function Sv(){return{localeError:xv()}}var xv=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function i(t){return e[t]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${n}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${I(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${n}${t.maximum.toString()} ${o.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${n}${t.minimum.toString()} ${o.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${n}${t.minimum.toString()}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.prefix}" \u958B\u982D`:n.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.suffix}" \u7D50\u5C3E`:n.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${n.pattern}`:`\u7121\u6548\u7684 ${r[n.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${v(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},Iv=_(()=>{x()});function wv(){return{localeError:zv()}}var zv=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function i(t){return e[t]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},a={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let n=a[t.expected]??t.expected,o=w(t.input),s=a[o]??o;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${n}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${I(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",o=i(t.origin);return o?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${o.verb} ${n}${t.maximum} ${o.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${t.maximum}`}case"too_small":{let n=t.inclusive?">=":">",o=i(t.origin);return o?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${o.verb} ${n}${t.minimum} ${o.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${t.minimum}`}case"invalid_format":{let n=t;return n.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${n.prefix}"`:n.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${n.suffix}"`:n.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${n.includes}"`:n.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${n.pattern}`:`A\u1E63\xEC\u1E63e: ${r[n.format]??t.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},Nv=_(()=>{x()}),_n={};Ie(_n,{zhTW:()=>Sv,zhCN:()=>_v,yo:()=>wv,vi:()=>vv,uz:()=>pv,ur:()=>cv,uk:()=>mm,ua:()=>lv,tr:()=>av,th:()=>iv,ta:()=>Qh,sv:()=>Gh,sl:()=>Wh,ru:()=>Hh,pt:()=>Fh,ps:()=>jh,pl:()=>Bh,ota:()=>Ph,no:()=>Uh,nl:()=>wh,ms:()=>Sh,mk:()=>_h,lt:()=>vh,ko:()=>ph,km:()=>dm,kh:()=>mh,ka:()=>uh,ja:()=>ah,it:()=>ih,is:()=>Qg,id:()=>Gg,hy:()=>Wg,hu:()=>Hg,he:()=>Fg,frCA:()=>Bg,fr:()=>jg,fi:()=>Pg,fa:()=>Ug,es:()=>wg,eo:()=>Sg,en:()=>um,de:()=>$g,da:()=>hg,cs:()=>fg,ca:()=>dg,bg:()=>sg,be:()=>ng,az:()=>tg,ar:()=>Yp});var pm=_(()=>{eg(),rg(),og(),lg(),mg(),gg(),bg(),yg(),lm(),Ig(),Ng(),Tg(),Zg(),Ag(),Cg(),Mg(),Jg(),Kg(),Yg(),th(),nh(),sh(),dh(),fh(),cm(),hh(),$h(),kh(),Ih(),Nh(),Th(),Zh(),Ah(),Ch(),Mh(),Jh(),Kh(),Yh(),tv(),nv(),sv(),dv(),fm(),fv(),hv(),$v(),kv(),Iv(),Nv()}),Qr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...r){let a=r[0];return this._map.set(i,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,i),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(i){let r=this._map.get(i);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(i),this}get(i){let r=i._zod.parent;if(r){let a={...this.get(r)??{}};delete a.id;let t={...a,...this._map.get(i)};return Object.keys(t).length?t:void 0}return this._map.get(i)}has(i){return this._map.has(i)}};function yn(){return new Qr}var Xd,kn,Sn,me,xn=_(()=>{kn=Symbol("ZodOutput"),Sn=Symbol("ZodInput"),(Xd=globalThis).__zod_globalRegistry??(Xd.__zod_globalRegistry=yn()),me=globalThis.__zod_globalRegistry});function gm(e,i){return new e({type:"string",...b(i)})}function hm(e,i){return new e({type:"string",coerce:!0,...b(i)})}function qs(e,i){return new e({type:"string",format:"email",check:"string_format",abort:!1,...b(i)})}function en(e,i){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...b(i)})}function Js(e,i){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...b(i)})}function Ws(e,i){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(i)})}function Vs(e,i){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(i)})}function Ks(e,i){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(i)})}function In(e,i){return new e({type:"string",format:"url",check:"string_format",abort:!1,...b(i)})}function Gs(e,i){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...b(i)})}function Xs(e,i){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(i)})}function Ys(e,i){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...b(i)})}function Qs(e,i){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(i)})}function eu(e,i){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...b(i)})}function tu(e,i){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...b(i)})}function iu(e,i){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(i)})}function ru(e,i){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(i)})}function nu(e,i){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(i)})}function vm(e,i){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...b(i)})}function au(e,i){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(i)})}function ou(e,i){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(i)})}function su(e,i){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...b(i)})}function uu(e,i){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...b(i)})}function lu(e,i){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...b(i)})}function du(e,i){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...b(i)})}function bm(e,i){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(i)})}function $m(e,i){return new e({type:"string",format:"date",check:"string_format",...b(i)})}function _m(e,i){return new e({type:"string",format:"time",check:"string_format",precision:null,...b(i)})}function ym(e,i){return new e({type:"string",format:"duration",check:"string_format",...b(i)})}function km(e,i){return new e({type:"number",checks:[],...b(i)})}function Sm(e,i){return new e({type:"number",coerce:!0,checks:[],...b(i)})}function xm(e,i){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...b(i)})}function Im(e,i){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...b(i)})}function wm(e,i){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...b(i)})}function zm(e,i){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...b(i)})}function Nm(e,i){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...b(i)})}function Um(e,i){return new e({type:"boolean",...b(i)})}function Om(e,i){return new e({type:"boolean",coerce:!0,...b(i)})}function Tm(e,i){return new e({type:"bigint",...b(i)})}function Pm(e,i){return new e({type:"bigint",coerce:!0,...b(i)})}function Dm(e,i){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...b(i)})}function Zm(e,i){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...b(i)})}function jm(e,i){return new e({type:"symbol",...b(i)})}function Em(e,i){return new e({type:"undefined",...b(i)})}function Am(e,i){return new e({type:"null",...b(i)})}function Bm(e){return new e({type:"any"})}function Rm(e){return new e({type:"unknown"})}function Cm(e,i){return new e({type:"never",...b(i)})}function Fm(e,i){return new e({type:"void",...b(i)})}function Lm(e,i){return new e({type:"date",...b(i)})}function Mm(e,i){return new e({type:"date",coerce:!0,...b(i)})}function Hm(e,i){return new e({type:"nan",...b(i)})}function Oe(e,i){return new hn({check:"less_than",...b(i),value:e,inclusive:!1})}function fe(e,i){return new hn({check:"less_than",...b(i),value:e,inclusive:!0})}function Te(e,i){return new vn({check:"greater_than",...b(i),value:e,inclusive:!1})}function le(e,i){return new vn({check:"greater_than",...b(i),value:e,inclusive:!0})}function wn(e){return Te(0,e)}function zn(e){return Oe(0,e)}function Nn(e){return fe(0,e)}function Un(e){return le(0,e)}function qe(e,i){return new ho({check:"multiple_of",...b(i),value:e})}function Je(e,i){return new $o({check:"max_size",...b(i),maximum:e})}function Ne(e,i){return new _o({check:"min_size",...b(i),minimum:e})}function mt(e,i){return new yo({check:"size_equals",...b(i),size:e})}function ft(e,i){return new ko({check:"max_length",...b(i),maximum:e})}function je(e,i){return new So({check:"min_length",...b(i),minimum:e})}function pt(e,i){return new xo({check:"length_equals",...b(i),length:e})}function $i(e,i){return new Io({check:"string_format",format:"regex",...b(i),pattern:e})}function _i(e){return new wo({check:"string_format",format:"lowercase",...b(e)})}function yi(e){return new zo({check:"string_format",format:"uppercase",...b(e)})}function ki(e,i){return new No({check:"string_format",format:"includes",...b(i),includes:e})}function Si(e,i){return new Uo({check:"string_format",format:"starts_with",...b(i),prefix:e})}function xi(e,i){return new Oo({check:"string_format",format:"ends_with",...b(i),suffix:e})}function On(e,i,r){return new To({check:"property",property:e,schema:i,...b(r)})}function Ii(e,i){return new Po({check:"mime_type",mime:e,...b(i)})}function we(e){return new Do({check:"overwrite",tx:e})}function wi(e){return we(i=>i.normalize(e))}function zi(){return we(e=>e.trim())}function Ni(){return we(e=>e.toLowerCase())}function Ui(){return we(e=>e.toUpperCase())}function Oi(){return we(e=>lc(e))}function qm(e,i,r){return new e({type:"array",element:i,...b(r)})}function Uv(e,i,r){return new e({type:"union",options:i,...b(r)})}function Ov(e,i,r){return new e({type:"union",options:i,inclusive:!1,...b(r)})}function Tv(e,i,r,a){return new e({type:"union",options:r,discriminator:i,...b(a)})}function Pv(e,i,r){return new e({type:"intersection",left:i,right:r})}function Dv(e,i,r,a){let t=r instanceof N;return new e({type:"tuple",items:i,rest:t?r:null,...b(t?a:r)})}function Zv(e,i,r,a){return new e({type:"record",keyType:i,valueType:r,...b(a)})}function jv(e,i,r,a){return new e({type:"map",keyType:i,valueType:r,...b(a)})}function Ev(e,i,r){return new e({type:"set",valueType:i,...b(r)})}function Av(e,i,r){let a=Array.isArray(i)?Object.fromEntries(i.map(t=>[t,t])):i;return new e({type:"enum",entries:a,...b(r)})}function Bv(e,i,r){return new e({type:"enum",entries:i,...b(r)})}function Rv(e,i,r){return new e({type:"literal",values:Array.isArray(i)?i:[i],...b(r)})}function Jm(e,i){return new e({type:"file",...b(i)})}function Cv(e,i){return new e({type:"transform",transform:i})}function Fv(e,i){return new e({type:"optional",innerType:i})}function Lv(e,i){return new e({type:"nullable",innerType:i})}function Mv(e,i,r){return new e({type:"default",innerType:i,get defaultValue(){return typeof r=="function"?r():dc(r)}})}function Hv(e,i,r){return new e({type:"nonoptional",innerType:i,...b(r)})}function qv(e,i){return new e({type:"success",innerType:i})}function Jv(e,i,r){return new e({type:"catch",innerType:i,catchValue:typeof r=="function"?r:()=>r})}function Wv(e,i,r){return new e({type:"pipe",in:i,out:r})}function Vv(e,i){return new e({type:"readonly",innerType:i})}function Kv(e,i,r){return new e({type:"template_literal",parts:i,...b(r)})}function Gv(e,i){return new e({type:"lazy",getter:i})}function Xv(e,i){return new e({type:"promise",innerType:i})}function Wm(e,i,r){let a=b(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:i,...a})}function Vm(e,i,r){return new e({type:"custom",check:"custom",fn:i,...b(r)})}function Km(e){let i=Gm(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(Mr(a,r.value,i._zod.def));else{let t=a;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=i),t.continue??(t.continue=!i._zod.def.abort),r.issues.push(Mr(t))}},e(r.value,r)));return i}function Gm(e,i){let r=new V({check:"custom",...b(i)});return r._zod.check=e,r}function Xm(e){let i=new V({check:"describe"});return i._zod.onattach=[r=>{let a=me.get(r)??{};me.add(r,{...a,description:e})}],i._zod.check=()=>{},i}function Ym(e){let i=new V({check:"meta"});return i._zod.onattach=[r=>{let a=me.get(r)??{};me.add(r,{...a,...e})}],i._zod.check=()=>{},i}function Qm(e,i){let r=b(i),a=r.truthy??["true","1","yes","on","y","enabled"],t=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(h=>typeof h=="string"?h.toLowerCase():h),t=t.map(h=>typeof h=="string"?h.toLowerCase():h));let n=new Set(a),o=new Set(t),s=e.Codec??$n,l=e.Boolean??bn,d=new(e.String??ct)({type:"string",error:r.error}),c=new l({type:"boolean",error:r.error}),p=new s({type:"pipe",in:d,out:c,transform:(h,k)=>{let O=h;return r.case!=="sensitive"&&(O=O.toLowerCase()),n.has(O)?!0:o.has(O)?!1:(k.issues.push({code:"invalid_value",expected:"stringbool",values:[...n,...o],input:k.value,inst:p,continue:!1}),{})},reverseTransform:(h,k)=>h===!0?a[0]||"true":t[0]||"false",error:r.error});return p}function Ti(e,i,r,a={}){let t=b(a),n={...b(a),check:"string_format",type:"string",format:i,fn:typeof r=="function"?r:o=>r.test(o),...t};return r instanceof RegExp&&(n.pattern=r),new e(n)}var Tn,Yv=_(()=>{Zo(),xn(),sm(),x(),Tn={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function gt(e){let i=e?.target??"draft-2020-12";return i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??me,target:i,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function L(e,i,r={path:[],schemaPath:[]}){var a;let t=e._zod.def,n=i.seen.get(e);if(n)return n.count++,r.schemaPath.includes(e)&&(n.cycle=r.path),n.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};i.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(i,o.schema,d);else{let p=o.schema,h=i.processors[t.type];if(!h)throw Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);h(e,i,p,d)}let c=e._zod.parent;c&&(o.ref||(o.ref=c),L(c,i,d),i.seen.get(c).isParent=!0)}let l=i.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),i.io==="input"&&se(e)&&(delete o.schema.examples,delete o.schema.default),i.io==="input"&&o.schema._prefault&&((a=o.schema).default??(a.default=o.schema._prefault)),delete o.schema._prefault,i.seen.get(e).schema}function ht(e,i){let r=e.seen.get(i);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let o of e.seen.entries()){let s=e.metadataRegistry.get(o[0])?.id;if(s){let l=a.get(s);if(l&&l!==o[0])throw Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(s,o[0])}}let t=o=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let c=e.external.registry.get(o[0])?.id,p=e.external.uri??(k=>k);if(c)return{ref:p(c)};let h=o[1].defId??o[1].schema.id??`schema${e.counter++}`;return o[1].defId=h,{defId:h,ref:`${p("__shared")}#/${s}/${h}`}}if(o[1]===r)return{ref:"#"};let l=`#/${s}/`,d=o[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},n=o=>{if(o[1].schema.$ref)return;let s=o[1],{ref:l,defId:d}=t(o);s.def={...s.schema},d&&(s.defId=d);let c=s.schema;for(let p in c)delete c[p];c.$ref=l};if(e.cycles==="throw")for(let o of e.seen.entries()){let s=o[1];if(s.cycle)throw Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
+
+Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let o of e.seen.entries()){let s=o[1];if(i===o[0]){n(o);continue}if(e.external){let l=e.external.registry.get(o[0])?.id;if(i!==o[0]&&l){n(o);continue}}if(e.metadataRegistry.get(o[0])?.id){n(o);continue}if(s.cycle){n(o);continue}if(s.count>1&&e.reused==="ref"){n(o);continue}}}function vt(e,i){let r=e.seen.get(i);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=o=>{let s=e.seen.get(o);if(s.ref===null)return;let l=s.def??s.schema,d={...l},c=s.ref;if(s.ref=null,c){a(c);let h=e.seen.get(c),k=h.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(k)):Object.assign(l,k),Object.assign(l,d),o._zod.parent===c)for(let O in l)O==="$ref"||O==="allOf"||O in d||delete l[O];if(k.$ref)for(let O in l)O==="$ref"||O==="allOf"||O in h.def&&JSON.stringify(l[O])===JSON.stringify(h.def[O])&&delete l[O]}let p=o._zod.parent;if(p&&p!==c){a(p);let h=e.seen.get(p);if(h?.schema.$ref&&(l.$ref=h.schema.$ref,h.def))for(let k in l)k==="$ref"||k==="allOf"||k in h.def&&JSON.stringify(l[k])===JSON.stringify(h.def[k])&&delete l[k]}e.override({zodSchema:o,jsonSchema:l,path:s.path??[]})};for(let o of[...e.seen.entries()].reverse())a(o[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let o=e.external.registry.get(i)?.id;if(!o)throw Error("Schema is missing an `id` property");t.$id=e.external.uri(o)}Object.assign(t,r.def??r.schema);let n=e.external?.defs??{};for(let o of e.seen.entries()){let s=o[1];s.def&&s.defId&&(n[s.defId]=s.def)}e.external||Object.keys(n).length>0&&(e.target==="draft-2020-12"?t.$defs=n:t.definitions=n);try{let o=JSON.parse(JSON.stringify(t));return Object.defineProperty(o,"~standard",{value:{...i["~standard"],jsonSchema:{input:ci(i,"input",e.processors),output:ci(i,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw Error("Error converting schema to JSON.")}}function se(e,i){let r=i??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return se(a.element,r);if(a.type==="set")return se(a.valueType,r);if(a.type==="lazy")return se(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return se(a.innerType,r);if(a.type==="intersection")return se(a.left,r)||se(a.right,r);if(a.type==="record"||a.type==="map")return se(a.keyType,r)||se(a.valueType,r);if(a.type==="pipe")return se(a.in,r)||se(a.out,r);if(a.type==="object"){for(let t in a.shape)if(se(a.shape[t],r))return!0;return!1}if(a.type==="union"){for(let t of a.options)if(se(t,r))return!0;return!1}if(a.type==="tuple"){for(let t of a.items)if(se(t,r))return!0;return!!(a.rest&&se(a.rest,r))}return!1}var ef=(e,i={})=>r=>{let a=gt({...r,processors:i});return L(e,a),ht(a,e),vt(a,e)},ci=(e,i,r={})=>a=>{let{libraryOptions:t,target:n}=a??{},o=gt({...t??{},target:n,io:i,processors:r});return L(e,o),ht(o,e),vt(o,e)},Pn=_(()=>{xn()});function cu(e,i){if("_idmap"in e){let a=e,t=gt({...i,processors:tn}),n={};for(let l of a._idmap.entries()){let[d,c]=l;L(c,t)}let o={},s={registry:a,uri:i?.uri,defs:n};t.external=s;for(let l of a._idmap.entries()){let[d,c]=l;ht(t,c),o[d]=vt(t,c)}if(Object.keys(n).length>0){let l=t.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[l]:n}}return{schemas:o}}let r=gt({...i,processors:tn});return L(e,r),ht(r,e),vt(r,e)}var tf,rf=(e,i,r,a)=>{let t=r;t.type="string";let{minimum:n,maximum:o,format:s,patterns:l,contentEncoding:d}=e._zod.bag;if(typeof n=="number"&&(t.minLength=n),typeof o=="number"&&(t.maxLength=o),s&&(t.format=tf[s]??s,t.format===""&&delete t.format,s==="time"&&delete t.format),d&&(t.contentEncoding=d),l&&l.size>0){let c=[...l];c.length===1?t.pattern=c[0].source:c.length>1&&(t.allOf=[...c.map(p=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},nf=(e,i,r,a)=>{let t=r,{minimum:n,maximum:o,format:s,multipleOf:l,exclusiveMaximum:d,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?t.type="integer":t.type="number",typeof c=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(t.minimum=c,t.exclusiveMinimum=!0):t.exclusiveMinimum=c),typeof n=="number"&&(t.minimum=n,typeof c=="number"&&i.target!=="draft-04"&&(c>=n?delete t.minimum:delete t.exclusiveMinimum)),typeof d=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(t.maximum=d,t.exclusiveMaximum=!0):t.exclusiveMaximum=d),typeof o=="number"&&(t.maximum=o,typeof d=="number"&&i.target!=="draft-04"&&(d<=o?delete t.maximum:delete t.exclusiveMaximum)),typeof l=="number"&&(t.multipleOf=l)},af=(e,i,r,a)=>{r.type="boolean"},of=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},sf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},uf=(e,i,r,a)=>{i.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},lf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},df=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},cf=(e,i,r,a)=>{r.not={}},mf=(e,i,r,a)=>{},ff=(e,i,r,a)=>{},pf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},gf=(e,i,r,a)=>{let t=e._zod.def,n=Ua(t.entries);n.every(o=>typeof o=="number")&&(r.type="number"),n.every(o=>typeof o=="string")&&(r.type="string"),r.enum=n},hf=(e,i,r,a)=>{let t=e._zod.def,n=[];for(let o of t.values)if(o===void 0){if(i.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(i.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");n.push(Number(o))}else n.push(o);if(n.length!==0)if(n.length===1){let o=n[0];r.type=o===null?"null":typeof o,i.target==="draft-04"||i.target==="openapi-3.0"?r.enum=[o]:r.const=o}else n.every(o=>typeof o=="number")&&(r.type="number"),n.every(o=>typeof o=="string")&&(r.type="string"),n.every(o=>typeof o=="boolean")&&(r.type="boolean"),n.every(o=>o===null)&&(r.type="null"),r.enum=n},vf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},bf=(e,i,r,a)=>{let t=r,n=e._zod.pattern;if(!n)throw Error("Pattern not found in template literal");t.type="string",t.pattern=n.source},$f=(e,i,r,a)=>{let t=r,n={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:l}=e._zod.bag;o!==void 0&&(n.minLength=o),s!==void 0&&(n.maxLength=s),l?l.length===1?(n.contentMediaType=l[0],Object.assign(t,n)):(Object.assign(t,n),t.anyOf=l.map(d=>({contentMediaType:d}))):Object.assign(t,n)},_f=(e,i,r,a)=>{r.type="boolean"},yf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},kf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},Sf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},xf=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},If=(e,i,r,a)=>{if(i.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},wf=(e,i,r,a)=>{let t=r,n=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o=="number"&&(t.minItems=o),typeof s=="number"&&(t.maxItems=s),t.type="array",t.items=L(n.element,i,{...a,path:[...a.path,"items"]})},zf=(e,i,r,a)=>{let t=r,n=e._zod.def;t.type="object",t.properties={};let o=n.shape;for(let d in o)t.properties[d]=L(o[d],i,{...a,path:[...a.path,"properties",d]});let s=new Set(Object.keys(o)),l=new Set([...s].filter(d=>{let c=n.shape[d]._zod;return i.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(t.required=Array.from(l)),n.catchall?._zod.def.type==="never"?t.additionalProperties=!1:n.catchall?n.catchall&&(t.additionalProperties=L(n.catchall,i,{...a,path:[...a.path,"additionalProperties"]})):i.io==="output"&&(t.additionalProperties=!1)},ka=(e,i,r,a)=>{let t=e._zod.def,n=t.inclusive===!1,o=t.options.map((s,l)=>L(s,i,{...a,path:[...a.path,n?"oneOf":"anyOf",l]}));n?r.oneOf=o:r.anyOf=o},Nf=(e,i,r,a)=>{let t=e._zod.def,n=L(t.left,i,{...a,path:[...a.path,"allOf",0]}),o=L(t.right,i,{...a,path:[...a.path,"allOf",1]}),s=d=>"allOf"in d&&Object.keys(d).length===1,l=[...s(n)?n.allOf:[n],...s(o)?o.allOf:[o]];r.allOf=l},Uf=(e,i,r,a)=>{let t=r,n=e._zod.def;t.type="array";let o=i.target==="draft-2020-12"?"prefixItems":"items",s=i.target==="draft-2020-12"||i.target==="openapi-3.0"?"items":"additionalItems",l=n.items.map((h,k)=>L(h,i,{...a,path:[...a.path,o,k]})),d=n.rest?L(n.rest,i,{...a,path:[...a.path,s,...i.target==="openapi-3.0"?[n.items.length]:[]]}):null;i.target==="draft-2020-12"?(t.prefixItems=l,d&&(t.items=d)):i.target==="openapi-3.0"?(t.items={anyOf:l},d&&t.items.anyOf.push(d),t.minItems=l.length,!d&&(t.maxItems=l.length)):(t.items=l,d&&(t.additionalItems=d));let{minimum:c,maximum:p}=e._zod.bag;typeof c=="number"&&(t.minItems=c),typeof p=="number"&&(t.maxItems=p)},Of=(e,i,r,a)=>{let t=r,n=e._zod.def;t.type="object";let o=n.keyType,s=o._zod.bag?.patterns;if(n.mode==="loose"&&s&&s.size>0){let d=L(n.valueType,i,{...a,path:[...a.path,"patternProperties","*"]});t.patternProperties={};for(let c of s)t.patternProperties[c.source]=d}else(i.target==="draft-07"||i.target==="draft-2020-12")&&(t.propertyNames=L(n.keyType,i,{...a,path:[...a.path,"propertyNames"]})),t.additionalProperties=L(n.valueType,i,{...a,path:[...a.path,"additionalProperties"]});let l=o._zod.values;if(l){let d=[...l].filter(c=>typeof c=="string"||typeof c=="number");d.length>0&&(t.required=d)}},Tf=(e,i,r,a)=>{let t=e._zod.def,n=L(t.innerType,i,a),o=i.seen.get(e);i.target==="openapi-3.0"?(o.ref=t.innerType,r.nullable=!0):r.anyOf=[n,{type:"null"}]},Pf=(e,i,r,a)=>{let t=e._zod.def;L(t.innerType,i,a);let n=i.seen.get(e);n.ref=t.innerType},Df=(e,i,r,a)=>{let t=e._zod.def;L(t.innerType,i,a);let n=i.seen.get(e);n.ref=t.innerType,r.default=JSON.parse(JSON.stringify(t.defaultValue))},Zf=(e,i,r,a)=>{let t=e._zod.def;L(t.innerType,i,a);let n=i.seen.get(e);n.ref=t.innerType,i.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},jf=(e,i,r,a)=>{let t=e._zod.def;L(t.innerType,i,a);let n=i.seen.get(e);n.ref=t.innerType;let o;try{o=t.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=o},Ef=(e,i,r,a)=>{let t=e._zod.def,n=i.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;L(n,i,a);let o=i.seen.get(e);o.ref=n},Af=(e,i,r,a)=>{let t=e._zod.def;L(t.innerType,i,a);let n=i.seen.get(e);n.ref=t.innerType,r.readOnly=!0},Bf=(e,i,r,a)=>{let t=e._zod.def;L(t.innerType,i,a);let n=i.seen.get(e);n.ref=t.innerType},Sa=(e,i,r,a)=>{let t=e._zod.def;L(t.innerType,i,a);let n=i.seen.get(e);n.ref=t.innerType},Rf=(e,i,r,a)=>{let t=e._zod.innerType;L(t,i,a);let n=i.seen.get(e);n.ref=t},tn,Dn=_(()=>{Pn(),x(),tf={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tn={string:rf,number:nf,boolean:af,bigint:of,symbol:sf,null:uf,undefined:lf,void:df,never:cf,any:mf,unknown:ff,date:pf,enum:gf,literal:hf,nan:vf,template_literal:bf,file:$f,success:_f,custom:yf,function:kf,transform:Sf,map:xf,set:If,array:wf,object:zf,union:ka,intersection:Nf,tuple:Uf,record:Of,nullable:Tf,nonoptional:Pf,default:Df,prefault:Zf,catch:jf,pipe:Ef,readonly:Af,promise:Bf,optional:Sa,lazy:Rf}}),xa=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(i){this.ctx.counter=i}get seen(){return this.ctx.seen}constructor(i){let r=i?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=gt({processors:tn,target:r,...i?.metadata&&{metadata:i.metadata},...i?.unrepresentable&&{unrepresentable:i.unrepresentable},...i?.override&&{override:i.override},...i?.io&&{io:i.io}})}process(i,r={path:[],schemaPath:[]}){return L(i,this.ctx,r)}emit(i,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),ht(this.ctx,i);let a=vt(this.ctx,i),{"~standard":t,...n}=a;return n}},Qv=_(()=>{Dn(),Pn()}),eb={},tb=()=>{},mu={};Ie(mu,{version:()=>jo,util:()=>D,treeifyError:()=>Za,toJSONSchema:()=>cu,toDotPath:()=>pc,safeParseAsync:()=>Ea,safeParse:()=>pn,safeEncodeAsync:()=>kc,safeEncode:()=>_c,safeDecodeAsync:()=>Sc,safeDecode:()=>yc,registry:()=>yn,regexes:()=>Be,process:()=>L,prettifyError:()=>ja,parseAsync:()=>qr,parse:()=>Hr,meta:()=>Ym,locales:()=>_n,isValidJWT:()=>om,isValidBase64URL:()=>am,isValidBase64:()=>Eo,initializeContext:()=>gt,globalRegistry:()=>me,globalConfig:()=>li,formatError:()=>mn,flattenError:()=>cn,finalize:()=>vt,extractDefs:()=>ht,encodeAsync:()=>bc,encode:()=>hc,describe:()=>Xm,decodeAsync:()=>$c,decode:()=>vc,createToJSONSchemaMethod:()=>ef,createStandardJSONSchemaMethod:()=>ci,config:()=>ee,clone:()=>ge,_xor:()=>Ov,_xid:()=>tu,_void:()=>Fm,_uuidv7:()=>Ks,_uuidv6:()=>Vs,_uuidv4:()=>Ws,_uuid:()=>Js,_url:()=>In,_uppercase:()=>yi,_unknown:()=>Rm,_union:()=>Uv,_undefined:()=>Em,_ulid:()=>eu,_uint64:()=>Zm,_uint32:()=>Nm,_tuple:()=>Dv,_trim:()=>zi,_transform:()=>Cv,_toUpperCase:()=>Ui,_toLowerCase:()=>Ni,_templateLiteral:()=>Kv,_symbol:()=>jm,_superRefine:()=>Km,_success:()=>qv,_stringbool:()=>Qm,_stringFormat:()=>Ti,_string:()=>gm,_startsWith:()=>Si,_slugify:()=>Oi,_size:()=>mt,_set:()=>Ev,_safeParseAsync:()=>bi,_safeParse:()=>vi,_safeEncodeAsync:()=>Ma,_safeEncode:()=>Fa,_safeDecodeAsync:()=>Ha,_safeDecode:()=>La,_regex:()=>$i,_refine:()=>Vm,_record:()=>Zv,_readonly:()=>Vv,_property:()=>On,_promise:()=>Xv,_positive:()=>wn,_pipe:()=>Wv,_parseAsync:()=>hi,_parse:()=>gi,_overwrite:()=>we,_optional:()=>Fv,_number:()=>km,_nullable:()=>Lv,_null:()=>Am,_normalize:()=>wi,_nonpositive:()=>Nn,_nonoptional:()=>Hv,_nonnegative:()=>Un,_never:()=>Cm,_negative:()=>zn,_nativeEnum:()=>Bv,_nanoid:()=>Xs,_nan:()=>Hm,_multipleOf:()=>qe,_minSize:()=>Ne,_minLength:()=>je,_min:()=>le,_mime:()=>Ii,_maxSize:()=>Je,_maxLength:()=>ft,_max:()=>fe,_map:()=>jv,_mac:()=>vm,_lte:()=>fe,_lt:()=>Oe,_lowercase:()=>_i,_literal:()=>Rv,_length:()=>pt,_lazy:()=>Gv,_ksuid:()=>iu,_jwt:()=>du,_isoTime:()=>_m,_isoDuration:()=>ym,_isoDateTime:()=>bm,_isoDate:()=>$m,_ipv6:()=>nu,_ipv4:()=>ru,_intersection:()=>Pv,_int64:()=>Dm,_int32:()=>zm,_int:()=>xm,_includes:()=>ki,_guid:()=>en,_gte:()=>le,_gt:()=>Te,_float64:()=>wm,_float32:()=>Im,_file:()=>Jm,_enum:()=>Av,_endsWith:()=>xi,_encodeAsync:()=>Ra,_encode:()=>Aa,_emoji:()=>Gs,_email:()=>qs,_e164:()=>lu,_discriminatedUnion:()=>Tv,_default:()=>Mv,_decodeAsync:()=>Ca,_decode:()=>Ba,_date:()=>Lm,_custom:()=>Wm,_cuid2:()=>Qs,_cuid:()=>Ys,_coercedString:()=>hm,_coercedNumber:()=>Sm,_coercedDate:()=>Mm,_coercedBoolean:()=>Om,_coercedBigint:()=>Pm,_cidrv6:()=>ou,_cidrv4:()=>au,_check:()=>Gm,_catch:()=>Jv,_boolean:()=>Um,_bigint:()=>Tm,_base64url:()=>uu,_base64:()=>su,_array:()=>qm,_any:()=>Bm,TimePrecision:()=>Tn,NEVER:()=>un,JSONSchemaGenerator:()=>xa,JSONSchema:()=>eb,Doc:()=>Wr,$output:()=>kn,$input:()=>Sn,$constructor:()=>m,$brand:()=>ln,$ZodXor:()=>_s,$ZodXID:()=>Jo,$ZodVoid:()=>hs,$ZodUnknown:()=>ps,$ZodUnion:()=>si,$ZodUndefined:()=>cs,$ZodUUID:()=>Bo,$ZodURL:()=>Co,$ZodULID:()=>qo,$ZodType:()=>N,$ZodTuple:()=>Xr,$ZodTransform:()=>Us,$ZodTemplateLiteral:()=>Cs,$ZodSymbol:()=>ds,$ZodSuccess:()=>js,$ZodStringFormat:()=>F,$ZodString:()=>ct,$ZodSet:()=>Is,$ZodRegistry:()=>Qr,$ZodRecord:()=>Ss,$ZodRealError:()=>ce,$ZodReadonly:()=>Rs,$ZodPromise:()=>Ls,$ZodPrefault:()=>Ds,$ZodPipe:()=>Bs,$ZodOptional:()=>Yr,$ZodObjectJIT:()=>$s,$ZodObject:()=>ya,$ZodNumberFormat:()=>us,$ZodNumber:()=>Kr,$ZodNullable:()=>Ts,$ZodNull:()=>ms,$ZodNonOptional:()=>Zs,$ZodNever:()=>gs,$ZodNanoID:()=>Lo,$ZodNaN:()=>As,$ZodMap:()=>xs,$ZodMAC:()=>es,$ZodLiteral:()=>zs,$ZodLazy:()=>Ms,$ZodKSUID:()=>Wo,$ZodJWT:()=>os,$ZodIntersection:()=>ks,$ZodISOTime:()=>Go,$ZodISODuration:()=>Xo,$ZodISODateTime:()=>Vo,$ZodISODate:()=>Ko,$ZodIPv6:()=>Qo,$ZodIPv4:()=>Yo,$ZodGUID:()=>Ao,$ZodFunction:()=>Fs,$ZodFile:()=>Ns,$ZodExactOptional:()=>Os,$ZodError:()=>fn,$ZodEnum:()=>ws,$ZodEncodeError:()=>ui,$ZodEmoji:()=>Fo,$ZodEmail:()=>Ro,$ZodE164:()=>as,$ZodDiscriminatedUnion:()=>ys,$ZodDefault:()=>Ps,$ZodDate:()=>vs,$ZodCustomStringFormat:()=>ss,$ZodCustom:()=>Hs,$ZodCodec:()=>$n,$ZodCheckUpperCase:()=>zo,$ZodCheckStringFormat:()=>st,$ZodCheckStartsWith:()=>Uo,$ZodCheckSizeEquals:()=>yo,$ZodCheckRegex:()=>Io,$ZodCheckProperty:()=>To,$ZodCheckOverwrite:()=>Do,$ZodCheckNumberFormat:()=>vo,$ZodCheckMultipleOf:()=>ho,$ZodCheckMinSize:()=>_o,$ZodCheckMinLength:()=>So,$ZodCheckMimeType:()=>Po,$ZodCheckMaxSize:()=>$o,$ZodCheckMaxLength:()=>ko,$ZodCheckLowerCase:()=>wo,$ZodCheckLessThan:()=>hn,$ZodCheckLengthEquals:()=>xo,$ZodCheckIncludes:()=>No,$ZodCheckGreaterThan:()=>vn,$ZodCheckEndsWith:()=>Oo,$ZodCheckBigIntFormat:()=>bo,$ZodCheck:()=>V,$ZodCatch:()=>Es,$ZodCUID2:()=>Ho,$ZodCUID:()=>Mo,$ZodCIDRv6:()=>is,$ZodCIDRv4:()=>ts,$ZodBoolean:()=>bn,$ZodBigIntFormat:()=>ls,$ZodBigInt:()=>Gr,$ZodBase64URL:()=>ns,$ZodBase64:()=>rs,$ZodAsyncError:()=>Ze,$ZodArray:()=>bs,$ZodAny:()=>fs});var pe=_(()=>{x(),go(),pm(),Dn(),Qv(),tb(),pi(),xc(),gc(),sm(),Zo(),nm(),xn(),Yv(),Pn()}),Cf={};Ie(Cf,{uppercase:()=>yi,trim:()=>zi,toUpperCase:()=>Ui,toLowerCase:()=>Ni,startsWith:()=>Si,slugify:()=>Oi,size:()=>mt,regex:()=>$i,property:()=>On,positive:()=>wn,overwrite:()=>we,normalize:()=>wi,nonpositive:()=>Nn,nonnegative:()=>Un,negative:()=>zn,multipleOf:()=>qe,minSize:()=>Ne,minLength:()=>je,mime:()=>Ii,maxSize:()=>Je,maxLength:()=>ft,lte:()=>fe,lt:()=>Oe,lowercase:()=>_i,length:()=>pt,includes:()=>ki,gte:()=>le,gt:()=>Te,endsWith:()=>xi});var fu=_(()=>{pe()}),Pi={};Ie(Pi,{time:()=>Mf,duration:()=>Hf,datetime:()=>Ff,date:()=>Lf,ZodISOTime:()=>ji,ZodISODuration:()=>Ei,ZodISODateTime:()=>Di,ZodISODate:()=>Zi});function Ff(e){return bm(Di,e)}function Lf(e){return $m(Zi,e)}function Mf(e){return _m(ji,e)}function Hf(e){return ym(Ei,e)}var Di,Zi,ji,Ei,rn=_(()=>{pe(),aa(),Di=m("ZodISODateTime",(e,i)=>{Vo.init(e,i),R.init(e,i)}),Zi=m("ZodISODate",(e,i)=>{Ko.init(e,i),R.init(e,i)}),ji=m("ZodISOTime",(e,i)=>{Go.init(e,i),R.init(e,i)}),Ei=m("ZodISODuration",(e,i)=>{Xo.init(e,i),R.init(e,i)})}),Yd=(e,i)=>{fn.init(e,i),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>mn(e,r)},flatten:{value:r=>cn(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Lr,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Lr,2)}},isEmpty:{get(){return e.issues.length===0}}})},pu,ue,qf=_(()=>{pe(),pe(),x(),pu=m("ZodError",Yd),ue=m("ZodError",Yd,{Parent:Error})}),Zn,jn,En,An,Bn,Rn,Cn,Fn,Ln,Mn,Hn,qn,Jf=_(()=>{pe(),qf(),Zn=gi(ue),jn=hi(ue),En=vi(ue),An=bi(ue),Bn=Aa(ue),Rn=Ba(ue),Cn=Ra(ue),Fn=Ca(ue),Ln=Fa(ue),Mn=La(ue),Hn=Ma(ue),qn=Ha(ue)}),Wf={};Ie(Wf,{xor:()=>rl,xid:()=>Nu,void:()=>Qu,uuidv7:()=>_u,uuidv6:()=>$u,uuidv4:()=>bu,uuid:()=>vu,url:()=>yu,unknown:()=>M,union:()=>H,undefined:()=>Xu,ulid:()=>zu,uint64:()=>Ku,uint32:()=>Ju,tuple:()=>Jn,transform:()=>Ci,templateLiteral:()=>pl,symbol:()=>Gu,superRefine:()=>ia,success:()=>cl,stringbool:()=>$l,stringFormat:()=>Ru,string:()=>f,strictObject:()=>il,set:()=>sl,refine:()=>ta,record:()=>C,readonly:()=>Yn,promise:()=>gl,preprocess:()=>Fi,prefault:()=>Kn,pipe:()=>$t,partialRecord:()=>nl,optional:()=>J,object:()=>y,number:()=>A,nullish:()=>dl,nullable:()=>bt,null:()=>Ai,nonoptional:()=>Gn,never:()=>Bi,nativeEnum:()=>ul,nanoid:()=>xu,nan:()=>ml,meta:()=>na,map:()=>ol,mac:()=>Tu,looseRecord:()=>al,looseObject:()=>Q,literal:()=>S,lazy:()=>Qn,ksuid:()=>Uu,keyof:()=>tl,jwt:()=>Bu,json:()=>bl,ipv6:()=>Pu,ipv4:()=>Ou,intersection:()=>Ft,int64:()=>Vu,int32:()=>qu,int:()=>mi,instanceof:()=>vl,httpUrl:()=>ku,hostname:()=>Cu,hex:()=>Fu,hash:()=>Lu,guid:()=>hu,function:()=>_t,float64:()=>Hu,float32:()=>Mu,file:()=>ll,exactOptional:()=>Wn,enum:()=>te,emoji:()=>Su,email:()=>gu,e164:()=>Au,discriminatedUnion:()=>Ri,describe:()=>ra,date:()=>el,custom:()=>ea,cuid2:()=>wu,cuid:()=>Iu,codec:()=>fl,cidrv6:()=>Zu,cidrv4:()=>Du,check:()=>hl,catch:()=>Xn,boolean:()=>G,bigint:()=>Wu,base64url:()=>Eu,base64:()=>ju,array:()=>P,any:()=>Yu,_function:()=>_t,_default:()=>Vn,_ZodString:()=>dt,ZodXor:()=>Xi,ZodXID:()=>zt,ZodVoid:()=>Ki,ZodUnknown:()=>Wi,ZodUnion:()=>Ve,ZodUndefined:()=>Hi,ZodUUID:()=>ve,ZodURL:()=>Ge,ZodULID:()=>wt,ZodType:()=>U,ZodTuple:()=>er,ZodTransform:()=>ar,ZodTemplateLiteral:()=>pr,ZodSymbol:()=>Mi,ZodSuccess:()=>dr,ZodStringFormat:()=>R,ZodString:()=>Qe,ZodSet:()=>ir,ZodRecord:()=>it,ZodReadonly:()=>fr,ZodPromise:()=>hr,ZodPrefault:()=>lr,ZodPipe:()=>Rt,ZodOptional:()=>At,ZodObject:()=>tt,ZodNumberFormat:()=>De,ZodNumber:()=>Xe,ZodNullable:()=>sr,ZodNull:()=>qi,ZodNonOptional:()=>Bt,ZodNever:()=>Vi,ZodNanoID:()=>St,ZodNaN:()=>mr,ZodMap:()=>tr,ZodMAC:()=>Li,ZodLiteral:()=>rr,ZodLazy:()=>gr,ZodKSUID:()=>Nt,ZodJWT:()=>Et,ZodIntersection:()=>Qi,ZodIPv6:()=>Ot,ZodIPv4:()=>Ut,ZodGUID:()=>We,ZodFunction:()=>vr,ZodFile:()=>nr,ZodExactOptional:()=>or,ZodEnum:()=>Ee,ZodEmoji:()=>kt,ZodEmail:()=>yt,ZodE164:()=>jt,ZodDiscriminatedUnion:()=>Yi,ZodDefault:()=>ur,ZodDate:()=>Mt,ZodCustomStringFormat:()=>Re,ZodCustom:()=>rt,ZodCodec:()=>Ht,ZodCatch:()=>cr,ZodCUID2:()=>It,ZodCUID:()=>xt,ZodCIDRv6:()=>Pt,ZodCIDRv4:()=>Tt,ZodBoolean:()=>et,ZodBigIntFormat:()=>Lt,ZodBigInt:()=>Ye,ZodBase64URL:()=>Zt,ZodBase64:()=>Dt,ZodArray:()=>Gi,ZodAny:()=>Ji});function f(e){return gm(Qe,e)}function gu(e){return qs(yt,e)}function hu(e){return en(We,e)}function vu(e){return Js(ve,e)}function bu(e){return Ws(ve,e)}function $u(e){return Vs(ve,e)}function _u(e){return Ks(ve,e)}function yu(e){return In(Ge,e)}function ku(e){return In(Ge,{protocol:/^https?$/,hostname:Be.domain,...D.normalizeParams(e)})}function Su(e){return Gs(kt,e)}function xu(e){return Xs(St,e)}function Iu(e){return Ys(xt,e)}function wu(e){return Qs(It,e)}function zu(e){return eu(wt,e)}function Nu(e){return tu(zt,e)}function Uu(e){return iu(Nt,e)}function Ou(e){return ru(Ut,e)}function Tu(e){return vm(Li,e)}function Pu(e){return nu(Ot,e)}function Du(e){return au(Tt,e)}function Zu(e){return ou(Pt,e)}function ju(e){return su(Dt,e)}function Eu(e){return uu(Zt,e)}function Au(e){return lu(jt,e)}function Bu(e){return du(Et,e)}function Ru(e,i,r={}){return Ti(Re,e,i,r)}function Cu(e){return Ti(Re,"hostname",Be.hostname,e)}function Fu(e){return Ti(Re,"hex",Be.hex,e)}function Lu(e,i){let r=i?.enc??"hex",a=`${e}_${r}`,t=Be[a];if(!t)throw Error(`Unrecognized hash format: ${a}`);return Ti(Re,a,t,i)}function A(e){return km(Xe,e)}function mi(e){return xm(De,e)}function Mu(e){return Im(De,e)}function Hu(e){return wm(De,e)}function qu(e){return zm(De,e)}function Ju(e){return Nm(De,e)}function G(e){return Um(et,e)}function Wu(e){return Tm(Ye,e)}function Vu(e){return Dm(Lt,e)}function Ku(e){return Zm(Lt,e)}function Gu(e){return jm(Mi,e)}function Xu(e){return Em(Hi,e)}function Ai(e){return Am(qi,e)}function Yu(){return Bm(Ji)}function M(){return Rm(Wi)}function Bi(e){return Cm(Vi,e)}function Qu(e){return Fm(Ki,e)}function el(e){return Lm(Mt,e)}function P(e,i){return qm(Gi,e,i)}function tl(e){let i=e._zod.def.shape;return te(Object.keys(i))}function y(e,i){let r={type:"object",shape:e??{},...D.normalizeParams(i)};return new tt(r)}function il(e,i){return new tt({type:"object",shape:e,catchall:Bi(),...D.normalizeParams(i)})}function Q(e,i){return new tt({type:"object",shape:e,catchall:M(),...D.normalizeParams(i)})}function H(e,i){return new Ve({type:"union",options:e,...D.normalizeParams(i)})}function rl(e,i){return new Xi({type:"union",options:e,inclusive:!1,...D.normalizeParams(i)})}function Ri(e,i,r){return new Yi({type:"union",options:i,discriminator:e,...D.normalizeParams(r)})}function Ft(e,i){return new Qi({type:"intersection",left:e,right:i})}function Jn(e,i,r){let a=i instanceof N,t=a?r:i;return new er({type:"tuple",items:e,rest:a?i:null,...D.normalizeParams(t)})}function C(e,i,r){return new it({type:"record",keyType:e,valueType:i,...D.normalizeParams(r)})}function nl(e,i,r){let a=ge(e);return a._zod.values=void 0,new it({type:"record",keyType:a,valueType:i,...D.normalizeParams(r)})}function al(e,i,r){return new it({type:"record",keyType:e,valueType:i,mode:"loose",...D.normalizeParams(r)})}function ol(e,i,r){return new tr({type:"map",keyType:e,valueType:i,...D.normalizeParams(r)})}function sl(e,i){return new ir({type:"set",valueType:e,...D.normalizeParams(i)})}function te(e,i){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Ee({type:"enum",entries:r,...D.normalizeParams(i)})}function ul(e,i){return new Ee({type:"enum",entries:e,...D.normalizeParams(i)})}function S(e,i){return new rr({type:"literal",values:Array.isArray(e)?e:[e],...D.normalizeParams(i)})}function ll(e){return Jm(nr,e)}function Ci(e){return new ar({type:"transform",transform:e})}function J(e){return new At({type:"optional",innerType:e})}function Wn(e){return new or({type:"optional",innerType:e})}function bt(e){return new sr({type:"nullable",innerType:e})}function dl(e){return J(bt(e))}function Vn(e,i){return new ur({type:"default",innerType:e,get defaultValue(){return typeof i=="function"?i():D.shallowClone(i)}})}function Kn(e,i){return new lr({type:"prefault",innerType:e,get defaultValue(){return typeof i=="function"?i():D.shallowClone(i)}})}function Gn(e,i){return new Bt({type:"nonoptional",innerType:e,...D.normalizeParams(i)})}function cl(e){return new dr({type:"success",innerType:e})}function Xn(e,i){return new cr({type:"catch",innerType:e,catchValue:typeof i=="function"?i:()=>i})}function ml(e){return Hm(mr,e)}function $t(e,i){return new Rt({type:"pipe",in:e,out:i})}function fl(e,i,r){return new Ht({type:"pipe",in:e,out:i,transform:r.decode,reverseTransform:r.encode})}function Yn(e){return new fr({type:"readonly",innerType:e})}function pl(e,i){return new pr({type:"template_literal",parts:e,...D.normalizeParams(i)})}function Qn(e){return new gr({type:"lazy",getter:e})}function gl(e){return new hr({type:"promise",innerType:e})}function _t(e){return new vr({type:"function",input:Array.isArray(e?.input)?Jn(e?.input):e?.input??P(M()),output:e?.output??M()})}function hl(e){let i=new V({check:"custom"});return i._zod.check=e,i}function ea(e,i){return Wm(rt,e??(()=>!0),i)}function ta(e,i={}){return Vm(rt,e,i)}function ia(e){return Km(e)}function vl(e,i={}){let r=new rt({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...D.normalizeParams(i)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}function bl(e){let i=Qn(()=>H([f(e),A(),G(),Ai(),P(i),C(f(),i)]));return i}function Fi(e,i){return $t(Ci(e),i)}var U,dt,Qe,R,yt,We,ve,Ge,kt,St,xt,It,wt,zt,Nt,Ut,Li,Ot,Tt,Pt,Dt,Zt,jt,Et,Re,Xe,De,et,Ye,Lt,Mi,Hi,qi,Ji,Wi,Vi,Ki,Mt,Gi,tt,Ve,Xi,Yi,Qi,er,it,tr,ir,Ee,rr,nr,ar,At,or,sr,ur,lr,Bt,dr,cr,mr,Rt,Ht,fr,pr,gr,hr,vr,rt,ra,na,$l=(...e)=>Qm({Codec:Ht,Boolean:et,String:Qe},...e),aa=_(()=>{pe(),pe(),Dn(),Pn(),fu(),rn(),Jf(),U=m("ZodType",(e,i)=>(N.init(e,i),Object.assign(e["~standard"],{jsonSchema:{input:ci(e,"input"),output:ci(e,"output")}}),e.toJSONSchema=ef(e,{}),e.def=i,e.type=i.type,Object.defineProperty(e,"_def",{value:i}),e.check=(...r)=>e.clone(D.mergeDefs(i,{checks:[...i.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>ge(e,r,a),e.brand=()=>e,e.register=(r,a)=>(r.add(e,a),e),e.parse=(r,a)=>Zn(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>En(e,r,a),e.parseAsync=async(r,a)=>jn(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>An(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>Bn(e,r,a),e.decode=(r,a)=>Rn(e,r,a),e.encodeAsync=async(r,a)=>Cn(e,r,a),e.decodeAsync=async(r,a)=>Fn(e,r,a),e.safeEncode=(r,a)=>Ln(e,r,a),e.safeDecode=(r,a)=>Mn(e,r,a),e.safeEncodeAsync=async(r,a)=>Hn(e,r,a),e.safeDecodeAsync=async(r,a)=>qn(e,r,a),e.refine=(r,a)=>e.check(ta(r,a)),e.superRefine=r=>e.check(ia(r)),e.overwrite=r=>e.check(we(r)),e.optional=()=>J(e),e.exactOptional=()=>Wn(e),e.nullable=()=>bt(e),e.nullish=()=>J(bt(e)),e.nonoptional=r=>Gn(e,r),e.array=()=>P(e),e.or=r=>H([e,r]),e.and=r=>Ft(e,r),e.transform=r=>$t(e,Ci(r)),e.default=r=>Vn(e,r),e.prefault=r=>Kn(e,r),e.catch=r=>Xn(e,r),e.pipe=r=>$t(e,r),e.readonly=()=>Yn(e),e.describe=r=>{let a=e.clone();return me.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return me.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return me.get(e);let a=e.clone();return me.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),dt=m("_ZodString",(e,i)=>{ct.init(e,i),U.init(e,i),e._zod.processJSONSchema=(a,t,n)=>rf(e,a,t,n);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check($i(...a)),e.includes=(...a)=>e.check(ki(...a)),e.startsWith=(...a)=>e.check(Si(...a)),e.endsWith=(...a)=>e.check(xi(...a)),e.min=(...a)=>e.check(je(...a)),e.max=(...a)=>e.check(ft(...a)),e.length=(...a)=>e.check(pt(...a)),e.nonempty=(...a)=>e.check(je(1,...a)),e.lowercase=a=>e.check(_i(a)),e.uppercase=a=>e.check(yi(a)),e.trim=()=>e.check(zi()),e.normalize=(...a)=>e.check(wi(...a)),e.toLowerCase=()=>e.check(Ni()),e.toUpperCase=()=>e.check(Ui()),e.slugify=()=>e.check(Oi())}),Qe=m("ZodString",(e,i)=>{ct.init(e,i),dt.init(e,i),e.email=r=>e.check(qs(yt,r)),e.url=r=>e.check(In(Ge,r)),e.jwt=r=>e.check(du(Et,r)),e.emoji=r=>e.check(Gs(kt,r)),e.guid=r=>e.check(en(We,r)),e.uuid=r=>e.check(Js(ve,r)),e.uuidv4=r=>e.check(Ws(ve,r)),e.uuidv6=r=>e.check(Vs(ve,r)),e.uuidv7=r=>e.check(Ks(ve,r)),e.nanoid=r=>e.check(Xs(St,r)),e.guid=r=>e.check(en(We,r)),e.cuid=r=>e.check(Ys(xt,r)),e.cuid2=r=>e.check(Qs(It,r)),e.ulid=r=>e.check(eu(wt,r)),e.base64=r=>e.check(su(Dt,r)),e.base64url=r=>e.check(uu(Zt,r)),e.xid=r=>e.check(tu(zt,r)),e.ksuid=r=>e.check(iu(Nt,r)),e.ipv4=r=>e.check(ru(Ut,r)),e.ipv6=r=>e.check(nu(Ot,r)),e.cidrv4=r=>e.check(au(Tt,r)),e.cidrv6=r=>e.check(ou(Pt,r)),e.e164=r=>e.check(lu(jt,r)),e.datetime=r=>e.check(Ff(r)),e.date=r=>e.check(Lf(r)),e.time=r=>e.check(Mf(r)),e.duration=r=>e.check(Hf(r))}),R=m("ZodStringFormat",(e,i)=>{F.init(e,i),dt.init(e,i)}),yt=m("ZodEmail",(e,i)=>{Ro.init(e,i),R.init(e,i)}),We=m("ZodGUID",(e,i)=>{Ao.init(e,i),R.init(e,i)}),ve=m("ZodUUID",(e,i)=>{Bo.init(e,i),R.init(e,i)}),Ge=m("ZodURL",(e,i)=>{Co.init(e,i),R.init(e,i)}),kt=m("ZodEmoji",(e,i)=>{Fo.init(e,i),R.init(e,i)}),St=m("ZodNanoID",(e,i)=>{Lo.init(e,i),R.init(e,i)}),xt=m("ZodCUID",(e,i)=>{Mo.init(e,i),R.init(e,i)}),It=m("ZodCUID2",(e,i)=>{Ho.init(e,i),R.init(e,i)}),wt=m("ZodULID",(e,i)=>{qo.init(e,i),R.init(e,i)}),zt=m("ZodXID",(e,i)=>{Jo.init(e,i),R.init(e,i)}),Nt=m("ZodKSUID",(e,i)=>{Wo.init(e,i),R.init(e,i)}),Ut=m("ZodIPv4",(e,i)=>{Yo.init(e,i),R.init(e,i)}),Li=m("ZodMAC",(e,i)=>{es.init(e,i),R.init(e,i)}),Ot=m("ZodIPv6",(e,i)=>{Qo.init(e,i),R.init(e,i)}),Tt=m("ZodCIDRv4",(e,i)=>{ts.init(e,i),R.init(e,i)}),Pt=m("ZodCIDRv6",(e,i)=>{is.init(e,i),R.init(e,i)}),Dt=m("ZodBase64",(e,i)=>{rs.init(e,i),R.init(e,i)}),Zt=m("ZodBase64URL",(e,i)=>{ns.init(e,i),R.init(e,i)}),jt=m("ZodE164",(e,i)=>{as.init(e,i),R.init(e,i)}),Et=m("ZodJWT",(e,i)=>{os.init(e,i),R.init(e,i)}),Re=m("ZodCustomStringFormat",(e,i)=>{ss.init(e,i),R.init(e,i)}),Xe=m("ZodNumber",(e,i)=>{Kr.init(e,i),U.init(e,i),e._zod.processJSONSchema=(a,t,n)=>nf(e,a,t,n),e.gt=(a,t)=>e.check(Te(a,t)),e.gte=(a,t)=>e.check(le(a,t)),e.min=(a,t)=>e.check(le(a,t)),e.lt=(a,t)=>e.check(Oe(a,t)),e.lte=(a,t)=>e.check(fe(a,t)),e.max=(a,t)=>e.check(fe(a,t)),e.int=a=>e.check(mi(a)),e.safe=a=>e.check(mi(a)),e.positive=a=>e.check(Te(0,a)),e.nonnegative=a=>e.check(le(0,a)),e.negative=a=>e.check(Oe(0,a)),e.nonpositive=a=>e.check(fe(0,a)),e.multipleOf=(a,t)=>e.check(qe(a,t)),e.step=(a,t)=>e.check(qe(a,t)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null}),De=m("ZodNumberFormat",(e,i)=>{us.init(e,i),Xe.init(e,i)}),et=m("ZodBoolean",(e,i)=>{bn.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>af(e,r,a,t)}),Ye=m("ZodBigInt",(e,i)=>{Gr.init(e,i),U.init(e,i),e._zod.processJSONSchema=(a,t,n)=>of(e,a,t,n),e.gte=(a,t)=>e.check(le(a,t)),e.min=(a,t)=>e.check(le(a,t)),e.gt=(a,t)=>e.check(Te(a,t)),e.gte=(a,t)=>e.check(le(a,t)),e.min=(a,t)=>e.check(le(a,t)),e.lt=(a,t)=>e.check(Oe(a,t)),e.lte=(a,t)=>e.check(fe(a,t)),e.max=(a,t)=>e.check(fe(a,t)),e.positive=a=>e.check(Te(BigInt(0),a)),e.negative=a=>e.check(Oe(BigInt(0),a)),e.nonpositive=a=>e.check(fe(BigInt(0),a)),e.nonnegative=a=>e.check(le(BigInt(0),a)),e.multipleOf=(a,t)=>e.check(qe(a,t));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null}),Lt=m("ZodBigIntFormat",(e,i)=>{ls.init(e,i),Ye.init(e,i)}),Mi=m("ZodSymbol",(e,i)=>{ds.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>sf(e,r,a,t)}),Hi=m("ZodUndefined",(e,i)=>{cs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>lf(e,r,a,t)}),qi=m("ZodNull",(e,i)=>{ms.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>uf(e,r,a,t)}),Ji=m("ZodAny",(e,i)=>{fs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>mf(e,r,a,t)}),Wi=m("ZodUnknown",(e,i)=>{ps.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>ff(e,r,a,t)}),Vi=m("ZodNever",(e,i)=>{gs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>cf(e,r,a,t)}),Ki=m("ZodVoid",(e,i)=>{hs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>df(e,r,a,t)}),Mt=m("ZodDate",(e,i)=>{vs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(a,t,n)=>pf(e,a,t,n),e.min=(a,t)=>e.check(le(a,t)),e.max=(a,t)=>e.check(fe(a,t));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null}),Gi=m("ZodArray",(e,i)=>{bs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>wf(e,r,a,t),e.element=i.element,e.min=(r,a)=>e.check(je(r,a)),e.nonempty=r=>e.check(je(1,r)),e.max=(r,a)=>e.check(ft(r,a)),e.length=(r,a)=>e.check(pt(r,a)),e.unwrap=()=>e.element}),tt=m("ZodObject",(e,i)=>{$s.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>zf(e,r,a,t),D.defineLazy(e,"shape",()=>i.shape),e.keyof=()=>te(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:M()}),e.loose=()=>e.clone({...e._zod.def,catchall:M()}),e.strict=()=>e.clone({...e._zod.def,catchall:Bi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>D.extend(e,r),e.safeExtend=r=>D.safeExtend(e,r),e.merge=r=>D.merge(e,r),e.pick=r=>D.pick(e,r),e.omit=r=>D.omit(e,r),e.partial=(...r)=>D.partial(At,e,r[0]),e.required=(...r)=>D.required(Bt,e,r[0])}),Ve=m("ZodUnion",(e,i)=>{si.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>ka(e,r,a,t),e.options=i.options}),Xi=m("ZodXor",(e,i)=>{Ve.init(e,i),_s.init(e,i),e._zod.processJSONSchema=(r,a,t)=>ka(e,r,a,t),e.options=i.options}),Yi=m("ZodDiscriminatedUnion",(e,i)=>{Ve.init(e,i),ys.init(e,i)}),Qi=m("ZodIntersection",(e,i)=>{ks.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Nf(e,r,a,t)}),er=m("ZodTuple",(e,i)=>{Xr.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Uf(e,r,a,t),e.rest=r=>e.clone({...e._zod.def,rest:r})}),it=m("ZodRecord",(e,i)=>{Ss.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Of(e,r,a,t),e.keyType=i.keyType,e.valueType=i.valueType}),tr=m("ZodMap",(e,i)=>{xs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>xf(e,r,a,t),e.keyType=i.keyType,e.valueType=i.valueType,e.min=(...r)=>e.check(Ne(...r)),e.nonempty=r=>e.check(Ne(1,r)),e.max=(...r)=>e.check(Je(...r)),e.size=(...r)=>e.check(mt(...r))}),ir=m("ZodSet",(e,i)=>{Is.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>If(e,r,a,t),e.min=(...r)=>e.check(Ne(...r)),e.nonempty=r=>e.check(Ne(1,r)),e.max=(...r)=>e.check(Je(...r)),e.size=(...r)=>e.check(mt(...r))}),Ee=m("ZodEnum",(e,i)=>{ws.init(e,i),U.init(e,i),e._zod.processJSONSchema=(a,t,n)=>gf(e,a,t,n),e.enum=i.entries,e.options=Object.values(i.entries);let r=new Set(Object.keys(i.entries));e.extract=(a,t)=>{let n={};for(let o of a)if(r.has(o))n[o]=i.entries[o];else throw Error(`Key ${o} not found in enum`);return new Ee({...i,checks:[],...D.normalizeParams(t),entries:n})},e.exclude=(a,t)=>{let n={...i.entries};for(let o of a)if(r.has(o))delete n[o];else throw Error(`Key ${o} not found in enum`);return new Ee({...i,checks:[],...D.normalizeParams(t),entries:n})}}),rr=m("ZodLiteral",(e,i)=>{zs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>hf(e,r,a,t),e.values=new Set(i.values),Object.defineProperty(e,"value",{get(){if(i.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return i.values[0]}})}),nr=m("ZodFile",(e,i)=>{Ns.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>$f(e,r,a,t),e.min=(r,a)=>e.check(Ne(r,a)),e.max=(r,a)=>e.check(Je(r,a)),e.mime=(r,a)=>e.check(Ii(Array.isArray(r)?r:[r],a))}),ar=m("ZodTransform",(e,i)=>{Us.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Sf(e,r,a,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ui(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(D.issue(n,r.value,i));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(D.issue(o))}};let t=i.transform(r.value,r);return t instanceof Promise?t.then(n=>(r.value=n,r)):(r.value=t,r)}}),At=m("ZodOptional",(e,i)=>{Yr.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Sa(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),or=m("ZodExactOptional",(e,i)=>{Os.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Sa(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),sr=m("ZodNullable",(e,i)=>{Ts.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Tf(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),ur=m("ZodDefault",(e,i)=>{Ps.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Df(e,r,a,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),lr=m("ZodPrefault",(e,i)=>{Ds.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Zf(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),Bt=m("ZodNonOptional",(e,i)=>{Zs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Pf(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),dr=m("ZodSuccess",(e,i)=>{js.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>_f(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),cr=m("ZodCatch",(e,i)=>{Es.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>jf(e,r,a,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),mr=m("ZodNaN",(e,i)=>{As.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>vf(e,r,a,t)}),Rt=m("ZodPipe",(e,i)=>{Bs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Ef(e,r,a,t),e.in=i.in,e.out=i.out}),Ht=m("ZodCodec",(e,i)=>{Rt.init(e,i),$n.init(e,i)}),fr=m("ZodReadonly",(e,i)=>{Rs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Af(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),pr=m("ZodTemplateLiteral",(e,i)=>{Cs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>bf(e,r,a,t)}),gr=m("ZodLazy",(e,i)=>{Ms.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Rf(e,r,a,t),e.unwrap=()=>e._zod.def.getter()}),hr=m("ZodPromise",(e,i)=>{Ls.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>Bf(e,r,a,t),e.unwrap=()=>e._zod.def.innerType}),vr=m("ZodFunction",(e,i)=>{Fs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>kf(e,r,a,t)}),rt=m("ZodCustom",(e,i)=>{Hs.init(e,i),U.init(e,i),e._zod.processJSONSchema=(r,a,t)=>yf(e,r,a,t)}),ra=Xm,na=Ym});function Vf(e){ee({customError:e})}function Kf(){return ee().customError}var _l,nn,ib=_(()=>{pe(),_l={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"},nn||(nn={})});function rb(e,i){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":i??"draft-2020-12"}function nb(e,i){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return i.rootSchema;let a=i.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===a){let t=r[1];if(!t||!i.defs[t])throw Error(`Reference not found: ${e}`);return i.defs[t]}throw Error(`Reference not found: ${e}`)}function Gf(e,i){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return $.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(i.refs.has(t))return i.refs.get(t);if(i.processing.has(t))return $.lazy(()=>{if(!i.refs.has(t))throw Error(`Circular reference not resolved: ${t}`);return i.refs.get(t)});i.processing.add(t);let n=nb(t,i),o=oe(n,i);return i.refs.set(t,o),i.processing.delete(t),o}if(e.enum!==void 0){let t=e.enum;if(i.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return $.null();if(t.length===0)return $.never();if(t.length===1)return $.literal(t[0]);if(t.every(o=>typeof o=="string"))return $.enum(t);let n=t.map(o=>$.literal(o));return n.length<2?n[0]:$.union([n[0],n[1],...n.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let r=e.type;if(Array.isArray(r)){let t=r.map(n=>{let o={...e,type:n};return Gf(o,i)});return t.length===0?$.never():t.length===1?t[0]:$.union(t)}if(!r)return $.any();let a;switch(r){case"string":{let t=$.string();if(e.format){let n=e.format;n==="email"?t=t.check($.email()):n==="uri"||n==="uri-reference"?t=t.check($.url()):n==="uuid"||n==="guid"?t=t.check($.uuid()):n==="date-time"?t=t.check($.iso.datetime()):n==="date"?t=t.check($.iso.date()):n==="time"?t=t.check($.iso.time()):n==="duration"?t=t.check($.iso.duration()):n==="ipv4"?t=t.check($.ipv4()):n==="ipv6"?t=t.check($.ipv6()):n==="mac"?t=t.check($.mac()):n==="cidr"?t=t.check($.cidrv4()):n==="cidr-v6"?t=t.check($.cidrv6()):n==="base64"?t=t.check($.base64()):n==="base64url"?t=t.check($.base64url()):n==="e164"?t=t.check($.e164()):n==="jwt"?t=t.check($.jwt()):n==="emoji"?t=t.check($.emoji()):n==="nanoid"?t=t.check($.nanoid()):n==="cuid"?t=t.check($.cuid()):n==="cuid2"?t=t.check($.cuid2()):n==="ulid"?t=t.check($.ulid()):n==="xid"?t=t.check($.xid()):n==="ksuid"&&(t=t.check($.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),a=t;break}case"number":case"integer":{let t=r==="integer"?$.number().int():$.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),a=t;break}case"boolean":{a=$.boolean();break}case"null":{a=$.null();break}case"object":{let t={},n=e.properties||{},o=new Set(e.required||[]);for(let[l,d]of Object.entries(n)){let c=oe(d,i);t[l]=o.has(l)?c:c.optional()}if(e.propertyNames){let l=oe(e.propertyNames,i),d=e.additionalProperties&&typeof e.additionalProperties=="object"?oe(e.additionalProperties,i):$.any();if(Object.keys(t).length===0){a=$.record(l,d);break}let c=$.object(t).passthrough(),p=$.looseRecord(l,d);a=$.intersection(c,p);break}if(e.patternProperties){let l=e.patternProperties,d=Object.keys(l),c=[];for(let h of d){let k=oe(l[h],i),O=$.string().regex(new RegExp(h));c.push($.looseRecord(O,k))}let p=[];if(Object.keys(t).length>0&&p.push($.object(t).passthrough()),p.push(...c),p.length===0)a=$.object({}).passthrough();else if(p.length===1)a=p[0];else{let h=$.intersection(p[0],p[1]);for(let k=2;k<p.length;k++)h=$.intersection(h,p[k]);a=h}break}let s=$.object(t);e.additionalProperties===!1?a=s.strict():typeof e.additionalProperties=="object"?a=s.catchall(oe(e.additionalProperties,i)):a=s.passthrough();break}case"array":{let{prefixItems:t,items:n}=e;if(t&&Array.isArray(t)){let o=t.map(l=>oe(l,i)),s=n&&typeof n=="object"&&!Array.isArray(n)?oe(n,i):void 0;s?a=$.tuple(o).rest(s):a=$.tuple(o),typeof e.minItems=="number"&&(a=a.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check($.maxLength(e.maxItems)))}else if(Array.isArray(n)){let o=n.map(l=>oe(l,i)),s=e.additionalItems&&typeof e.additionalItems=="object"?oe(e.additionalItems,i):void 0;s?a=$.tuple(o).rest(s):a=$.tuple(o),typeof e.minItems=="number"&&(a=a.check($.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check($.maxLength(e.maxItems)))}else if(n!==void 0){let o=oe(n,i),s=$.array(o);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),a=s}else a=$.array($.any());break}default:throw Error(`Unsupported type: ${r}`)}return e.description&&(a=a.describe(e.description)),e.default!==void 0&&(a=a.default(e.default)),a}function oe(e,i){if(typeof e=="boolean")return e?$.any():$.never();let r=Gf(e,i),a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(d=>oe(d,i)),l=$.union(s);r=a?$.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(d=>oe(d,i)),l=$.xor(s);r=a?$.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=a?r:$.any();else{let s=a?r:oe(e.allOf[0],i),l=a?0:1;for(let d=l;d<e.allOf.length;d++)s=$.intersection(s,oe(e.allOf[d],i));r=s}e.nullable===!0&&i.version==="openapi-3.0"&&(r=$.nullable(r)),e.readOnly===!0&&(r=$.readonly(r));let t={},n=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of n)s in e&&(t[s]=e[s]);let o=["contentEncoding","contentMediaType","contentSchema"];for(let s of o)s in e&&(t[s]=e[s]);for(let s of Object.keys(e))Yf.has(s)||(t[s]=e[s]);return Object.keys(t).length>0&&i.registry.add(r,t),r}function Xf(e,i){if(typeof e=="boolean")return e?$.any():$.never();let r=rb(e,i?.defaultTarget),a=e.$defs||e.definitions||{},t={version:r,defs:a,refs:new Map,processing:new Set,rootSchema:e,registry:i?.registry??me};return oe(e,t)}var $,Yf,ab=_(()=>{xn(),fu(),rn(),aa(),$={...Wf,...Cf,iso:Pi},Yf=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"])}),yl={};Ie(yl,{string:()=>ob,number:()=>sb,date:()=>db,boolean:()=>ub,bigint:()=>lb});function ob(e){return hm(Qe,e)}function sb(e){return Sm(Xe,e)}function ub(e){return Om(et,e)}function lb(e){return Pm(Ye,e)}function db(e){return Mm(Mt,e)}var cb=_(()=>{pe(),aa()}),u={};Ie(u,{xor:()=>rl,xid:()=>Nu,void:()=>Qu,uuidv7:()=>_u,uuidv6:()=>$u,uuidv4:()=>bu,uuid:()=>vu,util:()=>D,url:()=>yu,uppercase:()=>yi,unknown:()=>M,union:()=>H,undefined:()=>Xu,ulid:()=>zu,uint64:()=>Ku,uint32:()=>Ju,tuple:()=>Jn,trim:()=>zi,treeifyError:()=>Za,transform:()=>Ci,toUpperCase:()=>Ui,toLowerCase:()=>Ni,toJSONSchema:()=>cu,templateLiteral:()=>pl,symbol:()=>Gu,superRefine:()=>ia,success:()=>cl,stringbool:()=>$l,stringFormat:()=>Ru,string:()=>f,strictObject:()=>il,startsWith:()=>Si,slugify:()=>Oi,size:()=>mt,setErrorMap:()=>Vf,set:()=>sl,safeParseAsync:()=>An,safeParse:()=>En,safeEncodeAsync:()=>Hn,safeEncode:()=>Ln,safeDecodeAsync:()=>qn,safeDecode:()=>Mn,registry:()=>yn,regexes:()=>Be,regex:()=>$i,refine:()=>ta,record:()=>C,readonly:()=>Yn,property:()=>On,promise:()=>gl,prettifyError:()=>ja,preprocess:()=>Fi,prefault:()=>Kn,positive:()=>wn,pipe:()=>$t,partialRecord:()=>nl,parseAsync:()=>jn,parse:()=>Zn,overwrite:()=>we,optional:()=>J,object:()=>y,number:()=>A,nullish:()=>dl,nullable:()=>bt,null:()=>Ai,normalize:()=>wi,nonpositive:()=>Nn,nonoptional:()=>Gn,nonnegative:()=>Un,never:()=>Bi,negative:()=>zn,nativeEnum:()=>ul,nanoid:()=>xu,nan:()=>ml,multipleOf:()=>qe,minSize:()=>Ne,minLength:()=>je,mime:()=>Ii,meta:()=>na,maxSize:()=>Je,maxLength:()=>ft,map:()=>ol,mac:()=>Tu,lte:()=>fe,lt:()=>Oe,lowercase:()=>_i,looseRecord:()=>al,looseObject:()=>Q,locales:()=>_n,literal:()=>S,length:()=>pt,lazy:()=>Qn,ksuid:()=>Uu,keyof:()=>tl,jwt:()=>Bu,json:()=>bl,iso:()=>Pi,ipv6:()=>Pu,ipv4:()=>Ou,intersection:()=>Ft,int64:()=>Vu,int32:()=>qu,int:()=>mi,instanceof:()=>vl,includes:()=>ki,httpUrl:()=>ku,hostname:()=>Cu,hex:()=>Fu,hash:()=>Lu,guid:()=>hu,gte:()=>le,gt:()=>Te,globalRegistry:()=>me,getErrorMap:()=>Kf,function:()=>_t,fromJSONSchema:()=>Xf,formatError:()=>mn,float64:()=>Hu,float32:()=>Mu,flattenError:()=>cn,file:()=>ll,exactOptional:()=>Wn,enum:()=>te,endsWith:()=>xi,encodeAsync:()=>Cn,encode:()=>Bn,emoji:()=>Su,email:()=>gu,e164:()=>Au,discriminatedUnion:()=>Ri,describe:()=>ra,decodeAsync:()=>Fn,decode:()=>Rn,date:()=>el,custom:()=>ea,cuid2:()=>wu,cuid:()=>Iu,core:()=>mu,config:()=>ee,coerce:()=>yl,codec:()=>fl,clone:()=>ge,cidrv6:()=>Zu,cidrv4:()=>Du,check:()=>hl,catch:()=>Xn,boolean:()=>G,bigint:()=>Wu,base64url:()=>Eu,base64:()=>ju,array:()=>P,any:()=>Yu,_function:()=>_t,_default:()=>Vn,_ZodString:()=>dt,ZodXor:()=>Xi,ZodXID:()=>zt,ZodVoid:()=>Ki,ZodUnknown:()=>Wi,ZodUnion:()=>Ve,ZodUndefined:()=>Hi,ZodUUID:()=>ve,ZodURL:()=>Ge,ZodULID:()=>wt,ZodType:()=>U,ZodTuple:()=>er,ZodTransform:()=>ar,ZodTemplateLiteral:()=>pr,ZodSymbol:()=>Mi,ZodSuccess:()=>dr,ZodStringFormat:()=>R,ZodString:()=>Qe,ZodSet:()=>ir,ZodRecord:()=>it,ZodRealError:()=>ue,ZodReadonly:()=>fr,ZodPromise:()=>hr,ZodPrefault:()=>lr,ZodPipe:()=>Rt,ZodOptional:()=>At,ZodObject:()=>tt,ZodNumberFormat:()=>De,ZodNumber:()=>Xe,ZodNullable:()=>sr,ZodNull:()=>qi,ZodNonOptional:()=>Bt,ZodNever:()=>Vi,ZodNanoID:()=>St,ZodNaN:()=>mr,ZodMap:()=>tr,ZodMAC:()=>Li,ZodLiteral:()=>rr,ZodLazy:()=>gr,ZodKSUID:()=>Nt,ZodJWT:()=>Et,ZodIssueCode:()=>_l,ZodIntersection:()=>Qi,ZodISOTime:()=>ji,ZodISODuration:()=>Ei,ZodISODateTime:()=>Di,ZodISODate:()=>Zi,ZodIPv6:()=>Ot,ZodIPv4:()=>Ut,ZodGUID:()=>We,ZodFunction:()=>vr,ZodFirstPartyTypeKind:()=>nn,ZodFile:()=>nr,ZodExactOptional:()=>or,ZodError:()=>pu,ZodEnum:()=>Ee,ZodEmoji:()=>kt,ZodEmail:()=>yt,ZodE164:()=>jt,ZodDiscriminatedUnion:()=>Yi,ZodDefault:()=>ur,ZodDate:()=>Mt,ZodCustomStringFormat:()=>Re,ZodCustom:()=>rt,ZodCodec:()=>Ht,ZodCatch:()=>cr,ZodCUID2:()=>It,ZodCUID:()=>xt,ZodCIDRv6:()=>Pt,ZodCIDRv4:()=>Tt,ZodBoolean:()=>et,ZodBigIntFormat:()=>Lt,ZodBigInt:()=>Ye,ZodBase64URL:()=>Zt,ZodBase64:()=>Dt,ZodArray:()=>Gi,ZodAny:()=>Ji,TimePrecision:()=>Tn,NEVER:()=>un,$output:()=>kn,$input:()=>Sn,$brand:()=>ln});var Qd=_(()=>{pe(),pe(),lm(),pe(),Dn(),ab(),pm(),rn(),rn(),cb(),aa(),fu(),qf(),Jf(),ib(),ee(um())}),Qf,ec=_(()=>{Qd(),Qd(),Qf=u}),ep={};Ie(ep,{z:()=>u,xor:()=>rl,xid:()=>Nu,void:()=>Qu,uuidv7:()=>_u,uuidv6:()=>$u,uuidv4:()=>bu,uuid:()=>vu,util:()=>D,url:()=>yu,uppercase:()=>yi,unknown:()=>M,union:()=>H,undefined:()=>Xu,ulid:()=>zu,uint64:()=>Ku,uint32:()=>Ju,tuple:()=>Jn,trim:()=>zi,treeifyError:()=>Za,transform:()=>Ci,toUpperCase:()=>Ui,toLowerCase:()=>Ni,toJSONSchema:()=>cu,templateLiteral:()=>pl,symbol:()=>Gu,superRefine:()=>ia,success:()=>cl,stringbool:()=>$l,stringFormat:()=>Ru,string:()=>f,strictObject:()=>il,startsWith:()=>Si,slugify:()=>Oi,size:()=>mt,setErrorMap:()=>Vf,set:()=>sl,safeParseAsync:()=>An,safeParse:()=>En,safeEncodeAsync:()=>Hn,safeEncode:()=>Ln,safeDecodeAsync:()=>qn,safeDecode:()=>Mn,registry:()=>yn,regexes:()=>Be,regex:()=>$i,refine:()=>ta,record:()=>C,readonly:()=>Yn,property:()=>On,promise:()=>gl,prettifyError:()=>ja,preprocess:()=>Fi,prefault:()=>Kn,positive:()=>wn,pipe:()=>$t,partialRecord:()=>nl,parseAsync:()=>jn,parse:()=>Zn,overwrite:()=>we,optional:()=>J,object:()=>y,number:()=>A,nullish:()=>dl,nullable:()=>bt,null:()=>Ai,normalize:()=>wi,nonpositive:()=>Nn,nonoptional:()=>Gn,nonnegative:()=>Un,never:()=>Bi,negative:()=>zn,nativeEnum:()=>ul,nanoid:()=>xu,nan:()=>ml,multipleOf:()=>qe,minSize:()=>Ne,minLength:()=>je,mime:()=>Ii,meta:()=>na,maxSize:()=>Je,maxLength:()=>ft,map:()=>ol,mac:()=>Tu,lte:()=>fe,lt:()=>Oe,lowercase:()=>_i,looseRecord:()=>al,looseObject:()=>Q,locales:()=>_n,literal:()=>S,length:()=>pt,lazy:()=>Qn,ksuid:()=>Uu,keyof:()=>tl,jwt:()=>Bu,json:()=>bl,iso:()=>Pi,ipv6:()=>Pu,ipv4:()=>Ou,intersection:()=>Ft,int64:()=>Vu,int32:()=>qu,int:()=>mi,instanceof:()=>vl,includes:()=>ki,httpUrl:()=>ku,hostname:()=>Cu,hex:()=>Fu,hash:()=>Lu,guid:()=>hu,gte:()=>le,gt:()=>Te,globalRegistry:()=>me,getErrorMap:()=>Kf,function:()=>_t,fromJSONSchema:()=>Xf,formatError:()=>mn,float64:()=>Hu,float32:()=>Mu,flattenError:()=>cn,file:()=>ll,exactOptional:()=>Wn,enum:()=>te,endsWith:()=>xi,encodeAsync:()=>Cn,encode:()=>Bn,emoji:()=>Su,email:()=>gu,e164:()=>Au,discriminatedUnion:()=>Ri,describe:()=>ra,default:()=>tp,decodeAsync:()=>Fn,decode:()=>Rn,date:()=>el,custom:()=>ea,cuid2:()=>wu,cuid:()=>Iu,core:()=>mu,config:()=>ee,coerce:()=>yl,codec:()=>fl,clone:()=>ge,cidrv6:()=>Zu,cidrv4:()=>Du,check:()=>hl,catch:()=>Xn,boolean:()=>G,bigint:()=>Wu,base64url:()=>Eu,base64:()=>ju,array:()=>P,any:()=>Yu,_function:()=>_t,_default:()=>Vn,_ZodString:()=>dt,ZodXor:()=>Xi,ZodXID:()=>zt,ZodVoid:()=>Ki,ZodUnknown:()=>Wi,ZodUnion:()=>Ve,ZodUndefined:()=>Hi,ZodUUID:()=>ve,ZodURL:()=>Ge,ZodULID:()=>wt,ZodType:()=>U,ZodTuple:()=>er,ZodTransform:()=>ar,ZodTemplateLiteral:()=>pr,ZodSymbol:()=>Mi,ZodSuccess:()=>dr,ZodStringFormat:()=>R,ZodString:()=>Qe,ZodSet:()=>ir,ZodRecord:()=>it,ZodRealError:()=>ue,ZodReadonly:()=>fr,ZodPromise:()=>hr,ZodPrefault:()=>lr,ZodPipe:()=>Rt,ZodOptional:()=>At,ZodObject:()=>tt,ZodNumberFormat:()=>De,ZodNumber:()=>Xe,ZodNullable:()=>sr,ZodNull:()=>qi,ZodNonOptional:()=>Bt,ZodNever:()=>Vi,ZodNanoID:()=>St,ZodNaN:()=>mr,ZodMap:()=>tr,ZodMAC:()=>Li,ZodLiteral:()=>rr,ZodLazy:()=>gr,ZodKSUID:()=>Nt,ZodJWT:()=>Et,ZodIssueCode:()=>_l,ZodIntersection:()=>Qi,ZodISOTime:()=>ji,ZodISODuration:()=>Ei,ZodISODateTime:()=>Di,ZodISODate:()=>Zi,ZodIPv6:()=>Ot,ZodIPv4:()=>Ut,ZodGUID:()=>We,ZodFunction:()=>vr,ZodFirstPartyTypeKind:()=>nn,ZodFile:()=>nr,ZodExactOptional:()=>or,ZodError:()=>pu,ZodEnum:()=>Ee,ZodEmoji:()=>kt,ZodEmail:()=>yt,ZodE164:()=>jt,ZodDiscriminatedUnion:()=>Yi,ZodDefault:()=>ur,ZodDate:()=>Mt,ZodCustomStringFormat:()=>Re,ZodCustom:()=>rt,ZodCodec:()=>Ht,ZodCatch:()=>cr,ZodCUID2:()=>It,ZodCUID:()=>xt,ZodCIDRv6:()=>Pt,ZodCIDRv4:()=>Tt,ZodBoolean:()=>et,ZodBigIntFormat:()=>Lt,ZodBigInt:()=>Ye,ZodBase64URL:()=>Zt,ZodBase64:()=>Dt,ZodArray:()=>Gi,ZodAny:()=>Ji,TimePrecision:()=>Tn,NEVER:()=>un,$output:()=>kn,$input:()=>Sn,$brand:()=>ln});var tp,oa=_(()=>{ec(),ec(),tp=Qf});pe();function kl(e){return!!e._zod}function ip(e,i){return kl(e)?pn(e,i):e.safeParse(i)}function mb(e){if(!e)return;let i;if(kl(e)?i=e._zod?.def?.shape:i=e.shape,!!i){if(typeof i=="function")try{return i()}catch{return}return i}}function fb(e){if(kl(e)){let a=e._zod?.def;if(a){if(a.value!==void 0)return a.value;if(Array.isArray(a.values)&&a.values.length>0)return a.values[0]}}let i=e._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let r=e.value;if(r!==void 0)return r}oa();var Me="io.modelcontextprotocol/related-task",sa="2.0",X=ea(e=>e!==null&&(typeof e=="object"||typeof e=="function")),rp=H([f(),A().int()]),np=f(),D_=Q({ttl:A().optional(),pollInterval:A().optional()}),pb=y({ttl:A().optional()}),gb=y({taskId:f()}),Sl=Q({progressToken:rp.optional(),[Me]:gb.optional()}),he=y({_meta:Sl.optional()}),br=he.extend({task:pb.optional()}),hb=e=>br.safeParse(e).success,ie=y({method:f(),params:he.loose().optional()}),$e=y({_meta:Sl.optional()}),_e=y({method:f(),params:$e.loose().optional()}),re=Q({_meta:Sl.optional()}),$r=H([f(),A().int()]),ap=y({jsonrpc:S(sa),id:$r,...ie.shape}).strict(),tc=e=>ap.safeParse(e).success,op=y({jsonrpc:S(sa),..._e.shape}).strict(),vb=e=>op.safeParse(e).success,xl=y({jsonrpc:S(sa),id:$r,result:re}).strict(),Br=e=>xl.safeParse(e).success,B;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(B||(B={}));var Il=y({jsonrpc:S(sa),id:$r.optional(),error:y({code:A().int(),message:f(),data:M().optional()})}).strict(),bb=e=>Il.safeParse(e).success,$b=H([ap,op,xl,Il]),Z_=H([xl,Il]),wl=re.strict(),_b=$e.extend({requestId:$r.optional(),reason:f().optional()}),zl=_e.extend({method:S("notifications/cancelled"),params:_b}),yb=y({src:f(),mimeType:f().optional(),sizes:P(f()).optional(),theme:te(["light","dark"]).optional()}),_r=y({icons:P(yb).optional()}),Ct=y({name:f(),title:f().optional()}),ua=Ct.extend({...Ct.shape,..._r.shape,version:f(),websiteUrl:f().optional(),description:f().optional()}),kb=Ft(y({applyDefaults:G().optional()}),C(f(),M())),Sb=Fi(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Ft(y({form:kb.optional(),url:X.optional()}),C(f(),M()).optional())),xb=Q({list:X.optional(),cancel:X.optional(),requests:Q({sampling:Q({createMessage:X.optional()}).optional(),elicitation:Q({create:X.optional()}).optional()}).optional()}),Ib=Q({list:X.optional(),cancel:X.optional(),requests:Q({tools:Q({call:X.optional()}).optional()}).optional()}),wb=y({experimental:C(f(),X).optional(),sampling:y({context:X.optional(),tools:X.optional()}).optional(),elicitation:Sb.optional(),roots:y({listChanged:G().optional()}).optional(),tasks:xb.optional(),extensions:C(f(),X).optional()}),zb=he.extend({protocolVersion:f(),capabilities:wb,clientInfo:ua}),Nb=ie.extend({method:S("initialize"),params:zb}),Ub=y({experimental:C(f(),X).optional(),logging:X.optional(),completions:X.optional(),prompts:y({listChanged:G().optional()}).optional(),resources:y({subscribe:G().optional(),listChanged:G().optional()}).optional(),tools:y({listChanged:G().optional()}).optional(),tasks:Ib.optional(),extensions:C(f(),X).optional()}),Ob=re.extend({protocolVersion:f(),capabilities:Ub,serverInfo:ua,instructions:f().optional()}),Tb=_e.extend({method:S("notifications/initialized"),params:$e.optional()}),la=ie.extend({method:S("ping"),params:he.optional()}),Pb=y({progress:A(),total:J(A()),message:J(f())}),Db=y({...$e.shape,...Pb.shape,progressToken:rp}),Nl=_e.extend({method:S("notifications/progress"),params:Db}),Zb=he.extend({cursor:np.optional()}),yr=ie.extend({params:Zb.optional()}),kr=re.extend({nextCursor:np.optional()}),jb=te(["working","input_required","completed","failed","cancelled"]),Sr=y({taskId:f(),status:jb,ttl:H([A(),Ai()]),createdAt:f(),lastUpdatedAt:f(),pollInterval:J(A()),statusMessage:J(f())}),Ul=re.extend({task:Sr}),Eb=$e.merge(Sr),an=_e.extend({method:S("notifications/tasks/status"),params:Eb}),Ol=ie.extend({method:S("tasks/get"),params:he.extend({taskId:f()})}),Tl=re.merge(Sr),Pl=ie.extend({method:S("tasks/result"),params:he.extend({taskId:f()})}),j_=re.loose(),Dl=yr.extend({method:S("tasks/list")}),Zl=kr.extend({tasks:P(Sr)}),jl=ie.extend({method:S("tasks/cancel"),params:he.extend({taskId:f()})}),Ab=re.merge(Sr),sp=y({uri:f(),mimeType:J(f()),_meta:C(f(),M()).optional()}),up=sp.extend({text:f()}),El=f().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),lp=sp.extend({blob:El}),xr=te(["user","assistant"]),qt=y({audience:P(xr).optional(),priority:A().min(0).max(1).optional(),lastModified:Pi.datetime({offset:!0}).optional()}),dp=y({...Ct.shape,..._r.shape,uri:f(),description:J(f()),mimeType:J(f()),size:J(A()),annotations:qt.optional(),_meta:J(Q({}))}),Bb=y({...Ct.shape,..._r.shape,uriTemplate:f(),description:J(f()),mimeType:J(f()),annotations:qt.optional(),_meta:J(Q({}))}),Rb=yr.extend({method:S("resources/list")}),cp=kr.extend({resources:P(dp)}),Cb=yr.extend({method:S("resources/templates/list")}),Fb=kr.extend({resourceTemplates:P(Bb)}),Al=he.extend({uri:f()}),Lb=Al,Mb=ie.extend({method:S("resources/read"),params:Lb}),mp=re.extend({contents:P(H([up,lp]))}),Hb=_e.extend({method:S("notifications/resources/list_changed"),params:$e.optional()}),qb=Al,Jb=ie.extend({method:S("resources/subscribe"),params:qb}),Wb=Al,Vb=ie.extend({method:S("resources/unsubscribe"),params:Wb}),Kb=$e.extend({uri:f()}),Gb=_e.extend({method:S("notifications/resources/updated"),params:Kb}),Xb=y({name:f(),description:J(f()),required:J(G())}),Yb=y({...Ct.shape,..._r.shape,description:J(f()),arguments:J(P(Xb)),_meta:J(Q({}))}),Qb=yr.extend({method:S("prompts/list")}),e0=kr.extend({prompts:P(Yb)}),t0=he.extend({name:f(),arguments:C(f(),f()).optional()}),i0=ie.extend({method:S("prompts/get"),params:t0}),Bl=y({type:S("text"),text:f(),annotations:qt.optional(),_meta:C(f(),M()).optional()}),Rl=y({type:S("image"),data:El,mimeType:f(),annotations:qt.optional(),_meta:C(f(),M()).optional()}),Cl=y({type:S("audio"),data:El,mimeType:f(),annotations:qt.optional(),_meta:C(f(),M()).optional()}),r0=y({type:S("tool_use"),name:f(),id:f(),input:C(f(),M()),_meta:C(f(),M()).optional()}),fp=y({type:S("resource"),resource:H([up,lp]),annotations:qt.optional(),_meta:C(f(),M()).optional()}),pp=dp.extend({type:S("resource_link")}),Ir=H([Bl,Rl,Cl,pp,fp]),n0=y({role:xr,content:Ir}),a0=re.extend({description:f().optional(),messages:P(n0)}),o0=_e.extend({method:S("notifications/prompts/list_changed"),params:$e.optional()}),s0=y({title:f().optional(),readOnlyHint:G().optional(),destructiveHint:G().optional(),idempotentHint:G().optional(),openWorldHint:G().optional()}),u0=y({taskSupport:te(["required","optional","forbidden"]).optional()}),Fl=y({...Ct.shape,..._r.shape,description:f().optional(),inputSchema:y({type:S("object"),properties:C(f(),X).optional(),required:P(f()).optional()}).catchall(M()),outputSchema:y({type:S("object"),properties:C(f(),X).optional(),required:P(f()).optional()}).catchall(M()).optional(),annotations:s0.optional(),execution:u0.optional(),_meta:C(f(),M()).optional()}),gp=yr.extend({method:S("tools/list")}),l0=kr.extend({tools:P(Fl)}),da=re.extend({content:P(Ir).default([]),structuredContent:C(f(),M()).optional(),isError:G().optional()}),E_=da.or(re.extend({toolResult:M()})),d0=br.extend({name:f(),arguments:C(f(),M()).optional()}),hp=ie.extend({method:S("tools/call"),params:d0}),c0=_e.extend({method:S("notifications/tools/list_changed"),params:$e.optional()}),A_=y({autoRefresh:G().default(!0),debounceMs:A().int().nonnegative().default(300)}),vp=te(["debug","info","notice","warning","error","critical","alert","emergency"]),m0=he.extend({level:vp}),f0=ie.extend({method:S("logging/setLevel"),params:m0}),p0=$e.extend({level:vp,logger:f().optional(),data:M()}),g0=_e.extend({method:S("notifications/message"),params:p0}),h0=y({name:f().optional()}),v0=y({hints:P(h0).optional(),costPriority:A().min(0).max(1).optional(),speedPriority:A().min(0).max(1).optional(),intelligencePriority:A().min(0).max(1).optional()}),b0=y({mode:te(["auto","required","none"]).optional()}),$0=y({type:S("tool_result"),toolUseId:f().describe("The unique identifier for the corresponding tool call."),content:P(Ir).default([]),structuredContent:y({}).loose().optional(),isError:G().optional(),_meta:C(f(),M()).optional()}),_0=Ri("type",[Bl,Rl,Cl]),on=Ri("type",[Bl,Rl,Cl,r0,$0]),y0=y({role:xr,content:H([on,P(on)]),_meta:C(f(),M()).optional()}),k0=br.extend({messages:P(y0),modelPreferences:v0.optional(),systemPrompt:f().optional(),includeContext:te(["none","thisServer","allServers"]).optional(),temperature:A().optional(),maxTokens:A().int(),stopSequences:P(f()).optional(),metadata:X.optional(),tools:P(Fl).optional(),toolChoice:b0.optional()}),S0=ie.extend({method:S("sampling/createMessage"),params:k0}),bp=re.extend({model:f(),stopReason:J(te(["endTurn","stopSequence","maxTokens"]).or(f())),role:xr,content:_0}),$p=re.extend({model:f(),stopReason:J(te(["endTurn","stopSequence","maxTokens","toolUse"]).or(f())),role:xr,content:H([on,P(on)])}),x0=y({type:S("boolean"),title:f().optional(),description:f().optional(),default:G().optional()}),I0=y({type:S("string"),title:f().optional(),description:f().optional(),minLength:A().optional(),maxLength:A().optional(),format:te(["email","uri","date","date-time"]).optional(),default:f().optional()}),w0=y({type:te(["number","integer"]),title:f().optional(),description:f().optional(),minimum:A().optional(),maximum:A().optional(),default:A().optional()}),z0=y({type:S("string"),title:f().optional(),description:f().optional(),enum:P(f()),default:f().optional()}),N0=y({type:S("string"),title:f().optional(),description:f().optional(),oneOf:P(y({const:f(),title:f()})),default:f().optional()}),U0=y({type:S("string"),title:f().optional(),description:f().optional(),enum:P(f()),enumNames:P(f()).optional(),default:f().optional()}),O0=H([z0,N0]),T0=y({type:S("array"),title:f().optional(),description:f().optional(),minItems:A().optional(),maxItems:A().optional(),items:y({type:S("string"),enum:P(f())}),default:P(f()).optional()}),P0=y({type:S("array"),title:f().optional(),description:f().optional(),minItems:A().optional(),maxItems:A().optional(),items:y({anyOf:P(y({const:f(),title:f()}))}),default:P(f()).optional()}),D0=H([T0,P0]),Z0=H([U0,O0,D0]),j0=H([Z0,x0,I0,w0]),E0=br.extend({mode:S("form").optional(),message:f(),requestedSchema:y({type:S("object"),properties:C(f(),j0),required:P(f()).optional()})}),A0=br.extend({mode:S("url"),message:f(),elicitationId:f(),url:f().url()}),B0=H([E0,A0]),R0=ie.extend({method:S("elicitation/create"),params:B0}),C0=$e.extend({elicitationId:f()}),F0=_e.extend({method:S("notifications/elicitation/complete"),params:C0}),L0=re.extend({action:te(["accept","decline","cancel"]),content:Fi(e=>e===null?void 0:e,C(f(),H([f(),A(),G(),P(f())])).optional())}),M0=y({type:S("ref/resource"),uri:f()}),H0=y({type:S("ref/prompt"),name:f()}),q0=he.extend({ref:H([H0,M0]),argument:y({name:f(),value:f()}),context:y({arguments:C(f(),f()).optional()}).optional()}),J0=ie.extend({method:S("completion/complete"),params:q0}),W0=re.extend({completion:Q({values:P(f()).max(100),total:J(A().int()),hasMore:J(G())})}),V0=y({uri:f().startsWith("file://"),name:f().optional(),_meta:C(f(),M()).optional()}),K0=ie.extend({method:S("roots/list"),params:he.optional()}),G0=re.extend({roots:P(V0)}),X0=_e.extend({method:S("notifications/roots/list_changed"),params:$e.optional()}),B_=H([la,Nb,J0,f0,i0,Qb,Rb,Cb,Mb,Jb,Vb,hp,gp,Ol,Pl,Dl,jl]),R_=H([zl,Nl,Tb,X0,an]),C_=H([wl,bp,$p,L0,G0,Tl,Zl,Ul]),F_=H([la,S0,R0,K0,Ol,Pl,Dl,jl]),L_=H([zl,Nl,g0,Gb,Hb,c0,o0,an,F0]),M_=H([wl,Ob,W0,a0,e0,cp,Fb,mp,da,l0,Tl,Zl,Ul]),E=class e extends Error{constructor(i,r,a){super(`MCP error ${i}: ${r}`),this.code=i,this.data=a,this.name="McpError"}static fromError(i,r,a){if(i===B.UrlElicitationRequired&&a){let t=a;if(t.elicitations)return new Ia(t.elicitations,r)}return new e(i,r,a)}},Ia=class extends E{constructor(i,r=`URL elicitation${i.length>1?"s":""} required`){super(B.UrlElicitationRequired,r,{elicitations:i})}get elicitations(){return this.data?.elicitations??[]}};function Fe(e){return e==="completed"||e==="failed"||e==="cancelled"}var H_=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ic(e){let i=mb(e)?.method;if(!i)throw Error("Schema is missing a method literal");let r=fb(i);if(typeof r!="string")throw Error("Schema method literal must be a string");return r}function rc(e,i){let r=ip(e,i);if(!r.success)throw r.error;return r.data}var Y0=6e4,wa=class{constructor(i){this._options=i,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(zl,r=>{this._oncancel(r)}),this.setNotificationHandler(Nl,r=>{this._onprogress(r)}),this.setRequestHandler(la,r=>({})),this._taskStore=i?.taskStore,this._taskMessageQueue=i?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Ol,async(r,a)=>{let t=await this._taskStore.getTask(r.params.taskId,a.sessionId);if(!t)throw new E(B.InvalidParams,"Failed to retrieve task: Task not found");return{...t}}),this.setRequestHandler(Pl,async(r,a)=>{let t=async()=>{let n=r.params.taskId;if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(n,a.sessionId);){if(s.type==="response"||s.type==="error"){let l=s.message,d=l.id,c=this._requestResolvers.get(d);if(c)if(this._requestResolvers.delete(d),s.type==="response")c(l);else{let p=l,h=new E(p.error.code,p.error.message,p.error.data);c(h)}else{let p=s.type==="response"?"Response":"Error";this._onerror(Error(`${p} handler missing for request ${d}`))}continue}await this._transport?.send(s.message,{relatedRequestId:a.requestId})}}let o=await this._taskStore.getTask(n,a.sessionId);if(!o)throw new E(B.InvalidParams,`Task not found: ${n}`);if(!Fe(o.status))return await this._waitForTaskUpdate(n,a.signal),await t();if(Fe(o.status)){let s=await this._taskStore.getTaskResult(n,a.sessionId);return this._clearTaskQueue(n),{...s,_meta:{...s._meta,[Me]:{taskId:n}}}}return await t()};return await t()}),this.setRequestHandler(Dl,async(r,a)=>{try{let{tasks:t,nextCursor:n}=await this._taskStore.listTasks(r.params?.cursor,a.sessionId);return{tasks:t,nextCursor:n,_meta:{}}}catch(t){throw new E(B.InvalidParams,`Failed to list tasks: ${t instanceof Error?t.message:String(t)}`)}}),this.setRequestHandler(jl,async(r,a)=>{try{let t=await this._taskStore.getTask(r.params.taskId,a.sessionId);if(!t)throw new E(B.InvalidParams,`Task not found: ${r.params.taskId}`);if(Fe(t.status))throw new E(B.InvalidParams,`Cannot cancel task in terminal status: ${t.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",a.sessionId),this._clearTaskQueue(r.params.taskId);let n=await this._taskStore.getTask(r.params.taskId,a.sessionId);if(!n)throw new E(B.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...n}}catch(t){throw t instanceof E?t:new E(B.InvalidRequest,`Failed to cancel task: ${t instanceof Error?t.message:String(t)}`)}}))}async _oncancel(i){i.params.requestId&&this._requestHandlerAbortControllers.get(i.params.requestId)?.abort(i.params.reason)}_setupTimeout(i,r,a,t,n=!1){this._timeoutInfo.set(i,{timeoutId:setTimeout(t,r),startTime:Date.now(),timeout:r,maxTotalTimeout:a,resetTimeoutOnProgress:n,onTimeout:t})}_resetTimeout(i){let r=this._timeoutInfo.get(i);if(!r)return!1;let a=Date.now()-r.startTime;if(r.maxTotalTimeout&&a>=r.maxTotalTimeout)throw this._timeoutInfo.delete(i),E.fromError(B.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:a});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(i){let r=this._timeoutInfo.get(i);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(i))}async connect(i){if(this._transport)throw Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=i;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let a=this.transport?.onerror;this._transport.onerror=n=>{a?.(n),this._onerror(n)};let t=this._transport?.onmessage;this._transport.onmessage=(n,o)=>{t?.(n,o),Br(n)||bb(n)?this._onresponse(n):tc(n)?this._onrequest(n,o):vb(n)?this._onnotification(n):this._onerror(Error(`Unknown message type: ${JSON.stringify(n)}`))},await this._transport.start()}_onclose(){let i=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let a of this._timeoutInfo.values())clearTimeout(a.timeoutId);this._timeoutInfo.clear();for(let a of this._requestHandlerAbortControllers.values())a.abort();this._requestHandlerAbortControllers.clear();let r=E.fromError(B.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let a of i.values())a(r)}_onerror(i){this.onerror?.(i)}_onnotification(i){let r=this._notificationHandlers.get(i.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(i)).catch(a=>this._onerror(Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(i,r){let a=this._requestHandlers.get(i.method)??this.fallbackRequestHandler,t=this._transport,n=i.params?._meta?.[Me]?.taskId;if(a===void 0){let c={jsonrpc:"2.0",id:i.id,error:{code:B.MethodNotFound,message:"Method not found"}};n&&this._taskMessageQueue?this._enqueueTaskMessage(n,{type:"error",message:c,timestamp:Date.now()},t?.sessionId).catch(p=>this._onerror(Error(`Failed to enqueue error response: ${p}`))):t?.send(c).catch(p=>this._onerror(Error(`Failed to send an error response: ${p}`)));return}let o=new AbortController;this._requestHandlerAbortControllers.set(i.id,o);let s=hb(i.params)?i.params.task:void 0,l=this._taskStore?this.requestTaskStore(i,t?.sessionId):void 0,d={signal:o.signal,sessionId:t?.sessionId,_meta:i.params?._meta,sendNotification:async c=>{if(o.signal.aborted)return;let p={relatedRequestId:i.id};n&&(p.relatedTask={taskId:n}),await this.notification(c,p)},sendRequest:async(c,p,h)=>{if(o.signal.aborted)throw new E(B.ConnectionClosed,"Request was cancelled");let k={...h,relatedRequestId:i.id};n&&!k.relatedTask&&(k.relatedTask={taskId:n});let O=k.relatedTask?.taskId??n;return O&&l&&await l.updateTaskStatus(O,"input_required"),await this.request(c,p,k)},authInfo:r?.authInfo,requestId:i.id,requestInfo:r?.requestInfo,taskId:n,taskStore:l,taskRequestedTtl:s?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};Promise.resolve().then(()=>{s&&this.assertTaskHandlerCapability(i.method)}).then(()=>a(i,d)).then(async c=>{if(o.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:i.id};n&&this._taskMessageQueue?await this._enqueueTaskMessage(n,{type:"response",message:p,timestamp:Date.now()},t?.sessionId):await t?.send(p)},async c=>{if(o.signal.aborted)return;let p={jsonrpc:"2.0",id:i.id,error:{code:Number.isSafeInteger(c.code)?c.code:B.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};n&&this._taskMessageQueue?await this._enqueueTaskMessage(n,{type:"error",message:p,timestamp:Date.now()},t?.sessionId):await t?.send(p)}).catch(c=>this._onerror(Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(i.id)===o&&this._requestHandlerAbortControllers.delete(i.id)})}_onprogress(i){let{progressToken:r,...a}=i.params,t=Number(r),n=this._progressHandlers.get(t);if(!n){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(i)}`));return}let o=this._responseHandlers.get(t),s=this._timeoutInfo.get(t);if(s&&o&&s.resetTimeoutOnProgress)try{this._resetTimeout(t)}catch(l){this._responseHandlers.delete(t),this._progressHandlers.delete(t),this._cleanupTimeout(t),o(l);return}n(a)}_onresponse(i){let r=Number(i.id),a=this._requestResolvers.get(r);if(a){if(this._requestResolvers.delete(r),Br(i))a(i);else{let o=new E(i.error.code,i.error.message,i.error.data);a(o)}return}let t=this._responseHandlers.get(r);if(t===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(i)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let n=!1;if(Br(i)&&i.result&&typeof i.result=="object"){let o=i.result;if(o.task&&typeof o.task=="object"){let s=o.task;typeof s.taskId=="string"&&(n=!0,this._taskProgressTokens.set(s.taskId,r))}}if(n||this._progressHandlers.delete(r),Br(i))t(i);else{let o=E.fromError(i.error.code,i.error.message,i.error.data);t(o)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(i,r,a){let{task:t}=a??{};if(!t){try{yield{type:"result",result:await this.request(i,r,a)}}catch(o){yield{type:"error",error:o instanceof E?o:new E(B.InternalError,String(o))}}return}let n;try{let o=await this.request(i,Ul,a);if(o.task)n=o.task.taskId,yield{type:"taskCreated",task:o.task};else throw new E(B.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:n},a);if(yield{type:"taskStatus",task:s},Fe(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:n},r,a)}:s.status==="failed"?yield{type:"error",error:new E(B.InternalError,`Task ${n} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new E(B.InternalError,`Task ${n} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:n},r,a)};return}let l=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(d=>setTimeout(d,l)),a?.signal?.throwIfAborted()}}catch(o){yield{type:"error",error:o instanceof E?o:new E(B.InternalError,String(o))}}}request(i,r,a){let{relatedRequestId:t,resumptionToken:n,onresumptiontoken:o,task:s,relatedTask:l}=a??{};return new Promise((d,c)=>{let p=q=>{c(q)};if(!this._transport){p(Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(i.method),s&&this.assertTaskCapability(i.method)}catch(q){p(q);return}a?.signal?.throwIfAborted();let h=this._requestMessageId++,k={...i,jsonrpc:"2.0",id:h};a?.onprogress&&(this._progressHandlers.set(h,a.onprogress),k.params={...i.params,_meta:{...i.params?._meta||{},progressToken:h}}),s&&(k.params={...k.params,task:s}),l&&(k.params={...k.params,_meta:{...k.params?._meta||{},[Me]:l}});let O=q=>{this._responseHandlers.delete(h),this._progressHandlers.delete(h),this._cleanupTimeout(h),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:h,reason:String(q)}},{relatedRequestId:t,resumptionToken:n,onresumptiontoken:o}).catch(ne=>this._onerror(Error(`Failed to send cancellation: ${ne}`)));let W=q instanceof E?q:new E(B.RequestTimeout,String(q));c(W)};this._responseHandlers.set(h,q=>{if(!a?.signal?.aborted){if(q instanceof Error)return c(q);try{let W=ip(r,q.result);W.success?d(W.data):c(W.error)}catch(W){c(W)}}}),a?.signal?.addEventListener("abort",()=>{O(a?.signal?.reason)});let ye=a?.timeout??Y0,Jt=()=>O(E.fromError(B.RequestTimeout,"Request timed out",{timeout:ye}));this._setupTimeout(h,ye,a?.maxTotalTimeout,Jt,a?.resetTimeoutOnProgress??!1);let wr=l?.taskId;if(wr){let q=W=>{let ne=this._responseHandlers.get(h);ne?ne(W):this._onerror(Error(`Response handler missing for side-channeled request ${h}`))};this._requestResolvers.set(h,q),this._enqueueTaskMessage(wr,{type:"request",message:k,timestamp:Date.now()}).catch(W=>{this._cleanupTimeout(h),c(W)})}else this._transport.send(k,{relatedRequestId:t,resumptionToken:n,onresumptiontoken:o}).catch(q=>{this._cleanupTimeout(h),c(q)})})}async getTask(i,r){return this.request({method:"tasks/get",params:i},Tl,r)}async getTaskResult(i,r,a){return this.request({method:"tasks/result",params:i},r,a)}async listTasks(i,r){return this.request({method:"tasks/list",params:i},Zl,r)}async cancelTask(i,r){return this.request({method:"tasks/cancel",params:i},Ab,r)}async notification(i,r){if(!this._transport)throw Error("Not connected");this.assertNotificationCapability(i.method);let a=r?.relatedTask?.taskId;if(a){let n={...i,jsonrpc:"2.0",params:{...i.params,_meta:{...i.params?._meta||{},[Me]:r.relatedTask}}};await this._enqueueTaskMessage(a,{type:"notification",message:n,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(i.method)&&!i.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(i.method))return;this._pendingDebouncedNotifications.add(i.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(i.method),!this._transport)return;let n={...i,jsonrpc:"2.0"};r?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Me]:r.relatedTask}}}),this._transport?.send(n,r).catch(o=>this._onerror(o))});return}let t={...i,jsonrpc:"2.0"};r?.relatedTask&&(t={...t,params:{...t.params,_meta:{...t.params?._meta||{},[Me]:r.relatedTask}}}),await this._transport.send(t,r)}setRequestHandler(i,r){let a=ic(i);this.assertRequestHandlerCapability(a),this._requestHandlers.set(a,(t,n)=>{let o=rc(i,t);return Promise.resolve(r(o,n))})}removeRequestHandler(i){this._requestHandlers.delete(i)}assertCanSetRequestHandler(i){if(this._requestHandlers.has(i))throw Error(`A request handler for ${i} already exists, which would be overridden`)}setNotificationHandler(i,r){let a=ic(i);this._notificationHandlers.set(a,t=>{let n=rc(i,t);return Promise.resolve(r(n))})}removeNotificationHandler(i){this._notificationHandlers.delete(i)}_cleanupTaskProgressHandler(i){let r=this._taskProgressTokens.get(i);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(i))}async _enqueueTaskMessage(i,r,a){if(!this._taskStore||!this._taskMessageQueue)throw Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let t=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(i,r,a,t)}async _clearTaskQueue(i,r){if(this._taskMessageQueue){let a=await this._taskMessageQueue.dequeueAll(i,r);for(let t of a)if(t.type==="request"&&tc(t.message)){let n=t.message.id,o=this._requestResolvers.get(n);o?(o(new E(B.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${i} cleanup`))}}}async _waitForTaskUpdate(i,r){let a=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(i);t?.pollInterval&&(a=t.pollInterval)}catch{}return new Promise((t,n)=>{if(r.aborted){n(new E(B.InvalidRequest,"Request cancelled"));return}let o=setTimeout(t,a);r.addEventListener("abort",()=>{clearTimeout(o),n(new E(B.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(i,r){let a=this._taskStore;if(!a)throw Error("No task store configured");return{createTask:async t=>{if(!i)throw Error("No request provided");return await a.createTask(t,i.id,{method:i.method,params:i.params},r)},getTask:async t=>{let n=await a.getTask(t,r);if(!n)throw new E(B.InvalidParams,"Failed to retrieve task: Task not found");return n},storeTaskResult:async(t,n,o)=>{await a.storeTaskResult(t,n,o,r);let s=await a.getTask(t,r);if(s){let l=an.parse({method:"notifications/tasks/status",params:s});await this.notification(l),Fe(s.status)&&this._cleanupTaskProgressHandler(t)}},getTaskResult:t=>a.getTaskResult(t,r),updateTaskStatus:async(t,n,o)=>{let s=await a.getTask(t,r);if(!s)throw new E(B.InvalidParams,`Task "${t}" not found - it may have been cleaned up`);if(Fe(s.status))throw new E(B.InvalidParams,`Cannot update task "${t}" from terminal status "${s.status}" to "${n}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await a.updateTaskStatus(t,n,o,r);let l=await a.getTask(t,r);if(l){let d=an.parse({method:"notifications/tasks/status",params:l});await this.notification(d),Fe(l.status)&&this._cleanupTaskProgressHandler(t)}},listTasks:t=>a.listTasks(t,r)}}};function nc(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Q0(e,i){let r={...e};for(let a in i){let t=a,n=i[t];if(n===void 0)continue;let o=r[t];nc(o)&&nc(n)?r[t]={...o,...n}:r[t]=n}return r}var za=class extends wa{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(i,r){}_ensureEventSlot(i){let r=this._eventSlots.get(i);if(!r){let a=this.eventSchemas[i];if(!a)throw Error(`Unknown event: ${String(i)}`);r={listeners:[]},this._eventSlots.set(i,r);let t=a.shape.method.value;this._registeredMethods.add(t);let n=r;super.setNotificationHandler(a,o=>{let s=o.params;this.onEventDispatch(i,s),n.onHandler?.(s);for(let l of[...n.listeners])l(s)})}return r}setEventHandler(i,r){let a=this._ensureEventSlot(i);a.onHandler&&r&&console.warn(`[MCP Apps] on${String(i)} handler replaced. Use addEventListener("${String(i)}", \u2026) to add multiple listeners without replacing.`),a.onHandler=r}getEventHandler(i){return this._eventSlots.get(i)?.onHandler}addEventListener(i,r){this._ensureEventSlot(i).listeners.push(r)}removeEventListener(i,r){let a=this._eventSlots.get(i);if(!a)return;let t=a.listeners.indexOf(r);t!==-1&&a.listeners.splice(t,1)}setRequestHandler=(i,r)=>{this._assertMethodNotRegistered(i,"setRequestHandler"),super.setRequestHandler(i,r)};setNotificationHandler=(i,r)=>{this._assertMethodNotRegistered(i,"setNotificationHandler"),super.setNotificationHandler(i,r)};warnIfRequestHandlerReplaced(i,r,a){r&&a&&console.warn(`[MCP Apps] ${i} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(i,r)=>{let a=i.shape.method.value;this._registeredMethods.add(a),super.setRequestHandler(i,r)};_assertMethodNotRegistered(i,r){let a=i.shape.method.value;if(this._registeredMethods.has(a))throw Error(`Handler for "${a}" already registered (via ${r}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(a)}},e$="2026-01-26";var t$="ui/notifications/tool-input-partial";var Na=class{eventTarget;eventSource;messageListener;constructor(i=window.parent,r){this.eventTarget=i,this.eventSource=r,this.messageListener=a=>{if(r&&a.source!==this.eventSource){console.debug("Ignoring message from unknown source",a);return}let t=$b.safeParse(a.data);t.success?(console.debug("Parsed message",t.data),this.onmessage?.(t.data)):a.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",t.error.message,a):(console.error("Failed to parse message",t.error.message,a),this.onerror?.(Error("Invalid JSON-RPC message received: "+t.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(i,r){i.method!==t$&&console.debug("Sending message",i),this.eventTarget.postMessage(i,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion};oa();var i$=u.union([u.literal("light"),u.literal("dark")]).describe("Color theme preference for the host environment."),fi=u.union([u.literal("inline"),u.literal("fullscreen"),u.literal("pip")]).describe("Display mode for UI presentation."),r$=u.union([u.literal("--color-background-primary"),u.literal("--color-background-secondary"),u.literal("--color-background-tertiary"),u.literal("--color-background-inverse"),u.literal("--color-background-ghost"),u.literal("--color-background-info"),u.literal("--color-background-danger"),u.literal("--color-background-success"),u.literal("--color-background-warning"),u.literal("--color-background-disabled"),u.literal("--color-text-primary"),u.literal("--color-text-secondary"),u.literal("--color-text-tertiary"),u.literal("--color-text-inverse"),u.literal("--color-text-ghost"),u.literal("--color-text-info"),u.literal("--color-text-danger"),u.literal("--color-text-success"),u.literal("--color-text-warning"),u.literal("--color-text-disabled"),u.literal("--color-border-primary"),u.literal("--color-border-secondary"),u.literal("--color-border-tertiary"),u.literal("--color-border-inverse"),u.literal("--color-border-ghost"),u.literal("--color-border-info"),u.literal("--color-border-danger"),u.literal("--color-border-success"),u.literal("--color-border-warning"),u.literal("--color-border-disabled"),u.literal("--color-ring-primary"),u.literal("--color-ring-secondary"),u.literal("--color-ring-inverse"),u.literal("--color-ring-info"),u.literal("--color-ring-danger"),u.literal("--color-ring-success"),u.literal("--color-ring-warning"),u.literal("--font-sans"),u.literal("--font-mono"),u.literal("--font-weight-normal"),u.literal("--font-weight-medium"),u.literal("--font-weight-semibold"),u.literal("--font-weight-bold"),u.literal("--font-text-xs-size"),u.literal("--font-text-sm-size"),u.literal("--font-text-md-size"),u.literal("--font-text-lg-size"),u.literal("--font-heading-xs-size"),u.literal("--font-heading-sm-size"),u.literal("--font-heading-md-size"),u.literal("--font-heading-lg-size"),u.literal("--font-heading-xl-size"),u.literal("--font-heading-2xl-size"),u.literal("--font-heading-3xl-size"),u.literal("--font-text-xs-line-height"),u.literal("--font-text-sm-line-height"),u.literal("--font-text-md-line-height"),u.literal("--font-text-lg-line-height"),u.literal("--font-heading-xs-line-height"),u.literal("--font-heading-sm-line-height"),u.literal("--font-heading-md-line-height"),u.literal("--font-heading-lg-line-height"),u.literal("--font-heading-xl-line-height"),u.literal("--font-heading-2xl-line-height"),u.literal("--font-heading-3xl-line-height"),u.literal("--border-radius-xs"),u.literal("--border-radius-sm"),u.literal("--border-radius-md"),u.literal("--border-radius-lg"),u.literal("--border-radius-xl"),u.literal("--border-radius-full"),u.literal("--border-width-regular"),u.literal("--shadow-hairline"),u.literal("--shadow-sm"),u.literal("--shadow-md"),u.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),n$=u.record(r$.describe(`Style variables for theming MCP apps.
+
+Individual style keys are optional - hosts may provide any subset of these values.
+Values are strings containing CSS values (colors, sizes, font stacks, etc.).
+
+Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
+for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),u.union([u.string(),u.undefined()]).describe(`Style variables for theming MCP apps.
+
+Individual style keys are optional - hosts may provide any subset of these values.
+Values are strings containing CSS values (colors, sizes, font stacks, etc.).
+
+Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
+for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
+
+Individual style keys are optional - hosts may provide any subset of these values.
+Values are strings containing CSS values (colors, sizes, font stacks, etc.).
+
+Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
+for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),q_=u.object({method:u.literal("ui/open-link"),params:u.object({url:u.string().describe("URL to open in the host's browser")})}),a$=u.object({isError:u.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),o$=u.object({isError:u.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),s$=u.object({isError:u.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),J_=u.object({method:u.literal("ui/notifications/sandbox-proxy-ready"),params:u.object({})}),Ll=u.object({connectDomains:u.array(u.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
+
+- Maps to CSP \`connect-src\` directive
+- Empty or omitted \u2192 no network connections (secure default)`),resourceDomains:u.array(u.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"),frameDomains:u.array(u.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:u.array(u.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)")}),Ml=u.object({camera:u.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:u.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:u.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:u.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")}),W_=u.object({method:u.literal("ui/notifications/size-changed"),params:u.object({width:u.number().optional().describe("New width in pixels."),height:u.number().optional().describe("New height in pixels.")})}),u$=u.object({method:u.literal("ui/notifications/tool-input"),params:u.object({arguments:u.record(u.string(),u.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),l$=u.object({method:u.literal("ui/notifications/tool-input-partial"),params:u.object({arguments:u.record(u.string(),u.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),d$=u.object({method:u.literal("ui/notifications/tool-cancelled"),params:u.object({reason:u.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),c$=u.object({fonts:u.string().optional()}),m$=u.object({variables:n$.optional().describe("CSS variables for theming the app."),css:c$.optional().describe("CSS blocks that apps can inject.")}),f$=u.object({method:u.literal("ui/resource-teardown"),params:u.object({})}),V_=u.record(u.string(),u.unknown()),ac=u.object({text:u.object({}).optional().describe("Host supports text content blocks."),image:u.object({}).optional().describe("Host supports image content blocks."),audio:u.object({}).optional().describe("Host supports audio content blocks."),resource:u.object({}).optional().describe("Host supports resource content blocks."),resourceLink:u.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:u.object({}).optional().describe("Host supports structured content.")}),K_=u.object({method:u.literal("ui/notifications/request-teardown"),params:u.object({}).optional()}),p$=u.object({experimental:u.record(u.string(),u.record(u.string(),u.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),openLinks:u.object({}).optional().describe("Host supports opening external URLs."),downloadFile:u.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:u.object({listChanged:u.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:u.object({listChanged:u.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:u.object({}).optional().describe("Host accepts log messages."),sandbox:u.object({permissions:Ml.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:Ll.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:ac.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:ac.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:u.object({tools:u.object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),g$=u.object({experimental:u.record(u.string(),u.record(u.string(),u.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),tools:u.object({listChanged:u.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:u.array(fi).optional().describe("Display modes the app supports.")}),G_=u.object({method:u.literal("ui/notifications/initialized"),params:u.object({}).optional()}),X_=u.object({csp:Ll.optional().describe("Content Security Policy configuration for UI resources."),permissions:Ml.optional().describe("Sandbox permissions requested by the UI resource."),domain:u.string().optional().describe(`Dedicated origin for view sandbox.
+
+Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
+
+**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
+- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
+- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
+
+If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:u.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
+
+Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
+
+- \`true\`: request visible border + background
+- \`false\`: request no visible border + background
+- omitted: host decides border`)}),Y_=u.object({method:u.literal("ui/request-display-mode"),params:u.object({mode:fi.describe("The display mode being requested.")})}),h$=u.object({mode:fi.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),v$=u.union([u.literal("model"),u.literal("app")]).describe("Tool visibility scope - who can access the tool."),Q_=u.object({resourceUri:u.string().optional(),visibility:u.array(v$).optional().describe(`Who can access this tool. Default: ["model", "app"]
+- "model": Tool visible to and callable by the agent
+- "app": Tool callable by the app from this server only`),csp:u.never().optional(),permissions:u.never().optional()}),ey=u.object({mimeTypes:u.array(u.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),ty=u.object({method:u.literal("ui/download-file"),params:u.object({contents:u.array(u.union([fp,pp])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),iy=u.object({method:u.literal("ui/message"),params:u.object({role:u.literal("user").describe('Message role, currently only "user" is supported.'),content:u.array(Ir).describe("Message content blocks (text, image, etc.).")})}),ry=u.object({method:u.literal("ui/notifications/sandbox-resource-ready"),params:u.object({html:u.string().describe("HTML content to load into the inner iframe."),sandbox:u.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Ll.optional().describe("CSP configuration from resource metadata."),permissions:Ml.optional().describe("Sandbox permissions from resource metadata.")})}),b$=u.object({method:u.literal("ui/notifications/tool-result"),params:da.describe("Standard MCP tool execution result.")}),_p=u.object({toolInfo:u.object({id:$r.optional().describe("JSON-RPC id of the tools/call request."),tool:Fl.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:i$.optional().describe("Current color theme preference."),styles:m$.optional().describe("Style configuration for theming the app."),displayMode:fi.optional().describe("How the UI is currently displayed."),availableDisplayModes:u.array(fi).optional().describe("Display modes the host supports."),containerDimensions:u.union([u.object({height:u.number().describe("Fixed container height in pixels.")}),u.object({maxHeight:u.union([u.number(),u.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(u.union([u.object({width:u.number().describe("Fixed container width in pixels.")}),u.object({maxWidth:u.union([u.number(),u.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
+container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:u.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:u.string().optional().describe("User's timezone in IANA format."),userAgent:u.string().optional().describe("Host application identifier."),platform:u.union([u.literal("web"),u.literal("desktop"),u.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:u.object({touch:u.boolean().optional().describe("Whether the device supports touch input."),hover:u.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:u.object({top:u.number().describe("Top safe area inset in pixels."),right:u.number().describe("Right safe area inset in pixels."),bottom:u.number().describe("Bottom safe area inset in pixels."),left:u.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),$$=u.object({method:u.literal("ui/notifications/host-context-changed"),params:_p.describe("Partial context update containing only changed fields.")}),ny=u.object({method:u.literal("ui/update-model-context"),params:u.object({content:u.array(Ir).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:u.record(u.string(),u.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),ay=u.object({method:u.literal("ui/initialize"),params:u.object({appInfo:ua.describe("App identification (name and version)."),appCapabilities:g$.describe("Features and capabilities this app provides."),protocolVersion:u.string().describe("Protocol version this app supports.")})}),_$=u.object({protocolVersion:u.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:ua.describe("Host application identification and version."),hostCapabilities:p$.describe("Features and capabilities provided by the host."),hostContext:_p.describe("Rich context about the host environment.")}).passthrough(),y$={target:"draft-2020-12"};async function oc(e,i){let r=e["~standard"];if(r.jsonSchema)return r.jsonSchema[i](y$);if(r.vendor==="zod"){let{z:a}=await Promise.resolve().then(()=>(oa(),ep));return a.toJSONSchema(e,{io:i})}throw Error(`Schema (vendor: ${r.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function sc(e,i,r=""){let a=await e["~standard"].validate(i);if(a.issues){let t=a.issues.map(n=>{let o=n.path?.map(s=>typeof s=="object"?s.key:s).join(".");return o?`${o}: ${n.message}`:n.message}).join("; ");throw Error(r+t)}return a.value}oa();var sn=class e extends za{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(i){if(this._initializedSent)return;let r=`[ext-apps] App.${i}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(r);console.warn(`${r}. This will throw in a future release.`)}eventSchemas={toolinput:u$,toolinputpartial:l$,toolresult:b$,toolcancelled:d$,hostcontextchanged:$$};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(i){if(!e.ONE_SHOT_EVENTS.has(i)||this._everHadListener.has(i)||(this._everHadListener.add(i),!this._initializedSent))return;let r=`[ext-apps] "${String(i)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(r);console.warn(r)}setEventHandler(i,r){r&&this._assertHandlerTiming(i),super.setEventHandler(i,r)}addEventListener(i,r){this._assertHandlerTiming(i),super.addEventListener(i,r)}onEventDispatch(i,r){i==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...r})}constructor(i,r={},a={autoResize:!0}){super(a),this._appInfo=i,this._capabilities=r,this.options=a,a.allowUnsafeEval||u.config({jitless:!0}),this.setRequestHandler(la,t=>(console.log("Received ping:",t.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(i){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=Q0(this._capabilities,i)}registerTool(i,r,a){if(this._registeredTools[i])throw Error(`Tool ${i} is already registered`);let t=this,n=()=>{t._initializedSent&&t._capabilities.tools?.listChanged&&t.sendToolListChanged()},o=r.inputSchema!==void 0,s={title:r.title,description:r.description,inputSchema:r.inputSchema,outputSchema:r.outputSchema,annotations:r.annotations,_meta:r._meta,enabled:!0,enable(){this.enabled=!0,n()},disable(){this.enabled=!1,n()},update(l){Object.assign(this,l),n()},remove(){t._registeredTools[i]===s&&(delete t._registeredTools[i],n())},handler:async(l,d)=>{if(!s.enabled)throw Error(`Tool ${i} is disabled`);let c;if(o){let p=s.inputSchema,h=p?await sc(p,l??{},`Invalid input for tool ${i}: `):l??{};c=await a(h,d)}else c=await a(d);return s.outputSchema&&!c.isError&&(c.structuredContent=await sc(s.outputSchema,c.structuredContent,`Invalid output for tool ${i}: `)),c}};return this._registeredTools[i]=s,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),n(),s}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(i,r)=>{let a=this._registeredTools[i.name];if(!a)throw Error(`Tool ${i.name} not found`);return a.handler(i.arguments,r)},this.onlisttools=async(i,r)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([a,t])=>t.enabled).map(async([a,t])=>{let n={name:a,title:t.title,description:t.description,inputSchema:t.inputSchema?await oc(t.inputSchema,"input"):{type:"object",properties:{}}};return t.outputSchema&&(n.outputSchema=await oc(t.outputSchema,"output")),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(i={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:i})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(i){this.setEventHandler("toolinput",i)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(i){this.setEventHandler("toolinputpartial",i)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(i){this.setEventHandler("toolresult",i)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(i){this.setEventHandler("toolcancelled",i)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(i){this.setEventHandler("hostcontextchanged",i)}_onteardown;get onteardown(){return this._onteardown}set onteardown(i){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,i),this._onteardown=i,this.replaceRequestHandler(f$,(r,a)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(r.params,a)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(i){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,i),this._oncalltool=i,this.replaceRequestHandler(hp,(r,a)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(r.params,a)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(i){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,i),this._onlisttools=i,this.replaceRequestHandler(gp,(r,a)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(r.params,a)})}assertCapabilityForMethod(i){switch(i){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${i})`);break}}assertRequestHandlerCapability(i){switch(i){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${i})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${i} registered`)}}assertNotificationCapability(i){}assertTaskCapability(i){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(i){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(i,r){if(this._assertInitialized("callServerTool"),typeof i=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${i}"). Did you mean: callServerTool({ name: "${i}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:i},da,{onprogress:()=>{},resetTimeoutOnProgress:!0,...r})}async readServerResource(i,r){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:i},mp,r)}async listServerResources(i,r){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:i},cp,r)}async createSamplingMessage(i,r){this._assertInitialized("createSamplingMessage");let a=i.tools?$p:bp;return await this.request({method:"sampling/createMessage",params:i},a,r)}sendMessage(i,r){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:i},s$,r)}sendLog(i){return this.notification({method:"notifications/message",params:i})}updateModelContext(i,r){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:i},wl,r)}openLink(i,r){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:i},a$,r)}sendOpenLink=this.openLink;downloadFile(i,r){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:i},o$,r)}requestTeardown(i={}){return this.notification({method:"ui/notifications/request-teardown",params:i})}requestDisplayMode(i,r){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:i},h$,r)}sendSizeChanged(i){return this.notification({method:"ui/notifications/size-changed",params:i})}setupSizeChangedNotifications(){let i=!1,r=0,a=0,t=()=>{i||(i=!0,requestAnimationFrame(()=>{i=!1;let o=document.documentElement,s=o.style.height;o.style.height="max-content";let l=Math.ceil(o.getBoundingClientRect().height);o.style.height=s;let d=Math.ceil(window.innerWidth);(d!==r||l!==a)&&(r=d,a=l,this.sendSizeChanged({width:d,height:l}))}))};t();let n=new ResizeObserver(t);return n.observe(document.documentElement),n.observe(document.body),()=>n.disconnect()}async connect(i=new Na(window.parent,window.parent),r){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(i);try{let a=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:e$}},_$,r);if(a===void 0)throw Error(`Server sent invalid initialize result: ${a}`);this._hostCapabilities=a.hostCapabilities,this._hostInfo=a.hostInfo,this._hostContext=a.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(a){throw this.close(),a}}};globalThis.McpAppsRuntime=Object.freeze({App:sn,webDarkTheme:ti,webLightTheme:ei});})();
diff --git a/plugins/mcp-apps/references/codeful-tool-host-data-api.d.ts b/plugins/mcp-apps/references/codeful-tool-host-data-api.d.ts
new file mode 100644
index 000000000..e3541b6ca
--- /dev/null
+++ b/plugins/mcp-apps/references/codeful-tool-host-data-api.d.ts
@@ -0,0 +1,106 @@
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+/** A scalar value Dataverse can store in a column. */
+export type DataColumnValue = string | number | boolean | null;
+
+/**
+ * A Dataverse row keyed by logical column name. Returned rows can also contain OData
+ * annotations such as "<column>@OData.Community.Display.V1.FormattedValue".
+ */
+export interface DataRow {
+ [column: string]: unknown;
+}
+
+/** A Dataverse primary-key GUID. */
+export type RowKeyDataColumnValue = string;
+
+/** One page returned by a table query. */
+export interface DataTable<T extends DataRow = DataRow> {
+ rows: T[];
+ hasMoreRows: boolean;
+ /** Present when another page is available. */
+ loadMoreRows?: () => Promise<DataTable<T>>;
+}
+
+/** A localized Dataverse choice option and its raw numeric value. */
+export interface ChoiceOption {
+ label: string;
+ value: number;
+}
+
+/** Options accepted by {@link CodefulToolHostDataApi.queryTable}. */
+export interface QueryTableOptions {
+ /** Logical column names to return. */
+ select?: string[];
+ /** OData filter expression using logical column names and raw choice values. */
+ filter?: string;
+ /** OData order-by expression using logical column names. */
+ orderBy?: string;
+ /** Maximum page size requested from the host. */
+ pageSize?: number;
+}
+
+/** Options accepted by {@link CodefulToolHostDataApi.retrieveRow}. */
+export interface RetrieveRowOptions {
+ id: RowKeyDataColumnValue;
+ select?: string[];
+}
+
+export type TelemetryLevel = "info" | "warn" | "error";
+
+/**
+ * Dataverse API injected by the codeful-tool host.
+ *
+ * Table arguments are singular entity logical names, such as "account". Column names,
+ * filters, order-by expressions, and row keys also use Dataverse logical names. Methods
+ * reject on failure; they do not return success/error envelopes.
+ */
+export interface CodefulToolHostDataApi {
+ createRow(tableName: string, row: DataRow): Promise<RowKeyDataColumnValue>;
+ updateRow(tableName: string, rowId: RowKeyDataColumnValue, row: DataRow): Promise<void>;
+ deleteRow(tableName: string, rowId: RowKeyDataColumnValue): Promise<void>;
+ retrieveRow(tableName: string, options: RetrieveRowOptions): Promise<DataRow>;
+ queryTable(tableName: string, query?: QueryTableOptions): Promise<DataTable>;
+ getChoices(enumName: string): Promise<ChoiceOption[]>;
+ /** Fire-and-forget host telemetry. This method never throws. */
+ sendTelemetry(
+ name: string,
+ level: TelemetryLevel,
+ properties?: Record<string, unknown>,
+ ): void;
+}
+
+/** The single argument passed to a codeful tool's exported `runTool` function. */
+export interface RunToolContext {
+ toolInput: Record<string, unknown>;
+ dataApi: CodefulToolHostDataApi;
+}
+
+export interface TextContentBlock {
+ type: "text";
+ text: string;
+}
+
+/**
+ * Intentional MCP result-channel partition.
+ *
+ * `content` and `structuredContent` are visible to the model. `meta` is mapped by the
+ * host to MCP `_meta`, which is delivered to the widget but excluded from model context.
+ * If a returned object contains any one of these three reserved keys, the host treats it
+ * as this envelope and ignores unrelated top-level siblings. Wrap business data containing
+ * a reserved key inside `structuredContent`.
+ */
+export interface CodefulToolResult {
+ content?: string | TextContentBlock[];
+ structuredContent?: Record<string, unknown>;
+ meta?: Record<string, unknown>;
+}
+
+/**
+ * A plain record is promoted to `structuredContent`. Return a CodefulToolResult when the
+ * three result channels need to be controlled independently.
+ */
+export type RunTool = (
+ context: RunToolContext,
+) => Promise<Record<string, unknown> | CodefulToolResult>;
diff --git a/plugins/mcp-apps/references/mcp-apps-reference.md b/plugins/mcp-apps/references/mcp-apps-reference.md
index e9a70cc69..dd4fb99c1 100644
--- a/plugins/mcp-apps/references/mcp-apps-reference.md
+++ b/plugins/mcp-apps/references/mcp-apps-reference.md
@@ -1,12 +1,45 @@
# MCP Apps Technical Reference
+## Delivery modes
+
+Every generated widget is one HTML file, but there are two ways to provide its runtime:
+
+| Mode | Runtime source | Additional libraries | Use when |
+| --- | --- | --- | --- |
+| No CDNs / self-contained | Embedded `McpAppsRuntime` bundle | Native HTML, CSS, SVG, and Canvas only | The host blocks public URLs, including MCP Inspector deployments with restrictive CSP |
+| CDNs allowed | Public ESM/script URLs | Public visualization libraries may be used when justified | The user explicitly permits runtime network dependencies |
+
+Self-contained mode is the default. The generator writes the marker from
+`samples/self-contained-widget.template.html`, then runs:
+
+```powershell
+node "${PLUGIN_ROOT}/scripts/inline-self-contained-runtime.js" --input "./widget.html"
+```
+
+The script replaces the marker with the committed runtime from
+`assets/self-contained/mcp-app-runtime.min.js`. The bundle exposes:
+
+```javascript
+const { App, webLightTheme, webDarkTheme } = globalThis.McpAppsRuntime;
+```
+
+Do not manually reproduce or edit the minified runtime. It is generated from pinned
+packages by `scripts/_vendor-build/`, and its provenance and hash are committed beside
+the asset. To refine an existing self-contained widget, first restore the source marker:
+
+```powershell
+node "${PLUGIN_ROOT}/scripts/inline-self-contained-runtime.js" --prepare --input "./widget.html" --output "./widget.draft.html"
+```
+
+Edit the draft, then run the normal inlining command on it.
+
## MCP Apps API
The widget uses the `App` class from `@modelcontextprotocol/ext-apps` to communicate with the chat host.
-### Importing App
+### Accessing App
-`App` is a **named export**, not a default export. You must use curly braces:
+In CDN mode, `App` is a **named export**, not a default export. You must use curly braces:
```javascript
// CORRECT — named import with curly braces
@@ -16,17 +49,40 @@ import { App } from 'https://cdn.jsdelivr.net/npm/@modelcontextprotocol/ext-apps
import App from 'https://cdn.jsdelivr.net/npm/@modelcontextprotocol/ext-apps/+esm';
```
+In self-contained mode, there is no import:
+
+```javascript
+const { App } = globalThis.McpAppsRuntime;
+```
+
### Receiving tool data
-Set `app.ontoolresult` BEFORE calling `app.connect()`. When the host delivers the tool result, the callback fires with a `result` object. The data you need is **always** at `result.structuredContent`:
+Set `app.ontoolresult` BEFORE calling `app.connect()`. The callback receives the full MCP
+tool result:
```javascript
app.ontoolresult = (result) => {
- const data = result.structuredContent; // <-- YOUR DATA IS HERE
- // NOT result.data (wrong), NOT result itself (wrong), NOT result.content (wrong)
+ const toolResult = {
+ content: result.content ?? [],
+ structuredContent: result.structuredContent ?? {},
+ _meta: result._meta ?? {},
+ };
+ renderData(toolResult);
};
```
+The result channels have different visibility:
+
+| Runtime field | Model-visible | Widget-visible | Purpose |
+| --- | --- | --- | --- |
+| `content` | Yes | Yes | Conversational text/content blocks |
+| `structuredContent` | Yes | Yes | Machine-readable tool output |
+| `_meta` | No | Yes | Widget-private data and presentation hints |
+
+A codeful tool authors the private field as `meta`; the host maps it to runtime `_meta`.
+Never read `result.meta` in a widget. A plain object returned by a codeful tool is promoted
+to `structuredContent`.
+
### Theme
Set `app.onhostcontextchanged` BEFORE calling `app.connect()`. The callback receives context updates:
@@ -39,7 +95,7 @@ For user-initiated actions (buttons, interactive controls):
```javascript
const result = await app.callServerTool({ name: 'tool_name', arguments: { key: 'value' } });
// Check result.isError for failures
-// result.structuredContent contains the response data
+// Preserve result.content, result.structuredContent, and result._meta.
```
### Lifecycle
@@ -49,8 +105,11 @@ All event handlers (`ontoolresult`, `onhostcontextchanged`, `onteardown`) MUST b
```javascript
const app = new App({ name: "widget", version: "1.0.0" });
app.ontoolresult = (result) => {
- const data = result.structuredContent; // always .structuredContent
- renderData(data);
+ renderData({
+ content: result.content ?? [],
+ structuredContent: result.structuredContent ?? {},
+ _meta: result._meta ?? {},
+ });
};
app.onhostcontextchanged = (ctx) => { /* handle theme changes */ };
app.onteardown = () => ({});
@@ -59,6 +118,8 @@ await app.connect();
## Fluent UI Web Components v3
+Fluent Web Components are available only in CDN mode.
+
Load via: `<script src="https://unpkg.com/@fluentui/web-components@beta/dist/web-components.min.js"></script>`
Available components (use these instead of plain HTML equivalents):
@@ -76,7 +137,9 @@ Available components (use these instead of plain HTML equivalents):
## Loading CDN libraries
-You can load external CDN libraries (for maps, charts, data visualization, etc.) via script tags when they add clear value.
+This section applies only when the user explicitly allows CDNs. You can load external
+libraries for maps, charts, data visualization, and similar needs when they add clear
+value.
### UMD global collision
@@ -117,6 +180,20 @@ function initWhenReady(data) {
This pattern applies to any UMD library. If you load multiple libraries that use globals, save each reference immediately after loading.
+## Self-contained visualization
+
+Self-contained widgets must not load remote scripts, modules, styles, fonts, images,
+media, iframes, workers, or map tiles. Use:
+
+- inline SVG for charts, diagrams, timelines, and geographic schematics;
+- Canvas for dense plots where SVG would be unwieldy;
+- CSS grid/flexbox and semantic HTML for cards, tables, controls, and progress displays;
+- `data:` URLs only when a binary or raster asset is genuinely needed.
+
+Do not include a library merely because the CDN template would have used one. The
+embedded MCP runtime and theme tokens are the required platform code; widget-specific
+visualization code should stay small and purpose-built.
+
## Security
Always escape user-provided text before inserting into HTML:
diff --git a/plugins/mcp-apps/samples/account-summary.tool.js b/plugins/mcp-apps/samples/account-summary.tool.js
new file mode 100644
index 000000000..5fb3b4553
--- /dev/null
+++ b/plugins/mcp-apps/samples/account-summary.tool.js
@@ -0,0 +1,82 @@
+// A codeful MCP tool is a self-contained ESM module. The host injects dataApi and calls
+// runTool({ toolInput, dataApi }); no host transport or Dataverse client is bundled here.
+
+const FORMATTED_VALUE = "@OData.Community.Display.V1.FormattedValue";
+const ACCOUNT_COLUMNS = ["accountid", "name", "revenue", "statecode"];
+
+function readInput(toolInput) {
+ const nameContains = toolInput.nameContains ?? "";
+ const limit = toolInput.limit ?? 25;
+
+ if (typeof nameContains !== "string") {
+ throw new TypeError("nameContains must be a string");
+ }
+ if (!Number.isInteger(limit) || limit < 1 || limit > 100) {
+ throw new RangeError("limit must be an integer between 1 and 100");
+ }
+
+ return { nameContains: nameContains.trim(), limit };
+}
+
+function escapeODataString(value) {
+ // OData string literals escape an apostrophe by doubling it.
+ return value.replaceAll("'", "''");
+}
+
+function shapeAccount(row) {
+ return {
+ id: row.accountid,
+ name: row.name,
+ revenue: row.revenue ?? null,
+ status: row[`statecode${FORMATTED_VALUE}`] ?? "Unknown",
+ };
+}
+
+async function queryAccounts(dataApi, nameContains, limit) {
+ const filter = nameContains
+ ? `contains(name,'${escapeODataString(nameContains)}')`
+ : undefined;
+ let page = await dataApi.queryTable("account", {
+ select: ACCOUNT_COLUMNS,
+ filter,
+ orderBy: "name asc",
+ pageSize: Math.min(limit, 25),
+ });
+ const rows = [...page.rows];
+
+ while (rows.length < limit && page.hasMoreRows && page.loadMoreRows) {
+ page = await page.loadMoreRows();
+ rows.push(...page.rows);
+ }
+
+ return {
+ rows: rows.slice(0, limit),
+ hasMoreRows: rows.length > limit || page.hasMoreRows,
+ };
+}
+
+export async function runTool({ toolInput, dataApi }) {
+ const { nameContains, limit } = readInput(toolInput);
+
+ try {
+ const result = await queryAccounts(dataApi, nameContains, limit);
+ const accounts = result.rows.map(shapeAccount);
+
+ return {
+ content: `Found ${accounts.length} matching account${accounts.length === 1 ? "" : "s"}.`,
+ structuredContent: {
+ accounts,
+ totalCount: accounts.length,
+ hasMoreRows: result.hasMoreRows,
+ },
+ // The host exposes authored `meta` to the widget as MCP `_meta`, outside model context.
+ meta: {
+ preferredView: "bar-chart",
+ categoryField: "name",
+ valueField: "revenue",
+ },
+ };
+ } catch (error) {
+ throw new Error("Could not load account summaries", { cause: error });
+ }
+}
diff --git a/plugins/mcp-apps/samples/account-summary.tool.json b/plugins/mcp-apps/samples/account-summary.tool.json
new file mode 100644
index 000000000..c421e3835
--- /dev/null
+++ b/plugins/mcp-apps/samples/account-summary.tool.json
@@ -0,0 +1,76 @@
+{
+ "name": "account-summary",
+ "description": "Search accounts by name and return revenue and status summaries.",
+ "annotations": {
+ "readOnlyHint": true,
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": false
+ },
+ "inputSchema": {
+ "type": "object",
+ "properties": {
+ "nameContains": {
+ "type": "string",
+ "description": "Optional text that the account name must contain."
+ },
+ "limit": {
+ "type": "integer",
+ "description": "Maximum number of matching accounts to return.",
+ "minimum": 1,
+ "maximum": 100,
+ "default": 25
+ }
+ },
+ "additionalProperties": false
+ },
+ "outputSchema": {
+ "type": "object",
+ "properties": {
+ "accounts": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "format": "uuid"
+ },
+ "name": {
+ "type": "string"
+ },
+ "revenue": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "revenue",
+ "status"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "totalCount": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "hasMoreRows": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "accounts",
+ "totalCount",
+ "hasMoreRows"
+ ],
+ "additionalProperties": false
+ }
+}
diff --git a/plugins/mcp-apps/samples/flight-status-widget.html b/plugins/mcp-apps/samples/flight-status-widget.html
index e38647979..c73e37bf9 100644
--- a/plugins/mcp-apps/samples/flight-status-widget.html
+++ b/plugins/mcp-apps/samples/flight-status-widget.html
@@ -51,6 +51,19 @@
root.innerHTML = '<div style="color:var(--colorPaletteRedForeground1,#bc2f32);">' + escapeHtml(msg) + '</div>';
}
+ function contentText(content) {
+ if (typeof content === 'string') { return content; }
+ if (!Array.isArray(content)) { return ''; }
+ return content
+ .filter((block) => block?.type === 'text' && typeof block.text === 'string')
+ .map((block) => block.text)
+ .join('\n');
+ }
+
+ function renderMessage(message) {
+ root.innerHTML = '<div>' + escapeHtml(message) + '</div>';
+ }
+
function formatTime(isoStr) {
if (!isoStr) { return ''; }
try {
@@ -68,7 +81,8 @@
return 'status-default';
}
- function renderData(data) {
+ function renderData(toolResult) {
+ const data = toolResult.structuredContent;
const dep = data.departure || {};
const arr = data.arrival || {};
@@ -109,7 +123,23 @@
renderLoading();
const app = new App({ name: "flight-status", version: "1.0.0" });
- app.ontoolresult = (result) => { const data = result.structuredContent; if (data) { renderData(data); } else { renderError('No flight data received.'); } };
+ app.ontoolresult = (result) => {
+ const toolResult = {
+ content: result.content ?? [],
+ structuredContent: result.structuredContent ?? {},
+ _meta: result._meta ?? {}
+ };
+ if (Object.keys(toolResult.structuredContent).length > 0) {
+ renderData(toolResult);
+ } else {
+ const message = contentText(toolResult.content);
+ if (message) {
+ renderMessage(message);
+ } else {
+ renderError('No flight data received.');
+ }
+ }
+ };
app.onhostcontextchanged = (ctx) => { if (ctx.theme) { applyTheme(ctx.theme); } };
app.onteardown = () => ({});
await app.connect();
diff --git a/plugins/mcp-apps/samples/self-contained-widget.template.html b/plugins/mcp-apps/samples/self-contained-widget.template.html
new file mode 100644
index 000000000..3916391ef
--- /dev/null
+++ b/plugins/mcp-apps/samples/self-contained-widget.template.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <!-- MCP_APPS_SELF_CONTAINED_RUNTIME -->
+ <style>
+ *, *::before, *::after { box-sizing: border-box; }
+ body {
+ margin: 0;
+ padding: 24px;
+ font-family: var(--fontFamilyBase, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
+ color: var(--colorNeutralForeground1, #242424);
+ background: var(--colorNeutralBackground1, #fff);
+ }
+ .spinner {
+ width: 20px;
+ height: 20px;
+ border: 2px solid var(--colorNeutralStroke2, #e0e0e0);
+ border-top-color: var(--colorBrandBackground, #0f6cbd);
+ border-radius: 50%;
+ animation: spin 0.8s linear infinite;
+ }
+ @media (prefers-reduced-motion: no-preference) {
+ @keyframes spin { to { transform: rotate(360deg); } }
+ }
+ </style>
+</head>
+<body>
+ <div id="widget-root"><div class="spinner" role="status" aria-label="Loading"></div></div>
+ <script type="module">
+ const { App, webDarkTheme, webLightTheme } = globalThis.McpAppsRuntime;
+ const root = document.getElementById('widget-root');
+
+ function applyTheme(theme) {
+ const tokens = theme === 'dark' ? webDarkTheme : webLightTheme;
+ for (const [token, value] of Object.entries(tokens)) {
+ document.documentElement.style.setProperty('--' + token, value);
+ }
+ }
+
+ function escapeHtml(text) {
+ const div = document.createElement('div');
+ div.textContent = String(text ?? '');
+ return div.innerHTML;
+ }
+
+ function renderError(message) {
+ root.innerHTML = '<p role="alert">' + escapeHtml(message) + '</p>';
+ }
+
+ const app = new App({ name: 'self-contained-sample', version: '1.0.0' });
+ app.ontoolresult = (result) => {
+ const toolResult = {
+ content: result.content ?? [],
+ structuredContent: result.structuredContent ?? {},
+ _meta: result._meta ?? {},
+ };
+ root.innerHTML = '<pre>' + escapeHtml(JSON.stringify(toolResult.structuredContent, null, 2)) + '</pre>';
+ };
+ app.onhostcontextchanged = (ctx) => { if (ctx.theme) applyTheme(ctx.theme); };
+ app.onteardown = () => ({});
+ await app.connect();
+ const hostContext = app.getHostContext();
+ if (hostContext?.theme) applyTheme(hostContext.theme);
+ </script>
+</body>
+</html>
diff --git a/plugins/mcp-apps/samples/weather-refresh-widget.html b/plugins/mcp-apps/samples/weather-refresh-widget.html
index 20c40c884..ff4d1a79c 100644
--- a/plugins/mcp-apps/samples/weather-refresh-widget.html
+++ b/plugins/mcp-apps/samples/weather-refresh-widget.html
@@ -67,7 +67,21 @@
root.innerHTML = '<div class="error">' + escapeHtml(msg) + '</div>';
}
- function renderData(data) {
+ function contentText(content) {
+ if (typeof content === 'string') { return content; }
+ if (!Array.isArray(content)) { return ''; }
+ return content
+ .filter((block) => block?.type === 'text' && typeof block.text === 'string')
+ .map((block) => block.text)
+ .join('\n');
+ }
+
+ function renderMessage(message) {
+ root.innerHTML = '<div>' + escapeHtml(message) + '</div>';
+ }
+
+ function renderData(toolResult) {
+ const data = toolResult.structuredContent;
const temp = parseFloat(data.temperature);
const humidity = parseFloat(data.humidity);
const forecast = Array.isArray(data.forecast) ? data.forecast : [];
@@ -119,8 +133,8 @@
});
if (result.isError) {
renderError('Failed to refresh: ' + (result.structuredContent?.message || 'Unknown error'));
- } else if (result.structuredContent) {
- renderData(result.structuredContent);
+ } else {
+ renderToolResult(result);
}
} catch (err) {
renderError('Refresh failed: ' + err.message);
@@ -131,14 +145,25 @@
const app = new App({ name: "weather-refresh", version: "1.0.0" });
appRef = app;
- app.ontoolresult = (result) => {
- const data = result.structuredContent;
- if (data) {
- renderData(data);
+ function renderToolResult(result) {
+ const toolResult = {
+ content: result.content ?? [],
+ structuredContent: result.structuredContent ?? {},
+ _meta: result._meta ?? {}
+ };
+ if (Object.keys(toolResult.structuredContent).length > 0) {
+ renderData(toolResult);
} else {
- renderError('No weather data received.');
+ const message = contentText(toolResult.content);
+ if (message) {
+ renderMessage(message);
+ } else {
+ renderError('No weather data received.');
+ }
}
- };
+ }
+
+ app.ontoolresult = renderToolResult;
app.onhostcontextchanged = (ctx) => { if (ctx.theme) { applyTheme(ctx.theme); } };
app.onteardown = () => ({});
await app.connect();
diff --git a/plugins/mcp-apps/scripts/_vendor-build/.gitignore b/plugins/mcp-apps/scripts/_vendor-build/.gitignore
new file mode 100644
index 000000000..c2658d7d1
--- /dev/null
+++ b/plugins/mcp-apps/scripts/_vendor-build/.gitignore
@@ -0,0 +1 @@
+node_modules/
diff --git a/plugins/mcp-apps/scripts/_vendor-build/.npmrc b/plugins/mcp-apps/scripts/_vendor-build/.npmrc
new file mode 100644
index 000000000..31cd6c066
--- /dev/null
+++ b/plugins/mcp-apps/scripts/_vendor-build/.npmrc
@@ -0,0 +1,3 @@
+# Keep the committed lockfile feed-agnostic. Contributors may use public npm or
+# a corporate mirror, but neither registry URL belongs in this public repository.
+omit-lockfile-registry-resolved=true
diff --git a/plugins/mcp-apps/scripts/_vendor-build/build.js b/plugins/mcp-apps/scripts/_vendor-build/build.js
new file mode 100644
index 000000000..ff2b705eb
--- /dev/null
+++ b/plugins/mcp-apps/scripts/_vendor-build/build.js
@@ -0,0 +1,158 @@
+'use strict';
+
+// Rebuild the committed browser runtime used by no-CDN widgets.
+// Run `npm ci && npm run build` from this directory after intentionally updating
+// a pinned dependency, then review the bundle, provenance, and license notices.
+const assert = require('node:assert');
+const crypto = require('node:crypto');
+const fs = require('node:fs');
+const path = require('node:path');
+const esbuild = require('esbuild');
+
+const root = __dirname;
+const assetDir = path.resolve(root, '..', '..', 'assets', 'self-contained');
+const outputPath = path.join(assetDir, 'mcp-app-runtime.min.js');
+const provenancePath = path.join(assetDir, 'PROVENANCE.json');
+const checkOnly = process.argv.includes('--check');
+
+function packageRoot(packageName) {
+ const installedRoot = path.join(root, 'node_modules', ...packageName.split('/'));
+ if (fs.existsSync(path.join(installedRoot, 'package.json'))) return installedRoot;
+
+ let directory = path.dirname(require.resolve(packageName));
+ while (directory !== path.dirname(directory)) {
+ const manifestPath = path.join(directory, 'package.json');
+ if (fs.existsSync(manifestPath)) {
+ const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
+ if (manifest.name === packageName) return directory;
+ }
+ directory = path.dirname(directory);
+ }
+ throw new Error(`Could not locate package.json for ${packageName}.`);
+}
+
+function packageVersion(packageName) {
+ return JSON.parse(fs.readFileSync(path.join(packageRoot(packageName), 'package.json'), 'utf8')).version;
+}
+
+const bundledLicensePackages = [
+ '@modelcontextprotocol/ext-apps',
+ '@modelcontextprotocol/sdk',
+ '@fluentui/tokens',
+ '@standard-schema/spec',
+ '@swc/helpers',
+ 'zod',
+];
+const licenseFileNames = {
+ '@fluentui/tokens': 'fluentui-tokens.txt',
+ '@modelcontextprotocol/ext-apps': 'modelcontextprotocol-ext-apps.txt',
+ '@modelcontextprotocol/sdk': 'modelcontextprotocol-sdk.txt',
+ '@standard-schema/spec': 'standard-schema-spec.txt',
+ '@swc/helpers': 'swc-helpers.txt',
+ zod: 'zod.txt',
+};
+
+function packageLicense(packageName) {
+ return fs.readFileSync(path.join(packageRoot(packageName), 'LICENSE'), 'utf8');
+}
+
+function licenseBanner() {
+ const sections = bundledLicensePackages.map((packageName) => {
+ const license = packageLicense(packageName)
+ .trim()
+ .replace(/[ \t]+$/gm, '')
+ .replaceAll('*/', '* /');
+ return `----- ${packageName} -----\n${license}`;
+ });
+ // Keep the license notices inside the runtime so the generated one-file HTML remains
+ // redistributable without a companion notices file.
+ return `/*!\nSelf-contained MCP Apps runtime third-party licenses\n\n${sections.join('\n\n')}\n*/`;
+}
+
+async function buildBundle() {
+ const result = await esbuild.build({
+ entryPoints: [path.join(root, 'entry.js')],
+ bundle: true,
+ format: 'iife',
+ legalComments: 'none',
+ minify: true,
+ platform: 'browser',
+ target: 'es2022',
+ write: false,
+ banner: {
+ js: licenseBanner(),
+ },
+ });
+ assert.strictEqual(result.outputFiles.length, 1, 'expected one JavaScript bundle');
+ return result.outputFiles[0].text;
+}
+
+function sha256(value) {
+ return crypto.createHash('sha256').update(value).digest('hex');
+}
+
+function expectedProvenance(bundle) {
+ return {
+ artifact: 'mcp-app-runtime.min.js',
+ sha256: sha256(bundle),
+ build: {
+ entry: 'scripts/_vendor-build/entry.js',
+ command: 'npm ci && npm run build',
+ nodeTarget: 'es2022',
+ esbuild: packageVersion('esbuild'),
+ },
+ packages: {
+ '@fluentui/tokens': {
+ version: packageVersion('@fluentui/tokens'),
+ source: 'https://github.com/microsoft/fluentui',
+ },
+ '@modelcontextprotocol/ext-apps': {
+ version: packageVersion('@modelcontextprotocol/ext-apps'),
+ source: 'https://github.com/modelcontextprotocol/ext-apps',
+ },
+ },
+ licenses: 'THIRD-PARTY-NOTICES.md',
+ licensePackagesEmbeddedInArtifact: bundledLicensePackages,
+ };
+}
+
+function formatJson(value) {
+ return `${JSON.stringify(value, null, 2)}\n`;
+}
+
+async function main() {
+ const bundle = await buildBundle();
+ const provenance = formatJson(expectedProvenance(bundle));
+
+ if (checkOnly) {
+ assert.strictEqual(fs.readFileSync(outputPath, 'utf8'), bundle, 'runtime bundle is stale');
+ assert.strictEqual(fs.readFileSync(provenancePath, 'utf8'), provenance, 'runtime provenance is stale');
+ for (const packageName of bundledLicensePackages) {
+ const committedPath = path.join(assetDir, 'licenses', licenseFileNames[packageName]);
+ assert.strictEqual(
+ fs.readFileSync(committedPath, 'utf8'),
+ packageLicense(packageName),
+ `${packageName} license copy is stale`,
+ );
+ }
+ console.log('Self-contained MCP Apps runtime is current.');
+ return;
+ }
+
+ fs.mkdirSync(assetDir, { recursive: true });
+ fs.mkdirSync(path.join(assetDir, 'licenses'), { recursive: true });
+ fs.writeFileSync(outputPath, bundle);
+ fs.writeFileSync(provenancePath, provenance);
+ for (const packageName of bundledLicensePackages) {
+ fs.writeFileSync(
+ path.join(assetDir, 'licenses', licenseFileNames[packageName]),
+ packageLicense(packageName),
+ );
+ }
+ console.log(`Wrote ${path.relative(process.cwd(), outputPath)} (${Buffer.byteLength(bundle)} bytes).`);
+}
+
+main().catch((error) => {
+ console.error(error instanceof Error ? error.message : String(error));
+ process.exitCode = 1;
+});
diff --git a/plugins/mcp-apps/scripts/_vendor-build/entry.js b/plugins/mcp-apps/scripts/_vendor-build/entry.js
new file mode 100644
index 000000000..80784ea5f
--- /dev/null
+++ b/plugins/mcp-apps/scripts/_vendor-build/entry.js
@@ -0,0 +1,10 @@
+import { webDarkTheme, webLightTheme } from '@fluentui/tokens';
+import { App } from '@modelcontextprotocol/ext-apps/app-with-deps';
+
+// The generated widget application runs in a separate module block. Expose only
+// the stable values it needs instead of leaking every bundled package export.
+globalThis.McpAppsRuntime = Object.freeze({
+ App,
+ webDarkTheme,
+ webLightTheme,
+});
diff --git a/plugins/mcp-apps/scripts/_vendor-build/package-lock.json b/plugins/mcp-apps/scripts/_vendor-build/package-lock.json
new file mode 100644
index 000000000..9ceb2ae48
--- /dev/null
+++ b/plugins/mcp-apps/scripts/_vendor-build/package-lock.json
@@ -0,0 +1,1713 @@
+{
+ "name": "mcp-apps-runtime-vendor-build",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "mcp-apps-runtime-vendor-build",
+ "version": "0.0.0",
+ "dependencies": {
+ "@fluentui/tokens": "1.0.0-alpha.22",
+ "@modelcontextprotocol/ext-apps": "1.7.5"
+ },
+ "devDependencies": {
+ "esbuild": "0.28.2"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.2",
+ "integrity": "sha1-v24QMDvPLnxoaXX6Uvk37Cco2Lw=",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.28.2",
+ "integrity": "sha1-LYTs5qTiaE2SvibuE9QnV9gxw4E=",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-DGJGvI0sTRcqrC2z+xGQ1yvWVQQ=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-/DjU1jWNjcHPU/CfdYn+Q262SAE=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-+Dr+6sHX2sAcei/QErPkUaBZH8w=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-UQFHwFWnlViNu+FP1rG4rQovMN4=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-CTuSAOzwsRW6Tl4kinSFycX4vV4=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-C+Irbfkl0hPoQeqHEjr134Cw+vc=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.28.2",
+ "integrity": "sha1-vrEq1yuE9y0oSIzBuO6ffrFB11M=",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-G9vGUc2pupmVxT7ZxxzqplCUdi0=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.2",
+ "integrity": "sha1-uB+dVVKbRcIGpGoTghSxqmh5aWs=",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.2",
+ "integrity": "sha1-WYZnJBoEyZt27W75QKxQA4xBn5g=",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.2",
+ "integrity": "sha1-HFHrnOqQP1PZe1rzsYQdtw9Vlso=",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.2",
+ "integrity": "sha1-Y91h8XzrMagSJ/QT/qyKcbwsUfI=",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.2",
+ "integrity": "sha1-N2Owj95c8lqx+suOd1Lt/kX7/Cc=",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.2",
+ "integrity": "sha1-GhN/8pOoKQbrMXY4W9fo4OXPt8s=",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-Jos2IRwUbKVPj+EsV4qNbviXlIU=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-Ilca2VHWK7aszILY0frVyMGsC6E=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-QvzFcpfrCgyj9fxHUpH0waP3wN4=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-nrMq8QSsPaz07coB9ZZmSqsMc+8=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-/r7SQC1giCJekfIPtM4lIq0KTv0=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-hWQcPUZkKL+8zqXyHCaDZmP+9c4=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-pzb52JYkgQRfxMPlT1R58iyHD7Q=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.2",
+ "integrity": "sha1-7lq0D60YYgG2UqM/il6xSenkJTI=",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.2",
+ "integrity": "sha1-xA0optmaEn2mcR8q/XSxHLY7Bqc=",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.28.2",
+ "integrity": "sha1-shr/uATMFnwTPZX0WzodwTI7moc=",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@fluentui/tokens": {
+ "version": "1.0.0-alpha.22",
+ "integrity": "sha1-WhkW9lTDdmm+INnEzO2zV2eD7mI=",
+ "license": "MIT",
+ "dependencies": {
+ "@swc/helpers": "^0.5.1"
+ }
+ },
+ "node_modules/@hono/node-server": {
+ "version": "2.1.1",
+ "integrity": "sha1-nPqGSensvNSO31BbEDACQC6lHnA=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=20"
+ },
+ "peerDependencies": {
+ "hono": "^4"
+ }
+ },
+ "node_modules/@modelcontextprotocol/ext-apps": {
+ "version": "1.7.5",
+ "integrity": "sha1-UwBPrfe+95xTPiixCJMZnHv0ZpM=",
+ "license": "MIT",
+ "workspaces": [
+ "examples/*"
+ ],
+ "dependencies": {
+ "@standard-schema/spec": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "peerDependencies": {
+ "@modelcontextprotocol/sdk": "^1.29.0",
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
+ "zod": "^3.25.0 || ^4.0.0"
+ },
+ "peerDependenciesMeta": {
+ "react": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@modelcontextprotocol/sdk": {
+ "version": "1.30.0",
+ "integrity": "sha1-36ikg0fsLSwNR5F9fcV/dU439f8=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@hono/node-server": "^1.19.9 || ^2.0.5",
+ "ajv": "^8.17.1",
+ "ajv-formats": "^3.0.1",
+ "content-type": "^1.0.5",
+ "cors": "^2.8.5",
+ "cross-spawn": "^7.0.5",
+ "eventsource": "^3.0.2",
+ "eventsource-parser": "^3.0.0",
+ "express": "^5.2.1",
+ "express-rate-limit": "^8.2.1",
+ "hono": "^4.11.4",
+ "jose": "^6.1.3",
+ "json-schema-typed": "^8.0.2",
+ "pkce-challenge": "^5.0.0",
+ "raw-body": "^3.0.0",
+ "zod": "^3.25 || ^4.0",
+ "zod-to-json-schema": "^3.25.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@cfworker/json-schema": "^4.1.1",
+ "zod": "^3.25 || ^4.0"
+ },
+ "peerDependenciesMeta": {
+ "@cfworker/json-schema": {
+ "optional": true
+ },
+ "zod": {
+ "optional": false
+ }
+ }
+ },
+ "node_modules/@standard-schema/spec": {
+ "version": "1.1.0",
+ "integrity": "sha1-p5tV26+GBIEvUtFAssmrQbwVC7g=",
+ "license": "MIT"
+ },
+ "node_modules/@swc/helpers": {
+ "version": "0.5.23",
+ "integrity": "sha1-GSh9DYbZYrERN2A5pQx5KQLJqGo=",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "^2.8.0"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "2.0.0",
+ "integrity": "sha1-u89LpQdUZ/PyEx6rPP/HPC9deJU=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "mime-types": "^3.0.0",
+ "negotiator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "integrity": "sha1-MEs2Nq3Yi6fZNnYN1Q7OAG3qlfk=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-formats": {
+ "version": "3.0.1",
+ "integrity": "sha1-PV3HYryhdnnDwup+kK1rdTIwlXg=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/body-parser": {
+ "version": "2.3.0",
+ "integrity": "sha1-bYZi9NjDNgKLismqJCUbDKZLpDc=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "bytes": "^3.1.2",
+ "content-type": "^2.0.0",
+ "debug": "^4.4.3",
+ "http-errors": "^2.0.1",
+ "iconv-lite": "^0.7.2",
+ "on-finished": "^2.4.1",
+ "qs": "^6.15.2",
+ "raw-body": "^3.0.2",
+ "type-is": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/body-parser/node_modules/content-type": {
+ "version": "2.1.0",
+ "integrity": "sha1-2TicQ8Coz2o1XbRk0h4HCSpASTo=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "integrity": "sha1-iwvuuYYFrfGxKPpDhkA8AJ4CIaU=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "integrity": "sha1-S1QowiK+mF15w9gmV0edvgtZstY=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "integrity": "sha1-I43pNdKippKSjFOMfM+pEGf9Bio=",
+ "license": "MIT",
+ "peer": true,
+ "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/content-disposition": {
+ "version": "1.1.0",
+ "integrity": "sha1-89t4nHUtRVZMx+nh4LMXkNSjjhc=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "integrity": "sha1-i3cxYmVtHRCGeEyPI6VM5tc9eRg=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.7.2",
+ "integrity": "sha1-VWNpxHKiupEPKXmJG1JrNDYjftc=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.2.2",
+ "integrity": "sha1-V8f8PMKTrKuf7FTXPhVpDr5KF5M=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=6.6.0"
+ }
+ },
+ "node_modules/cors": {
+ "version": "2.8.6",
+ "integrity": "sha1-/13Wm9leVHUDgg0pq6T4+vjf7JY=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "object-assign": "^4",
+ "vary": "^1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "integrity": "sha1-ilj+ePANzXDDcEUXWd+/rwPo7p8=",
+ "license": "MIT",
+ "peer": true,
+ "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",
+ "integrity": "sha1-xq5DLZvZZiWC/OCHCbA4xY6ePWo=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "integrity": "sha1-tpYWPMdXVg0JzyLMj60Vcbeedt8=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "integrity": "sha1-165mfh3INIL4tw/Q9u78UNow9Yo=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/encodeurl": {
+ "version": "2.0.0",
+ "integrity": "sha1-e46omAd9fkCdOsRUdOo46vCFelg=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "integrity": "sha1-mD6y+aZyTpMD9hrd8BHHLgngsPo=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "integrity": "sha1-BfdaJdq5jk+x3NXhRywFRtUFfI8=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.2",
+ "integrity": "sha1-otCzcyBXJN+lJdI7DD4bHKWCyZs=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.28.2",
+ "integrity": "sha1-D0O9G62VW3LSTiJh46vllXzPCBY=",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.2",
+ "@esbuild/android-arm": "0.28.2",
+ "@esbuild/android-arm64": "0.28.2",
+ "@esbuild/android-x64": "0.28.2",
+ "@esbuild/darwin-arm64": "0.28.2",
+ "@esbuild/darwin-x64": "0.28.2",
+ "@esbuild/freebsd-arm64": "0.28.2",
+ "@esbuild/freebsd-x64": "0.28.2",
+ "@esbuild/linux-arm": "0.28.2",
+ "@esbuild/linux-arm64": "0.28.2",
+ "@esbuild/linux-ia32": "0.28.2",
+ "@esbuild/linux-loong64": "0.28.2",
+ "@esbuild/linux-mips64el": "0.28.2",
+ "@esbuild/linux-ppc64": "0.28.2",
+ "@esbuild/linux-riscv64": "0.28.2",
+ "@esbuild/linux-s390x": "0.28.2",
+ "@esbuild/linux-x64": "0.28.2",
+ "@esbuild/netbsd-arm64": "0.28.2",
+ "@esbuild/netbsd-x64": "0.28.2",
+ "@esbuild/openbsd-arm64": "0.28.2",
+ "@esbuild/openbsd-x64": "0.28.2",
+ "@esbuild/openharmony-arm64": "0.28.2",
+ "@esbuild/sunos-x64": "0.28.2",
+ "@esbuild/win32-arm64": "0.28.2",
+ "@esbuild/win32-ia32": "0.28.2",
+ "@esbuild/win32-x64": "0.28.2"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/eventsource": {
+ "version": "3.0.7",
+ "integrity": "sha1-EVdiLi9Td7tq7yEUNycougwVaYk=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "eventsource-parser": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/eventsource-parser": {
+ "version": "3.1.1",
+ "integrity": "sha1-uWy7fazk83dPWKnjsa6aSlJIcuI=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/express": {
+ "version": "5.2.1",
+ "integrity": "sha1-jyHRW20yf5K0eU7PjLCKcvlWrAQ=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "accepts": "^2.0.0",
+ "body-parser": "^2.2.1",
+ "content-disposition": "^1.0.0",
+ "content-type": "^1.0.5",
+ "cookie": "^0.7.1",
+ "cookie-signature": "^1.2.1",
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "finalhandler": "^2.1.0",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "merge-descriptors": "^2.0.0",
+ "mime-types": "^3.0.0",
+ "on-finished": "^2.4.1",
+ "once": "^1.4.0",
+ "parseurl": "^1.3.3",
+ "proxy-addr": "^2.0.7",
+ "qs": "^6.14.0",
+ "range-parser": "^1.2.1",
+ "router": "^2.2.0",
+ "send": "^1.1.0",
+ "serve-static": "^2.2.0",
+ "statuses": "^2.0.1",
+ "type-is": "^2.0.1",
+ "vary": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/express-rate-limit": {
+ "version": "8.7.0",
+ "integrity": "sha1-h3OaNTXn2zyoe0p3sexcwsCnEeQ=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "debug": "^4.4.3",
+ "ip-address": "^10.2.0"
+ },
+ "engines": {
+ "node": ">= 16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/express-rate-limit"
+ },
+ "peerDependencies": {
+ "express": ">= 4.11"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "integrity": "sha1-On1WtVnWy8PrUSMlJE5hmmXGxSU=",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.6",
+ "integrity": "sha1-v90wjvdj+DX+0Fnzxskl9wjjPjo=",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause",
+ "peer": true
+ },
+ "node_modules/finalhandler": {
+ "version": "2.1.1",
+ "integrity": "sha1-osUXplWYUrzbBtH4vX9Rto+tgJk=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "on-finished": "^2.4.1",
+ "parseurl": "^1.3.3",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "integrity": "sha1-ImmTZCiq1MFcfr6XeahL8LKoGBE=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "2.0.0",
+ "integrity": "sha1-jdffahs6Gzpc8YbAWl3SZ2ImNaQ=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "integrity": "sha1-LALYZNl/PqbIgwxGTL0Rq26rehw=",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "integrity": "sha1-dD8OO2lkqTpUke0b/6rgVNf5jQE=",
+ "license": "MIT",
+ "peer": true,
+ "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-proto": {
+ "version": "1.0.1",
+ "integrity": "sha1-FQs/J0OGnvPoUewMSdFbHRTQDuE=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "integrity": "sha1-ifVrghe9vIgCvSmd9tfxCB1+UaE=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "integrity": "sha1-/JxqeDoISVHQuXH+EBjegTcHozg=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "integrity": "sha1-jGLYy5C+sqrV0KW2dYGtmFTD8AM=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/hono": {
+ "version": "4.13.5",
+ "integrity": "sha1-PflGPEZooDIcOVFTCfWJHjiOlwk=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=16.9.0"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.1",
+ "integrity": "sha1-NtL2W8kJyHkAGN02+02T2myq4Gs=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.7.3",
+ "integrity": "sha1-hO4S+WPn3lC8AaE+FgoHizsPQV8=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=",
+ "license": "ISC",
+ "peer": true
+ },
+ "node_modules/ip-address": {
+ "version": "10.7.0",
+ "integrity": "sha1-lxNCnxZ4ft6PZC9iVbQftRXIJdk=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "integrity": "sha1-v/OFQ+64mEglB5/zoqjmy9RngbM=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/is-promise": {
+ "version": "4.0.0",
+ "integrity": "sha1-Qv+fhCBsGZHSbev1IN1cAQQt0vM=",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
+ "license": "ISC",
+ "peer": true
+ },
+ "node_modules/jose": {
+ "version": "6.2.10",
+ "integrity": "sha1-twQ2ySDEs/lzFMKKi4YSwVsdnn8=",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/panva"
+ }
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "integrity": "sha1-rnvLNlard6c7pcSb9lTzjmtoYOI=",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/json-schema-typed": {
+ "version": "8.0.2",
+ "integrity": "sha1-6Y7nsYmf9KGEU00fFnwojGa77/Q=",
+ "license": "BSD-2-Clause",
+ "peer": true
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "integrity": "sha1-oN10voHiqlwvJ+Zc4oNgXuTit/k=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "1.1.1",
+ "integrity": "sha1-bwNUAN/jq51WB7x3VGzjDML5xrg=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "2.0.0",
+ "integrity": "sha1-6pIvZgY1oiSe5WXgRJ+VHmtgOAg=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.54.0",
+ "integrity": "sha1-zds+5PnGRTDf9kAjZmHULLajFPU=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "3.0.2",
+ "integrity": "sha1-OQAtQYJXXVrwNv+hGBAPJSSy4qs=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "integrity": "sha1-V0yBOM4dK1hh8LRFedut1gxmFbI=",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/negotiator": {
+ "version": "1.1.0",
+ "integrity": "sha1-FuAD0NtKwk/Z3xaO34cWJd7q498=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "content-type": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/negotiator/node_modules/content-type": {
+ "version": "2.1.0",
+ "integrity": "sha1-2TicQ8Coz2o1XbRk0h4HCSpASTo=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "integrity": "sha1-g3UmXiG8IND6WCwi4bE0hdbgAhM=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "integrity": "sha1-WMjEQRblSEWtV/FKsQsDUzGErD8=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
+ "license": "ISC",
+ "peer": true,
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "integrity": "sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "integrity": "sha1-WB9q3mWMu6ZaDTOA3ndTKVBU83U=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "8.4.2",
+ "integrity": "sha1-eVxCDE98pFxbiHNm9iLuDJhSzM0=",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/pkce-challenge": {
+ "version": "5.0.1",
+ "integrity": "sha1-O0RGhlsXsXRems4gFqMfSN32Iw0=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "integrity": "sha1-8Z/mnOqzEe65S0LnDowgcPm6ECU=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.16.0",
+ "integrity": "sha1-wixyOiipIPOqzc6Cifq9Q+zLef0=",
+ "license": "BSD-3-Clause",
+ "peer": true,
+ "dependencies": {
+ "es-define-property": "^1.0.1",
+ "side-channel": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.3.0",
+ "integrity": "sha1-1/Gb6BK7YnIUcrRdO+IZ7wlXK0c=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "3.0.2",
+ "integrity": "sha1-PjraWuVWj5CV2EN2/TpJuPsAClE=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.7.0",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "integrity": "sha1-iaf92TgmEmcxjq/hT5wy5ZjDaQk=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/router": {
+ "version": "2.2.0",
+ "integrity": "sha1-AZvmILcRyHZBFnzHm5kJDwCxRu8=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "is-promise": "^4.0.0",
+ "parseurl": "^1.3.3",
+ "path-to-regexp": "^8.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=",
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/send": {
+ "version": "1.2.1",
+ "integrity": "sha1-nqt0O4dPNVD0CiaGe/KGrWDT8+0=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "debug": "^4.4.3",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.1",
+ "mime-types": "^3.0.2",
+ "ms": "^2.1.3",
+ "on-finished": "^2.4.1",
+ "range-parser": "^1.2.1",
+ "statuses": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/serve-static": {
+ "version": "2.2.1",
+ "integrity": "sha1-fxhqSk5fW2Y616QpT/G/N88OmKk=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "parseurl": "^1.3.3",
+ "send": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "integrity": "sha1-ZsmiSnP5/CjL5msJ/tPTPcrxtCQ=",
+ "license": "ISC",
+ "peer": true
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "integrity": "sha1-zNCvT4g1+9wmW4JGGq8MNmY/NOo=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "integrity": "sha1-rhbxZE2HPsrYQ7AwexQzYtTEIXI=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.1",
+ "integrity": "sha1-6gLGLgXcS+pn1EQvD7ce4ZL44Ks=",
+ "license": "MIT",
+ "peer": true,
+ "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",
+ "integrity": "sha1-wuC1oUpUCuvuO7xsP4ZmzJtQkSc=",
+ "license": "MIT",
+ "peer": true,
+ "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",
+ "integrity": "sha1-1rtrN5Asb+9RdOX1M/q0xzKib0I=",
+ "license": "MIT",
+ "peer": true,
+ "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",
+ "integrity": "sha1-Ed2hnVNo5Azp7CvcH7DsvAeQ7Oo=",
+ "license": "MIT",
+ "peer": true,
+ "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/statuses": {
+ "version": "2.0.2",
+ "integrity": "sha1-j3XuzvdlteHPzcCA2llAntQk44I=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "integrity": "sha1-O+NDIaiKgg7RvYDfqjPkefu43TU=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "integrity": "sha1-YS7+TtI11Wfoq6Xypfq3AoCt6D8=",
+ "license": "0BSD"
+ },
+ "node_modules/type-is": {
+ "version": "2.1.0",
+ "integrity": "sha1-cdGnBTKTWC4WrJ8+uvGrmqSeVXA=",
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "content-type": "^2.0.0",
+ "media-typer": "^1.1.0",
+ "mime-types": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/type-is/node_modules/content-type": {
+ "version": "2.1.0",
+ "integrity": "sha1-2TicQ8Coz2o1XbRk0h4HCSpASTo=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "integrity": "sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=",
+ "license": "ISC",
+ "peer": true,
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
+ "license": "ISC",
+ "peer": true
+ },
+ "node_modules/zod": {
+ "version": "4.5.4",
+ "integrity": "sha1-4hXGJCDFKN15UeMftSxUOPH9GEo=",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zod-to-json-schema": {
+ "version": "3.25.2",
+ "integrity": "sha1-P6eZp7rdVUVBRy+2WEP9xGCy5ao=",
+ "license": "ISC",
+ "peer": true,
+ "peerDependencies": {
+ "zod": "^3.25.28 || ^4"
+ }
+ }
+ }
+}
diff --git a/plugins/mcp-apps/scripts/_vendor-build/package.json b/plugins/mcp-apps/scripts/_vendor-build/package.json
new file mode 100644
index 000000000..104d5bf07
--- /dev/null
+++ b/plugins/mcp-apps/scripts/_vendor-build/package.json
@@ -0,0 +1,17 @@
+{
+ "name": "mcp-apps-runtime-vendor-build",
+ "private": true,
+ "version": "0.0.0",
+ "description": "Dev-only build for the self-contained MCP Apps browser runtime.",
+ "scripts": {
+ "build": "node build.js",
+ "check": "node build.js --check"
+ },
+ "dependencies": {
+ "@fluentui/tokens": "1.0.0-alpha.22",
+ "@modelcontextprotocol/ext-apps": "1.7.5"
+ },
+ "devDependencies": {
+ "esbuild": "0.28.2"
+ }
+}
diff --git a/plugins/mcp-apps/scripts/inline-self-contained-runtime.js b/plugins/mcp-apps/scripts/inline-self-contained-runtime.js
new file mode 100644
index 000000000..5b752ffa0
--- /dev/null
+++ b/plugins/mcp-apps/scripts/inline-self-contained-runtime.js
@@ -0,0 +1,128 @@
+#!/usr/bin/env node
+'use strict';
+
+const fs = require('node:fs');
+const path = require('node:path');
+
+const RUNTIME_MARKER = '<!-- MCP_APPS_SELF_CONTAINED_RUNTIME -->';
+const EMBEDDED_RUNTIME_START = '<!-- MCP_APPS_EMBEDDED_RUNTIME_START -->';
+const EMBEDDED_RUNTIME_END = '<!-- MCP_APPS_EMBEDDED_RUNTIME_END -->';
+const runtimePath = path.resolve(__dirname, '..', 'assets', 'self-contained', 'mcp-app-runtime.min.js');
+
+function parseArgs(argv) {
+ const result = {};
+ for (let index = 0; index < argv.length; index += 1) {
+ const value = argv[index];
+ if (value === '--input' || value === '--output') {
+ const next = argv[index + 1];
+ if (!next) throw new Error(`${value} requires a path`);
+ result[value.slice(2)] = path.resolve(next);
+ index += 1;
+ } else if (value === '--prepare') {
+ result.prepare = true;
+ } else {
+ throw new Error(`Unknown argument: ${value}`);
+ }
+ }
+ if (!result.input) {
+ throw new Error('Usage: inline-self-contained-runtime.js --input <html> [--output <html>] [--prepare]');
+ }
+ result.output ||= result.input;
+ return result;
+}
+
+function countOccurrences(value, needle) {
+ return value.split(needle).length - 1;
+}
+
+function assertNoExternalResources(html) {
+ const resourceAttribute = /<(script|link|img|iframe|audio|video|source|object|image|use)\b[^>]*\b(src|srcset|href|xlink:href|data)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gi;
+ for (const match of html.matchAll(resourceAttribute)) {
+ const value = (match[3] ?? match[4] ?? match[5] ?? '').trim();
+ if (match[2].toLowerCase() === 'srcset') {
+ throw new Error('Self-contained widget contains an external media candidate list.');
+ }
+ if (value && !value.startsWith('data:') && !value.startsWith('#') && value !== 'about:blank') {
+ throw new Error(`Self-contained widget contains an external ${match[1].toLowerCase()} resource.`);
+ }
+ }
+
+ const checks = [
+ [/\bimport\s*\(/, 'dynamic import'],
+ [/(?:^|>)\s*import\s+(?:["'{*]|[A-Za-z_$])/m, 'module import'],
+ [/@import\b/i, 'CSS import'],
+ [/\burl\(\s*(?!["']?(?:data:|#))/i, 'CSS resource'],
+ [/\bfetch\s*\(/i, 'fetch'],
+ [/\b(?:XMLHttpRequest|WebSocket|EventSource|sendBeacon)\b/, 'network API'],
+ [/\bnew\s+(?:Worker|SharedWorker)\s*\(/i, 'worker'],
+ ];
+ for (const [pattern, label] of checks) {
+ if (pattern.test(html)) {
+ throw new Error(`Self-contained widget contains a disallowed ${label}.`);
+ }
+ }
+}
+
+function inlineRuntime(draft, runtime) {
+ const markerCount = countOccurrences(draft, RUNTIME_MARKER);
+ if (markerCount !== 1) {
+ throw new Error(`Expected exactly one ${RUNTIME_MARKER} marker; found ${markerCount}.`);
+ }
+ if (!/globalThis\.McpAppsRuntime/.test(draft)) {
+ throw new Error('Draft must read App and theme tokens from globalThis.McpAppsRuntime.');
+ }
+ assertNoExternalResources(draft);
+
+ // Use a replacer function because minified dependencies can legitimately contain
+ // replacement tokens such as `$&`; passing the runtime as a replacement string would
+ // expand those tokens and silently reinsert the marker into the bundle.
+ if (draft.includes(EMBEDDED_RUNTIME_START) || draft.includes(EMBEDDED_RUNTIME_END)) {
+ throw new Error('Draft already contains an embedded runtime. Run with --prepare before editing or inlining again.');
+ }
+ const embeddedRuntime = `${EMBEDDED_RUNTIME_START}\n<script>\n${runtime}\n</script>\n${EMBEDDED_RUNTIME_END}`;
+ const output = draft.replace(RUNTIME_MARKER, () => embeddedRuntime);
+ if (countOccurrences(output, '<script type="module">') !== 1) {
+ throw new Error('Self-contained widget must contain exactly one application <script type="module"> block.');
+ }
+ return output;
+}
+
+function prepareDraft(html) {
+ const start = html.indexOf(EMBEDDED_RUNTIME_START);
+ const end = html.indexOf(EMBEDDED_RUNTIME_END);
+ if (start < 0 || end < 0 || end < start) {
+ throw new Error('Expected one embedded MCP Apps runtime region.');
+ }
+ if (html.indexOf(EMBEDDED_RUNTIME_START, start + EMBEDDED_RUNTIME_START.length) >= 0
+ || html.indexOf(EMBEDDED_RUNTIME_END, end + EMBEDDED_RUNTIME_END.length) >= 0) {
+ throw new Error('Expected exactly one embedded MCP Apps runtime region.');
+ }
+ return html.slice(0, start) + RUNTIME_MARKER + html.slice(end + EMBEDDED_RUNTIME_END.length);
+}
+
+function main() {
+ const options = parseArgs(process.argv.slice(2));
+ const source = fs.readFileSync(options.input, 'utf8');
+ const output = options.prepare
+ ? prepareDraft(source)
+ : inlineRuntime(source, fs.readFileSync(runtimePath, 'utf8'));
+ fs.writeFileSync(options.output, output);
+ console.log(`${options.prepare ? 'Prepared widget source' : 'Wrote self-contained widget'}: ${options.output}`);
+}
+
+if (require.main === module) {
+ try {
+ main();
+ } catch (error) {
+ console.error(error instanceof Error ? error.message : String(error));
+ process.exitCode = 1;
+ }
+}
+
+module.exports = {
+ RUNTIME_MARKER,
+ assertNoExternalResources,
+ inlineRuntime,
+ parseArgs,
+ prepareDraft,
+};
diff --git a/plugins/mcp-apps/scripts/tests/self-contained-widget.test.js b/plugins/mcp-apps/scripts/tests/self-contained-widget.test.js
new file mode 100644
index 000000000..54be12735
--- /dev/null
+++ b/plugins/mcp-apps/scripts/tests/self-contained-widget.test.js
@@ -0,0 +1,155 @@
+'use strict';
+
+const assert = require('node:assert/strict');
+const crypto = require('node:crypto');
+const fs = require('node:fs');
+const os = require('node:os');
+const path = require('node:path');
+const test = require('node:test');
+const vm = require('node:vm');
+const { spawnSync } = require('node:child_process');
+
+const pluginRoot = path.resolve(__dirname, '..', '..');
+const runtimePath = path.join(pluginRoot, 'assets', 'self-contained', 'mcp-app-runtime.min.js');
+const provenancePath = path.join(pluginRoot, 'assets', 'self-contained', 'PROVENANCE.json');
+const templatePath = path.join(pluginRoot, 'samples', 'self-contained-widget.template.html');
+const composerPath = path.join(pluginRoot, 'scripts', 'inline-self-contained-runtime.js');
+const cdnSamplePath = path.join(pluginRoot, 'samples', 'weather-refresh-widget.html');
+const skillPath = path.join(pluginRoot, 'skills', 'generate-mcp-app-ui', 'SKILL.md');
+const {
+ RUNTIME_MARKER,
+ assertNoExternalResources,
+ inlineRuntime,
+ prepareDraft,
+} = require('../inline-self-contained-runtime.js');
+
+test('vendored runtime matches provenance and exposes the stable global', () => {
+ const runtime = fs.readFileSync(runtimePath, 'utf8');
+ const provenance = JSON.parse(fs.readFileSync(provenancePath, 'utf8'));
+ const digest = crypto.createHash('sha256').update(runtime).digest('hex');
+
+ assert.equal(digest, provenance.sha256);
+ assert.equal(provenance.packages['@modelcontextprotocol/ext-apps'].version, '1.7.5');
+ assert.equal(provenance.packages['@fluentui/tokens'].version, '1.0.0-alpha.22');
+ assert.match(runtime, /globalThis\.McpAppsRuntime/);
+ assert.match(runtime, /Self-contained MCP Apps runtime third-party licenses/);
+ for (const packageName of provenance.licensePackagesEmbeddedInArtifact) {
+ assert.match(runtime, new RegExp(packageName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
+ }
+ assert.doesNotMatch(runtime, /<\/script/i);
+ assert.doesNotMatch(runtime, /\bimport\s*(?:\(|[^;\n]*?\bfrom\s*)["']/);
+
+ const context = { console };
+ context.globalThis = context;
+ vm.runInNewContext(runtime, context);
+ assert.equal(typeof context.McpAppsRuntime.App, 'function');
+ assert.ok(Object.keys(context.McpAppsRuntime.webLightTheme).length > 100);
+ assert.ok(Object.keys(context.McpAppsRuntime.webDarkTheme).length > 100);
+});
+
+test('third-party license texts are committed for bundled packages', () => {
+ const licenseDir = path.join(pluginRoot, 'assets', 'self-contained', 'licenses');
+ for (const file of [
+ 'fluentui-tokens.txt',
+ 'modelcontextprotocol-ext-apps.txt',
+ 'modelcontextprotocol-sdk.txt',
+ 'standard-schema-spec.txt',
+ 'swc-helpers.txt',
+ 'zod.txt',
+ ]) {
+ const text = fs.readFileSync(path.join(licenseDir, file), 'utf8');
+ assert.ok(text.length > 500, `${file} should contain the distributed license text`);
+ }
+});
+
+test('composer creates one HTML file with an embedded runtime and no public resources', () => {
+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'mcp-widget-'));
+ const outputPath = path.join(tempDir, 'widget.html');
+ try {
+ const result = spawnSync(process.execPath, [
+ composerPath,
+ '--input',
+ templatePath,
+ '--output',
+ outputPath,
+ ], { encoding: 'utf8' });
+
+ assert.equal(result.status, 0, result.stderr);
+ const output = fs.readFileSync(outputPath, 'utf8');
+ assert.ok(output.startsWith('<!DOCTYPE html>'));
+ assert.doesNotMatch(output, new RegExp(RUNTIME_MARKER));
+ assert.match(output, /MCP_APPS_EMBEDDED_RUNTIME_START/);
+ assert.match(output, /globalThis\.McpAppsRuntime/);
+ assert.equal((output.match(/<script type="module">/g) || []).length, 1);
+ assert.ok(output.length > fs.statSync(runtimePath).size);
+ assertNoExternalResources(prepareDraft(output));
+ } finally {
+ fs.rmSync(tempDir, { recursive: true, force: true });
+ }
+});
+
+test('embedded widgets can be prepared and re-inlined without editing vendor bytes', () => {
+ const template = fs.readFileSync(templatePath, 'utf8');
+ const runtime = fs.readFileSync(runtimePath, 'utf8');
+ const firstOutput = inlineRuntime(template, runtime);
+ const prepared = prepareDraft(firstOutput);
+ const secondOutput = inlineRuntime(prepared, runtime);
+
+ assert.match(prepared, new RegExp(RUNTIME_MARKER));
+ assert.doesNotMatch(prepared, /MCP_APPS_EMBEDDED_RUNTIME_START/);
+ assert.equal(secondOutput, firstOutput);
+});
+
+test('composer fails closed for missing or duplicate markers', () => {
+ const runtime = fs.readFileSync(runtimePath, 'utf8');
+ assert.throws(
+ () => inlineRuntime('<!DOCTYPE html><script type="module"></script>', runtime),
+ /Expected exactly one/,
+ );
+ assert.throws(
+ () => inlineRuntime(`${RUNTIME_MARKER}${RUNTIME_MARKER}<script type="module"></script>`, runtime),
+ /found 2/,
+ );
+});
+
+test('self-contained validation rejects remote runtime and resource loading', () => {
+ for (const html of [
+ '<script src="https://cdn.example/app.js"></script>',
+ '<script src=https://cdn.example/app.js></script>',
+ '<script src="./runtime.js"></script>',
+ '<link rel="stylesheet" href="https://cdn.example/app.css">',
+ '<img src="https://cdn.example/map.png">',
+ '<img srcset="data:image/gif;base64,x 1x, https://cdn.example/map.png 2x">',
+ '<script type="module">import { App } from "https://cdn.example/app.js";</script>',
+ '<script type="module">import App from "./local-runtime.js";</script>',
+ '<script type="module">import "//cdn.example/register.js";</script>',
+ '<script type="module">import "./local-runtime.js";</script>',
+ '<style>.map { background: url(https://cdn.example/tile.png); }</style>',
+ '<style>.map { background: url(./tile.png); }</style>',
+ '<script>fetch("https://cdn.example/data.json")</script>',
+ '<script>fetch(endpoint)</script>',
+ ]) {
+ assert.throws(() => assertNoExternalResources(html), /external|disallowed/);
+ }
+});
+
+test('CDN sample and skill retain an explicit opt-in path', () => {
+ const sample = fs.readFileSync(cdnSamplePath, 'utf8');
+ const skill = fs.readFileSync(skillPath, 'utf8');
+
+ assert.match(sample, /import \{ App \} from 'https:\/\/cdn\.jsdelivr\.net\//);
+ assert.match(sample, /https:\/\/unpkg\.com\/@fluentui\/web-components/);
+ assert.match(skill, /No CDNs \/ self-contained \(recommended\)/);
+ assert.match(skill, /CDNs allowed/);
+ assert.match(skill, /Do not silently choose CDN mode/);
+});
+
+test('eval suite covers both delivery modes', () => {
+ const evalPath = path.resolve(pluginRoot, '..', '..', 'evals', 'mcp-apps', 'generate-mcp-app-ui', 'evals.json');
+ const suite = JSON.parse(fs.readFileSync(evalPath, 'utf8'));
+ const modes = new Set(suite.evals.map((entry) => entry.delivery_mode).filter(Boolean));
+
+ assert.deepEqual([...modes].sort(), ['cdn', 'self-contained']);
+ assert.ok(Array.isArray(suite.mode_assertions['self-contained']));
+ assert.ok(Array.isArray(suite.mode_assertions.cdn));
+});
diff --git a/plugins/mcp-apps/skills/generate-codeful-mcp-tool/SKILL.md b/plugins/mcp-apps/skills/generate-codeful-mcp-tool/SKILL.md
new file mode 100644
index 000000000..7a6fe471c
--- /dev/null
+++ b/plugins/mcp-apps/skills/generate-codeful-mcp-tool/SKILL.md
@@ -0,0 +1,285 @@
+---
+name: generate-codeful-mcp-tool
+version: 1.0.0
+description: >
+ Generate a self-contained JavaScript server runtime and registration metadata
+ for an MCP codeful tool.
+ Use when the user asks to create a codeful MCP tool, generate server logic for
+ an MCP tool, write a runTool function, build a Dataverse-backed MCP tool, or
+ pair MCP server logic with an MCP App widget.
+author: Microsoft Corporation
+argument-hint: <tool purpose, inputs, and expected result>
+user-invocable: true
+allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, Skill
+---
+
+**Triggers:** codeful MCP tool, MCP server tool, generate runTool, MCP tool JavaScript,
+Dataverse MCP tool, server logic for MCP App
+
+**Keywords:** mcp apps, codeful tool, runTool, dataApi, Dataverse, server runtime
+
+**Aliases:** /generate-codeful-mcp-tool, /codeful-tool
+
+**References:**
+- Host API types: [codeful-tool-host-data-api.d.ts](../../references/codeful-tool-host-data-api.d.ts)
+- Known-good tool: [account-summary.tool.js](../../samples/account-summary.tool.js)
+- Known-good metadata: [account-summary.tool.json](../../samples/account-summary.tool.json)
+- Widget generation: [generate-mcp-app-ui](../generate-mcp-app-ui/SKILL.md)
+
+---
+
+You generate a matched pair of files for one MCP tool:
+
+- `<tool-name>.tool.js`: the complete JavaScript server implementation.
+- `<tool-name>.tool.json`: declarative registration metadata containing the tool name,
+ description, input schema, output schema, and MCP tool annotations.
+
+The host imports the JavaScript module and calls:
+
+```javascript
+await runTool({ toolInput, dataApi });
+```
+
+## Required information
+
+Before generating, establish:
+
+1. The tool's purpose and kebab-case tool name. Use the purpose to write a concise,
+ model-actionable tool description; ask only when the intended behavior is ambiguous.
+2. Its input fields, types, required fields, and constraints. Accept a JSON Schema, a
+ representative input object, or an exact field description. Never guess the input shape.
+3. The expected result, preferably as a representative output object.
+4. Whether it reads or writes Dataverse, the requested tables in business terms, and
+ whether any write creates, appends, updates, overwrites, or deletes state.
+5. Whether the user also wants an MCP App widget.
+
+Ask only for information that is missing. A sample input/output is preferred but not
+mandatory when the user has supplied an equally precise contract.
+
+## Phase 1: Read the runtime and metadata contracts
+
+Read:
+
+```text
+${PLUGIN_ROOT}/references/codeful-tool-host-data-api.d.ts
+${PLUGIN_ROOT}/samples/account-summary.tool.js
+${PLUGIN_ROOT}/samples/account-summary.tool.json
+```
+
+The generated runtime is plain ESM JavaScript, and the sidecar is plain JSON. Type files
+are generation-time references only and MUST NOT be imported by the output.
+
+## Phase 2: Verify Dataverse schema when needed
+
+Skip this phase when the tool does not use Dataverse.
+
+For a Dataverse-backed tool:
+
+1. Confirm PAC CLI is authenticated to the intended environment.
+2. Discover candidate tables:
+
+ ```powershell
+ pac model list-tables --search "table terms"
+ ```
+
+ `--search` is substring-based. Post-filter its output and accept a table only when its
+ logical name exactly matches the selected result. If multiple tables remain plausible,
+ ask the user to choose.
+3. Create a unique temporary directory outside the final output path and generate types:
+
+ ```powershell
+ pac model genpage generate-types --data-sources "logical1,logical2" --output-file "<temp>/RuntimeTypes.ts"
+ ```
+
+4. Read `RuntimeTypes.ts`. Extract the registered tables, exact readable/writable logical
+ columns, lookup shapes, choice names, and raw numeric choice values.
+5. Use ONLY names and values verified in that file. Custom columns are unpredictable; do
+ not derive them from display names.
+
+If discovery or type generation fails, stop and report the error. Do not fall back to
+invented tables or columns. Delete the temporary types and directory after validation so
+the final output contains only the requested `.tool.js`, `.tool.json`, and optional
+widget files.
+
+## Phase 3: Generate the paired tool artifacts
+
+Write `<tool-name>.tool.js` and `<tool-name>.tool.json` in the user's working directory
+unless they requested another output directory. Both files MUST use the same basename,
+which MUST equal the confirmed kebab-case tool name.
+
+The JavaScript file MUST:
+
+- Export exactly one MCP entry point named `runTool`, preferably:
+
+ ```javascript
+ export async function runTool({ toolInput, dataApi }) {
+ // complete implementation
+ }
+ ```
+
+- Be self-contained JavaScript with no runtime imports, packages, network calls,
+ filesystem access, environment-variable access, or generated-type dependency.
+- Validate all externally supplied `toolInput` before using it. Apply bounds to counts and
+ escape values interpolated into OData filters.
+- Use singular Dataverse entity logical names. Use exact logical column names in `select`,
+ `filter`, `orderBy`, and row objects.
+- Read choice and lookup labels from
+ `"<column>@OData.Community.Display.V1.FormattedValue"`.
+- Access query rows through `page.rows`. Follow `page.loadMoreRows()` only while
+ `page.hasMoreRows` is true and the function exists.
+- Set lookups through the verified `_<field>_value` shape from `RuntimeTypes.ts`; never
+ emit raw Web API `@odata.bind` keys.
+- Let `dataApi` failures throw. Catch only when adding useful context, and rethrow with the
+ original error as the cause. Never return a success-shaped fallback after a failed read
+ or write.
+- Contain no placeholders, TODOs, ellipses, test credentials, or real environment IDs.
+- Return JSON-serializable values only. Never return `loadMoreRows`, functions, class
+ instances, or cyclic objects.
+- Emit telemetry only when the user explicitly asks for it, and never include tool inputs,
+ row contents, identifiers, or other user data in telemetry properties.
+
+The JSON sidecar MUST be valid JSON with exactly these top-level fields:
+
+```json
+{
+ "name": "account-summary",
+ "description": "Search accounts and return revenue and status summaries.",
+ "annotations": {
+ "readOnlyHint": true,
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": false
+ },
+ "inputSchema": {
+ "type": "object",
+ "properties": {}
+ },
+ "outputSchema": {
+ "type": "object",
+ "properties": {}
+ }
+}
+```
+
+- `name`: exactly the confirmed tool name and the shared file basename.
+- `description`: concise, model-actionable guidance explaining what the tool does and when
+ to call it. Do not copy the user's prompt verbatim or include implementation details.
+- `annotations`: MCP
+ [`ToolAnnotations`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations)
+ describing the tool's behavior. Always emit all four boolean hints:
+ - `readOnlyHint`: `true` only when the tool cannot modify Dataverse or any other state.
+ - `destructiveHint`: `true` when the tool may delete, overwrite, or otherwise cause a
+ destructive update. Set it to `false` for read-only tools and non-destructive creates
+ or additive writes.
+ - `idempotentHint`: `true` when repeated calls with the same valid input have no
+ additional effect. Reads, deterministic calculations, and updates that set the same
+ values are idempotent; creates and append-style operations are not.
+ - `openWorldHint`: always `false` because the codeful runtime cannot access arbitrary
+ external systems.
+ Infer these values from the generated implementation and requested behavior. If the
+ write semantics are genuinely ambiguous, ask before generating rather than guessing.
+ Treat annotations as advisory metadata, not as a substitute for runtime validation or
+ authorization.
+- `inputSchema`: the complete JSON Schema for `toolInput`. Use an object root, list every
+ accepted field under `properties`, identify required fields with `required`, encode
+ runtime constraints such as bounds, formats, enums, and array item shapes, and set
+ `additionalProperties: false` unless the user explicitly requires extensible input.
+- `outputSchema`: the JSON Schema for the model-visible `structuredContent` business
+ payload. For a plain-object return, describe the complete returned object because the
+ host promotes it to `structuredContent`. For an envelope return, describe only its
+ `structuredContent` property. Never include `content`, authored `meta`, or runtime
+ `_meta` in `outputSchema`.
+
+Use standard JSON Schema keywords only. Do not include credentials, environment
+identifiers, Dataverse discovery artifacts, host configuration, JavaScript expressions,
+comments, or placeholders in the sidecar.
+
+## Result-channel contract
+
+Choose the smallest correct result shape.
+
+### Simple structured result
+
+Return a plain object when all useful output belongs in model-visible structured data:
+
+```javascript
+return { records, totalCount: records.length };
+```
+
+The host promotes that object to MCP `structuredContent`.
+
+### Partitioned MCP result
+
+Return an envelope when the channels have different audiences:
+
+```javascript
+return {
+ content: `Found ${records.length} records.`,
+ structuredContent: { records },
+ meta: { preferredView: "table" },
+};
+```
+
+- `content`: model-visible conversational text, either a string or text content blocks.
+- `structuredContent`: model-visible machine-readable object.
+- `meta`: widget-only object. The host maps it to MCP `_meta`; widgets read `result._meta`.
+
+The names `content`, `structuredContent`, and `meta` are reserved envelope keys. If a
+business payload naturally has any of those keys, wrap the whole payload explicitly:
+
+```javascript
+return { structuredContent: businessPayload };
+```
+
+Do not mix envelope keys with unrelated top-level business fields.
+
+## Phase 4: Validate
+
+Before reporting completion:
+
+1. Confirm exactly one final `.tool.js` and one matching `.tool.json` were created for
+ this skill.
+2. Import the file as an ESM data URL with Node.js and assert that `runTool` is a function.
+ Importing MUST NOT execute data access or other top-level side effects.
+3. Parse the sidecar with `JSON.parse`. Confirm it has exactly `name`, `description`,
+ `annotations`, `inputSchema`, and `outputSchema`; the name matches both filenames;
+ all four annotation hints are booleans, `openWorldHint` is `false`, the other hints
+ match the implementation's actual behavior, both schemas have object roots, and every
+ input constraint enforced by the runtime is represented in `inputSchema`.
+4. Grep the output for imports, `require`, placeholders, guessed columns, and unsupported
+ host access.
+5. When representative input/output was supplied, invoke `runTool` with an in-memory mock
+ `dataApi` from an inline Node script. Do not create a persistent test file.
+6. Confirm the returned value matches the requested result contract, contains no
+ functions or non-serializable values, and its structured payload conforms to
+ `outputSchema`. Confirm the representative input conforms to `inputSchema`.
+7. Delete all temporary schema artifacts.
+
+## Optional MCP App handoff
+
+When the user asks for a widget:
+
+1. Finish and validate the paired `.tool.js` and `.tool.json` first.
+2. Build a representative result sample:
+ - Plain tool return -> treat it as `structuredContent`.
+ - Envelope return -> pass `content`, `structuredContent`, and `_meta` (renamed from the
+ authored `meta` field).
+3. Invoke `generate-mcp-app-ui` with the visual requirements, tool name, input sample, and
+ representative full result. Forward an explicit CDN policy from the user's request.
+ If none was supplied, let the UI skill ask its required CDN-policy question; do not
+ assume public URLs are allowed.
+4. Keep the outputs separate: one `.tool.js`, one `.tool.json`, and one single-file
+ `.html` using the selected CDN policy.
+
+## Refinement
+
+When editing an existing codeful tool, read both paired files and change only the
+requested behavior. Keep runtime validation and metadata schemas synchronized. Re-run
+schema verification if the edit introduces a table, column, lookup, or choice value not
+already verified for the file.
+
+## Completion response
+
+State both generated tool file paths and summarize the description, tool annotations,
+input contract, and structured result contract. If a widget was requested, also state the
+HTML path and which result channels it consumes.
diff --git a/plugins/mcp-apps/skills/generate-mcp-app-ui/SKILL.md b/plugins/mcp-apps/skills/generate-mcp-app-ui/SKILL.md
index a49db9a8e..07af5044d 100644
--- a/plugins/mcp-apps/skills/generate-mcp-app-ui/SKILL.md
+++ b/plugins/mcp-apps/skills/generate-mcp-app-ui/SKILL.md
@@ -1,7 +1,7 @@
---
name: generate-mcp-app-ui
-version: 1.0.0
-description: Generate an MCP App widget (self-contained HTML) for an MCP tool. Describe the visual you want and paste your tool's test output. Use when user asks to create an MCP App, widget, or visual for a tool.
+version: 1.1.0
+description: Generate a single-file MCP App widget for an MCP tool, with either bundled runtime code or user-approved public CDN imports. Describe the visual and provide a plain structured payload or a full tool result with content, structuredContent, and meta.
author: Microsoft Corporation
argument-hint: <description of what the widget should display>
user-invocable: true
@@ -17,6 +17,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
**References:**
- MCP Apps API and technical patterns: [mcp-apps-reference.md](../../references/mcp-apps-reference.md)
- Visual design defaults and theme tokens: [design-guidelines.md](../../references/design-guidelines.md)
+- Self-contained source template: [self-contained-widget.template.html](../../samples/self-contained-widget.template.html)
---
@@ -25,14 +26,46 @@ You are an MCP App widget generator. You create focused, single-purpose widgets
## What you need from the user
1. **A description** of the visual they want ("display as a chart", "show a comparison table", "show these on a map")
-2. **The tool's test output** - the actual JSON from testing their tool. They can paste it directly.
+2. **The tool's test output** - the actual JSON from testing their tool. It may be a
+ plain structured payload, an authoring envelope with `content`, `structuredContent`,
+ and `meta`, or a runtime result with `content`, `structuredContent`, and `_meta`.
+3. **Whether public CDN URLs are allowed.** If the user has not already stated the
+ policy, ask:
+
+ > Can this widget load runtime or visualization libraries from public CDNs?
+
+ Present these choices in this order:
+
+ 1. **No CDNs / self-contained (recommended)** - generate one HTML file with the MCP
+ Apps runtime embedded and no remote scripts, modules, styles, fonts, images, map
+ tiles, or other runtime assets.
+ 2. **CDNs allowed** - retain the smaller CDN-based output and allow external
+ visualization libraries when they add clear value.
+
+ Do not silently choose CDN mode. If the user does not specify a preference, use the
+ self-contained mode.
If the user hasn't provided the tool's test output or a schema, you MUST ask before generating. Do NOT guess the data shape. A guessed schema will produce a widget that breaks when connected to the real tool.
Ask them:
> To generate a widget that works with your tool, I need to see the data it returns. Could you test your tool and paste the JSON output here? Your tool's output must be set to JSON.
-The tool's test JSON is always required. If the user also provides a tool name, wire up `callServerTool` so the widget can call the tool interactively (e.g., refresh buttons). If no tool name is given, the widget renders the data read-only. See `samples/weather-refresh-widget.html` for a `callServerTool` example.
+The tool's test JSON is always required. Normalize it before designing:
+
+- A plain object with none of the reserved result keys represents `structuredContent`.
+- An object containing `content`, `structuredContent`, or `meta` is an authoring result
+ envelope. Rename `meta` to runtime `_meta`.
+- An object containing `_meta` is already in runtime MCP result form.
+
+`content` and `structuredContent` are model-visible. `_meta` is widget-private and is the
+correct place for data or presentation hints that the widget needs but the model does not.
+The widget may use any combination of these channels. Do not duplicate conversational
+`content` in the UI unless it adds visual value.
+
+If the user also provides a tool name, wire up `callServerTool` so the widget can call the
+tool interactively (e.g., refresh buttons). If no tool name is given, the widget renders
+the data read-only. See `samples/weather-refresh-widget.html` for a `callServerTool`
+example.
## How to think about widgets
@@ -46,18 +79,28 @@ A widget is a card in a conversation, not a standalone app. Keep these principle
## How to generate
-1. Read [mcp-apps-reference.md](../../references/mcp-apps-reference.md) for the MCP Apps API, CDN libraries, and technical patterns.
+1. Read [mcp-apps-reference.md](../../references/mcp-apps-reference.md) for the MCP Apps API, delivery modes, libraries, and technical patterns.
2. Read [design-guidelines.md](../../references/design-guidelines.md) for visual design defaults.
-3. Look at the tool's test output to understand the data shape.
+3. Normalize the test output into the runtime `{ content, structuredContent, _meta }`
+ shape and inspect every channel relevant to the requested visual.
4. When reading numeric, boolean, or optional fields, use type-safe checks. See "Data type safety" in mcp-apps-reference.md. Do not assume runtime types match the sample.
5. Choose the visual that best represents the data.
-6. Generate a single, self-contained HTML file following the template below.
+6. Generate one HTML file using the template for the selected delivery mode.
7. Write the file to `./mcp-app-widget.html` (or a descriptive name like `./travel-map.html`).
-8. Tell the user where the file is and how to open it in a browser to preview.
+8. In self-contained mode, run the deterministic inliner before reporting completion:
+
+ ```powershell
+ node "${PLUGIN_ROOT}/scripts/inline-self-contained-runtime.js" --input "./mcp-app-widget.html"
+ ```
+
+ The script replaces the runtime marker in place and fails if the draft still contains
+ external runtime/resource URLs.
+9. Tell the user where the file is and how to open it in a browser to preview.
-## HTML template
+## CDN mode template
-ALL widget logic goes in a single `<script type="module">` block. Use the MCP Apps `App` class from the CDN.
+Use this template only after the user allows public CDNs. ALL widget logic goes in a
+single `<script type="module">` block. Use the MCP Apps `App` class from the CDN.
```html
<!DOCTYPE html>
@@ -104,9 +147,27 @@ ALL widget logic goes in a single `<script type="module">` block. Use the MCP Ap
: 'var(--colorNeutralForeground1, #242424)';
}
+ // Keep all result channels so the widget can intentionally use model-visible
+ // content/structuredContent and widget-private _meta.
+ function normalizeToolResult(result) {
+ return {
+ content: result?.content ?? [],
+ structuredContent: result?.structuredContent ?? {},
+ _meta: result?._meta ?? {}
+ };
+ }
+
+ function hasToolResultData(result) {
+ return result.content.length > 0
+ || Object.keys(result.structuredContent).length > 0
+ || Object.keys(result._meta).length > 0;
+ }
+
// --- Your render functions go here ---
function renderLoading() { /* ... */ }
- function renderData(data) { /* ... */ }
+ function renderData(toolResult) {
+ // Read toolResult.content, toolResult.structuredContent, and/or toolResult._meta.
+ }
function renderError(message) { /* ... */ }
// --- Show loading immediately ---
@@ -116,11 +177,9 @@ ALL widget logic goes in a single `<script type="module">` block. Use the MCP Ap
const app = new App({ name: "widget", version: "1.0.0" });
app.ontoolresult = (result) => {
- // IMPORTANT: The tool data is ALWAYS in result.structuredContent
- // NOT result.data, NOT result itself, NOT result.content
- const data = result.structuredContent;
- if (data) {
- renderData(data);
+ const toolResult = normalizeToolResult(result);
+ if (hasToolResultData(toolResult)) {
+ renderData(toolResult);
} else {
renderError('No data received.');
}
@@ -142,18 +201,62 @@ ALL widget logic goes in a single `<script type="module">` block. Use the MCP Ap
</html>
```
+## Self-contained mode template
+
+Start from
+[`self-contained-widget.template.html`](../../samples/self-contained-widget.template.html).
+Keep this exact marker in `<head>` until the final inlining step:
+
+```html
+<!-- MCP_APPS_SELF_CONTAINED_RUNTIME -->
+```
+
+The application module obtains its dependencies from the embedded runtime:
+
+```javascript
+const { App, webLightTheme, webDarkTheme } = globalThis.McpAppsRuntime;
+```
+
+In this mode:
+
+- Do not add `import` declarations, remote `<script src>`, stylesheets, fonts, images,
+ iframes, media, map tiles, workers, or literal network `fetch` calls.
+- Use semantic HTML controls styled with inline CSS. Do not emit `<fluent-*>` elements;
+ Fluent Web Components are intentionally not bundled.
+- Use the bundled Fluent theme tokens for light/dark colors.
+- Implement charts, timelines, diagrams, and maps with inline SVG, Canvas, or CSS.
+ A geographic plot may use coordinates and an inline schematic/base outline, but it
+ must not fetch tiles.
+- Keep exactly one `<script type="module">` application block. The inliner adds the
+ runtime as a classic inline script before it.
+- Run the inliner after all widget edits. Never copy the minified runtime into the file
+ manually and never leave the marker in the final output.
+
## Refinement
If the user asks to change an existing widget ("make it more colorful", "add a chart", "make the map bigger"):
1. Read the existing HTML file
2. Make ONLY the requested change
3. Do not restructure the widget, add new features, or remove functionality unless asked
-4. Write the updated file
+4. Preserve its existing CDN policy. For a self-contained widget, edit a temporary copy
+ prepared with the command below, then re-run the inliner after editing. Do not
+ hand-edit the minified runtime.
+
+ ```powershell
+ node "${PLUGIN_ROOT}/scripts/inline-self-contained-runtime.js" --prepare --input "./widget.html" --output "./widget.draft.html"
+ ```
+5. Write the updated file
## Output rules
-- Output a complete, self-contained HTML page starting with `<!DOCTYPE html>`
+- Output a complete, single-file HTML page starting with `<!DOCTYPE html>`
- Write the HTML to a file, don't just print it in the chat
+- In self-contained mode, the final file must contain the embedded runtime, must not
+ contain `MCP_APPS_SELF_CONTAINED_RUNTIME`, and must not load any remote runtime asset.
+- In CDN mode, only use public CDN resources after the user has explicitly allowed them.
+- Preserve all result channels in the `ontoolresult` and `callServerTool` paths. Read
+ widget-private metadata from runtime `result._meta`, never `result.meta`.
- Tell the user where the file is
- Let the user know they can ask for changes: "If you'd like changes, just describe them in the chat (e.g. 'make the map bigger', 'add a chart', 'use a card layout')."
-- Keep the file self-contained (all CSS inline, all JS in the module block, CDN imports for libraries)
+- Keep all authored CSS and widget logic inline. The only external resources permitted
+ are those allowed by the selected delivery mode.