From 09b97e78328d8e3a660efdbbc2186f914bf988cd Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Tue, 1 Sep 2026 09:17:53 -0700 Subject: [PATCH 1/2] fix(observability): honor retention windows Bound long-window timeline payloads with adaptive buckets and expose 7-day and 30-day dashboard choices. Closes #214 --- cmd/fanout/main.go | 2 +- internal/api/observability_test.go | 53 ++++++++------- internal/dashboard/service.go | 2 +- internal/dashboard/service_test.go | 7 ++ internal/mcp/server.go | 8 +-- internal/mcp/server_test.go | 31 +++++---- internal/observability/logs.go | 11 +++- internal/observability/namespace_test.go | 2 +- internal/observability/performance.go | 21 ++++-- .../observability/performance_rollup_test.go | 2 +- internal/observability/service.go | 34 +++++++--- internal/observability/service_test.go | 65 ++++++++++++++++--- .../ui/dist/assets/chat._threadId-C-lVUJMf.js | 1 - .../ui/dist/assets/chat._threadId-DuBrYsq9.js | 1 + ...dex-D5MirYTs.js => chat.index-9CJIOrfA.js} | 2 +- ...oard-CVx3JIY1.js => dashboard-Bf0GrxUB.js} | 4 +- ...js => dashboards._dashboardId-BKkqXjF1.js} | 2 +- ...H5svxO.js => dashboards.index-Dxwz9Ppx.js} | 2 +- .../{index-EuE6NBIL.js => index-Cnw6TNqL.js} | 4 +- ...-CQHQVWwI.js => mcp-app-frame-DUBLTjXl.js} | 2 +- internal/ui/dist/index.html | 2 +- .../content/docs/guides/tune-retention.mdx | 4 ++ site/src/content/docs/reference/mcp-tools.mdx | 10 +-- ui/host/src/dashboard.tsx | 2 +- 24 files changed, 189 insertions(+), 85 deletions(-) delete mode 100644 internal/ui/dist/assets/chat._threadId-C-lVUJMf.js create mode 100644 internal/ui/dist/assets/chat._threadId-DuBrYsq9.js rename internal/ui/dist/assets/{chat.index-D5MirYTs.js => chat.index-9CJIOrfA.js} (75%) rename internal/ui/dist/assets/{dashboard-CVx3JIY1.js => dashboard-Bf0GrxUB.js} (93%) rename internal/ui/dist/assets/{dashboards._dashboardId-DA7AwZcJ.js => dashboards._dashboardId-BKkqXjF1.js} (69%) rename internal/ui/dist/assets/{dashboards.index-CDH5svxO.js => dashboards.index-Dxwz9Ppx.js} (82%) rename internal/ui/dist/assets/{index-EuE6NBIL.js => index-Cnw6TNqL.js} (99%) rename internal/ui/dist/assets/{mcp-app-frame-CQHQVWwI.js => mcp-app-frame-DUBLTjXl.js} (99%) diff --git a/cmd/fanout/main.go b/cmd/fanout/main.go index dfcb1aebf..619aa9c7f 100644 --- a/cmd/fanout/main.go +++ b/cmd/fanout/main.go @@ -303,7 +303,7 @@ func main() { // typed query kernel through deterministic HTTP or standard MCP tools. // Route both HTTP and MCP reads through Duck's retrying adapter. Passing the // raw *sql.DB here bypassed the Telemetry maintenance-race protection. - queries := observability.New(q, q) + queries := observability.New(q, q, cfg.RetentionDays) api.NewObservabilityHandler(queries).Register(e.Group("/api/observability", api.RequireCapability(api.ReadTelemetry))) api.RegisterIntelligenceRoutes(e, detector) dashboards := dashboard.New(sqlite.DB) diff --git a/internal/api/observability_test.go b/internal/api/observability_test.go index 521c59021..0c2b8cf69 100644 --- a/internal/api/observability_test.go +++ b/internal/api/observability_test.go @@ -46,30 +46,37 @@ func (f *fakeQueries) Logs(_ context.Context, _ observability.Scope, _, _, _ str } func TestOverviewRouteUsesDurationScope(t *testing.T) { - queries := &fakeQueries{} - h := NewObservabilityHandler(queries) - h.now = func() time.Time { return time.Date(2026, 7, 20, 12, 0, 0, 0, time.UTC) } - e := echo.New() - h.Register(e.Group("/api/observability")) + for _, tt := range []struct { + window string + want time.Duration + }{{"15m", 15 * time.Minute}, {"720h", 30 * 24 * time.Hour}} { + t.Run(tt.window, func(t *testing.T) { + queries := &fakeQueries{} + h := NewObservabilityHandler(queries) + h.now = func() time.Time { return time.Date(2026, 7, 20, 12, 0, 0, 0, time.UTC) } + e := echo.New() + h.Register(e.Group("/api/observability")) - req := httptest.NewRequest(http.MethodGet, "/api/observability/overview?window=15m&namespace=prod", nil) - rec := httptest.NewRecorder() - e.ServeHTTP(rec, req) - if rec.Code != http.StatusOK { - t.Fatalf("status = %d, body = %s", rec.Code, rec.Body.String()) - } - if got := queries.overviewScope.End.Sub(queries.overviewScope.Start); got != 15*time.Minute { - t.Fatalf("window = %s, want 15m", got) - } - if queries.overviewScope.Namespace != "prod" { - t.Fatalf("namespace = %q, want prod", queries.overviewScope.Namespace) - } - var body map[string]any - if err := json.Unmarshal(rec.Body.Bytes(), &body); err != nil { - t.Fatalf("decode response: %v", err) - } - if body["schema"] != observability.OverviewSchema { - t.Fatalf("schema = %v", body["schema"]) + req := httptest.NewRequest(http.MethodGet, "/api/observability/overview?window="+tt.window+"&namespace=prod", nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + if rec.Code != http.StatusOK { + t.Fatalf("status = %d, body = %s", rec.Code, rec.Body.String()) + } + if got := queries.overviewScope.End.Sub(queries.overviewScope.Start); got != tt.want { + t.Fatalf("window = %s, want %s", got, tt.want) + } + if queries.overviewScope.Namespace != "prod" { + t.Fatalf("namespace = %q, want prod", queries.overviewScope.Namespace) + } + var body map[string]any + if err := json.Unmarshal(rec.Body.Bytes(), &body); err != nil { + t.Fatalf("decode response: %v", err) + } + if body["schema"] != observability.OverviewSchema { + t.Fatalf("schema = %v", body["schema"]) + } + }) } } diff --git a/internal/dashboard/service.go b/internal/dashboard/service.go index 7794156a1..4d2aea2f4 100644 --- a/internal/dashboard/service.go +++ b/internal/dashboard/service.go @@ -409,7 +409,7 @@ func Validate(name, description string, state State) error { } } } - if state.Filters.Window != "15m" && state.Filters.Window != "1h" && state.Filters.Window != "6h" && state.Filters.Window != "24h" { + if state.Filters.Window != "15m" && state.Filters.Window != "1h" && state.Filters.Window != "6h" && state.Filters.Window != "24h" && state.Filters.Window != "168h" && state.Filters.Window != "720h" { return invalid("unsupported dashboard window") } return nil diff --git a/internal/dashboard/service_test.go b/internal/dashboard/service_test.go index 167c7f1bf..031ce7ec8 100644 --- a/internal/dashboard/service_test.go +++ b/internal/dashboard/service_test.go @@ -117,6 +117,13 @@ func TestValidateRejectsInvalidStates(t *testing.T) { if err := Validate("Baseline", "", valid()); err != nil { t.Fatalf("baseline state rejected: %v", err) } + for _, window := range []string{"168h", "720h"} { + state := valid() + state.Filters.Window = window + if err := Validate("Baseline", "", state); err != nil { + t.Fatalf("window %s rejected: %v", window, err) + } + } cases := []struct { name string mutate func(*State) diff --git a/internal/mcp/server.go b/internal/mcp/server.go index dfbdd1626..5b1ba2847 100644 --- a/internal/mcp/server.go +++ b/internal/mcp/server.go @@ -33,20 +33,20 @@ type IntelligenceSnapshots interface { } type QueryInput struct { - Window string `json:"window,omitempty" jsonschema:"Time window such as 15m, 1h, or 24h; defaults to 1h"` + Window string `json:"window,omitempty" jsonschema:"Time window such as 15m, 1h, 24h, 168h, or 720h; defaults to 1h"` Namespace string `json:"namespace,omitempty" jsonschema:"OpenTelemetry service namespace; empty queries all namespaces"` Limit int `json:"limit,omitempty" jsonschema:"Maximum services or edges to return, from 1 to 500"` } type PerformanceInput struct { - Window string `json:"window,omitempty" jsonschema:"Time window such as 15m, 1h, or 24h; defaults to 1h"` + Window string `json:"window,omitempty" jsonschema:"Time window such as 15m, 1h, 24h, 168h, or 720h; defaults to 1h"` Namespace string `json:"namespace,omitempty" jsonschema:"OpenTelemetry service namespace; empty queries all namespaces"` Service string `json:"service,omitempty" jsonschema:"Optional exact OpenTelemetry service name; omit for the whole system"` Limit int `json:"limit,omitempty" jsonschema:"Maximum endpoints to return, from 1 to 500"` } type TraceInput struct { - Window string `json:"window,omitempty" jsonschema:"Trace lookup window such as 1h or 24h; defaults to 1h"` + Window string `json:"window,omitempty" jsonschema:"Trace lookup window such as 1h, 24h, 168h, or 720h; defaults to 1h"` Namespace string `json:"namespace,omitempty" jsonschema:"OpenTelemetry service namespace; empty queries all namespaces"` TraceID string `json:"trace_id,omitempty" jsonschema:"Exact trace ID; omit to inspect the most relevant recent error or slow trace"` Service string `json:"service,omitempty" jsonschema:"Optional service filter when choosing a recent trace"` @@ -54,7 +54,7 @@ type TraceInput struct { } type LogsInput struct { - Window string `json:"window,omitempty" jsonschema:"Time window such as 15m, 1h, or 24h; defaults to 1h"` + Window string `json:"window,omitempty" jsonschema:"Time window such as 15m, 1h, 24h, 168h, or 720h; defaults to 1h"` Namespace string `json:"namespace,omitempty" jsonschema:"OpenTelemetry service namespace; empty queries all namespaces"` Service string `json:"service,omitempty" jsonschema:"Optional exact OpenTelemetry service name"` Severity string `json:"severity,omitempty" jsonschema:"Optional exact severity such as ERROR, WARN, or INFO"` diff --git a/internal/mcp/server_test.go b/internal/mcp/server_test.go index ce650af43..1193644fa 100644 --- a/internal/mcp/server_test.go +++ b/internal/mcp/server_test.go @@ -139,18 +139,25 @@ func (f *fakeObservability) Logs(_ context.Context, scope observability.Scope, _ } func TestOverviewReturnsSummaryAndStructuredOutput(t *testing.T) { - backend := &fakeObservability{} - s := New(backend, nil, "test") - s.now = func() time.Time { return time.Date(2026, 7, 20, 12, 0, 0, 0, time.UTC) } - result, output, err := s.overview(context.Background(), nil, QueryInput{Window: "15m", Namespace: "prod"}) - if err != nil { - t.Fatalf("overview: %v", err) - } - if len(result.Content) != 1 || output.Schema != observability.OverviewSchema { - t.Fatalf("unexpected result: %#v %#v", result, output) - } - if got := backend.scope.End.Sub(backend.scope.Start); got != 15*time.Minute { - t.Fatalf("window = %s, want 15m", got) + for _, tt := range []struct { + window string + want time.Duration + }{{"15m", 15 * time.Minute}, {"720h", 30 * 24 * time.Hour}} { + t.Run(tt.window, func(t *testing.T) { + backend := &fakeObservability{} + s := New(backend, nil, "test") + s.now = func() time.Time { return time.Date(2026, 7, 20, 12, 0, 0, 0, time.UTC) } + result, output, err := s.overview(context.Background(), nil, QueryInput{Window: tt.window, Namespace: "prod"}) + if err != nil { + t.Fatalf("overview: %v", err) + } + if len(result.Content) != 1 || output.Schema != observability.OverviewSchema { + t.Fatalf("unexpected result: %#v %#v", result, output) + } + if got := backend.scope.End.Sub(backend.scope.Start); got != tt.want { + t.Fatalf("window = %s, want %s", got, tt.want) + } + }) } } diff --git a/internal/observability/logs.go b/internal/observability/logs.go index 216ee9737..963788f56 100644 --- a/internal/observability/logs.go +++ b/internal/observability/logs.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "strings" + "time" ) var logFilters = ` @@ -23,14 +24,18 @@ SELECT time, severity, coalesce(service, ''), ` + redactLogBodySQL("body") + `, ORDER BY time DESC LIMIT ?` -var logBucketsQuery = ` -SELECT time_bucket(INTERVAL '5 minutes', time) AS point_time, +var logBucketsQueryTemplate = ` +SELECT time_bucket(INTERVAL '%s', time) AS point_time, coalesce(nullif(upper(severity), ''), 'UNSPECIFIED') AS bucket_severity, CAST(count(*) AS BIGINT) FROM logs` + logFilters + ` GROUP BY point_time, bucket_severity ORDER BY point_time ASC, bucket_severity ASC` +func logBucketsSQL(window time.Duration) string { + return fmt.Sprintf(logBucketsQueryTemplate, timelineBucketWidth(window)) +} + func (s *Service) Logs(ctx context.Context, scope Scope, service, severity, search string, limit int) (Result[Logs], error) { scope, err := s.normalizeScope(scope) if err != nil { @@ -66,7 +71,7 @@ func (s *Service) Logs(ctx context.Context, scope Scope, service, severity, sear rows.Close() matched := 0 - bucketRows, err := s.db.QueryContext(ctx, logBucketsQuery, filters...) + bucketRows, err := s.db.QueryContext(ctx, logBucketsSQL(scope.End.Sub(scope.Start)), filters...) if err != nil { return Result[Logs]{}, fmt.Errorf("query log histogram: %w", err) } diff --git a/internal/observability/namespace_test.go b/internal/observability/namespace_test.go index db74c7a0b..21ed75a16 100644 --- a/internal/observability/namespace_test.go +++ b/internal/observability/namespace_test.go @@ -38,7 +38,7 @@ CREATE TABLE service_rollup ( t.Fatalf("insert service rollups: %v", err) } - svc := New(SQLDB(db), newTestRepository(t).Parquet) + svc := New(SQLDB(db), newTestRepository(t).Parquet, 30) result, err := svc.Overview(context.Background(), Scope{Start: stamp.Add(-time.Minute), End: stamp.Add(time.Minute)}, 100) if err != nil { t.Fatalf("Overview: %v", err) diff --git a/internal/observability/performance.go b/internal/observability/performance.go index e07ba30ad..197b06d99 100644 --- a/internal/observability/performance.go +++ b/internal/observability/performance.go @@ -11,9 +11,9 @@ import ( "github.com/labstack/fanout/internal/query" ) -const performancePointsQuery = ` +const performancePointsQueryTemplate = ` SELECT - time_bucket(INTERVAL '5 minutes', bucket) AS point_time, + time_bucket(INTERVAL '%s', bucket) AS point_time, CAST(SUM(spans) AS BIGINT), COALESCE(SUM(error_rate * spans) / NULLIF(SUM(spans), 0), 0), COALESCE(SUM(p50_ms * spans) / NULLIF(SUM(spans), 0), 0), @@ -189,8 +189,8 @@ FROM endpoint_totals t ORDER BY t.calls DESC, p95_ms DESC LIMIT ?` -const performanceHeatmapQuery = ` -SELECT time_bucket(INTERVAL '5 minutes', bucket) AS point_time, service, COALESCE(MAX(p95_ms), 0) +const performanceHeatmapQueryTemplate = ` +SELECT time_bucket(INTERVAL '%s', bucket) AS point_time, service, COALESCE(MAX(p95_ms), 0) FROM service_rollup WHERE bucket >= ? AND bucket < ? AND (? = '' OR namespace = ?) AND service IN ( @@ -201,6 +201,14 @@ WHERE bucket >= ? AND bucket < ? AND (? = '' OR namespace = ?) GROUP BY point_time, service ORDER BY point_time ASC, service ASC` +func performancePointsSQL(window time.Duration) string { + return fmt.Sprintf(performancePointsQueryTemplate, timelineBucketWidth(window)) +} + +func performanceHeatmapSQL(window time.Duration) string { + return fmt.Sprintf(performanceHeatmapQueryTemplate, timelineBucketWidth(window)) +} + const performanceAggregateQuery = ` SELECT CAST(COALESCE(SUM(spans), 0) AS DOUBLE), @@ -220,9 +228,10 @@ func (s *Service) Performance(ctx context.Context, scope Scope, service string, return Result[Performance]{}, err } service = strings.TrimSpace(service) + window := scope.End.Sub(scope.Start) data := Performance{Service: service, Points: []PerformancePoint{}, Endpoints: []Endpoint{}, Heatmap: []HeatmapPoint{}, Comparison: []ComparisonMetric{}} - rows, err := s.db.QueryContext(ctx, performancePointsQuery, scope.Start, scope.End, scope.Namespace, scope.Namespace, service, service) + rows, err := s.db.QueryContext(ctx, performancePointsSQL(window), scope.Start, scope.End, scope.Namespace, scope.Namespace, service, service) if err != nil { return Result[Performance]{}, fmt.Errorf("query performance points: %w", err) } @@ -246,7 +255,7 @@ func (s *Service) Performance(ctx context.Context, scope Scope, service string, } data.Endpoints = endpoints - rows, err = s.db.QueryContext(ctx, performanceHeatmapQuery, scope.Start, scope.End, scope.Namespace, scope.Namespace, scope.Start, scope.End, scope.Namespace, scope.Namespace) + rows, err = s.db.QueryContext(ctx, performanceHeatmapSQL(window), scope.Start, scope.End, scope.Namespace, scope.Namespace, scope.Start, scope.End, scope.Namespace, scope.Namespace) if err != nil { return Result[Performance]{}, fmt.Errorf("query latency heatmap: %w", err) } diff --git a/internal/observability/performance_rollup_test.go b/internal/observability/performance_rollup_test.go index 5d13e3e63..46a0350f2 100644 --- a/internal/observability/performance_rollup_test.go +++ b/internal/observability/performance_rollup_test.go @@ -90,7 +90,7 @@ FROM (VALUES ` + seed.values + `) t(ms)` t.Fatalf("seed endpoint rollup state: %v", err) } - svc := New(SQLDB(db), newTestRepository(t).Parquet) + svc := New(SQLDB(db), newTestRepository(t).Parquet, 30) svc.endpointMature.Store(true) var cachedCalls, totalCachedCalls int64 var minBucket, maxBucket time.Time diff --git a/internal/observability/service.go b/internal/observability/service.go index efd1aa153..f34b533cb 100644 --- a/internal/observability/service.go +++ b/internal/observability/service.go @@ -14,10 +14,10 @@ import ( ) const ( - defaultWindow = time.Hour - maxWindow = 24 * time.Hour - defaultLimit = 100 - maxLimit = 500 + defaultWindow = time.Hour + defaultMaxWindow = 30 * 24 * time.Hour + defaultLimit = 100 + maxLimit = 500 ) var ( @@ -34,15 +34,20 @@ type traceReader interface { type Service struct { db DB repository traceReader + maxWindow time.Duration now func() time.Time endpointMature atomic.Bool } -func New(db DB, repository traceReader) *Service { +func New(db DB, repository traceReader, retentionDays int) *Service { if db == nil || repository == nil { panic("observability requires query engine and indexed trace reader") } - return &Service{db: db, repository: repository, now: time.Now} + maxWindow := defaultMaxWindow + if retentionDays > 0 { + maxWindow = time.Duration(retentionDays) * 24 * time.Hour + } + return &Service{db: db, repository: repository, maxWindow: maxWindow, now: time.Now} } // SQLDB adapts a standard database/sql queryer for tests and callers that do @@ -59,13 +64,26 @@ func (s *Service) normalizeScope(scope Scope) (Scope, error) { } scope.Start = scope.Start.UTC() scope.End = scope.End.UTC() - if !scope.Start.Before(scope.End) || scope.End.Sub(scope.Start) > maxWindow { - return Scope{}, fmt.Errorf("%w: window must be positive and at most %s", ErrInvalidScope, maxWindow) + if !scope.Start.Before(scope.End) || scope.End.Sub(scope.Start) > s.maxWindow { + return Scope{}, fmt.Errorf("%w: window must be positive and at most %s", ErrInvalidScope, s.maxWindow) } scope.Namespace = strings.TrimSpace(scope.Namespace) return scope, nil } +func timelineBucketWidth(window time.Duration) string { + switch { + case window <= 24*time.Hour: + return "5 minutes" + case window <= 7*24*time.Hour: + return "30 minutes" + case window <= 30*24*time.Hour: + return "4 hours" + default: + return "1 day" + } +} + func normalizeLimit(limit int) (int, error) { if limit == 0 { return defaultLimit, nil diff --git a/internal/observability/service_test.go b/internal/observability/service_test.go index b397f5026..240859d9d 100644 --- a/internal/observability/service_test.go +++ b/internal/observability/service_test.go @@ -25,6 +25,10 @@ func newTestRepository(t *testing.T) *telemetrystore.Repository { } func newMockService(t *testing.T) (*Service, sqlmock.Sqlmock, *telemetrystore.Repository) { + return newMockServiceWithRetention(t, 30) +} + +func newMockServiceWithRetention(t *testing.T, retentionDays int) (*Service, sqlmock.Sqlmock, *telemetrystore.Repository) { t.Helper() db, mock, err := sqlmock.New() if err != nil { @@ -32,7 +36,7 @@ func newMockService(t *testing.T) (*Service, sqlmock.Sqlmock, *telemetrystore.Re } t.Cleanup(func() { _ = db.Close() }) repository := newTestRepository(t) - svc := New(SQLDB(db), repository.Parquet) + svc := New(SQLDB(db), repository.Parquet, retentionDays) svc.now = func() time.Time { return time.Date(2026, 7, 20, 12, 0, 0, 0, time.UTC) } return svc, mock, repository } @@ -50,12 +54,55 @@ func TestNormalizeScopeDefaultsAndBounds(t *testing.T) { t.Fatalf("window = %s, want 1h", got) } - _, err = svc.normalizeScope(Scope{Start: scope.End.Add(-25 * time.Hour), End: scope.End}) + if _, err = svc.normalizeScope(Scope{Start: scope.End.Add(-25 * time.Hour), End: scope.End}); err != nil { + t.Fatalf("25h scope rejected: %v", err) + } + if _, err = svc.normalizeScope(Scope{Start: scope.End.Add(-30 * 24 * time.Hour), End: scope.End}); err != nil { + t.Fatalf("30d scope rejected: %v", err) + } + _, err = svc.normalizeScope(Scope{Start: scope.End.Add(-30*24*time.Hour - time.Nanosecond), End: scope.End}) if !errors.Is(err, ErrInvalidScope) { t.Fatalf("error = %v, want ErrInvalidScope", err) } } +func TestUnlimitedRetentionKeepsFiniteQueryWindow(t *testing.T) { + svc, _, _ := newMockServiceWithRetention(t, 0) + if svc.maxWindow != defaultMaxWindow { + t.Fatalf("maxWindow = %s, want %s", svc.maxWindow, defaultMaxWindow) + } +} + +func TestTimelineBucketWidth(t *testing.T) { + tests := []struct { + window time.Duration + want string + }{ + {24 * time.Hour, "5 minutes"}, + {48 * time.Hour, "30 minutes"}, + {7 * 24 * time.Hour, "30 minutes"}, + {30 * 24 * time.Hour, "4 hours"}, + {31 * 24 * time.Hour, "1 day"}, + } + for _, tt := range tests { + if got := timelineBucketWidth(tt.window); got != tt.want { + t.Errorf("timelineBucketWidth(%s) = %q, want %q", tt.window, got, tt.want) + } + } +} + +func TestTimelineQueriesUseAdaptiveBucket(t *testing.T) { + for name, query := range map[string]string{ + "performance points": performancePointsSQL(30 * 24 * time.Hour), + "performance heatmap": performanceHeatmapSQL(30 * 24 * time.Hour), + "log buckets": logBucketsSQL(30 * 24 * time.Hour), + } { + if !strings.Contains(query, "INTERVAL '4 hours'") { + t.Errorf("%s query does not use the 30-day bucket: %s", name, query) + } + } +} + func TestOverviewReturnsCanonicalEnvelope(t *testing.T) { svc, mock, _ := newMockService(t) start := time.Date(2026, 7, 20, 11, 0, 0, 0, time.UTC) @@ -124,7 +171,7 @@ func TestPerformanceReturnsAllVisualizationDatasets(t *testing.T) { end := start.Add(time.Hour) midpoint := start.Add(30 * time.Minute) - mock.ExpectQuery(regexp.QuoteMeta(performancePointsQuery)). + mock.ExpectQuery(regexp.QuoteMeta(performancePointsSQL(time.Hour))). WithArgs(start, end, "prod", "prod", "checkout", "checkout"). WillReturnRows(sqlmock.NewRows([]string{"point_time", "spans", "error_rate", "p50_ms", "p95_ms", "log_count", "metric_count"}). AddRow(start, int64(120), 0.10, 80.0, 220.0, int64(30), int64(8))) @@ -134,7 +181,7 @@ func TestPerformanceReturnsAllVisualizationDatasets(t *testing.T) { WithArgs(start, end, end, "prod", "checkout", 25). WillReturnRows(sqlmock.NewRows([]string{"method", "path", "calls", "p50_ms", "p95_ms", "p99_ms", "error_rate"}). AddRow("GET", "/pay", int64(50), 75.0, 210.0, 350.0, 0.08)) - mock.ExpectQuery(regexp.QuoteMeta(performanceHeatmapQuery)). + mock.ExpectQuery(regexp.QuoteMeta(performanceHeatmapSQL(time.Hour))). WithArgs(start, end, "prod", "prod", start, end, "prod", "prod"). WillReturnRows(sqlmock.NewRows([]string{"point_time", "service", "p95_ms"}). AddRow(start, "checkout", 220.0)) @@ -270,7 +317,7 @@ func TestLogsAppliesFiltersAndBuildsHistogram(t *testing.T) { AddRow(start.Add(2*time.Millisecond), "ERROR", "checkout", `auth declined: {"password":"hunter2"}`, "trace-3", "root3"). AddRow(start.Add(time.Millisecond), "ERROR", "checkout", "card declined: token=abc123", "trace-2", "root2"). AddRow(start, "ERROR", "checkout", "payment declined", "trace-1", "root")) - mock.ExpectQuery(regexp.QuoteMeta(logBucketsQuery)). + mock.ExpectQuery(regexp.QuoteMeta(logBucketsSQL(time.Hour))). WithArgs(start, end, "prod", "prod", "checkout", "checkout", "error", "error", "declined", "declined"). WillReturnRows(sqlmock.NewRows([]string{"point_time", "severity", "count"}).AddRow(start, "ERROR", int64(3))) @@ -309,7 +356,7 @@ func TestLogsRetainsOnlyNewestLimit(t *testing.T) { mock.ExpectQuery(regexp.QuoteMeta(logEntriesQuery)). WithArgs(start, start.Add(time.Hour), "prod", "prod", "", "", "", "", "", "", 5). WillReturnRows(entryRows) - mock.ExpectQuery(regexp.QuoteMeta(logBucketsQuery)). + mock.ExpectQuery(regexp.QuoteMeta(logBucketsSQL(time.Hour))). WithArgs(start, start.Add(time.Hour), "prod", "prod", "", "", "", "", "", ""). WillReturnRows(sqlmock.NewRows([]string{"point_time", "severity", "count"}).AddRow(start, "INFO", int64(100))) result, err := svc.Logs(context.Background(), Scope{Namespace: "prod", Start: start, End: start.Add(time.Hour)}, "", "", "", 5) @@ -335,7 +382,7 @@ func TestLogsAlwaysUseAuthoritativeParquet(t *testing.T) { WithArgs(start, end, "prod", "prod", "checkout", "checkout", "error", "error", "", "", 10). WillReturnRows(sqlmock.NewRows([]string{"time", "severity", "service", "body", "trace_id", "span_id"}). AddRow(start.Add(time.Minute), "ERROR", "checkout", "token=[REDACTED]", "trace-parquet", "")) - mock.ExpectQuery(regexp.QuoteMeta(logBucketsQuery)). + mock.ExpectQuery(regexp.QuoteMeta(logBucketsSQL(time.Hour))). WithArgs(start, end, "prod", "prod", "checkout", "checkout", "error", "error", "", ""). WillReturnRows(sqlmock.NewRows([]string{"point_time", "severity", "count"}). AddRow(start, "ERROR", int64(1))) @@ -374,7 +421,7 @@ func TestLogsQueryParquetAcrossBatches(t *testing.T) { AddRow(start.Add(200*time.Millisecond), "INFO", "", "late-boundary", "", ""). AddRow(start.Add(150*time.Millisecond), "INFO", "", "newer-old", "", ""). AddRow(start.Add(100*time.Millisecond), "INFO", "", "late-old", "", "")) - mock.ExpectQuery(regexp.QuoteMeta(logBucketsQuery)). + mock.ExpectQuery(regexp.QuoteMeta(logBucketsSQL(time.Hour))). WithArgs(start, end, "prod", "prod", "", "", "", "", "", ""). WillReturnRows(sqlmock.NewRows([]string{"point_time", "severity", "count"}). AddRow(start, "INFO", int64(4))) @@ -556,7 +603,7 @@ func TestLogsBoundsParquetQueryWithLimitAndAggregatedBuckets(t *testing.T) { AddRow(start.Add(2*time.Minute), "INFO", "checkout", "older", "trace-b", "")) // Histogram counts come back aggregated, so a million matching rows cost // one row per bucket rather than a million transfers. - mock.ExpectQuery(regexp.QuoteMeta(logBucketsQuery)). + mock.ExpectQuery(regexp.QuoteMeta(logBucketsSQL(time.Hour))). WithArgs(start, end, "prod", "prod", "", "", "", "", "", ""). WillReturnRows(sqlmock.NewRows([]string{"point_time", "severity", "count"}). AddRow(start, "ERROR", int64(900000)). diff --git a/internal/ui/dist/assets/chat._threadId-C-lVUJMf.js b/internal/ui/dist/assets/chat._threadId-C-lVUJMf.js deleted file mode 100644 index 2fab5491c..000000000 --- a/internal/ui/dist/assets/chat._threadId-C-lVUJMf.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./index-EuE6NBIL.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/chat._threadId-DuBrYsq9.js b/internal/ui/dist/assets/chat._threadId-DuBrYsq9.js new file mode 100644 index 000000000..8a387084c --- /dev/null +++ b/internal/ui/dist/assets/chat._threadId-DuBrYsq9.js @@ -0,0 +1 @@ +import{n as e}from"./index-Cnw6TNqL.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/chat.index-D5MirYTs.js b/internal/ui/dist/assets/chat.index-9CJIOrfA.js similarity index 75% rename from internal/ui/dist/assets/chat.index-D5MirYTs.js rename to internal/ui/dist/assets/chat.index-9CJIOrfA.js index 888c01878..518348d02 100644 --- a/internal/ui/dist/assets/chat.index-D5MirYTs.js +++ b/internal/ui/dist/assets/chat.index-9CJIOrfA.js @@ -1 +1 @@ -import{a as e,g as t,t as n,u as r}from"./useNavigate-BEpS2iE5.js";import{i}from"./index-EuE6NBIL.js";var a=t(r()),o=e();function s(){let e=(0,a.useMemo)(()=>i(),[]);return(0,o.jsx)(n,{to:`/chat/$threadId`,params:{threadId:e},replace:!0})}export{s as component}; \ No newline at end of file +import{a as e,g as t,t as n,u as r}from"./useNavigate-BEpS2iE5.js";import{i}from"./index-Cnw6TNqL.js";var a=t(r()),o=e();function s(){let e=(0,a.useMemo)(()=>i(),[]);return(0,o.jsx)(n,{to:`/chat/$threadId`,params:{threadId:e},replace:!0})}export{s as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/dashboard-CVx3JIY1.js b/internal/ui/dist/assets/dashboard-Bf0GrxUB.js similarity index 93% rename from internal/ui/dist/assets/dashboard-CVx3JIY1.js rename to internal/ui/dist/assets/dashboard-Bf0GrxUB.js index 77288c719..5e0146dbd 100644 --- a/internal/ui/dist/assets/dashboard-CVx3JIY1.js +++ b/internal/ui/dist/assets/dashboard-Bf0GrxUB.js @@ -1,5 +1,5 @@ -import{a as e,d as t,g as n,u as r}from"./useNavigate-BEpS2iE5.js";import{A as i,D as a,E as o,I as s,J as c,M as l,N as u,O as d,P as f,Q as p,S as m,T as h,V as g,Z as _,_ as v,at as y,b,c as x,ct as S,dt as C,et as w,f as T,g as E,h as ee,i as D,it as te,j as O,k,l as A,lt as j,m as M,mt as ne,o as re,p as N,s as ie,st as ae,u as oe,v as se,w as P}from"./auth-TmbGk91l.js";import{A as F,C as ce,D as le,E as I,M as ue,O as L,S as de,_ as fe,a as pe,b as me,c as he,d as ge,f as _e,g as R,h as z,i as ve,j as B,k as V,l as ye,m as H,o as be,p as U,s as W,u as xe,v as Se,w as Ce,x as G,y as we}from"./index-EuE6NBIL.js";var K=n(r(),1);function Te(e){let t=(0,K.useRef)(void 0);return(0,K.useEffect)(()=>{t.current=e},[e]),t.current}var q=e();function Ee(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t{let t=f(`Flex`,null,e),{classNames:n,className:r,style:a,styles:o,unstyled:c,vars:u,gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b,attributes:x,...S}=t,C=l({name:`Flex`,classes:ke,props:t,className:r,style:a,classNames:n,styles:o,unstyled:c,attributes:x,vars:u}),w=s(),T=d(),E=k({styleProps:{gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b},theme:w,data:Oe}),ee=g(),D=ee&&E.hasResponsiveStyles?i(E.styles,E.media):T;return(0,q.jsxs)(q.Fragment,{children:[E.hasResponsiveStyles&&(0,q.jsx)(O,{selector:`.${D}`,styles:E.styles,media:E.media,deduplicate:ee}),(0,q.jsx)(P,{...C(`root`,{className:D,style:j(E.inlineStyles)}),...S})]})});X.classes=ke,X.displayName=`@mantine/core/Flex`;function Ae(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>Ae(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function je(e){return e?e.map(e=>Ae(e)):[]}function Me(e){return e.reduce((e,t)=>`group`in t?{...e,...Me(t.items)}:(e[`${t.value}`]=t,e),{})}var Z={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Ne={error:null},Pe=p((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":ae(t,`combobox-chevron-size`),"--combobox-chevron-color":n?c(n,e):void 0}})),Fe=o(e=>{let t=f(`ComboboxChevron`,Ne,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,attributes:d,mod:p,...m}=t,h=l({name:`ComboboxChevron`,classes:Z,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,varsResolver:Pe,attributes:d,rootSelector:`chevron`});return(0,q.jsx)(P,{component:`svg`,...m,...h(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},p],children:(0,q.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Fe.classes=Z,Fe.varsResolver=Pe,Fe.displayName=`@mantine/core/ComboboxChevron`;var[Ie,Le]=B(`Combobox component was not found in tree`);function Re({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,q.jsx)(v.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Re.displayName=`@mantine/core/ComboboxClearButton`;var ze=o(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=f(`ComboboxDropdown`,null,e),s=Le();return(0,q.jsx)(ce.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});ze.classes=Z,ze.displayName=`@mantine/core/ComboboxDropdown`;var Be={refProp:`ref`},Ve=o(e=>{let{children:t,refProp:n,ref:r}=f(`ComboboxDropdownTarget`,Be,e);if(Le(),!ue(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,q.jsx)(ce.Target,{ref:r,refProp:n,children:t})});Ve.displayName=`@mantine/core/ComboboxDropdownTarget`;var He=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxEmpty`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});He.classes=Z,He.displayName=`@mantine/core/ComboboxEmpty`;function Ue({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Le(),[c,l]=(0,K.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var We={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ge=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxEventsTarget`,We,e),u=le(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le();return(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l,[n]:F(c,d.store.targetRef,L(u))})});Ge.displayName=`@mantine/core/ComboboxEventsTarget`;var Ke=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxFooter`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Ke.classes=Z,Ke.displayName=`@mantine/core/ComboboxFooter`;var qe=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=f(`ComboboxGroup`,null,e),u=Le(),d=w(c),p=s!=null&&s!==!1&&s!==``;return(0,q.jsxs)(P,{role:`group`,"aria-labelledby":p?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[p&&(0,q.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});qe.classes=Z,qe.displayName=`@mantine/core/ComboboxGroup`;var Je=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxHeader`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Je.classes=Z,Je.displayName=`@mantine/core/ComboboxHeader`;function Ye({value:e,valuesDivider:t=`,`,...n}){return(0,q.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Ye.displayName=`@mantine/core/ComboboxHiddenInput`;var Xe=o(e=>{let t=f(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:p,selected:m,mod:h,...g}=t,_=Le(),v=(0,K.useId)(),y=c||v;return(0,q.jsx)(P,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...g,id:y,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":p,"combobox-selected":m},h],role:`option`,onClick:e=>{p?e.preventDefault():(_.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),d?.(e)}})});Xe.classes=Z,Xe.displayName=`@mantine/core/ComboboxOption`;var Ze=o(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=f(`ComboboxOptions`,null,e),l=Le(),u=w(a);return(0,K.useEffect)(()=>{l.store.setListId(u)},[u]),(0,q.jsx)(P,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Ze.classes=Z,Ze.displayName=`@mantine/core/ComboboxOptions`;var Qe={withAriaAttributes:!0,withKeyboardNavigation:!0},$e=o(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=f(`ComboboxSearch`,Qe,e),p=Le(),m=p.getStyles(`search`),h=Ue({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,q.jsx)(v,{ref:F(u,p.store.searchRef),classNames:[{input:m.className},t],styles:[{input:m.style},n],size:l||p.size,...h,...d,__staticSelector:`Combobox`})});$e.classes=Z,$e.displayName=`@mantine/core/ComboboxSearch`;var et={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},tt=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxTarget`,et,e),u=le(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le(),p=(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l});return(0,q.jsx)(ce.Target,{refProp:n,ref:F(c,d.store.targetRef),children:p})});tt.displayName=`@mantine/core/ComboboxTarget`;function nt(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function rt(e,t,n){for(let n=e+1;n{s||(c(!0),i?.(e))},[c,i,s]),_=(0,K.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,K.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),b=(0,K.useCallback)(e=>{let t=Y(f.current),n=Ee(`#${l.current}`,t),r=n?J(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-active]`,e);if(t){let n=J(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return b(n)}return b(0)},[b]),S=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(rt(u.current,t,a))},[b,a]),C=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(nt(u.current,t,a))},[b,a]),w=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(it(t))},[b]),T=(0,K.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),E=(0,K.useCallback)(()=>{u.current=-1,y()},[y]),ee=(0,K.useCallback)(()=>{let e=Y(f.current);(J(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),D=(0,K.useCallback)(e=>{l.current=e},[]),te=(0,K.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),O=(0,K.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),k=(0,K.useCallback)(()=>u.current,[]);return(0,K.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:k,selectOption:b,selectFirstOption:w,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:E,updateSelectedOptionIndex:T,listId:l.current,setListId:D,clickSelectedOption:ee,searchRef:d,focusSearchInput:te,targetRef:f,focusTarget:O}}var ot={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},st=p((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:C(n),"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)}})),Q=e=>{let t=f(`Combobox`,ot,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:h,readOnly:g,attributes:_,floatingHeight:v,middlewares:y,...b}=t,x=v===`viewport`?{...y,flip:!1,size:{...typeof y?.size==`object`?y.size:{},padding:typeof y?.size==`object`&&y.size.padding!==void 0?y.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=y?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:y,S=at(),C=o||S,w=l({name:h||`Combobox`,classes:Z,props:t,classNames:n,styles:r,unstyled:i,attributes:_,vars:s,varsResolver:st}),T=()=>{u?.(),C.closeDropdown()};return(0,q.jsx)(Ie,{value:{getStyles:w,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:m,readOnly:g,floatingHeight:v},children:(0,q.jsx)(ce,{opened:C.dropdownOpened,...b,middlewares:x,onChange:e=>!e&&T(),withRoles:!1,unstyled:i,children:a})})};Q.extend=e=>e,Q.classes=Z,Q.varsResolver=st,Q.displayName=`@mantine/core/Combobox`,Q.Target=tt,Q.Dropdown=ze,Q.Options=Ze,Q.Option=Xe,Q.Search=$e,Q.Empty=He,Q.Chevron=Fe,Q.Footer=Ke,Q.Header=Je,Q.EventsTarget=Ge,Q.DropdownTarget=Ve,Q.Group=qe,Q.ClearButton=Re,Q.HiddenInput=Ye;function ct(e){return`group`in e}function lt({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function dt(e,t=new Set){if(Array.isArray(e))for(let n of e)if(ct(n))dt(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function ft(e,t){return Array.isArray(e)?e.includes(t):e===t}function pt({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!ct(e)){let s=ft(r,e.value),c=t&&(s?(0,q.jsx)(G,{className:Z.optionsDropdownCheckIcon}):n?(0,q.jsx)(`div`,{className:Z.optionsDropdownCheckPlaceholder}):null),l=(0,q.jsxs)(q.Fragment,{children:[i===`left`&&c,(0,q.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,q.jsx)(Q.Option,{value:e.value,disabled:e.disabled,className:_({[Z.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,q.jsx)(pt,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,q.jsx)(Q.Group,{label:e.group,children:s})}function mt({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Le();dt(e);let x=typeof i==`string`?(r||lt)({options:e,search:l?i:``,limit:a??1/0}):e,S=ut(x),C=x.map((e,t)=>(0,q.jsx)(pt,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},ct(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,q.jsx)(Q.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,q.jsxs)(Q.Options,{labelledBy:g,"aria-label":y,children:[c?(0,q.jsx)(Ce.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,q.jsx)(Q.Empty,{children:m})]})})}var ht={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},gt=p((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":ae(a,`badge-height`),"--badge-padding-x":ae(a,`badge-padding-x`),"--badge-fz":ae(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:y(t),"--badge-bg":n||i?l.background:void 0,"--badge-color":n||i?l.color:void 0,"--badge-bd":n||i?l.border:void 0,"--badge-dot-color":i===`dot`?c(n,e):void 0}}}),_t=h(e=>{let t=f(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:u,gradient:d,leftSection:p,rightSection:m,children:h,variant:g,fullWidth:_,autoContrast:v,circle:y,mod:b,attributes:x,...S}=t,C=l({name:`Badge`,props:t,classes:ht,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:x,vars:s,varsResolver:gt});return(0,q.jsxs)(P,{variant:g,mod:[{block:_,circle:y,"with-right-section":!!m,"with-left-section":!!p},b],...C(`root`,{variant:g}),...S,children:[p&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`left`,children:p}),(0,q.jsx)(`span`,{...C(`label`),children:h}),m&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`right`,children:m})]})});_t.classes=ht,_t.varsResolver=gt,_t.displayName=`@mantine/core/Badge`;function vt(e){let t=e.currentTarget;return Y(t).activeElement!==t}function yt(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=C(r),o=C(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var bt={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},xt={position:`top-end`,offset:0,showZero:!0},St=p((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?c(t,e):void 0,"--indicator-text-color":De(s,e)?I({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":C(i),"--indicator-radius":a===void 0?void 0:y(a),"--indicator-z-index":o?.toString(),...yt(n,r)}})),Ct=o(e=>{let t=f(`Indicator`,xt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:u,offset:d,inline:p,label:m,radius:h,color:g,withBorder:_,disabled:v,processing:y,zIndex:b,autoContrast:x,maxValue:S,showZero:C,mod:w,attributes:T,...E}=t,ee=l({name:`Indicator`,classes:bt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:St}),D=!C&&(m===0||m===`0`),te=S!==void 0&&typeof m==`number`&&m>S?`${S}+`:m;return(0,q.jsxs)(P,{...ee(`root`),mod:[{inline:p},w],...E,children:[!v&&!D&&(0,q.jsx)(P,{mod:{"with-label":!!m,"with-border":_,processing:y},...ee(`indicator`),children:te}),c]})});Ct.classes=bt,Ct.varsResolver=St,Ct.displayName=`@mantine/core/Indicator`;function wt(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}var Tt={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Et=a(e=>{let t=f([`Input`,`InputWrapper`,`Select`],Tt,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:d,onBlur:p,onClick:m,onChange:h,data:g,value:_,defaultValue:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,readOnly:C,disabled:T,filter:ee,limit:D,withScrollArea:te,maxDropdownHeight:O,floatingHeight:k,size:A,searchable:j,rightSection:M,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,name:ae,form:oe,searchValue:se,defaultSearchValue:P,onSearchChange:F,allowDeselect:ce,error:le,rightSectionPointerEvents:I,id:ue,clearable:L,clearSectionMode:de,clearButtonProps:fe,hiddenInputProps:pe,renderOption:me,onClear:he,autoComplete:ge,scrollAreaProps:_e,__defaultRightSection:R,__clearSection:z,__clearable:ve,chevronColor:B,autoSelectOnBlur:ye,openOnFocus:H,attributes:be,...U}=t,W=(0,K.useMemo)(()=>je(g),[g]),xe=(0,K.useRef)({}),Se=(0,K.useMemo)(()=>Me(W),[W]),Ce=w(ue),[G,we,Ee]=V({value:_,defaultValue:v,finalValue:null,onChange:h}),J=G==null?void 0:`${G}`in Se?Se[`${G}`]:xe.current[`${G}`],Y=Te(J),[De,Oe,ke]=V({value:se,defaultValue:P,finalValue:J?J.label:``,onChange:F}),X=at({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),b?X.selectFirstOption():X.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(X.resetSelectedOption,0)}}),Ae=e=>{Oe(e),X.resetSelectedOption()},{resolvedClassNames:Z,resolvedStyles:Ne}=u({props:t,styles:r,classNames:n});(0,K.useEffect)(()=>{y&&X.selectFirstOption()},[y,De]),(0,K.useEffect)(()=>{_===null&&Ae(``),_!=null&&J&&(Y?.value!==J.value||Y?.label!==J.label)&&Ae(J.label)},[_,J]),(0,K.useEffect)(()=>{!Ee&&!ke&&Ae(G==null?``:`${G}`in Se?Se[`${G}`]?.label:xe.current[`${G}`]?.label||``)},[Se,G]),(0,K.useEffect)(()=>{G&&`${G}`in Se&&(xe.current[`${G}`]=Se[`${G}`])},[Se,G]);let Pe=(0,q.jsx)(Q.ClearButton,{...fe,onClear:()=>{we(null,null),Ae(``),he?.()}}),Fe=L&&G!=null&&!T&&!C;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(Q,{store:X,__staticSelector:`Select`,classNames:Z,styles:Ne,unstyled:i,readOnly:C,size:A,attributes:be,floatingHeight:k,keepMounted:ye,onOptionSubmit:e=>{x?.(e);let t=ce&&`${Se[e].value}`==`${G}`?null:Se[e],n=t?t.value:null;n!==G&&we(n,t),!Ee&&Ae(n==null?``:t?.label||``),X.closeDropdown()},...S,children:[(0,q.jsx)(Q.Target,{targetType:j?`input`:`button`,autoComplete:ge,withExpandedAttribute:!0,children:(0,q.jsx)(E,{id:Ce,__defaultRightSection:(0,q.jsx)(Q.Chevron,{size:A,error:le,unstyled:i,color:B}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:de,rightSection:M,rightSectionPointerEvents:I||`none`,...U,size:A,__staticSelector:`Select`,disabled:T,readOnly:C||!j,value:De,onChange:e=>{if(vt(e)){if(!C){let t=wt(Se,e.currentTarget.value);t&&`${t.value}`!=`${G}`&&(we(t.value,t),!Ee&&Ae(t.label))}return}Ae(e.currentTarget.value),X.openDropdown(),y&&X.selectFirstOption()},onFocus:e=>{H&&j&&X.openDropdown(),d?.(e)},onBlur:e=>{ye&&X.clickSelectedOption(),j&&X.closeDropdown();let t=G!=null&&(`${G}`in Se?Se[`${G}`]:xe.current[`${G}`]);Ae(t&&t.label||``),p?.(e)},onClick:e=>{j?X.openDropdown():X.toggleDropdown(),m?.(e)},classNames:Z,styles:Ne,unstyled:i,pointer:!j,error:le,attributes:be})}),(0,q.jsx)(mt,{data:W,hidden:C||T,filter:ee,search:De,limit:D,hiddenWhenEmpty:!ie,withScrollArea:te,maxDropdownHeight:O,filterOptions:!!j&&J?.label!==De,value:G,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,unstyled:i,labelId:U.label?`${Ce}-label`:void 0,"aria-label":U.label?void 0:U[`aria-label`],renderOption:me,scrollAreaProps:_e})]}),(0,q.jsx)(Q.HiddenInput,{value:G,name:ae,form:oe,disabled:T,...pe})]})});Et.classes={...E.classes,...Q.classes},Et.displayName=`@mantine/core/Select`;var[Dt,Ot]=B(`Table component was not found in the tree`),kt={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function At(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function jt(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=o(r=>{let i=f(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=Ot();return(0,q.jsx)(P,{component:e,...At(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=kt,r}var Mt=jt(`th`,{columnBorder:!0}),Nt=jt(`td`,{columnBorder:!0}),Pt=jt(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),Ft=jt(`thead`,{stickyHeader:!0}),It=jt(`tbody`),Lt=jt(`tfoot`),Rt=jt(`caption`,{captionSide:!0}),zt={type:`scrollarea`},Bt=p((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":C(t),"--table-max-height":C(n),"--table-overflow":r===`native`?`auto`:void 0}})),Vt=o(e=>{let t=f(`TableScrollContainer`,zt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:u,maxHeight:d,type:p,scrollAreaProps:m,attributes:h,...g}=t,_=l({name:`TableScrollContainer`,classes:kt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Bt,rootSelector:`scrollContainer`});return(0,q.jsx)(P,{component:p===`scrollarea`?Ce:`div`,...p===`scrollarea`?d?{offsetScrollbars:`xy`,...m}:{offsetScrollbars:`x`,...m}:{},..._(`scrollContainer`),...g,children:(0,q.jsx)(`div`,{..._(`scrollContainerInner`),children:c})})});Vt.classes=kt,Vt.varsResolver=Bt,Vt.displayName=`@mantine/core/TableScrollContainer`;function Ht({data:e}){return(0,q.jsxs)(q.Fragment,{children:[e.caption&&(0,q.jsx)(Rt,{children:e.caption}),e.head&&(0,q.jsx)(Ft,{children:(0,q.jsx)(Pt,{children:e.head.map((e,t)=>(0,q.jsx)(Mt,{children:e},t))})}),e.body&&(0,q.jsx)(It,{children:e.body.map((e,t)=>(0,q.jsx)(Pt,{children:e.map((e,t)=>(0,q.jsx)(Nt,{children:e},t))},t))}),e.foot&&(0,q.jsx)(Lt,{children:(0,q.jsx)(Pt,{children:e.foot.map((e,t)=>(0,q.jsx)(Mt,{children:e},t))})})]})}Ht.displayName=`@mantine/core/TableDataRenderer`;var Ut={withRowBorders:!0,verticalSpacing:7},Wt=p((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:l,highlightOnHover:u,stickyHeaderOffset:d,stickyHeader:f})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":S(r),"--table-vertical-spacing":S(i),"--table-border-color":a?c(a,e):void 0,"--table-striped-color":l&&o?c(o,e):void 0,"--table-highlight-on-hover-color":u&&s?c(s,e):void 0,"--table-sticky-header-offset":f?C(d):void 0}})),Gt=o(e=>{let t=f(`Table`,Ut,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:u,captionSide:d,stripedColor:p,highlightOnHoverColor:m,striped:h,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,withTableBorder:y,borderColor:b,layout:x,data:S,children:C,stickyHeader:w,stickyHeaderOffset:T,mod:E,tabularNums:ee,attributes:D,...te}=t,O=l({name:`Table`,props:t,className:r,style:i,classes:kt,classNames:n,styles:a,unstyled:o,attributes:D,rootSelector:`table`,vars:s,varsResolver:Wt});return(0,q.jsx)(Dt,{value:{getStyles:O,stickyHeader:w,striped:h===!0?`odd`:h||void 0,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,captionSide:d||`bottom`},children:(0,q.jsx)(P,{component:`table`,mod:[{"data-with-table-border":y,"data-tabular-nums":ee},E],...O(`table`),...te,children:C||!!S&&(0,q.jsx)(Ht,{data:S})})})});Gt.classes=kt,Gt.varsResolver=Wt,Gt.displayName=`@mantine/core/Table`,Gt.Td=Nt,Gt.Th=Mt,Gt.Tr=Pt,Gt.Thead=Ft,Gt.Tbody=It,Gt.Tfoot=Lt,Gt.Caption=Rt,Gt.ScrollContainer=Vt,Gt.DataRenderer=Ht;var Kt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),qt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),Jt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),Yt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`}))]]),Xt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),Zt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Qt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),$t=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Kt}));$t.displayName=`ArrowClockwiseIcon`;var en=$t,tn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:qt}));tn.displayName=`CaretDownIcon`;var nn=tn,rn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Jt}));rn.displayName=`ListMagnifyingGlassIcon`;var an=rn,on=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Yt}));on.displayName=`SparkleIcon`;var sn=on,cn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Xt}));cn.displayName=`SquaresFourIcon`;var ln=cn,un=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Zt}));un.displayName=`WarningCircleIcon`;var dn=un,fn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Qt}));fn.displayName=`XIcon`;var pn=fn,mn=class extends ye{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),_e(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&xe(t.mutationKey)!==xe(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??be();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){he.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function hn(e,t){return pe(e,W,t)}function gn(e,t){let n=H(t),[r]=K.useState(()=>new mn(n,e));K.useEffect(()=>{r.setOptions(e)},[r,e]);let i=K.useSyncExternalStore(K.useCallback(e=>r.subscribe(he.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=K.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(ge)},[r]);if(i.error&&U(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function _n(e){let{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function vn(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function yn(e,t,n,r,i,a,o){let{margin:s,containerPadding:c,rowHeight:l}=e,u=_n(e),d,f,p,m;if(o?(d=Math.round(o.width),f=Math.round(o.height)):(d=vn(r,u,s[0]),f=vn(i,l,s[1])),a?(p=Math.round(a.top),m=Math.round(a.left)):o?(p=Math.round(o.top),m=Math.round(o.left)):(p=Math.round((l+s[1])*n+c[1]),m=Math.round((u+s[0])*t+c[0])),!a&&!o){if(Number.isFinite(r)){let e=Math.round((u+s[0])*(t+r)+c[0])-m-d;e!==s[0]&&(d+=e-s[0])}if(Number.isFinite(i)){let e=Math.round((l+s[1])*(n+i)+c[1])-p-f;e!==s[1]&&(f+=e-s[1])}}return{top:p,left:m,width:d,height:f}}function bn(e,t,n,r,i){let{margin:a,containerPadding:o,cols:s,rowHeight:c,maxRows:l}=e,u=_n(e),d=Math.round((n-o[0])/(u+a[0])),f=Math.round((t-o[1])/(c+a[1]));return d=Cn(d,0,s-r),f=Cn(f,0,l-i),{x:d,y:f}}function xn(e,t,n){let{margin:r,containerPadding:i,rowHeight:a}=e,o=_n(e);return{x:Math.round((n-i[0])/(o+r[0])),y:Math.round((t-i[1])/(a+r[1]))}}function Sn(e,t,n){let{margin:r,rowHeight:i}=e,a=_n(e);return{w:Math.max(1,Math.round((t+r[0])/(a+r[0]))),h:Math.max(1,Math.round((n+r[1])/(i+r[1])))}}function Cn(e,t,n){return Math.max(Math.min(e,n),t)}function wn(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function Tn(e,t){for(let n=0;nwn(e,t))}function Dn(e,t){return t===`horizontal`?kn(e):t===`vertical`||t===`wrap`?On(e):[...e]}function On(e){return[...e].sort((e,t)=>e.y===t.y?e.x-t.x:e.y-t.y)}function kn(e){return[...e].sort((e,t)=>e.x===t.x?e.y-t.y:e.x-t.x)}function An(e){let t=0;for(let n=0;nt&&(t=e)}}return t}function jn(e,t){for(let n=0;ne.static===!0)}function Nn(e){return{i:e.i,x:e.x,y:e.y,w:e.w,h:e.h,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,constraints:e.constraints,isBounded:e.isBounded}}function Pn(e){let t=Array(e.length);for(let n=0;nt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),!i.static)n.push(i);else for(;Tn(n,i);)i.y++}}return e}function Rn(e,t,n,r,i,a,o,s,c){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return[...e];let l=t.x,u=t.y;typeof n==`number`&&(t.x=n),typeof r==`number`&&(t.y=r),t.moved=!0;let d=Dn(e,o);(o===`vertical`&&typeof r==`number`?u>=r:o===`horizontal`&&typeof n==`number`&&l>=n)&&(d=d.reverse());let f=En(d,t),p=f.length>0;if(p&&c)return Pn(e);if(p&&a)return t.x=l,t.y=u,t.moved=!1,e;let m=[...e];for(let e=0;et.y,d=l!==void 0&&t.x+t.w>l.x;if(!l)return Rn(e,n,o?a.x:void 0,s?a.y:void 0,r,c,i);if(u&&s)return Rn(e,n,void 0,n.y+1,r,c,i);if(u&&i===null)return t.y=n.y,n.y+=n.h,[...e];if(d&&o)return Rn(e,t,n.x,void 0,r,c,i)}let l=o?n.x+1:void 0,u=s?n.y+1:void 0;return l===void 0&&u===void 0?[...e]:Rn(e,n,l,u,r,c,i)}function Bn(e,t,n){return Math.max(t,Math.min(n,e))}var Vn=[{name:`gridBounds`,constrainPosition(e,t,n,{cols:r,maxRows:i}){return{x:Bn(t,0,Math.max(0,r-e.w)),y:Bn(n,0,Math.max(0,i-e.h))}},constrainSize(e,t,n,r,{cols:i,maxRows:a}){let o=r===`w`||r===`nw`||r===`sw`?e.x+e.w:i-e.x,s=r===`n`||r===`nw`||r===`ne`?e.y+e.h:a-e.y;return{w:Bn(t,1,Math.max(1,o)),h:Bn(n,1,Math.max(1,s))}}},{name:`minMaxSize`,constrainSize(e,t,n){return{w:Bn(t,e.minW??1,e.maxW??1/0),h:Bn(n,e.minH??1,e.maxH??1/0)}}}];function Hn(e,t,n,r,i){let a={x:n,y:r};for(let n of e)n.constrainPosition&&(a=n.constrainPosition(t,a.x,a.y,i));if(t.constraints)for(let e of t.constraints)e.constrainPosition&&(a=e.constrainPosition(t,a.x,a.y,i));return a}function Un(e,t,n,r,i,a){let o={w:n,h:r};for(let n of e)n.constrainSize&&(o=n.constrainSize(t,o.w,o.h,i,a));if(t.constraints)for(let e of t.constraints)e.constrainSize&&(o=e.constrainSize(t,o.w,o.h,i,a));return o}function Wn({top:e,left:t,width:n,height:r}){let i=`translate(${t}px,${e}px)`;return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Gn({top:e,left:t,width:n,height:r}){return{top:`${e}px`,left:`${t}px`,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Kn(e){return e*100+`%`}function qn(e,t,n,r){return e+n>r?t:n}function Jn(e,t,n){return e<0?t:n}function Yn(e){return Math.max(0,e)}function Xn(e){return Math.max(0,e)}var Zn=(e,t,n)=>{let{left:r,height:i,width:a}=t,o=e.top-(i-e.height);return{left:r,width:a,height:Jn(o,e.height,i),top:Xn(o)}},Qn=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{top:r,height:a,width:qn(e.left,e.width,o,n),left:Yn(i)}},$n=(e,t,n)=>{let{top:r,height:i,width:a}=t,o=e.left+e.width-a;return o<0?{height:i,width:e.left+e.width,top:Xn(r),left:0}:{height:i,width:a,top:Xn(r),left:o}},er=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{width:o,left:i,height:Jn(r,e.height,a),top:Xn(r)}},tr={n:Zn,ne:(e,t,n)=>Zn(e,Qn(e,t,n)),e:Qn,se:(e,t,n)=>er(e,Qn(e,t,n)),s:er,sw:(e,t,n)=>er(e,$n(e,t)),w:$n,nw:(e,t,n)=>Zn(e,$n(e,t))};function nr(e,t,n,r){let i=tr[e];return i?i(t,{...t,...n},r):n}var rr={type:`transform`,scale:1,calcStyle(e){return Wn(e)}},ir={type:`absolute`,scale:1,calcStyle(e){return Gn(e)}};function ar(e){return{type:`transform`,scale:e,calcStyle(e){return Wn(e)},calcDragPosition(t,n,r,i){return{left:(t-r)/e,top:(n-i)/e}}}}var or=rr,sr={cols:12,rowHeight:150,margin:[10,10],containerPadding:null,maxRows:1/0},cr={enabled:!0,bounded:!1,threshold:3},lr={enabled:!0,handles:[`se`]},ur={enabled:!1,defaultItem:{w:1,h:1}};function dr(e,t,n,r,i){let a=r===`x`?`w`:`h`;t[r]+=1;let o=e.findIndex(e=>e.i===t.i),s=i??Mn(e).length>0;for(let i=o+1;it.y+t.h)break;wn(t,o)&&dr(e,o,n+t[a],r,s)}}t[r]=n}function fr(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t.y=Math.min(r,t.y);t.y>0&&!Tn(e,t);)t.y--;let i;for(;(i=Tn(e,t))!==void 0;)dr(n,t,i.y+i.h,`y`);return t.y=Math.max(t.y,0),t}function pr(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0);t.x>0&&!Tn(e,t);)t.x--;let i;for(;(i=Tn(e,t))!==void 0;)if(dr(r,t,i.x+i.w,`x`),t.x+t.w>n)for(t.x=n-t.w,t.y++;t.x>0&&!Tn(e,t);)t.x--;return t.x=Math.max(t.x,0),t}var mr={type:`vertical`,allowOverlap:!1,compact(e,t){let n=Mn(e),r=An(n),i=On(e),a=Array(e.length);for(let t=0;te[t]-e[n])}function Sr(e,t){let n=xr(e),r=n[0];if(r===void 0)throw Error(`No breakpoints defined`);for(let i=1;ie[a]&&(r=a)}return r}function Cr(e,t){let n=t[e];if(n===void 0)throw Error(`ResponsiveReactGridLayout: \`cols\` entry for breakpoint ${String(e)} is missing!`);return n}function wr(e,t,n,r,i,a){let o=e[n];if(o)return Pn(o);let s=e[r],c=xr(t),l=c.slice(c.indexOf(n));for(let t=0;t{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Dr=t(((e,t)=>{var n=Er();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Or=t(((e,t)=>{t.exports=Dr()()})),$=n(Or(),1),kr=n(ne(),1);function Ar(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&Ar(e.changedTouches,e=>t===e.identifier)}function ei(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function ti(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function ni(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??ti();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +import{a as e,d as t,g as n,u as r}from"./useNavigate-BEpS2iE5.js";import{A as i,D as a,E as o,I as s,J as c,M as l,N as u,O as d,P as f,Q as p,S as m,T as h,V as g,Z as _,_ as v,at as y,b,c as x,ct as S,dt as C,et as w,f as T,g as E,h as ee,i as D,it as te,j as O,k,l as A,lt as j,m as M,mt as ne,o as re,p as N,s as ie,st as ae,u as oe,v as se,w as P}from"./auth-TmbGk91l.js";import{A as F,C as ce,D as le,E as I,M as ue,O as L,S as de,_ as fe,a as pe,b as me,c as he,d as ge,f as _e,g as R,h as z,i as ve,j as B,k as V,l as ye,m as H,o as be,p as U,s as W,u as xe,v as Se,w as Ce,x as G,y as we}from"./index-Cnw6TNqL.js";var K=n(r(),1);function Te(e){let t=(0,K.useRef)(void 0);return(0,K.useEffect)(()=>{t.current=e},[e]),t.current}var q=e();function Ee(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t{let t=f(`Flex`,null,e),{classNames:n,className:r,style:a,styles:o,unstyled:c,vars:u,gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b,attributes:x,...S}=t,C=l({name:`Flex`,classes:ke,props:t,className:r,style:a,classNames:n,styles:o,unstyled:c,attributes:x,vars:u}),w=s(),T=d(),E=k({styleProps:{gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b},theme:w,data:Oe}),ee=g(),D=ee&&E.hasResponsiveStyles?i(E.styles,E.media):T;return(0,q.jsxs)(q.Fragment,{children:[E.hasResponsiveStyles&&(0,q.jsx)(O,{selector:`.${D}`,styles:E.styles,media:E.media,deduplicate:ee}),(0,q.jsx)(P,{...C(`root`,{className:D,style:j(E.inlineStyles)}),...S})]})});X.classes=ke,X.displayName=`@mantine/core/Flex`;function Ae(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>Ae(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function je(e){return e?e.map(e=>Ae(e)):[]}function Me(e){return e.reduce((e,t)=>`group`in t?{...e,...Me(t.items)}:(e[`${t.value}`]=t,e),{})}var Z={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Ne={error:null},Pe=p((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":ae(t,`combobox-chevron-size`),"--combobox-chevron-color":n?c(n,e):void 0}})),Fe=o(e=>{let t=f(`ComboboxChevron`,Ne,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,attributes:d,mod:p,...m}=t,h=l({name:`ComboboxChevron`,classes:Z,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,varsResolver:Pe,attributes:d,rootSelector:`chevron`});return(0,q.jsx)(P,{component:`svg`,...m,...h(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},p],children:(0,q.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Fe.classes=Z,Fe.varsResolver=Pe,Fe.displayName=`@mantine/core/ComboboxChevron`;var[Ie,Le]=B(`Combobox component was not found in tree`);function Re({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,q.jsx)(v.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Re.displayName=`@mantine/core/ComboboxClearButton`;var ze=o(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=f(`ComboboxDropdown`,null,e),s=Le();return(0,q.jsx)(ce.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});ze.classes=Z,ze.displayName=`@mantine/core/ComboboxDropdown`;var Be={refProp:`ref`},Ve=o(e=>{let{children:t,refProp:n,ref:r}=f(`ComboboxDropdownTarget`,Be,e);if(Le(),!ue(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,q.jsx)(ce.Target,{ref:r,refProp:n,children:t})});Ve.displayName=`@mantine/core/ComboboxDropdownTarget`;var He=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxEmpty`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});He.classes=Z,He.displayName=`@mantine/core/ComboboxEmpty`;function Ue({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Le(),[c,l]=(0,K.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var We={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ge=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxEventsTarget`,We,e),u=le(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le();return(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l,[n]:F(c,d.store.targetRef,L(u))})});Ge.displayName=`@mantine/core/ComboboxEventsTarget`;var Ke=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxFooter`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Ke.classes=Z,Ke.displayName=`@mantine/core/ComboboxFooter`;var qe=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=f(`ComboboxGroup`,null,e),u=Le(),d=w(c),p=s!=null&&s!==!1&&s!==``;return(0,q.jsxs)(P,{role:`group`,"aria-labelledby":p?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[p&&(0,q.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});qe.classes=Z,qe.displayName=`@mantine/core/ComboboxGroup`;var Je=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxHeader`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Je.classes=Z,Je.displayName=`@mantine/core/ComboboxHeader`;function Ye({value:e,valuesDivider:t=`,`,...n}){return(0,q.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Ye.displayName=`@mantine/core/ComboboxHiddenInput`;var Xe=o(e=>{let t=f(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:p,selected:m,mod:h,...g}=t,_=Le(),v=(0,K.useId)(),y=c||v;return(0,q.jsx)(P,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...g,id:y,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":p,"combobox-selected":m},h],role:`option`,onClick:e=>{p?e.preventDefault():(_.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),d?.(e)}})});Xe.classes=Z,Xe.displayName=`@mantine/core/ComboboxOption`;var Ze=o(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=f(`ComboboxOptions`,null,e),l=Le(),u=w(a);return(0,K.useEffect)(()=>{l.store.setListId(u)},[u]),(0,q.jsx)(P,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Ze.classes=Z,Ze.displayName=`@mantine/core/ComboboxOptions`;var Qe={withAriaAttributes:!0,withKeyboardNavigation:!0},$e=o(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=f(`ComboboxSearch`,Qe,e),p=Le(),m=p.getStyles(`search`),h=Ue({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,q.jsx)(v,{ref:F(u,p.store.searchRef),classNames:[{input:m.className},t],styles:[{input:m.style},n],size:l||p.size,...h,...d,__staticSelector:`Combobox`})});$e.classes=Z,$e.displayName=`@mantine/core/ComboboxSearch`;var et={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},tt=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxTarget`,et,e),u=le(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le(),p=(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l});return(0,q.jsx)(ce.Target,{refProp:n,ref:F(c,d.store.targetRef),children:p})});tt.displayName=`@mantine/core/ComboboxTarget`;function nt(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function rt(e,t,n){for(let n=e+1;n{s||(c(!0),i?.(e))},[c,i,s]),_=(0,K.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,K.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),b=(0,K.useCallback)(e=>{let t=Y(f.current),n=Ee(`#${l.current}`,t),r=n?J(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-active]`,e);if(t){let n=J(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return b(n)}return b(0)},[b]),S=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(rt(u.current,t,a))},[b,a]),C=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(nt(u.current,t,a))},[b,a]),w=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(it(t))},[b]),T=(0,K.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),E=(0,K.useCallback)(()=>{u.current=-1,y()},[y]),ee=(0,K.useCallback)(()=>{let e=Y(f.current);(J(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),D=(0,K.useCallback)(e=>{l.current=e},[]),te=(0,K.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),O=(0,K.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),k=(0,K.useCallback)(()=>u.current,[]);return(0,K.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:k,selectOption:b,selectFirstOption:w,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:E,updateSelectedOptionIndex:T,listId:l.current,setListId:D,clickSelectedOption:ee,searchRef:d,focusSearchInput:te,targetRef:f,focusTarget:O}}var ot={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},st=p((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:C(n),"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)}})),Q=e=>{let t=f(`Combobox`,ot,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:h,readOnly:g,attributes:_,floatingHeight:v,middlewares:y,...b}=t,x=v===`viewport`?{...y,flip:!1,size:{...typeof y?.size==`object`?y.size:{},padding:typeof y?.size==`object`&&y.size.padding!==void 0?y.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=y?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:y,S=at(),C=o||S,w=l({name:h||`Combobox`,classes:Z,props:t,classNames:n,styles:r,unstyled:i,attributes:_,vars:s,varsResolver:st}),T=()=>{u?.(),C.closeDropdown()};return(0,q.jsx)(Ie,{value:{getStyles:w,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:m,readOnly:g,floatingHeight:v},children:(0,q.jsx)(ce,{opened:C.dropdownOpened,...b,middlewares:x,onChange:e=>!e&&T(),withRoles:!1,unstyled:i,children:a})})};Q.extend=e=>e,Q.classes=Z,Q.varsResolver=st,Q.displayName=`@mantine/core/Combobox`,Q.Target=tt,Q.Dropdown=ze,Q.Options=Ze,Q.Option=Xe,Q.Search=$e,Q.Empty=He,Q.Chevron=Fe,Q.Footer=Ke,Q.Header=Je,Q.EventsTarget=Ge,Q.DropdownTarget=Ve,Q.Group=qe,Q.ClearButton=Re,Q.HiddenInput=Ye;function ct(e){return`group`in e}function lt({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function dt(e,t=new Set){if(Array.isArray(e))for(let n of e)if(ct(n))dt(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function ft(e,t){return Array.isArray(e)?e.includes(t):e===t}function pt({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!ct(e)){let s=ft(r,e.value),c=t&&(s?(0,q.jsx)(G,{className:Z.optionsDropdownCheckIcon}):n?(0,q.jsx)(`div`,{className:Z.optionsDropdownCheckPlaceholder}):null),l=(0,q.jsxs)(q.Fragment,{children:[i===`left`&&c,(0,q.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,q.jsx)(Q.Option,{value:e.value,disabled:e.disabled,className:_({[Z.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,q.jsx)(pt,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,q.jsx)(Q.Group,{label:e.group,children:s})}function mt({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Le();dt(e);let x=typeof i==`string`?(r||lt)({options:e,search:l?i:``,limit:a??1/0}):e,S=ut(x),C=x.map((e,t)=>(0,q.jsx)(pt,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},ct(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,q.jsx)(Q.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,q.jsxs)(Q.Options,{labelledBy:g,"aria-label":y,children:[c?(0,q.jsx)(Ce.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,q.jsx)(Q.Empty,{children:m})]})})}var ht={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},gt=p((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":ae(a,`badge-height`),"--badge-padding-x":ae(a,`badge-padding-x`),"--badge-fz":ae(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:y(t),"--badge-bg":n||i?l.background:void 0,"--badge-color":n||i?l.color:void 0,"--badge-bd":n||i?l.border:void 0,"--badge-dot-color":i===`dot`?c(n,e):void 0}}}),_t=h(e=>{let t=f(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:u,gradient:d,leftSection:p,rightSection:m,children:h,variant:g,fullWidth:_,autoContrast:v,circle:y,mod:b,attributes:x,...S}=t,C=l({name:`Badge`,props:t,classes:ht,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:x,vars:s,varsResolver:gt});return(0,q.jsxs)(P,{variant:g,mod:[{block:_,circle:y,"with-right-section":!!m,"with-left-section":!!p},b],...C(`root`,{variant:g}),...S,children:[p&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`left`,children:p}),(0,q.jsx)(`span`,{...C(`label`),children:h}),m&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`right`,children:m})]})});_t.classes=ht,_t.varsResolver=gt,_t.displayName=`@mantine/core/Badge`;function vt(e){let t=e.currentTarget;return Y(t).activeElement!==t}function yt(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=C(r),o=C(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var bt={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},xt={position:`top-end`,offset:0,showZero:!0},St=p((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?c(t,e):void 0,"--indicator-text-color":De(s,e)?I({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":C(i),"--indicator-radius":a===void 0?void 0:y(a),"--indicator-z-index":o?.toString(),...yt(n,r)}})),Ct=o(e=>{let t=f(`Indicator`,xt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:u,offset:d,inline:p,label:m,radius:h,color:g,withBorder:_,disabled:v,processing:y,zIndex:b,autoContrast:x,maxValue:S,showZero:C,mod:w,attributes:T,...E}=t,ee=l({name:`Indicator`,classes:bt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:St}),D=!C&&(m===0||m===`0`),te=S!==void 0&&typeof m==`number`&&m>S?`${S}+`:m;return(0,q.jsxs)(P,{...ee(`root`),mod:[{inline:p},w],...E,children:[!v&&!D&&(0,q.jsx)(P,{mod:{"with-label":!!m,"with-border":_,processing:y},...ee(`indicator`),children:te}),c]})});Ct.classes=bt,Ct.varsResolver=St,Ct.displayName=`@mantine/core/Indicator`;function wt(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}var Tt={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Et=a(e=>{let t=f([`Input`,`InputWrapper`,`Select`],Tt,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:d,onBlur:p,onClick:m,onChange:h,data:g,value:_,defaultValue:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,readOnly:C,disabled:T,filter:ee,limit:D,withScrollArea:te,maxDropdownHeight:O,floatingHeight:k,size:A,searchable:j,rightSection:M,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,name:ae,form:oe,searchValue:se,defaultSearchValue:P,onSearchChange:F,allowDeselect:ce,error:le,rightSectionPointerEvents:I,id:ue,clearable:L,clearSectionMode:de,clearButtonProps:fe,hiddenInputProps:pe,renderOption:me,onClear:he,autoComplete:ge,scrollAreaProps:_e,__defaultRightSection:R,__clearSection:z,__clearable:ve,chevronColor:B,autoSelectOnBlur:ye,openOnFocus:H,attributes:be,...U}=t,W=(0,K.useMemo)(()=>je(g),[g]),xe=(0,K.useRef)({}),Se=(0,K.useMemo)(()=>Me(W),[W]),Ce=w(ue),[G,we,Ee]=V({value:_,defaultValue:v,finalValue:null,onChange:h}),J=G==null?void 0:`${G}`in Se?Se[`${G}`]:xe.current[`${G}`],Y=Te(J),[De,Oe,ke]=V({value:se,defaultValue:P,finalValue:J?J.label:``,onChange:F}),X=at({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),b?X.selectFirstOption():X.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(X.resetSelectedOption,0)}}),Ae=e=>{Oe(e),X.resetSelectedOption()},{resolvedClassNames:Z,resolvedStyles:Ne}=u({props:t,styles:r,classNames:n});(0,K.useEffect)(()=>{y&&X.selectFirstOption()},[y,De]),(0,K.useEffect)(()=>{_===null&&Ae(``),_!=null&&J&&(Y?.value!==J.value||Y?.label!==J.label)&&Ae(J.label)},[_,J]),(0,K.useEffect)(()=>{!Ee&&!ke&&Ae(G==null?``:`${G}`in Se?Se[`${G}`]?.label:xe.current[`${G}`]?.label||``)},[Se,G]),(0,K.useEffect)(()=>{G&&`${G}`in Se&&(xe.current[`${G}`]=Se[`${G}`])},[Se,G]);let Pe=(0,q.jsx)(Q.ClearButton,{...fe,onClear:()=>{we(null,null),Ae(``),he?.()}}),Fe=L&&G!=null&&!T&&!C;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(Q,{store:X,__staticSelector:`Select`,classNames:Z,styles:Ne,unstyled:i,readOnly:C,size:A,attributes:be,floatingHeight:k,keepMounted:ye,onOptionSubmit:e=>{x?.(e);let t=ce&&`${Se[e].value}`==`${G}`?null:Se[e],n=t?t.value:null;n!==G&&we(n,t),!Ee&&Ae(n==null?``:t?.label||``),X.closeDropdown()},...S,children:[(0,q.jsx)(Q.Target,{targetType:j?`input`:`button`,autoComplete:ge,withExpandedAttribute:!0,children:(0,q.jsx)(E,{id:Ce,__defaultRightSection:(0,q.jsx)(Q.Chevron,{size:A,error:le,unstyled:i,color:B}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:de,rightSection:M,rightSectionPointerEvents:I||`none`,...U,size:A,__staticSelector:`Select`,disabled:T,readOnly:C||!j,value:De,onChange:e=>{if(vt(e)){if(!C){let t=wt(Se,e.currentTarget.value);t&&`${t.value}`!=`${G}`&&(we(t.value,t),!Ee&&Ae(t.label))}return}Ae(e.currentTarget.value),X.openDropdown(),y&&X.selectFirstOption()},onFocus:e=>{H&&j&&X.openDropdown(),d?.(e)},onBlur:e=>{ye&&X.clickSelectedOption(),j&&X.closeDropdown();let t=G!=null&&(`${G}`in Se?Se[`${G}`]:xe.current[`${G}`]);Ae(t&&t.label||``),p?.(e)},onClick:e=>{j?X.openDropdown():X.toggleDropdown(),m?.(e)},classNames:Z,styles:Ne,unstyled:i,pointer:!j,error:le,attributes:be})}),(0,q.jsx)(mt,{data:W,hidden:C||T,filter:ee,search:De,limit:D,hiddenWhenEmpty:!ie,withScrollArea:te,maxDropdownHeight:O,filterOptions:!!j&&J?.label!==De,value:G,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,unstyled:i,labelId:U.label?`${Ce}-label`:void 0,"aria-label":U.label?void 0:U[`aria-label`],renderOption:me,scrollAreaProps:_e})]}),(0,q.jsx)(Q.HiddenInput,{value:G,name:ae,form:oe,disabled:T,...pe})]})});Et.classes={...E.classes,...Q.classes},Et.displayName=`@mantine/core/Select`;var[Dt,Ot]=B(`Table component was not found in the tree`),kt={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function At(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function jt(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=o(r=>{let i=f(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=Ot();return(0,q.jsx)(P,{component:e,...At(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=kt,r}var Mt=jt(`th`,{columnBorder:!0}),Nt=jt(`td`,{columnBorder:!0}),Pt=jt(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),Ft=jt(`thead`,{stickyHeader:!0}),It=jt(`tbody`),Lt=jt(`tfoot`),Rt=jt(`caption`,{captionSide:!0}),zt={type:`scrollarea`},Bt=p((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":C(t),"--table-max-height":C(n),"--table-overflow":r===`native`?`auto`:void 0}})),Vt=o(e=>{let t=f(`TableScrollContainer`,zt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:u,maxHeight:d,type:p,scrollAreaProps:m,attributes:h,...g}=t,_=l({name:`TableScrollContainer`,classes:kt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Bt,rootSelector:`scrollContainer`});return(0,q.jsx)(P,{component:p===`scrollarea`?Ce:`div`,...p===`scrollarea`?d?{offsetScrollbars:`xy`,...m}:{offsetScrollbars:`x`,...m}:{},..._(`scrollContainer`),...g,children:(0,q.jsx)(`div`,{..._(`scrollContainerInner`),children:c})})});Vt.classes=kt,Vt.varsResolver=Bt,Vt.displayName=`@mantine/core/TableScrollContainer`;function Ht({data:e}){return(0,q.jsxs)(q.Fragment,{children:[e.caption&&(0,q.jsx)(Rt,{children:e.caption}),e.head&&(0,q.jsx)(Ft,{children:(0,q.jsx)(Pt,{children:e.head.map((e,t)=>(0,q.jsx)(Mt,{children:e},t))})}),e.body&&(0,q.jsx)(It,{children:e.body.map((e,t)=>(0,q.jsx)(Pt,{children:e.map((e,t)=>(0,q.jsx)(Nt,{children:e},t))},t))}),e.foot&&(0,q.jsx)(Lt,{children:(0,q.jsx)(Pt,{children:e.foot.map((e,t)=>(0,q.jsx)(Mt,{children:e},t))})})]})}Ht.displayName=`@mantine/core/TableDataRenderer`;var Ut={withRowBorders:!0,verticalSpacing:7},Wt=p((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:l,highlightOnHover:u,stickyHeaderOffset:d,stickyHeader:f})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":S(r),"--table-vertical-spacing":S(i),"--table-border-color":a?c(a,e):void 0,"--table-striped-color":l&&o?c(o,e):void 0,"--table-highlight-on-hover-color":u&&s?c(s,e):void 0,"--table-sticky-header-offset":f?C(d):void 0}})),Gt=o(e=>{let t=f(`Table`,Ut,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:u,captionSide:d,stripedColor:p,highlightOnHoverColor:m,striped:h,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,withTableBorder:y,borderColor:b,layout:x,data:S,children:C,stickyHeader:w,stickyHeaderOffset:T,mod:E,tabularNums:ee,attributes:D,...te}=t,O=l({name:`Table`,props:t,className:r,style:i,classes:kt,classNames:n,styles:a,unstyled:o,attributes:D,rootSelector:`table`,vars:s,varsResolver:Wt});return(0,q.jsx)(Dt,{value:{getStyles:O,stickyHeader:w,striped:h===!0?`odd`:h||void 0,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,captionSide:d||`bottom`},children:(0,q.jsx)(P,{component:`table`,mod:[{"data-with-table-border":y,"data-tabular-nums":ee},E],...O(`table`),...te,children:C||!!S&&(0,q.jsx)(Ht,{data:S})})})});Gt.classes=kt,Gt.varsResolver=Wt,Gt.displayName=`@mantine/core/Table`,Gt.Td=Nt,Gt.Th=Mt,Gt.Tr=Pt,Gt.Thead=Ft,Gt.Tbody=It,Gt.Tfoot=Lt,Gt.Caption=Rt,Gt.ScrollContainer=Vt,Gt.DataRenderer=Ht;var Kt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),qt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),Jt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),Yt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`}))]]),Xt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),Zt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Qt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),$t=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Kt}));$t.displayName=`ArrowClockwiseIcon`;var en=$t,tn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:qt}));tn.displayName=`CaretDownIcon`;var nn=tn,rn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Jt}));rn.displayName=`ListMagnifyingGlassIcon`;var an=rn,on=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Yt}));on.displayName=`SparkleIcon`;var sn=on,cn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Xt}));cn.displayName=`SquaresFourIcon`;var ln=cn,un=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Zt}));un.displayName=`WarningCircleIcon`;var dn=un,fn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Qt}));fn.displayName=`XIcon`;var pn=fn,mn=class extends ye{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),_e(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&xe(t.mutationKey)!==xe(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??be();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){he.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function hn(e,t){return pe(e,W,t)}function gn(e,t){let n=H(t),[r]=K.useState(()=>new mn(n,e));K.useEffect(()=>{r.setOptions(e)},[r,e]);let i=K.useSyncExternalStore(K.useCallback(e=>r.subscribe(he.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=K.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(ge)},[r]);if(i.error&&U(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function _n(e){let{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function vn(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function yn(e,t,n,r,i,a,o){let{margin:s,containerPadding:c,rowHeight:l}=e,u=_n(e),d,f,p,m;if(o?(d=Math.round(o.width),f=Math.round(o.height)):(d=vn(r,u,s[0]),f=vn(i,l,s[1])),a?(p=Math.round(a.top),m=Math.round(a.left)):o?(p=Math.round(o.top),m=Math.round(o.left)):(p=Math.round((l+s[1])*n+c[1]),m=Math.round((u+s[0])*t+c[0])),!a&&!o){if(Number.isFinite(r)){let e=Math.round((u+s[0])*(t+r)+c[0])-m-d;e!==s[0]&&(d+=e-s[0])}if(Number.isFinite(i)){let e=Math.round((l+s[1])*(n+i)+c[1])-p-f;e!==s[1]&&(f+=e-s[1])}}return{top:p,left:m,width:d,height:f}}function bn(e,t,n,r,i){let{margin:a,containerPadding:o,cols:s,rowHeight:c,maxRows:l}=e,u=_n(e),d=Math.round((n-o[0])/(u+a[0])),f=Math.round((t-o[1])/(c+a[1]));return d=Cn(d,0,s-r),f=Cn(f,0,l-i),{x:d,y:f}}function xn(e,t,n){let{margin:r,containerPadding:i,rowHeight:a}=e,o=_n(e);return{x:Math.round((n-i[0])/(o+r[0])),y:Math.round((t-i[1])/(a+r[1]))}}function Sn(e,t,n){let{margin:r,rowHeight:i}=e,a=_n(e);return{w:Math.max(1,Math.round((t+r[0])/(a+r[0]))),h:Math.max(1,Math.round((n+r[1])/(i+r[1])))}}function Cn(e,t,n){return Math.max(Math.min(e,n),t)}function wn(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function Tn(e,t){for(let n=0;nwn(e,t))}function Dn(e,t){return t===`horizontal`?kn(e):t===`vertical`||t===`wrap`?On(e):[...e]}function On(e){return[...e].sort((e,t)=>e.y===t.y?e.x-t.x:e.y-t.y)}function kn(e){return[...e].sort((e,t)=>e.x===t.x?e.y-t.y:e.x-t.x)}function An(e){let t=0;for(let n=0;nt&&(t=e)}}return t}function jn(e,t){for(let n=0;ne.static===!0)}function Nn(e){return{i:e.i,x:e.x,y:e.y,w:e.w,h:e.h,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,constraints:e.constraints,isBounded:e.isBounded}}function Pn(e){let t=Array(e.length);for(let n=0;nt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),!i.static)n.push(i);else for(;Tn(n,i);)i.y++}}return e}function Rn(e,t,n,r,i,a,o,s,c){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return[...e];let l=t.x,u=t.y;typeof n==`number`&&(t.x=n),typeof r==`number`&&(t.y=r),t.moved=!0;let d=Dn(e,o);(o===`vertical`&&typeof r==`number`?u>=r:o===`horizontal`&&typeof n==`number`&&l>=n)&&(d=d.reverse());let f=En(d,t),p=f.length>0;if(p&&c)return Pn(e);if(p&&a)return t.x=l,t.y=u,t.moved=!1,e;let m=[...e];for(let e=0;et.y,d=l!==void 0&&t.x+t.w>l.x;if(!l)return Rn(e,n,o?a.x:void 0,s?a.y:void 0,r,c,i);if(u&&s)return Rn(e,n,void 0,n.y+1,r,c,i);if(u&&i===null)return t.y=n.y,n.y+=n.h,[...e];if(d&&o)return Rn(e,t,n.x,void 0,r,c,i)}let l=o?n.x+1:void 0,u=s?n.y+1:void 0;return l===void 0&&u===void 0?[...e]:Rn(e,n,l,u,r,c,i)}function Bn(e,t,n){return Math.max(t,Math.min(n,e))}var Vn=[{name:`gridBounds`,constrainPosition(e,t,n,{cols:r,maxRows:i}){return{x:Bn(t,0,Math.max(0,r-e.w)),y:Bn(n,0,Math.max(0,i-e.h))}},constrainSize(e,t,n,r,{cols:i,maxRows:a}){let o=r===`w`||r===`nw`||r===`sw`?e.x+e.w:i-e.x,s=r===`n`||r===`nw`||r===`ne`?e.y+e.h:a-e.y;return{w:Bn(t,1,Math.max(1,o)),h:Bn(n,1,Math.max(1,s))}}},{name:`minMaxSize`,constrainSize(e,t,n){return{w:Bn(t,e.minW??1,e.maxW??1/0),h:Bn(n,e.minH??1,e.maxH??1/0)}}}];function Hn(e,t,n,r,i){let a={x:n,y:r};for(let n of e)n.constrainPosition&&(a=n.constrainPosition(t,a.x,a.y,i));if(t.constraints)for(let e of t.constraints)e.constrainPosition&&(a=e.constrainPosition(t,a.x,a.y,i));return a}function Un(e,t,n,r,i,a){let o={w:n,h:r};for(let n of e)n.constrainSize&&(o=n.constrainSize(t,o.w,o.h,i,a));if(t.constraints)for(let e of t.constraints)e.constrainSize&&(o=e.constrainSize(t,o.w,o.h,i,a));return o}function Wn({top:e,left:t,width:n,height:r}){let i=`translate(${t}px,${e}px)`;return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Gn({top:e,left:t,width:n,height:r}){return{top:`${e}px`,left:`${t}px`,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Kn(e){return e*100+`%`}function qn(e,t,n,r){return e+n>r?t:n}function Jn(e,t,n){return e<0?t:n}function Yn(e){return Math.max(0,e)}function Xn(e){return Math.max(0,e)}var Zn=(e,t,n)=>{let{left:r,height:i,width:a}=t,o=e.top-(i-e.height);return{left:r,width:a,height:Jn(o,e.height,i),top:Xn(o)}},Qn=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{top:r,height:a,width:qn(e.left,e.width,o,n),left:Yn(i)}},$n=(e,t,n)=>{let{top:r,height:i,width:a}=t,o=e.left+e.width-a;return o<0?{height:i,width:e.left+e.width,top:Xn(r),left:0}:{height:i,width:a,top:Xn(r),left:o}},er=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{width:o,left:i,height:Jn(r,e.height,a),top:Xn(r)}},tr={n:Zn,ne:(e,t,n)=>Zn(e,Qn(e,t,n)),e:Qn,se:(e,t,n)=>er(e,Qn(e,t,n)),s:er,sw:(e,t,n)=>er(e,$n(e,t)),w:$n,nw:(e,t,n)=>Zn(e,$n(e,t))};function nr(e,t,n,r){let i=tr[e];return i?i(t,{...t,...n},r):n}var rr={type:`transform`,scale:1,calcStyle(e){return Wn(e)}},ir={type:`absolute`,scale:1,calcStyle(e){return Gn(e)}};function ar(e){return{type:`transform`,scale:e,calcStyle(e){return Wn(e)},calcDragPosition(t,n,r,i){return{left:(t-r)/e,top:(n-i)/e}}}}var or=rr,sr={cols:12,rowHeight:150,margin:[10,10],containerPadding:null,maxRows:1/0},cr={enabled:!0,bounded:!1,threshold:3},lr={enabled:!0,handles:[`se`]},ur={enabled:!1,defaultItem:{w:1,h:1}};function dr(e,t,n,r,i){let a=r===`x`?`w`:`h`;t[r]+=1;let o=e.findIndex(e=>e.i===t.i),s=i??Mn(e).length>0;for(let i=o+1;it.y+t.h)break;wn(t,o)&&dr(e,o,n+t[a],r,s)}}t[r]=n}function fr(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t.y=Math.min(r,t.y);t.y>0&&!Tn(e,t);)t.y--;let i;for(;(i=Tn(e,t))!==void 0;)dr(n,t,i.y+i.h,`y`);return t.y=Math.max(t.y,0),t}function pr(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0);t.x>0&&!Tn(e,t);)t.x--;let i;for(;(i=Tn(e,t))!==void 0;)if(dr(r,t,i.x+i.w,`x`),t.x+t.w>n)for(t.x=n-t.w,t.y++;t.x>0&&!Tn(e,t);)t.x--;return t.x=Math.max(t.x,0),t}var mr={type:`vertical`,allowOverlap:!1,compact(e,t){let n=Mn(e),r=An(n),i=On(e),a=Array(e.length);for(let t=0;te[t]-e[n])}function Sr(e,t){let n=xr(e),r=n[0];if(r===void 0)throw Error(`No breakpoints defined`);for(let i=1;ie[a]&&(r=a)}return r}function Cr(e,t){let n=t[e];if(n===void 0)throw Error(`ResponsiveReactGridLayout: \`cols\` entry for breakpoint ${String(e)} is missing!`);return n}function wr(e,t,n,r,i,a){let o=e[n];if(o)return Pn(o);let s=e[r],c=xr(t),l=c.slice(c.indexOf(n));for(let t=0;t{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Dr=t(((e,t)=>{var n=Er();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Or=t(((e,t)=>{t.exports=Dr()()})),$=n(Or(),1),kr=n(ne(),1);function Ar(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&Ar(e.changedTouches,e=>t===e.identifier)}function ei(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function ti(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function ni(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??ti();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&ai(e.body,`react-draggable-transparent-selection`)}function ri(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ii(e)}):ii(e)}function ii(e){if(e)try{e.body&&oi(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function ai(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function oi(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function si(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:mi(r);let i=hi(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+Nr(s.paddingLeft)+Nr(o.marginLeft),top:-i.offsetTop+Nr(s.paddingTop)+Nr(o.marginTop),right:Jr(a)-Kr(i)-i.offsetLeft+Nr(s.paddingRight)-Nr(o.marginRight),bottom:qr(a)-Gr(i)-i.offsetTop+Nr(s.paddingBottom)-Nr(o.marginBottom)}}return Mr(r.right)&&(t=Math.min(t,r.right)),Mr(r.bottom)&&(n=Math.min(n,r.bottom)),Mr(r.left)&&(t=Math.max(t,r.left)),Mr(r.top)&&(n=Math.max(n,r.top)),[t,n]}function ci(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function li(e){return e.props.axis===`both`||e.props.axis===`x`}function ui(e){return e.props.axis===`both`||e.props.axis===`y`}function di(e,t,n){let r=typeof t==`number`?$r(e,t):null;if(typeof t==`number`&&!r)return null;let i=hi(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return Yr(r||e,a,n.props.scale)}function fi(e,t,n){let r=!Mr(e.lastX),i=hi(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function pi(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function mi(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function hi(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}function gi(...e){({}).DRAGGABLE_DEBUG&&console.log(...e)}var _i={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},vi=_i.mouse,yi=class extends K.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Hr(e.target,this.props.handle,t)||this.props.cancel&&Hr(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=ei(e);this.touchIdentifier=r;let i=di(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=fi(this,a,o);gi(`DraggableCore: handleDragStart: %j`,s),gi(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&ni(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,Ur(n,vi.move,this.handleDrag),Ur(n,vi.stop,this.handleDragStop))},this.handleDrag=e=>{let t=di(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=ci(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=fi(this,n,r);if(gi(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=di(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=ci(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=fi(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&ri(a.ownerDocument),gi(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(gi(`DraggableCore: Removing handlers`),Wr(a.ownerDocument,vi.move,this.handleDrag),Wr(a.ownerDocument,vi.stop,this.handleDragStop))},this.onMouseDown=e=>(vi=_i.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(vi=_i.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(vi=_i.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(vi=_i.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&Ur(e,_i.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;Wr(t,_i.mouse.move,this.handleDrag),Wr(t,_i.touch.move,this.handleDrag),Wr(t,_i.mouse.stop,this.handleDragStop),Wr(t,_i.touch.stop,this.handleDragStop),Wr(e,_i.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&ri(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=kr.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(gi(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return K.cloneElement(K.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};yi.displayName=`DraggableCore`,yi.propTypes={allowAnyClick:$.default.bool,allowMobileScroll:$.default.bool,children:$.default.node.isRequired,disabled:$.default.bool,enableUserSelectHack:$.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:$.default.arrayOf($.default.number),handle:$.default.string,cancel:$.default.string,nodeRef:$.default.object,nonce:$.default.string,onStart:$.default.func,onDrag:$.default.func,onStop:$.default.func,onMouseDown:$.default.func,scale:$.default.number,className:Pr,style:Pr,transform:Pr},yi.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var bi=class extends K.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(gi(`Draggable: onDragStart: %j`,t),this.props.onStart(e,pi(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;gi(`Draggable: onDrag: %j`,t);let n=pi(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=si(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,pi(this,t))===!1)return!1;gi(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(gi(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=kr.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,m=s||r,h={x:li(this)&&p?this.state.x:m.x,y:ui(this)&&p?this.state.y:m.y};this.state.isElementSVG?f=Zr(h,c):d=Xr(h,c);let g=K.Children.only(n),v=_(g.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return K.createElement(yi,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},K.cloneElement(g,{className:v,style:{...g.props.style,...d},transform:f}))}};bi.displayName=`Draggable`,bi.propTypes={...yi.propTypes,axis:$.default.oneOf([`both`,`x`,`y`,`none`]),bounds:$.default.oneOfType([$.default.shape({left:$.default.number,right:$.default.number,top:$.default.number,bottom:$.default.number}),$.default.string,$.default.oneOf([!1])]),defaultClassName:$.default.string,defaultClassNameDragging:$.default.string,defaultClassNameDragged:$.default.string,defaultPosition:$.default.shape({x:$.default.number,y:$.default.number}),positionOffset:$.default.shape({x:$.default.oneOfType([$.default.number,$.default.string]),y:$.default.oneOfType([$.default.number,$.default.string])}),position:$.default.shape({x:$.default.number,y:$.default.number}),className:Pr,style:Pr,transform:Pr},bi.defaultProps={...yi.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1};var xi=t(((e,t)=>{function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`){if(Array.isArray(e)){var a=e.length;for(t=0;t{var n=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!c.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,r)=>(r=e==null?{}:n(s(e)),u(t||!e||!e.__esModule?i(r,`default`,{value:e,enumerable:!0}):r,e)),f=e=>u(i({},`__esModule`,{value:!0}),e),p={};l(p,{DraggableCore:()=>W,default:()=>xe}),t.exports=f(p);var m=d(r()),h=d(Or()),g=d(ne()),_=xi();function v(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&v(e.changedTouches,e=>t===e.identifier)}function F(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function ce(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function le(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??ce();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&L(e.body,`react-draggable-transparent-selection`)}function I(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ue(e)}):ue(e)}function ue(e){if(e)try{e.body&&de(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function L(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function de(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function fe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:z(r);let i=ve(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+x(s.paddingLeft)+x(o.marginLeft),top:-i.offsetTop+x(s.paddingTop)+x(o.marginTop),right:N(a)-M(i)-i.offsetLeft+x(s.paddingRight)-x(o.marginRight),bottom:re(a)-j(i)-i.offsetTop+x(s.paddingBottom)-x(o.marginBottom)}}return b(r.right)&&(t=Math.min(t,r.right)),b(r.bottom)&&(n=Math.min(n,r.bottom)),b(r.left)&&(t=Math.max(t,r.left)),b(r.top)&&(n=Math.max(n,r.top)),[t,n]}function pe(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function me(e){return e.props.axis===`both`||e.props.axis===`x`}function he(e){return e.props.axis===`both`||e.props.axis===`y`}function ge(e,t,n){let r=typeof t==`number`?P(e,t):null;if(typeof t==`number`&&!r)return null;let i=ve(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return ie(r||e,a,n.props.scale)}function _e(e,t,n){let r=!b(e.lastX),i=ve(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function R(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function z(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function ve(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var B=d(r()),V=d(Or()),ye=d(ne());function H(...e){({}).DRAGGABLE_DEBUG&&console.log(...e)}var be={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},U=be.mouse,W=class extends B.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!O(e.target,this.props.handle,t)||this.props.cancel&&O(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=F(e);this.touchIdentifier=r;let i=ge(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=_e(this,a,o);H(`DraggableCore: handleDragStart: %j`,s),H(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&le(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,k(n,U.move,this.handleDrag),k(n,U.stop,this.handleDragStop))},this.handleDrag=e=>{let t=ge(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=pe(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=_e(this,n,r);if(H(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=ge(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=pe(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=_e(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&I(a.ownerDocument),H(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(H(`DraggableCore: Removing handlers`),A(a.ownerDocument,U.move,this.handleDrag),A(a.ownerDocument,U.stop,this.handleDragStop))},this.onMouseDown=e=>(U=be.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(U=be.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(U=be.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(U=be.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&k(e,be.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;A(t,be.mouse.move,this.handleDrag),A(t,be.touch.move,this.handleDrag),A(t,be.mouse.stop,this.handleDragStop),A(t,be.touch.stop,this.handleDragStop),A(e,be.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&I(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=ye.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(H(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return B.cloneElement(B.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};W.displayName=`DraggableCore`,W.propTypes={allowAnyClick:V.default.bool,allowMobileScroll:V.default.bool,children:V.default.node.isRequired,disabled:V.default.bool,enableUserSelectHack:V.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:V.default.arrayOf(V.default.number),handle:V.default.string,cancel:V.default.string,nodeRef:V.default.object,nonce:V.default.string,onStart:V.default.func,onDrag:V.default.func,onStop:V.default.func,onMouseDown:V.default.func,scale:V.default.number,className:S,style:S,transform:S},W.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var xe=class extends m.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(H(`Draggable: onDragStart: %j`,t),this.props.onStart(e,R(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;H(`Draggable: onDrag: %j`,t);let n=R(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=fe(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,R(this,t))===!1)return!1;H(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(H(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=g.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,h=s||r,g={x:me(this)&&p?this.state.x:h.x,y:he(this)&&p?this.state.y:h.y};this.state.isElementSVG?f=oe(g,c):d=ae(g,c);let v=m.Children.only(n),y=(0,_.clsx)(v.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return m.createElement(W,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},m.cloneElement(v,{className:y,style:{...v.props.style,...d},transform:f}))}};xe.displayName=`Draggable`,xe.propTypes={...W.propTypes,axis:h.default.oneOf([`both`,`x`,`y`,`none`]),bounds:h.default.oneOfType([h.default.shape({left:h.default.number,right:h.default.number,top:h.default.number,bottom:h.default.number}),h.default.string,h.default.oneOf([!1])]),defaultClassName:h.default.string,defaultClassNameDragging:h.default.string,defaultClassNameDragged:h.default.string,defaultPosition:h.default.shape({x:h.default.number,y:h.default.number}),positionOffset:h.default.shape({x:h.default.oneOfType([h.default.number,h.default.string]),y:h.default.oneOfType([h.default.number,h.default.string])}),position:h.default.shape({x:h.default.number,y:h.default.number}),className:S,style:S,transform:S},xe.defaultProps={...W.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1},0&&(t.exports={DraggableCore:W})})),Ci=t(((e,t)=>{var n=Si(),r=n.DraggableCore,i=n.default||n;t.exports=i,t.exports.default=i,t.exports.DraggableCore=r})),wi=t((e=>{e.__esModule=!0,e.cloneElement=l;var t=n(r());function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t{e.__esModule=!0,e.resizableProps=void 0;var t=n(Or());Ci();function n(e){return e&&e.__esModule?e:{default:e}}e.resizableProps={axis:t.default.oneOf([`both`,`x`,`y`,`none`]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:typeof Element<`u`?t.default.instanceOf(Element):t.default.any,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`y`?t.default.number.isRequired(...e):t.default.number(...e)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf([`s`,`w`,`e`,`n`,`sw`,`nw`,`se`,`ne`])),transformScale:t.default.number,width:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`x`?t.default.number.isRequired(...e):t.default.number(...e)}}})),Ei=t((e=>{e.__esModule=!0,e.default=void 0;var t=s(r()),n=Ci(),i=wi(),a=Ti(),o=[`children`,`className`,`draggableOpts`,`width`,`height`,`handle`,`handleSize`,`lockAspectRatio`,`axis`,`minConstraints`,`maxConstraints`,`onResize`,`onResizeStop`,`onResizeStart`,`resizeHandles`,`transformScale`];function s(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs(i*n)?t=e/n:e=t*n}let o=e,s=t,c=this.slack||[0,0],l=c[0],u=c[1];return e+=l,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[l+(o-e),u+(s-t)],[e,t]}resizeHandler(e,t){return(n,r)=>{let i=r.node,a=r.deltaX,o=r.deltaY;e===`onResizeStart`&&this.resetData();let s=(this.props.axis===`both`||this.props.axis===`x`)&&t!==`n`&&t!==`s`,c=(this.props.axis===`both`||this.props.axis===`y`)&&t!==`e`&&t!==`w`;if(!s&&!c)return;let l=t[0],u=t[t.length-1],d=i.getBoundingClientRect();if(this.lastHandleRect!=null){if(u===`w`){let e=d.left-this.lastHandleRect.left;a+=e}if(l===`n`){let e=d.top-this.lastHandleRect.top;o+=e}}this.lastHandleRect=d,u===`w`&&(a=-a),l===`n`&&(o=-o);let f=this.lastSize?.width??this.props.width,p=this.lastSize?.height??this.props.height,m=f+(s?a/this.props.transformScale:0),h=p+(c?o/this.props.transformScale:0);var g=this.runConstraints(m,h);if(m=g[0],h=g[1],e===`onResizeStop`&&this.lastSize){var _=this.lastSize;m=_.width,h=_.height}let v=m!==f||h!==p;e!==`onResizeStop`&&(this.lastSize={width:m,height:h});let y=typeof this.props[e]==`function`?this.props[e]:null;y&&!(e===`onResize`&&!v)&&(n.persist==null||n.persist(),y(n,{node:i,size:{width:m,height:h},handle:t})),e===`onResizeStop`&&this.resetData()}}renderResizeHandle(e,n){let r=this.props.handle;if(!r)return t.createElement(`span`,{className:`react-resizable-handle react-resizable-handle-`+e,ref:n});if(typeof r==`function`)return r(e,n);let i=typeof r.type==`string`,a=d({ref:n},i?{}:{handleAxis:e});return t.cloneElement(r,a)}render(){let e=this.props,r=e.children,a=e.className,s=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;let u=e.resizeHandles;e.transformScale;let f=l(e,o);return(0,i.cloneElement)(r,d(d({},f),{},{className:(a?a+` `:``)+`react-resizable`,children:[...t.Children.toArray(r.props.children),...u.map(e=>{let r=this.handleRefs[e]??(this.handleRefs[e]=t.createRef());return t.createElement(n.DraggableCore,c({},s,{nodeRef:r,key:`resizableHandle-`+e,onStop:this.resizeHandler(`onResizeStop`,e),onStart:this.resizeHandler(`onResizeStart`,e),onDrag:this.resizeHandler(`onResize`,e)}),this.renderResizeHandle(e,r))})]}))}};e.default=h,h.propTypes=a.resizableProps,h.defaultProps={axis:`both`,handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:[`se`],transformScale:1}})),Di=t((e=>{e.__esModule=!0,e.default=void 0;var t=c(r()),n=s(Or()),i=s(Ei()),a=Ti(),o=[`handle`,`handleSize`,`onResize`,`onResizeStart`,`onResizeStop`,`draggableOpts`,`minConstraints`,`maxConstraints`,`lockAspectRatio`,`axis`,`width`,`height`,`resizeHandles`,`style`,`transformScale`];function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=t.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(n,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(n)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){let e=this.props,n=e.handle,r=e.handleSize;e.onResize;let a=e.onResizeStart,s=e.onResizeStop,c=e.draggableOpts,u=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;let g=e.resizeHandles,_=e.style,v=e.transformScale,y=h(e,o);return t.createElement(i.default,{axis:m,draggableOpts:c,handle:n,handleSize:r,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:u,onResizeStart:a,onResize:this.onResize,onResizeStop:s,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement(`div`,l({},y,{style:d(d({},_),{},{width:this.state.width+`px`,height:this.state.height+`px`})})))}};e.default=g,g.propTypes=d(d({},a.resizableProps),{},{children:n.default.element})})),Oi=t(((e,t)=>{t.exports=function(){throw Error(`Don't instantiate Resizable directly! Use require('react-resizable').Resizable`)},t.exports.Resizable=Ei().default,t.exports.ResizableBox=Di().default})),ki=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n[`fast-equals`]={}))})(e,(function(e){function t(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function n(e){return function(t,n,r,i){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r,i);var a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);var s=e(t,n,r,i);return i.delete(t),i.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function i(e){return e.constructor===Object||e.constructor==null}function a(e){return typeof e.then==`function`}function o(e,t){return e===t||e!==e&&t!==t}var s=Object.prototype.toString;function c(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,c=e.areObjectsEqual,l=e.areRegExpsEqual,u=e.areSetsEqual,d=e.createIsNestedEqual,f=d(p);function p(e,d,p){if(e===d)return!0;if(!e||!d||typeof e!=`object`||typeof d!=`object`)return e!==e&&d!==d;if(i(e)&&i(d))return c(e,d,f,p);var m=Array.isArray(e),h=Array.isArray(d);if(m||h)return m===h&&t(e,d,f,p);var g=s.call(e);return g===s.call(d)?g===`[object Date]`?n(e,d,f,p):g===`[object RegExp]`?l(e,d,f,p):g===`[object Map]`?r(e,d,f,p):g===`[object Set]`?u(e,d,f,p):g===`[object Object]`||g===`[object Arguments]`?a(e)||a(d)?!1:c(e,d,f,p):g===`[object Boolean]`||g===`[object Number]`||g===`[object String]`?o(e.valueOf(),d.valueOf()):!1:!1}return p}function l(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-->0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}var u=n(l);function d(e,t){return o(e.valueOf(),t.valueOf())}function f(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},o=0;return e.forEach(function(s,c){if(i){var l=!1,u=0;t.forEach(function(i,d){!l&&!a[u]&&(l=n(c,d,o,u,e,t,r)&&n(s,i,c,d,e,t,r))&&(a[u]=!0),u++}),o++,i=l}}),i}var p=n(f),m=`_owner`,h=Object.prototype.hasOwnProperty;function g(e,t,n,r){var i=Object.keys(e),a=i.length;if(Object.keys(t).length!==a)return!1;for(var o;a-->0;){if(o=i[a],o===m){var s=!!e.$$typeof,c=!!t.$$typeof;if((s||c)&&s!==c)return!1}if(!h.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var _=n(g);function v(e,t){return e.source===t.source&&e.flags===t.flags}function y(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach(function(o,s){if(i){var c=!1,l=0;t.forEach(function(i,u){!c&&!a[l]&&(c=n(o,i,s,u,e,t,r))&&(a[l]=!0),l++}),i=c}}),i}var b=n(y),x=Object.freeze({areArraysEqual:l,areDatesEqual:d,areMapsEqual:f,areObjectsEqual:g,areRegExpsEqual:v,areSetsEqual:y,createIsNestedEqual:t}),S=Object.freeze({areArraysEqual:u,areDatesEqual:d,areMapsEqual:p,areObjectsEqual:_,areRegExpsEqual:v,areSetsEqual:b,createIsNestedEqual:t}),C=c(x);function w(e,t){return C(e,t,void 0)}var T=c(r(x,{createIsNestedEqual:function(){return o}}));function E(e,t){return T(e,t,void 0)}var ee=c(S);function D(e,t){return ee(e,t,new WeakMap)}var te=c(r(S,{createIsNestedEqual:function(){return o}}));function O(e,t){return te(e,t,new WeakMap)}function k(e){return c(r(x,e(x)))}function A(e){var t=c(r(S,e(S)));return(function(e,n,r){return r===void 0&&(r=new WeakMap),t(e,n,r)})}e.circularDeepEqual=D,e.circularShallowEqual=O,e.createCustomCircularEqual=A,e.createCustomEqual=k,e.deepEqual=w,e.sameValueZeroEqual=o,e.shallowEqual=E,Object.defineProperty(e,"__esModule",{value:!0})}))})),Ai=Oi(),ji=ki();function Mi(e){let{children:t,cols:n,containerWidth:r,margin:i,containerPadding:a,rowHeight:o,maxRows:s,isDraggable:c,isResizable:l,isBounded:u,static:d,useCSSTransforms:f=!0,usePercentages:p=!1,transformScale:m=1,positionStrategy:h,dragThreshold:g=0,droppingPosition:v,className:y=``,style:b,handle:x=``,cancel:S=``,x:C,y:w,w:T,h:E,minW:ee=1,maxW:D=1/0,minH:te=1,maxH:O=1/0,i:k,resizeHandles:A,resizeHandle:j,constraints:M=Vn,layoutItem:ne,layout:re=[],onDragStart:N,onDrag:ie,onDragStop:ae,onResizeStart:oe,onResize:se,onResizeStop:P}=e,[F,ce]=(0,K.useState)(!1),[le,I]=(0,K.useState)(!1),ue=(0,K.useRef)(null),L=(0,K.useRef)({left:0,top:0}),de=(0,K.useRef)({top:0,left:0,width:0,height:0}),fe=(0,K.useRef)(void 0),pe=(0,K.useRef)(re);pe.current=re;let me=(0,K.useRef)(null),he=(0,K.useRef)(null),ge=(0,K.useRef)(!1),_e=(0,K.useRef)({x:0,y:0}),R=(0,K.useRef)(!1),z=(0,K.useMemo)(()=>({cols:n,containerPadding:a,containerWidth:r,margin:i,maxRows:s,rowHeight:o}),[n,a,r,i,s,o]),ve=(0,K.useMemo)(()=>({cols:n,maxRows:s,containerWidth:r,containerHeight:0,rowHeight:o,margin:i,layout:[]}),[n,s,r,o,i]),B=(0,K.useCallback)(()=>({...ve,layout:pe.current}),[ve]),V=(0,K.useMemo)(()=>ne??{i:k,x:C,y:w,w:T,h:E,minW:ee,maxW:D,minH:te,maxH:O},[ne,k,C,w,T,E,ee,D,te,O]),ye=(0,K.useCallback)(e=>{if(h?.calcStyle)return h.calcStyle(e);if(f)return Wn(e);let t=Gn(e);return p?{...t,left:Kn(e.left/r),width:Kn(e.width/r)}:t},[h,f,p,r]),H=(0,K.useCallback)((e,{node:t})=>{if(!N)return;let{offsetParent:n}=t;if(!n)return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.left/m,o=r.left/m,s=i.top/m,c=r.top/m,l;if(h?.calcDragPosition){let t=e;l=h.calcDragPosition(t.clientX,t.clientY,t.clientX-i.left,t.clientY-i.top)}else l={left:a-o+n.scrollLeft,top:s-c+n.scrollTop};if(L.current=l,g>0){let t=e;_e.current={x:t.clientX,y:t.clientY},ge.current=!0,R.current=!1,ce(!0);return}ce(!0);let u=xn(z,l.top,l.left),{x:d,y:f}=Hn(M,V,u.x,u.y,B());N(k,d,f,{e,node:t,newPosition:l})},[N,m,z,h,g,M,V,B,k]),be=(0,K.useCallback)((e,{node:t,deltaX:n,deltaY:a})=>{if(!ie||!F)return;let s=e;if(ge.current&&!R.current){let n=s.clientX-_e.current.x,r=s.clientY-_e.current.y;if(Math.hypot(n,r){if(!ae||!F)return;let n=ge.current;if(ge.current=!1,R.current=!1,_e.current={x:0,y:0},n){ce(!1),L.current={left:0,top:0};return}let{left:r,top:i}=L.current,a={top:i,left:r};ce(!1),L.current={left:0,top:0};let o=xn(z,i,r),{x:s,y:c}=Hn(M,V,o.x,o.y,B());ae(k,s,c,{e,node:t,newPosition:a})},[ae,F,z,M,V,B,k]);me.current=H,he.current=be;let W=(0,K.useCallback)((e,{node:t,size:n,handle:i},a,o)=>{let s=o===`onResizeStart`?oe:o===`onResize`?se:P;if(!s)return;let c;c=t?nr(i,a,n,r):{...n,top:a.top,left:a.left},de.current=c;let l=Sn(z,c.width,c.height),{w:u,h:d}=Un(M,V,l.w,l.h,i,B());s(k,u,d,{e:e.nativeEvent??e,node:t,size:c,handle:i})},[oe,se,P,r,z,k,M,V,B]),xe=(0,K.useCallback)((e,t)=>{I(!0);let n=yn(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStart`)},[W,z,C,w,T,E]),Se=(0,K.useCallback)((e,t)=>{let n=yn(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResize`)},[W,z,C,w,T,E]),Ce=(0,K.useCallback)((e,t)=>{I(!1),de.current={top:0,left:0,width:0,height:0};let n=yn(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStop`)},[W,z,C,w,T,E]);(0,K.useEffect)(()=>{if(!v)return;let e=ue.current;if(!e)return;let t=fe.current||{left:0,top:0},n=F&&(v.left!==t.left||v.top!==t.top);if(!F){let t={node:e,deltaX:v.left,deltaY:v.top,lastX:0,lastY:0,x:v.left,y:v.top};me.current?.(v.e,t)}else if(n){let t={node:e,deltaX:v.left-L.current.left,deltaY:v.top-L.current.top,lastX:L.current.left,lastY:L.current.top,x:v.left,y:v.top};he.current?.(v.e,t)}fe.current=v},[v,F,k]);let G=yn(z,C,w,T,E,F?L.current:null,le?de.current:null),we=K.Children.only(t),Te=_n(z),Ee=[vn(ee,Te,i[0]),vn(te,o,i[1])],J=[vn(D,Te,i[0]),vn(O,o,i[1])],Y=we.props,De=Y.className,Oe=Y.style,ke=K.cloneElement(we,{ref:ue,className:_(`react-grid-item`,De,y,{static:d,resizing:le,"react-draggable":c,"react-draggable-dragging":F,dropping:!!v,cssTransforms:f}),style:{...b,...Oe,...ye(G)}}),X=j;return ke=(0,q.jsx)(Ai.Resizable,{draggableOpts:{disabled:!l},className:l?void 0:`react-resizable-hide`,width:G.width,height:G.height,minConstraints:Ee,maxConstraints:J,onResizeStart:xe,onResize:Se,onResizeStop:Ce,transformScale:m,resizeHandles:A,handle:X,children:ke}),ke=(0,q.jsx)(yi,{disabled:!c,onStart:H,onDrag:be,onStop:U,handle:x,cancel:`.react-resizable-handle`+(S?`,`+S:``),scale:m,nodeRef:ue,children:ke}),ke}var Ni=()=>{},Pi=`react-grid-layout`,Fi=!1;try{Fi=/firefox/i.test(navigator.userAgent)}catch{}function Ii(e,t){let n=K.Children.toArray(e),r=K.Children.toArray(t);if(n.length!==r.length)return!1;for(let e=0;e{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key);a.add(n);let r=e.find(e=>e.i===n);if(r)i.push(Nn(r));else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:An(i),w:1,h:1})}});let o=Ln(i,{cols:n});return r.compact(o,n)}function Ri(e){let{children:t,width:n,gridConfig:r,dragConfig:i,resizeConfig:a,dropConfig:o,positionStrategy:s=or,compactor:c,constraints:l=Vn,layout:u=[],droppingItem:d,autoSize:f=!0,className:p=``,style:m={},innerRef:h,onLayoutChange:g=Ni,onDragStart:v=Ni,onDrag:y=Ni,onDragStop:b=Ni,onResizeStart:x=Ni,onResize:S=Ni,onResizeStop:C=Ni,onDrop:w=Ni,onDropDragOver:T=Ni}=e,E=(0,K.useMemo)(()=>({...sr,...r}),[r]),ee=(0,K.useMemo)(()=>({...cr,...i}),[i]),D=(0,K.useMemo)(()=>({...lr,...a}),[a]),te=(0,K.useMemo)(()=>({...ur,...o}),[o]),{cols:O,rowHeight:k,maxRows:A,margin:j,containerPadding:M}=E,{enabled:ne,bounded:re,handle:N,cancel:ie,threshold:ae}=ee,{enabled:oe,handles:se,handleComponent:P}=D,{enabled:F,defaultItem:ce,onDragOver:le}=te,I=c??br(`vertical`),ue=I.type,L=I.allowOverlap,de=I.preventCollision??!1,fe=(0,K.useMemo)(()=>d??{i:`__dropping-elem__`,...ce},[d,ce]),pe=s.type===`transform`,me=s.scale,he=M??j,[ge,_e]=(0,K.useState)(!1),[R,z]=(0,K.useState)(()=>Li(u,t,O,I)),[ve,B]=(0,K.useState)(null),[V,ye]=(0,K.useState)(!1),[H,be]=(0,K.useState)(null),[U,W]=(0,K.useState)(),xe=(0,K.useRef)(null),Se=(0,K.useRef)(null),Ce=(0,K.useRef)(null),G=(0,K.useRef)(0),we=(0,K.useRef)(R),Te=(0,K.useRef)(u),Ee=(0,K.useRef)(t),J=(0,K.useRef)(ue),Y=(0,K.useRef)(R);Y.current=R,(0,K.useEffect)(()=>{_e(!0),(0,ji.deepEqual)(R,u)||g(R)},[]),(0,K.useEffect)(()=>{if(ve||H)return;let e=!(0,ji.deepEqual)(u,Te.current),n=!Ii(t,Ee.current),r=ue!==J.current;if(e||n||r){let n=Li(e?u:R,t,O,I);(0,ji.deepEqual)(n,R)||z(n)}Te.current=u,Ee.current=t,J.current=ue},[u,t,O,ue,I,ve,H,R]),(0,K.useEffect)(()=>{if(!ve&&!(0,ji.deepEqual)(R,we.current)){we.current=R;let e=R.filter(e=>e.i!==fe.i);g(e)}},[R,ve,g,fe.i]);let De=(0,K.useMemo)(()=>{if(!f)return;let e=An(R),t=he[1];return e*k+(e-1)*j[1]+t*2+`px`},[f,R,k,j,he]),Oe=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=jn(i,e);if(!a)return;let o={w:a.w,h:a.h,x:a.x,y:a.y,i:e};xe.current=Nn(a),Ce.current=i,B(o),v(i,a,a,null,r.e,r.node)},[v]),ke=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=xe.current,o=jn(i,e);if(!o)return;let s={w:o.w,h:o.h,x:o.x,y:o.y,i:e},c=Rn(i,o,t,n,!0,de,ue,O,L);y(c,a,o,s,r.e,r.node),z(I.compact(c,O)),B(s)},[de,ue,O,L,I,y]),X=(0,K.useCallback)((e,t,n,r)=>{if(!ve)return;let i=Y.current,a=xe.current,o=jn(i,e);if(!o)return;let s=Rn(i,o,t,n,!0,de,ue,O,L),c=I.compact(s,O);b(c,a,o,null,r.e,r.node);let l=Ce.current;xe.current=null,Ce.current=null,B(null),z(c),l&&!(0,ji.deepEqual)(l,c)&&g(c)},[ve,de,ue,O,L,I,b,g]),Ae=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=jn(i,e);a&&(Se.current=Nn(a),Ce.current=i,ye(!0),x(i,a,a,null,r.e,r.node))},[x]),je=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,{handle:o}=r,s=!1,c,l,[u,d]=In(i,e,e=>(c=e.x,l=e.y,[`sw`,`w`,`nw`,`n`,`ne`].includes(o)&&([`sw`,`nw`,`w`].includes(o)&&(c=e.x+(e.w-t),t=e.x!==c&&c<0?e.w:t,c=c<0?0:c),[`ne`,`n`,`nw`].includes(o)&&(l=e.y+(e.h-n),n=e.y!==l&&l<0?e.h:n,l=l<0?0:l),s=!0),de&&!L&&En(i,{...e,w:t,h:n,x:c??e.x,y:l??e.y}).filter(t=>t.i!==e.i).length>0&&(l=e.y,n=e.h,c=e.x,t=e.w,s=!1),e.w=t,e.h=n,e));if(!d)return;let f=u;s&&c!==void 0&&l!==void 0&&(f=Rn(u,d,c,l,!0,de,ue,O,L));let p={w:d.w,h:d.h,x:d.x,y:d.y,i:e,static:!0};S(f,a,d,p,r.e,r.node),z(I.compact(f,O)),B(p)},[de,ue,O,L,I,S]),Me=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,o=jn(i,e),s=I.compact(i,O);C(s,a,o??null,null,r.e,r.node);let c=Ce.current;Se.current=null,Ce.current=null,B(null),ye(!1),z(s),c&&!(0,ji.deepEqual)(c,s)&&g(s)},[O,I,C,g]),Z=(0,K.useCallback)(()=>{let e=Y.current;if(!e.some(e=>e.i===fe.i)){be(null),B(null),W(void 0);return}let t=I.compact(e.filter(e=>e.i!==fe.i),O);z(t),be(null),B(null),W(void 0)},[fe.i,O,I]),Ne=(0,K.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),Fi&&!e.nativeEvent.target?.classList.contains(Pi))return!1;let t=le?le(e.nativeEvent):T(e);if(t===!1)return H&&Z(),!1;let{dragOffsetX:r=0,dragOffsetY:i=0,...a}=t??{},o={...fe,...a},s=e.currentTarget.getBoundingClientRect(),c={cols:O,margin:j,maxRows:A,rowHeight:k,containerWidth:n,containerPadding:he},l=_n(c),u=vn(o.w,l,j[0]),d=vn(o.h,k,j[1]),f=u/2,p=d/2,m=e.clientX-s.left+r-f,h=e.clientY-s.top+i-p,g=Math.max(0,m),_=Math.max(0,h),v={left:g/me,top:_/me,e:e.nativeEvent};if(H)U&&(U.left!==v.left||U.top!==v.top)&&W(v);else{let e=bn(c,_,g,o.w,o.h);be((0,q.jsx)(`div`,{},o.i)),W(v);let t=Y.current.filter(e=>e.i!==o.i);z([...t,{...o,x:e.x,y:e.y,static:!1,isDraggable:!0}])}},[H,U,fe,le,T,Z,me,O,j,A,k,n,he]),Pe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current--,G.current<0&&(G.current=0),G.current===0&&Z()},[Z]),Fe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current++},[]),Ie=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=Y.current,n=t.find(e=>e.i===fe.i);G.current=0,Z(),w(t,n,e.nativeEvent)},[fe.i,Z,w]),Le=(0,K.useCallback)((e,t)=>{if(!e||!e.key)return null;let r=jn(R,String(e.key));if(!r)return null;let i=typeof r.isDraggable==`boolean`?r.isDraggable:!r.static&&ne,a=typeof r.isResizable==`boolean`?r.isResizable:!r.static&&oe,o=r.resizeHandles||[...se],c=i&&re&&r.isBounded!==!1,u=P;return(0,q.jsx)(Mi,{containerWidth:n,cols:O,margin:j,containerPadding:he,maxRows:A,rowHeight:k,cancel:ie,handle:N,onDragStart:Oe,onDrag:ke,onDragStop:X,onResizeStart:Ae,onResize:je,onResizeStop:Me,isDraggable:i,isResizable:a,isBounded:c,useCSSTransforms:pe&&ge,usePercentages:!ge,transformScale:me,positionStrategy:s,dragThreshold:ae,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?U:void 0,resizeHandles:o,resizeHandle:u,constraints:l,layoutItem:r,layout:R,children:e},r.i)},[R,n,O,j,he,A,k,ie,N,Oe,ke,X,Ae,je,Me,ne,oe,re,pe,ge,me,s,ae,U,se,P,l]),Re=()=>ve?(0,q.jsx)(Mi,{w:ve.w,h:ve.h,x:ve.x,y:ve.y,i:ve.i,className:`react-grid-placeholder ${V?`placeholder-resizing`:``}`,containerWidth:n,cols:O,margin:j,containerPadding:he,maxRows:A,rowHeight:k,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:pe,transformScale:me,constraints:l,layout:R,children:(0,q.jsx)(`div`,{})}):null,ze=_(Pi,p),Be={height:De,...m};return(0,q.jsxs)(`div`,{ref:h,className:ze,style:Be,onDrop:F?Ie:void 0,onDragLeave:F?Pe:void 0,onDragEnter:F?Fe:void 0,onDragOver:F?Ne:void 0,children:[K.Children.map(t,e=>K.isValidElement(e)?Le(e):null),F&&H&&Le(H,!0),Re()]})}var zi={lg:1200,md:996,sm:768,xs:480,xxs:0},Bi={lg:12,md:10,sm:6,xs:4,xxs:2},Vi=()=>{};function Hi(e,t,n,r){let i=[];K.Children.forEach(t,t=>{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key),r=e.find(e=>e.i===n);if(r)i.push({...r,i:n});else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:An(i),w:1,h:1})}});let a=Ln(i,{cols:n});return r.compact(a,n)}function Ui(e){let{children:t,width:n,breakpoint:r,breakpoints:i=zi,cols:a=Bi,layouts:o={},rowHeight:s=150,maxRows:c=1/0,margin:l=[10,10],containerPadding:u=null,compactor:d,onBreakpointChange:f=Vi,onLayoutChange:p=Vi,onWidthChange:m=Vi,...h}=e,g=d??br(`vertical`),_=g.type,v=g.allowOverlap,y=(0,K.useMemo)(()=>r??Sr(i,n),[]),b=(0,K.useMemo)(()=>Cr(y,a),[y,a]),x=(0,K.useMemo)(()=>wr(o,i,y,y,b,_),[]),[S,C]=(0,K.useState)(y),[w,T]=(0,K.useState)(b),[E,ee]=(0,K.useState)(x),[D,te]=(0,K.useState)(o),O=(0,K.useRef)(n),k=(0,K.useRef)(r),A=(0,K.useRef)(i),j=(0,K.useRef)(a),M=(0,K.useRef)(o),ne=(0,K.useRef)(_),re=(0,K.useRef)(D);(0,K.useEffect)(()=>{re.current=D},[D]);let N=(0,K.useMemo)(()=>(0,ji.deepEqual)(o,M.current)?null:wr(o,i,S,S,w,g),[o,i,S,w,g]),ie=N??E;(0,K.useEffect)(()=>{N!==null&&(ee(N),te(o),re.current=o,M.current=o)},[N,o]),(0,K.useEffect)(()=>{if(_!==ne.current){let e=g.compact(Pn(ie),w),t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t),ne.current=_}},[_,g,ie,w,v,S,p]),(0,K.useEffect)(()=>{let e=n!==O.current,o=r!==k.current,s=!(0,ji.deepEqual)(i,A.current),c=!(0,ji.deepEqual)(a,j.current);if(e||o||s||c){let e=r??Sr(i,n),o=Cr(e,a),d=S;if(d!==e||s||c){let n={...re.current};n[d]||(n[d]=Pn(E));let r=wr(n,i,e,d,o,g);r=Hi(r,t,o,g),n[e]=r,C(e),T(o),ee(r),te(n),re.current=n,f(e,o),p(r,n)}let h=Tr(l,e),_=u?Tr(u,e):null;m(n,h,o,_),O.current=n,k.current=r,A.current=i,j.current=a}},[n,r,i,a,S,w,E,t,g,_,v,l,u,f,p,m]);let ae=(0,K.useCallback)(e=>{let t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t)},[S,p]),oe=(0,K.useMemo)(()=>Tr(l,S),[l,S]),se=(0,K.useMemo)(()=>u===null?null:Tr(u,S),[u,S]),P=(0,K.useMemo)(()=>({cols:w,rowHeight:s,maxRows:c,margin:oe,containerPadding:se}),[w,s,c,oe,se]);return(0,q.jsx)(Ri,{...h,width:n,gridConfig:P,compactor:g,onLayoutChange:ae,layout:ie,children:t})}function Wi(e){let{children:t,width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,rowHeight:u,maxRows:d,margin:f,containerPadding:p,droppingItem:m,compactType:h,preventCollision:g=!1,allowOverlap:_=!1,verticalCompact:v,isDraggable:y=!0,isBounded:b=!1,draggableHandle:x,draggableCancel:S,isResizable:C=!0,resizeHandles:w=[`se`],resizeHandle:T,isDroppable:E=!1,useCSSTransforms:ee=!0,transformScale:D=1,autoSize:te,className:O,style:k,innerRef:A,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe}=e,se=h===void 0?`vertical`:h;v===!1&&(se=null);let P={enabled:y,bounded:b,handle:x,cancel:S},F={enabled:C,handles:w,handleComponent:T},ce={enabled:E},le;le=ee?D===1?rr:ar(D):ir;let I=br(se,_,g);return(0,q.jsx)(Ui,{width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,rowHeight:u,maxRows:d,margin:f,containerPadding:p,compactor:I,dragConfig:P,resizeConfig:F,dropConfig:ce,positionStrategy:le,droppingItem:m,autoSize:te,className:O,style:k,innerRef:A,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe,children:t})}Wi.displayName=`ResponsiveReactGridLayout`;var Gi=Wi,Ki=`react-grid-layout`;function qi(e){function t(t){let{measureBeforeMount:n=!1,className:r,style:i,...a}=t,[o,s]=(0,K.useState)(1280),[c,l]=(0,K.useState)(!1),u=(0,K.useRef)(null),d=(0,K.useRef)(null);return(0,K.useEffect)(()=>{l(!0)},[]),(0,K.useEffect)(()=>{let e=u.current;if(!(e instanceof HTMLElement))return;let t=null,n=new ResizeObserver(e=>{if(e[0]){let n=Math.round(e[0].contentRect.width);t!==null&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{s(e=>e===n?e:n),t=null})}});return n.observe(e),d.current=n,()=>{t!==null&&cancelAnimationFrame(t),n.unobserve(e),n.disconnect()}},[c]),n&&!c?(0,q.jsx)(`div`,{className:_(r,Ki),style:i,ref:u}):(0,q.jsx)(e,{innerRef:u,className:r,style:i,...a,width:o})}return t.displayName=`WidthProvider(${e.displayName||e.name||`Component`})`,t}function Ji(e){return e.reduce((e,t)=>Math.max(e,t.y+t.h),0)}function Yi(e,t){return e.map(e=>({...e,x:0,w:t,minW:Math.min(e.minW??1,t)}))}var Xi=qi(Gi),Zi=`fanout.dashboard-id`;async function Qi(e){let t=await D(e);if(!t.ok)throw Error(`Request failed (${t.status})`);return t.json()}var $i=e=>e.state.status===`error`&&15e3,ea={layout:[],widgets:[],filters:{window:`1h`,namespace:``}},ta={overview:`System health`,topology:`Service map`,activity:`Recent activity`,assistant:`Ask Fanout`,performance:`Performance`,trace:`Trace focus`,logs:`Logs`},na={overview:4,topology:4,activity:4,assistant:3,performance:4,trace:4,logs:4};function ra({dashboardID:e=``,agentAvailable:t,onOpenChat:n,onDashboardChange:r}){let i=H(),a=hn({queryKey:[`dashboards`],queryFn:()=>Qi(`/api/dashboards`),refetchInterval:3e3}),[o,s]=(0,K.useState)(()=>e||localStorage.getItem(Zi)||``),c=gn({mutationFn:async e=>{if(!l.data)throw Error(`No dashboard selected`);let t=await D(`/api/dashboards/${encodeURIComponent(l.data.id)}`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify({name:l.data.name,description:l.data.description,state:e})});if(!t.ok)throw Error(`Unable to save dashboard`);return t.json()},scope:{id:`dashboard-${o}`},onSuccess:e=>{i.setQueryData([`dashboard`,e.id],e),i.invalidateQueries({queryKey:[`dashboards`]})},onError:e=>console.error(`Dashboard save failed`,e)}),l=hn({queryKey:[`dashboard`,o],queryFn:()=>Qi(`/api/dashboards/${encodeURIComponent(o)}`),enabled:!!o,refetchInterval:c.isPending||c.isError?!1:3e3}),[u,d]=(0,K.useState)(ea),[f,p]=(0,K.useState)(`lg`);(0,K.useEffect)(()=>{!e||e===o||(s(e),localStorage.setItem(Zi,e))},[e,o]),(0,K.useEffect)(()=>{let t=a.data?.dashboards;if(t?.length&&!(e&&t.some(t=>t.id===e))){if(!e&&o&&t.some(e=>e.id===o)){r?.(o,!0);return}g((t.find(e=>e.is_default)??t[0]).id,!0)}},[e,a.data,o]),(0,K.useEffect)(()=>{c.isPending||c.isError||l.data?.state&&d(l.data.state)},[l.data?.updated_at,c.isPending,c.isError]),(0,K.useEffect)(()=>{c.reset()},[o]);let h=(0,K.useMemo)(()=>{let e=new Map(u.widgets.map(e=>[e.id,e.type])),t=u.layout.map(t=>{let n=na[e.get(t.i)??`overview`];return{...t,h:Math.max(t.h,n),minH:Math.max(t.minH??0,n)}});return{lg:t,md:t,sm:Yi(t,6),xs:Yi(t,2),xxs:Yi(t,1)}},[u.layout,u.widgets]);function g(e,t=!1){s(e),localStorage.setItem(Zi,e),r?.(e,t)}function _(e){d(e),c.mutate(e)}function v(e){let t=ve(),n=[`topology`,`performance`,`trace`,`logs`].includes(e),r=na[e];_({...u,widgets:[...u.widgets,{id:t,type:e,title:ta[e],enabled:!0}],layout:[...u.layout,{i:t,x:0,y:Ji(u.layout),w:n?8:4,h:r,minW:3,minH:r}]})}function y(e){_({...u,widgets:u.widgets.filter(t=>t.id!==e),layout:u.layout.filter(t=>t.i!==e)})}if(a.isLoading||o&&l.isLoading)return(0,q.jsx)(ia,{label:`Loading your workspace…`});if(a.isError||l.isError)return(0,q.jsx)(ia,{label:`Your workspace is unavailable. Try refreshing.`});let S=l.data;return S?(0,q.jsxs)(P,{component:`main`,maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},pt:{base:`xl`,sm:52},pb:100,children:[(0,q.jsxs)(X,{justify:`space-between`,align:{base:`flex-start`,md:`flex-end`},direction:{base:`column`,md:`row`},gap:`lg`,mb:`xl`,children:[(0,q.jsxs)(P,{miw:0,children:[(0,q.jsxs)(we,{shadow:`md`,position:`bottom-start`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:(0,q.jsx)(ln,{size:16,weight:`fill`}),rightSection:(0,q.jsx)(nn,{size:13,weight:`bold`}),children:`Dashboards`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Switch dashboard`}),(a.data?.dashboards??[]).map(e=>(0,q.jsx)(we.Item,{leftSection:e.id===o?(0,q.jsx)(re,{size:14,weight:`bold`}):(0,q.jsx)(P,{w:14}),onClick:()=>g(e.id),children:e.name},e.id))]})]}),(0,q.jsx)(x,{order:1,fz:{base:36,sm:52},lts:`-0.045em`,mt:4,children:S.name}),(0,q.jsx)(M,{c:`dimmed`,mt:4,children:S.description||`A focused view of the signals that matter now.`})]}),(0,q.jsxs)(se,{wrap:`nowrap`,w:{base:`100%`,md:`auto`},children:[t&&(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(sn,{size:16,weight:`fill`}),flex:{base:1,md:`initial`},onClick:()=>n(`Create a new dashboard for me. First ask what I want to monitor, then design it when you have enough context.`),children:`Create with AI`}),(0,q.jsx)(N,{leftSection:l.isFetching?(0,q.jsx)(b,{size:15,color:`var(--mantine-primary-color-contrast)`}):(0,q.jsx)(en,{size:16,weight:`bold`}),onClick:()=>void i.invalidateQueries(),children:l.isFetching?`Refreshing`:`Refresh`})]})]}),c.isError&&(0,q.jsx)(ee,{color:`bad`,radius:`lg`,mb:`lg`,icon:(0,q.jsx)(dn,{size:18,weight:`fill`}),title:`Dashboard changes not saved`,children:(0,q.jsxs)(se,{justify:`space-between`,gap:`sm`,children:[(0,q.jsx)(M,{size:`sm`,children:`Your latest edits are kept on this screen but Fanout could not store them.`}),(0,q.jsx)(N,{size:`compact-sm`,color:`bad`,variant:`light`,onClick:()=>c.mutate(u),children:`Retry save`})]})}),(0,q.jsx)(m,{withBorder:!0,radius:`lg`,p:{base:`md`,sm:`lg`},mb:`lg`,role:`group`,"aria-label":`Dashboard controls`,children:(0,q.jsxs)(X,{align:{base:`stretch`,md:`flex-end`},justify:`space-between`,direction:{base:`column`,md:`row`},gap:`md`,children:[(0,q.jsxs)(se,{align:`flex-end`,gap:`md`,grow:!0,wrap:`wrap`,w:{base:`100%`,md:`auto`},children:[(0,q.jsx)(Et,{label:`Window`,value:u.filters.window,onChange:e=>e&&_({...u,filters:{...u.filters,window:e}}),data:[{value:`15m`,label:`15 minutes`},{value:`1h`,label:`1 hour`},{value:`6h`,label:`6 hours`},{value:`24h`,label:`24 hours`}],w:{base:`100%`,xs:150}}),(0,q.jsx)(A,{label:`Namespace`,value:u.filters.namespace,onChange:e=>d({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),onBlur:e=>_({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),placeholder:`All namespaces`,w:{base:`100%`,xs:220}})]}),(0,q.jsxs)(X,{wrap:{base:`wrap`,sm:`nowrap`},justify:{base:`flex-start`,md:`flex-end`},align:`center`,gap:{base:`sm`,sm:`md`},w:{base:`100%`,md:`auto`},children:[(0,q.jsxs)(se,{gap:`xs`,wrap:`nowrap`,children:[(0,q.jsx)(Ct,{color:c.isError?`bad`:c.isPending?`warn`:`ok`,processing:c.isPending,size:8}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,miw:48,children:c.isPending?`Saving`:c.isError?`Failed`:`Saved`})]}),(0,q.jsx)(me,{orientation:`vertical`,h:28}),(0,q.jsxs)(we,{shadow:`md`,position:`bottom-end`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(z,{size:16,weight:`bold`}),rightSection:(0,q.jsx)(nn,{size:14,weight:`bold`}),children:`Add view`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Dashboard views`}),Object.entries(ta).filter(([e])=>t||e!==`assistant`).map(([e,t])=>(0,q.jsx)(we.Item,{onClick:()=>v(e),children:t},e))]})]}),t&&(0,q.jsx)(N,{variant:`subtle`,color:`gray`,rightSection:(0,q.jsx)(R,{size:16,weight:`bold`}),onClick:()=>n(),children:`Ask Fanout`})]})]})}),(0,q.jsx)(Xi,{className:`dashboard-grid`,layouts:h,breakpoints:{lg:1100,md:800,sm:600,xs:420,xxs:0},cols:{lg:12,md:10,sm:6,xs:2,xxs:1},rowHeight:76,margin:[16,16],containerPadding:[0,0],compactType:`vertical`,draggableCancel:`button,input,select,textarea,a,label,[role=menu]`,onBreakpointChange:p,onDragStop:e=>{f===`lg`&&_({...u,layout:[...e]})},onResizeStop:e=>{f===`lg`&&_({...u,layout:[...e]})},children:u.widgets.map(e=>(0,q.jsx)(`div`,{children:(0,q.jsx)(aa,{widget:e,filters:u.filters,agentAvailable:t,onRemove:()=>y(e.id),onOpenChat:n})},e.id))})]}):(0,q.jsx)(ia,{label:`Preparing your workspace…`})}function ia({label:e}){return(0,q.jsxs)(T,{mih:`50vh`,children:[(0,q.jsx)(b,{size:`sm`}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`sm`,children:e})]})}function aa({widget:e,filters:t,agentAvailable:n,onRemove:r,onOpenChat:i}){let a=new URLSearchParams({window:t.window,limit:`40`});t.namespace&&a.set(`namespace`,t.namespace);let o=typeof e.config?.service==`string`?e.config.service:``;o&&a.set(`service`,o);let s=hn({queryKey:[`overview`,a.toString()],queryFn:()=>Qi(`/api/observability/overview?${a}`),enabled:e.type===`overview`||e.type===`activity`,refetchInterval:$i}),c=hn({queryKey:[`topology`,a.toString()],queryFn:()=>Qi(`/api/observability/topology?${a}`),enabled:e.type===`topology`,refetchInterval:$i}),l=hn({queryKey:[`performance`,a.toString()],queryFn:()=>Qi(`/api/observability/performance?${a}`),enabled:e.type===`performance`,refetchInterval:$i}),u=new URLSearchParams(a);typeof e.config?.severity==`string`&&u.set(`severity`,e.config.severity),typeof e.config?.search==`string`&&u.set(`search`,e.config.search);let d=hn({queryKey:[`logs`,u.toString()],queryFn:()=>Qi(`/api/observability/logs?${u}`),enabled:e.type===`logs`,refetchInterval:$i}),f=new URLSearchParams(a);typeof e.config?.trace_id==`string`&&f.set(`trace_id`,e.config.trace_id);let p=hn({queryKey:[`trace`,f.toString()],queryFn:()=>Qi(`/api/observability/trace?${f}`),enabled:e.type===`trace`,refetchInterval:$i}),h=s.data?.data,g={overview:s,activity:s,topology:c,performance:l,logs:d,trace:p}[e.type]?.isError??!1;return(0,q.jsx)(m,{withBorder:!0,shadow:`xs`,radius:`lg`,p:`lg`,h:`100%`,style:{overflow:`hidden`},children:(0,q.jsxs)(oe,{h:`100%`,gap:`sm`,children:[(0,q.jsxs)(se,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,q.jsxs)(P,{children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e.type===`assistant`?`Guidance`:e.type}),(0,q.jsx)(x,{order:2,fz:`lg`,mt:2,children:e.title})]}),(0,q.jsx)(Se,{label:`Remove ${e.title}`,children:(0,q.jsx)(de,{variant:`subtle`,color:`bad`,"aria-label":`Remove ${e.title}`,onClick:r,children:(0,q.jsx)(pn,{size:16,weight:`bold`})})})]}),(0,q.jsxs)(Ce,{type:`auto`,offsetScrollbars:!0,flex:1,children:[g&&(0,q.jsx)(da,{}),!g&&e.type===`overview`&&(0,q.jsxs)(fe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(la,{label:`Health`,value:h?.health??`—`}),(0,q.jsx)(la,{label:`Services`,value:h?.service_count??`—`}),(0,q.jsx)(la,{label:`Spans`,value:h?.total_spans?.toLocaleString?.()??`—`}),(0,q.jsx)(la,{label:`Error rate`,value:h?`${(h.error_rate*100).toFixed(2)}%`:`—`})]}),!g&&e.type===`topology`&&(0,q.jsx)(oa,{rows:(c.data?.data?.nodes??[]).slice(0,6).map(e=>[(0,q.jsx)(sa,{health:e.health,label:e.service},`health`),`${e.spans?.toLocaleString?.()??0} spans`,`${e.p95_ms?.toFixed?.(1)??`—`} ms p95`]),empty:`No service relationships in this window`}),!g&&e.type===`activity`&&(0,q.jsx)(oa,{rows:(h?.services??[]).slice(0,5).map(e=>[(0,q.jsx)(sa,{health:e.health,label:e.service},`health`),e.error_rate?`${(e.error_rate*100).toFixed(2)}% errors`:`Operating normally`]),empty:`No recent activity`}),!g&&e.type===`performance`&&(0,q.jsx)(oa,{rows:(l.data?.data?.endpoints??[]).slice(0,5).map(e=>[(0,q.jsxs)(M,{fw:600,size:`sm`,truncate:!0,children:[e.method,` `,e.path]},`path`),`${e.calls?.toLocaleString?.()} calls`,`${e.p95_ms?.toFixed?.(1)} ms p95`]),empty:`No endpoint activity in this window`}),!g&&e.type===`logs`&&(0,q.jsx)(oa,{rows:(d.data?.data?.entries??[]).slice(0,5).map(e=>[(0,q.jsx)(_t,{color:ca(e.severity),variant:`light`,children:e.severity},`severity`),e.service,e.body]),empty:`No matching logs in this window`}),!g&&e.type===`trace`&&(0,q.jsxs)(oe,{children:[(0,q.jsxs)(fe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(la,{label:`Duration`,value:p.data?.data?`${p.data.data.duration_ms.toFixed?.(1)} ms`:`—`}),(0,q.jsx)(la,{label:`Spans`,value:p.data?.data?.spans?.length??`—`}),(0,q.jsx)(la,{label:`Services`,value:p.data?.data?.services?.length??`—`}),(0,q.jsx)(la,{label:`Status`,value:p.data?.data?p.data.data.has_error?`Error`:`Healthy`:`—`})]}),(0,q.jsx)(M,{c:`dimmed`,size:`xs`,ff:`monospace`,truncate:!0,children:p.data?.data?.trace_id?`Trace ${p.data.data.trace_id}`:`Most relevant recent trace`})]}),!g&&e.type===`assistant`&&(n?(0,q.jsxs)(oe,{align:`flex-start`,children:[(0,q.jsx)(M,{c:`dimmed`,children:`Ask a focused question about health, latency, errors, or dependencies.`}),(0,q.jsx)(N,{leftSection:(0,q.jsx)(sn,{size:16,weight:`fill`}),onClick:()=>i(`Summarize the most important system changes in the selected window`),children:`Start a conversation`})]}):(0,q.jsx)(M,{c:`dimmed`,children:`Configure an AI provider to enable this view. The rest of this dashboard remains available.`}))]})]})})}function oa({rows:e,empty:t}){return e.length?(0,q.jsx)(Gt.ScrollContainer,{minWidth:420,children:(0,q.jsx)(Gt,{verticalSpacing:`sm`,highlightOnHover:!0,children:(0,q.jsx)(Gt.Tbody,{children:e.map((e,t)=>(0,q.jsx)(Gt.Tr,{children:e.map((e,t)=>(0,q.jsx)(Gt.Td,{children:(0,q.jsx)(M,{component:`span`,size:`sm`,c:t?`dimmed`:void 0,lineClamp:1,children:e})},t))},t))})})}):(0,q.jsx)(ua,{text:t})}function sa({health:e,label:t}){return(0,q.jsx)(_t,{color:e===`healthy`?`ok`:e===`degraded`?`warn`:`bad`,variant:`light`,tt:`none`,children:t})}function ca(e){let t=String(e).toUpperCase();return t===`ERROR`||t===`FATAL`?`bad`:t===`WARN`||t===`WARNING`?`warn`:t===`INFO`?`info`:`gray`}function la({label:e,value:t}){return(0,q.jsxs)(m,{withBorder:!0,radius:`md`,p:`sm`,bg:`var(--mantine-color-default)`,children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,children:e}),(0,q.jsx)(M,{fw:700,fz:`xl`,mt:4,tt:`capitalize`,children:t})]})}function ua({text:e}){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(an,{size:20}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`xs`,children:e})]})}function da(){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(dn,{size:20,weight:`fill`,color:`var(--mantine-color-bad-filled)`}),(0,q.jsx)(M,{c:`bad`,fw:500,size:`sm`,ml:`xs`,children:`Couldn't load this view — retrying automatically`})]})}export{ra as t}; \ No newline at end of file +`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&L(e.body,`react-draggable-transparent-selection`)}function I(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ue(e)}):ue(e)}function ue(e){if(e)try{e.body&&de(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function L(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function de(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function fe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:z(r);let i=ve(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+x(s.paddingLeft)+x(o.marginLeft),top:-i.offsetTop+x(s.paddingTop)+x(o.marginTop),right:N(a)-M(i)-i.offsetLeft+x(s.paddingRight)-x(o.marginRight),bottom:re(a)-j(i)-i.offsetTop+x(s.paddingBottom)-x(o.marginBottom)}}return b(r.right)&&(t=Math.min(t,r.right)),b(r.bottom)&&(n=Math.min(n,r.bottom)),b(r.left)&&(t=Math.max(t,r.left)),b(r.top)&&(n=Math.max(n,r.top)),[t,n]}function pe(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function me(e){return e.props.axis===`both`||e.props.axis===`x`}function he(e){return e.props.axis===`both`||e.props.axis===`y`}function ge(e,t,n){let r=typeof t==`number`?P(e,t):null;if(typeof t==`number`&&!r)return null;let i=ve(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return ie(r||e,a,n.props.scale)}function _e(e,t,n){let r=!b(e.lastX),i=ve(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function R(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function z(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function ve(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var B=d(r()),V=d(Or()),ye=d(ne());function H(...e){({}).DRAGGABLE_DEBUG&&console.log(...e)}var be={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},U=be.mouse,W=class extends B.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!O(e.target,this.props.handle,t)||this.props.cancel&&O(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=F(e);this.touchIdentifier=r;let i=ge(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=_e(this,a,o);H(`DraggableCore: handleDragStart: %j`,s),H(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&le(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,k(n,U.move,this.handleDrag),k(n,U.stop,this.handleDragStop))},this.handleDrag=e=>{let t=ge(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=pe(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=_e(this,n,r);if(H(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=ge(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=pe(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=_e(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&I(a.ownerDocument),H(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(H(`DraggableCore: Removing handlers`),A(a.ownerDocument,U.move,this.handleDrag),A(a.ownerDocument,U.stop,this.handleDragStop))},this.onMouseDown=e=>(U=be.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(U=be.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(U=be.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(U=be.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&k(e,be.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;A(t,be.mouse.move,this.handleDrag),A(t,be.touch.move,this.handleDrag),A(t,be.mouse.stop,this.handleDragStop),A(t,be.touch.stop,this.handleDragStop),A(e,be.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&I(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=ye.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(H(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return B.cloneElement(B.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};W.displayName=`DraggableCore`,W.propTypes={allowAnyClick:V.default.bool,allowMobileScroll:V.default.bool,children:V.default.node.isRequired,disabled:V.default.bool,enableUserSelectHack:V.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:V.default.arrayOf(V.default.number),handle:V.default.string,cancel:V.default.string,nodeRef:V.default.object,nonce:V.default.string,onStart:V.default.func,onDrag:V.default.func,onStop:V.default.func,onMouseDown:V.default.func,scale:V.default.number,className:S,style:S,transform:S},W.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var xe=class extends m.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(H(`Draggable: onDragStart: %j`,t),this.props.onStart(e,R(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;H(`Draggable: onDrag: %j`,t);let n=R(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=fe(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,R(this,t))===!1)return!1;H(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(H(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=g.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,h=s||r,g={x:me(this)&&p?this.state.x:h.x,y:he(this)&&p?this.state.y:h.y};this.state.isElementSVG?f=oe(g,c):d=ae(g,c);let v=m.Children.only(n),y=(0,_.clsx)(v.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return m.createElement(W,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},m.cloneElement(v,{className:y,style:{...v.props.style,...d},transform:f}))}};xe.displayName=`Draggable`,xe.propTypes={...W.propTypes,axis:h.default.oneOf([`both`,`x`,`y`,`none`]),bounds:h.default.oneOfType([h.default.shape({left:h.default.number,right:h.default.number,top:h.default.number,bottom:h.default.number}),h.default.string,h.default.oneOf([!1])]),defaultClassName:h.default.string,defaultClassNameDragging:h.default.string,defaultClassNameDragged:h.default.string,defaultPosition:h.default.shape({x:h.default.number,y:h.default.number}),positionOffset:h.default.shape({x:h.default.oneOfType([h.default.number,h.default.string]),y:h.default.oneOfType([h.default.number,h.default.string])}),position:h.default.shape({x:h.default.number,y:h.default.number}),className:S,style:S,transform:S},xe.defaultProps={...W.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1},0&&(t.exports={DraggableCore:W})})),Ci=t(((e,t)=>{var n=Si(),r=n.DraggableCore,i=n.default||n;t.exports=i,t.exports.default=i,t.exports.DraggableCore=r})),wi=t((e=>{e.__esModule=!0,e.cloneElement=l;var t=n(r());function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t{e.__esModule=!0,e.resizableProps=void 0;var t=n(Or());Ci();function n(e){return e&&e.__esModule?e:{default:e}}e.resizableProps={axis:t.default.oneOf([`both`,`x`,`y`,`none`]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:typeof Element<`u`?t.default.instanceOf(Element):t.default.any,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`y`?t.default.number.isRequired(...e):t.default.number(...e)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf([`s`,`w`,`e`,`n`,`sw`,`nw`,`se`,`ne`])),transformScale:t.default.number,width:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`x`?t.default.number.isRequired(...e):t.default.number(...e)}}})),Ei=t((e=>{e.__esModule=!0,e.default=void 0;var t=s(r()),n=Ci(),i=wi(),a=Ti(),o=[`children`,`className`,`draggableOpts`,`width`,`height`,`handle`,`handleSize`,`lockAspectRatio`,`axis`,`minConstraints`,`maxConstraints`,`onResize`,`onResizeStop`,`onResizeStart`,`resizeHandles`,`transformScale`];function s(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs(i*n)?t=e/n:e=t*n}let o=e,s=t,c=this.slack||[0,0],l=c[0],u=c[1];return e+=l,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[l+(o-e),u+(s-t)],[e,t]}resizeHandler(e,t){return(n,r)=>{let i=r.node,a=r.deltaX,o=r.deltaY;e===`onResizeStart`&&this.resetData();let s=(this.props.axis===`both`||this.props.axis===`x`)&&t!==`n`&&t!==`s`,c=(this.props.axis===`both`||this.props.axis===`y`)&&t!==`e`&&t!==`w`;if(!s&&!c)return;let l=t[0],u=t[t.length-1],d=i.getBoundingClientRect();if(this.lastHandleRect!=null){if(u===`w`){let e=d.left-this.lastHandleRect.left;a+=e}if(l===`n`){let e=d.top-this.lastHandleRect.top;o+=e}}this.lastHandleRect=d,u===`w`&&(a=-a),l===`n`&&(o=-o);let f=this.lastSize?.width??this.props.width,p=this.lastSize?.height??this.props.height,m=f+(s?a/this.props.transformScale:0),h=p+(c?o/this.props.transformScale:0);var g=this.runConstraints(m,h);if(m=g[0],h=g[1],e===`onResizeStop`&&this.lastSize){var _=this.lastSize;m=_.width,h=_.height}let v=m!==f||h!==p;e!==`onResizeStop`&&(this.lastSize={width:m,height:h});let y=typeof this.props[e]==`function`?this.props[e]:null;y&&!(e===`onResize`&&!v)&&(n.persist==null||n.persist(),y(n,{node:i,size:{width:m,height:h},handle:t})),e===`onResizeStop`&&this.resetData()}}renderResizeHandle(e,n){let r=this.props.handle;if(!r)return t.createElement(`span`,{className:`react-resizable-handle react-resizable-handle-`+e,ref:n});if(typeof r==`function`)return r(e,n);let i=typeof r.type==`string`,a=d({ref:n},i?{}:{handleAxis:e});return t.cloneElement(r,a)}render(){let e=this.props,r=e.children,a=e.className,s=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;let u=e.resizeHandles;e.transformScale;let f=l(e,o);return(0,i.cloneElement)(r,d(d({},f),{},{className:(a?a+` `:``)+`react-resizable`,children:[...t.Children.toArray(r.props.children),...u.map(e=>{let r=this.handleRefs[e]??(this.handleRefs[e]=t.createRef());return t.createElement(n.DraggableCore,c({},s,{nodeRef:r,key:`resizableHandle-`+e,onStop:this.resizeHandler(`onResizeStop`,e),onStart:this.resizeHandler(`onResizeStart`,e),onDrag:this.resizeHandler(`onResize`,e)}),this.renderResizeHandle(e,r))})]}))}};e.default=h,h.propTypes=a.resizableProps,h.defaultProps={axis:`both`,handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:[`se`],transformScale:1}})),Di=t((e=>{e.__esModule=!0,e.default=void 0;var t=c(r()),n=s(Or()),i=s(Ei()),a=Ti(),o=[`handle`,`handleSize`,`onResize`,`onResizeStart`,`onResizeStop`,`draggableOpts`,`minConstraints`,`maxConstraints`,`lockAspectRatio`,`axis`,`width`,`height`,`resizeHandles`,`style`,`transformScale`];function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=t.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(n,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(n)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){let e=this.props,n=e.handle,r=e.handleSize;e.onResize;let a=e.onResizeStart,s=e.onResizeStop,c=e.draggableOpts,u=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;let g=e.resizeHandles,_=e.style,v=e.transformScale,y=h(e,o);return t.createElement(i.default,{axis:m,draggableOpts:c,handle:n,handleSize:r,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:u,onResizeStart:a,onResize:this.onResize,onResizeStop:s,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement(`div`,l({},y,{style:d(d({},_),{},{width:this.state.width+`px`,height:this.state.height+`px`})})))}};e.default=g,g.propTypes=d(d({},a.resizableProps),{},{children:n.default.element})})),Oi=t(((e,t)=>{t.exports=function(){throw Error(`Don't instantiate Resizable directly! Use require('react-resizable').Resizable`)},t.exports.Resizable=Ei().default,t.exports.ResizableBox=Di().default})),ki=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n[`fast-equals`]={}))})(e,(function(e){function t(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function n(e){return function(t,n,r,i){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r,i);var a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);var s=e(t,n,r,i);return i.delete(t),i.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function i(e){return e.constructor===Object||e.constructor==null}function a(e){return typeof e.then==`function`}function o(e,t){return e===t||e!==e&&t!==t}var s=Object.prototype.toString;function c(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,c=e.areObjectsEqual,l=e.areRegExpsEqual,u=e.areSetsEqual,d=e.createIsNestedEqual,f=d(p);function p(e,d,p){if(e===d)return!0;if(!e||!d||typeof e!=`object`||typeof d!=`object`)return e!==e&&d!==d;if(i(e)&&i(d))return c(e,d,f,p);var m=Array.isArray(e),h=Array.isArray(d);if(m||h)return m===h&&t(e,d,f,p);var g=s.call(e);return g===s.call(d)?g===`[object Date]`?n(e,d,f,p):g===`[object RegExp]`?l(e,d,f,p):g===`[object Map]`?r(e,d,f,p):g===`[object Set]`?u(e,d,f,p):g===`[object Object]`||g===`[object Arguments]`?a(e)||a(d)?!1:c(e,d,f,p):g===`[object Boolean]`||g===`[object Number]`||g===`[object String]`?o(e.valueOf(),d.valueOf()):!1:!1}return p}function l(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-->0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}var u=n(l);function d(e,t){return o(e.valueOf(),t.valueOf())}function f(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},o=0;return e.forEach(function(s,c){if(i){var l=!1,u=0;t.forEach(function(i,d){!l&&!a[u]&&(l=n(c,d,o,u,e,t,r)&&n(s,i,c,d,e,t,r))&&(a[u]=!0),u++}),o++,i=l}}),i}var p=n(f),m=`_owner`,h=Object.prototype.hasOwnProperty;function g(e,t,n,r){var i=Object.keys(e),a=i.length;if(Object.keys(t).length!==a)return!1;for(var o;a-->0;){if(o=i[a],o===m){var s=!!e.$$typeof,c=!!t.$$typeof;if((s||c)&&s!==c)return!1}if(!h.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var _=n(g);function v(e,t){return e.source===t.source&&e.flags===t.flags}function y(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach(function(o,s){if(i){var c=!1,l=0;t.forEach(function(i,u){!c&&!a[l]&&(c=n(o,i,s,u,e,t,r))&&(a[l]=!0),l++}),i=c}}),i}var b=n(y),x=Object.freeze({areArraysEqual:l,areDatesEqual:d,areMapsEqual:f,areObjectsEqual:g,areRegExpsEqual:v,areSetsEqual:y,createIsNestedEqual:t}),S=Object.freeze({areArraysEqual:u,areDatesEqual:d,areMapsEqual:p,areObjectsEqual:_,areRegExpsEqual:v,areSetsEqual:b,createIsNestedEqual:t}),C=c(x);function w(e,t){return C(e,t,void 0)}var T=c(r(x,{createIsNestedEqual:function(){return o}}));function E(e,t){return T(e,t,void 0)}var ee=c(S);function D(e,t){return ee(e,t,new WeakMap)}var te=c(r(S,{createIsNestedEqual:function(){return o}}));function O(e,t){return te(e,t,new WeakMap)}function k(e){return c(r(x,e(x)))}function A(e){var t=c(r(S,e(S)));return(function(e,n,r){return r===void 0&&(r=new WeakMap),t(e,n,r)})}e.circularDeepEqual=D,e.circularShallowEqual=O,e.createCustomCircularEqual=A,e.createCustomEqual=k,e.deepEqual=w,e.sameValueZeroEqual=o,e.shallowEqual=E,Object.defineProperty(e,"__esModule",{value:!0})}))})),Ai=Oi(),ji=ki();function Mi(e){let{children:t,cols:n,containerWidth:r,margin:i,containerPadding:a,rowHeight:o,maxRows:s,isDraggable:c,isResizable:l,isBounded:u,static:d,useCSSTransforms:f=!0,usePercentages:p=!1,transformScale:m=1,positionStrategy:h,dragThreshold:g=0,droppingPosition:v,className:y=``,style:b,handle:x=``,cancel:S=``,x:C,y:w,w:T,h:E,minW:ee=1,maxW:D=1/0,minH:te=1,maxH:O=1/0,i:k,resizeHandles:A,resizeHandle:j,constraints:M=Vn,layoutItem:ne,layout:re=[],onDragStart:N,onDrag:ie,onDragStop:ae,onResizeStart:oe,onResize:se,onResizeStop:P}=e,[F,ce]=(0,K.useState)(!1),[le,I]=(0,K.useState)(!1),ue=(0,K.useRef)(null),L=(0,K.useRef)({left:0,top:0}),de=(0,K.useRef)({top:0,left:0,width:0,height:0}),fe=(0,K.useRef)(void 0),pe=(0,K.useRef)(re);pe.current=re;let me=(0,K.useRef)(null),he=(0,K.useRef)(null),ge=(0,K.useRef)(!1),_e=(0,K.useRef)({x:0,y:0}),R=(0,K.useRef)(!1),z=(0,K.useMemo)(()=>({cols:n,containerPadding:a,containerWidth:r,margin:i,maxRows:s,rowHeight:o}),[n,a,r,i,s,o]),ve=(0,K.useMemo)(()=>({cols:n,maxRows:s,containerWidth:r,containerHeight:0,rowHeight:o,margin:i,layout:[]}),[n,s,r,o,i]),B=(0,K.useCallback)(()=>({...ve,layout:pe.current}),[ve]),V=(0,K.useMemo)(()=>ne??{i:k,x:C,y:w,w:T,h:E,minW:ee,maxW:D,minH:te,maxH:O},[ne,k,C,w,T,E,ee,D,te,O]),ye=(0,K.useCallback)(e=>{if(h?.calcStyle)return h.calcStyle(e);if(f)return Wn(e);let t=Gn(e);return p?{...t,left:Kn(e.left/r),width:Kn(e.width/r)}:t},[h,f,p,r]),H=(0,K.useCallback)((e,{node:t})=>{if(!N)return;let{offsetParent:n}=t;if(!n)return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.left/m,o=r.left/m,s=i.top/m,c=r.top/m,l;if(h?.calcDragPosition){let t=e;l=h.calcDragPosition(t.clientX,t.clientY,t.clientX-i.left,t.clientY-i.top)}else l={left:a-o+n.scrollLeft,top:s-c+n.scrollTop};if(L.current=l,g>0){let t=e;_e.current={x:t.clientX,y:t.clientY},ge.current=!0,R.current=!1,ce(!0);return}ce(!0);let u=xn(z,l.top,l.left),{x:d,y:f}=Hn(M,V,u.x,u.y,B());N(k,d,f,{e,node:t,newPosition:l})},[N,m,z,h,g,M,V,B,k]),be=(0,K.useCallback)((e,{node:t,deltaX:n,deltaY:a})=>{if(!ie||!F)return;let s=e;if(ge.current&&!R.current){let n=s.clientX-_e.current.x,r=s.clientY-_e.current.y;if(Math.hypot(n,r){if(!ae||!F)return;let n=ge.current;if(ge.current=!1,R.current=!1,_e.current={x:0,y:0},n){ce(!1),L.current={left:0,top:0};return}let{left:r,top:i}=L.current,a={top:i,left:r};ce(!1),L.current={left:0,top:0};let o=xn(z,i,r),{x:s,y:c}=Hn(M,V,o.x,o.y,B());ae(k,s,c,{e,node:t,newPosition:a})},[ae,F,z,M,V,B,k]);me.current=H,he.current=be;let W=(0,K.useCallback)((e,{node:t,size:n,handle:i},a,o)=>{let s=o===`onResizeStart`?oe:o===`onResize`?se:P;if(!s)return;let c;c=t?nr(i,a,n,r):{...n,top:a.top,left:a.left},de.current=c;let l=Sn(z,c.width,c.height),{w:u,h:d}=Un(M,V,l.w,l.h,i,B());s(k,u,d,{e:e.nativeEvent??e,node:t,size:c,handle:i})},[oe,se,P,r,z,k,M,V,B]),xe=(0,K.useCallback)((e,t)=>{I(!0);let n=yn(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStart`)},[W,z,C,w,T,E]),Se=(0,K.useCallback)((e,t)=>{let n=yn(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResize`)},[W,z,C,w,T,E]),Ce=(0,K.useCallback)((e,t)=>{I(!1),de.current={top:0,left:0,width:0,height:0};let n=yn(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStop`)},[W,z,C,w,T,E]);(0,K.useEffect)(()=>{if(!v)return;let e=ue.current;if(!e)return;let t=fe.current||{left:0,top:0},n=F&&(v.left!==t.left||v.top!==t.top);if(!F){let t={node:e,deltaX:v.left,deltaY:v.top,lastX:0,lastY:0,x:v.left,y:v.top};me.current?.(v.e,t)}else if(n){let t={node:e,deltaX:v.left-L.current.left,deltaY:v.top-L.current.top,lastX:L.current.left,lastY:L.current.top,x:v.left,y:v.top};he.current?.(v.e,t)}fe.current=v},[v,F,k]);let G=yn(z,C,w,T,E,F?L.current:null,le?de.current:null),we=K.Children.only(t),Te=_n(z),Ee=[vn(ee,Te,i[0]),vn(te,o,i[1])],J=[vn(D,Te,i[0]),vn(O,o,i[1])],Y=we.props,De=Y.className,Oe=Y.style,ke=K.cloneElement(we,{ref:ue,className:_(`react-grid-item`,De,y,{static:d,resizing:le,"react-draggable":c,"react-draggable-dragging":F,dropping:!!v,cssTransforms:f}),style:{...b,...Oe,...ye(G)}}),X=j;return ke=(0,q.jsx)(Ai.Resizable,{draggableOpts:{disabled:!l},className:l?void 0:`react-resizable-hide`,width:G.width,height:G.height,minConstraints:Ee,maxConstraints:J,onResizeStart:xe,onResize:Se,onResizeStop:Ce,transformScale:m,resizeHandles:A,handle:X,children:ke}),ke=(0,q.jsx)(yi,{disabled:!c,onStart:H,onDrag:be,onStop:U,handle:x,cancel:`.react-resizable-handle`+(S?`,`+S:``),scale:m,nodeRef:ue,children:ke}),ke}var Ni=()=>{},Pi=`react-grid-layout`,Fi=!1;try{Fi=/firefox/i.test(navigator.userAgent)}catch{}function Ii(e,t){let n=K.Children.toArray(e),r=K.Children.toArray(t);if(n.length!==r.length)return!1;for(let e=0;e{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key);a.add(n);let r=e.find(e=>e.i===n);if(r)i.push(Nn(r));else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:An(i),w:1,h:1})}});let o=Ln(i,{cols:n});return r.compact(o,n)}function Ri(e){let{children:t,width:n,gridConfig:r,dragConfig:i,resizeConfig:a,dropConfig:o,positionStrategy:s=or,compactor:c,constraints:l=Vn,layout:u=[],droppingItem:d,autoSize:f=!0,className:p=``,style:m={},innerRef:h,onLayoutChange:g=Ni,onDragStart:v=Ni,onDrag:y=Ni,onDragStop:b=Ni,onResizeStart:x=Ni,onResize:S=Ni,onResizeStop:C=Ni,onDrop:w=Ni,onDropDragOver:T=Ni}=e,E=(0,K.useMemo)(()=>({...sr,...r}),[r]),ee=(0,K.useMemo)(()=>({...cr,...i}),[i]),D=(0,K.useMemo)(()=>({...lr,...a}),[a]),te=(0,K.useMemo)(()=>({...ur,...o}),[o]),{cols:O,rowHeight:k,maxRows:A,margin:j,containerPadding:M}=E,{enabled:ne,bounded:re,handle:N,cancel:ie,threshold:ae}=ee,{enabled:oe,handles:se,handleComponent:P}=D,{enabled:F,defaultItem:ce,onDragOver:le}=te,I=c??br(`vertical`),ue=I.type,L=I.allowOverlap,de=I.preventCollision??!1,fe=(0,K.useMemo)(()=>d??{i:`__dropping-elem__`,...ce},[d,ce]),pe=s.type===`transform`,me=s.scale,he=M??j,[ge,_e]=(0,K.useState)(!1),[R,z]=(0,K.useState)(()=>Li(u,t,O,I)),[ve,B]=(0,K.useState)(null),[V,ye]=(0,K.useState)(!1),[H,be]=(0,K.useState)(null),[U,W]=(0,K.useState)(),xe=(0,K.useRef)(null),Se=(0,K.useRef)(null),Ce=(0,K.useRef)(null),G=(0,K.useRef)(0),we=(0,K.useRef)(R),Te=(0,K.useRef)(u),Ee=(0,K.useRef)(t),J=(0,K.useRef)(ue),Y=(0,K.useRef)(R);Y.current=R,(0,K.useEffect)(()=>{_e(!0),(0,ji.deepEqual)(R,u)||g(R)},[]),(0,K.useEffect)(()=>{if(ve||H)return;let e=!(0,ji.deepEqual)(u,Te.current),n=!Ii(t,Ee.current),r=ue!==J.current;if(e||n||r){let n=Li(e?u:R,t,O,I);(0,ji.deepEqual)(n,R)||z(n)}Te.current=u,Ee.current=t,J.current=ue},[u,t,O,ue,I,ve,H,R]),(0,K.useEffect)(()=>{if(!ve&&!(0,ji.deepEqual)(R,we.current)){we.current=R;let e=R.filter(e=>e.i!==fe.i);g(e)}},[R,ve,g,fe.i]);let De=(0,K.useMemo)(()=>{if(!f)return;let e=An(R),t=he[1];return e*k+(e-1)*j[1]+t*2+`px`},[f,R,k,j,he]),Oe=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=jn(i,e);if(!a)return;let o={w:a.w,h:a.h,x:a.x,y:a.y,i:e};xe.current=Nn(a),Ce.current=i,B(o),v(i,a,a,null,r.e,r.node)},[v]),ke=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=xe.current,o=jn(i,e);if(!o)return;let s={w:o.w,h:o.h,x:o.x,y:o.y,i:e},c=Rn(i,o,t,n,!0,de,ue,O,L);y(c,a,o,s,r.e,r.node),z(I.compact(c,O)),B(s)},[de,ue,O,L,I,y]),X=(0,K.useCallback)((e,t,n,r)=>{if(!ve)return;let i=Y.current,a=xe.current,o=jn(i,e);if(!o)return;let s=Rn(i,o,t,n,!0,de,ue,O,L),c=I.compact(s,O);b(c,a,o,null,r.e,r.node);let l=Ce.current;xe.current=null,Ce.current=null,B(null),z(c),l&&!(0,ji.deepEqual)(l,c)&&g(c)},[ve,de,ue,O,L,I,b,g]),Ae=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=jn(i,e);a&&(Se.current=Nn(a),Ce.current=i,ye(!0),x(i,a,a,null,r.e,r.node))},[x]),je=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,{handle:o}=r,s=!1,c,l,[u,d]=In(i,e,e=>(c=e.x,l=e.y,[`sw`,`w`,`nw`,`n`,`ne`].includes(o)&&([`sw`,`nw`,`w`].includes(o)&&(c=e.x+(e.w-t),t=e.x!==c&&c<0?e.w:t,c=c<0?0:c),[`ne`,`n`,`nw`].includes(o)&&(l=e.y+(e.h-n),n=e.y!==l&&l<0?e.h:n,l=l<0?0:l),s=!0),de&&!L&&En(i,{...e,w:t,h:n,x:c??e.x,y:l??e.y}).filter(t=>t.i!==e.i).length>0&&(l=e.y,n=e.h,c=e.x,t=e.w,s=!1),e.w=t,e.h=n,e));if(!d)return;let f=u;s&&c!==void 0&&l!==void 0&&(f=Rn(u,d,c,l,!0,de,ue,O,L));let p={w:d.w,h:d.h,x:d.x,y:d.y,i:e,static:!0};S(f,a,d,p,r.e,r.node),z(I.compact(f,O)),B(p)},[de,ue,O,L,I,S]),Me=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,o=jn(i,e),s=I.compact(i,O);C(s,a,o??null,null,r.e,r.node);let c=Ce.current;Se.current=null,Ce.current=null,B(null),ye(!1),z(s),c&&!(0,ji.deepEqual)(c,s)&&g(s)},[O,I,C,g]),Z=(0,K.useCallback)(()=>{let e=Y.current;if(!e.some(e=>e.i===fe.i)){be(null),B(null),W(void 0);return}let t=I.compact(e.filter(e=>e.i!==fe.i),O);z(t),be(null),B(null),W(void 0)},[fe.i,O,I]),Ne=(0,K.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),Fi&&!e.nativeEvent.target?.classList.contains(Pi))return!1;let t=le?le(e.nativeEvent):T(e);if(t===!1)return H&&Z(),!1;let{dragOffsetX:r=0,dragOffsetY:i=0,...a}=t??{},o={...fe,...a},s=e.currentTarget.getBoundingClientRect(),c={cols:O,margin:j,maxRows:A,rowHeight:k,containerWidth:n,containerPadding:he},l=_n(c),u=vn(o.w,l,j[0]),d=vn(o.h,k,j[1]),f=u/2,p=d/2,m=e.clientX-s.left+r-f,h=e.clientY-s.top+i-p,g=Math.max(0,m),_=Math.max(0,h),v={left:g/me,top:_/me,e:e.nativeEvent};if(H)U&&(U.left!==v.left||U.top!==v.top)&&W(v);else{let e=bn(c,_,g,o.w,o.h);be((0,q.jsx)(`div`,{},o.i)),W(v);let t=Y.current.filter(e=>e.i!==o.i);z([...t,{...o,x:e.x,y:e.y,static:!1,isDraggable:!0}])}},[H,U,fe,le,T,Z,me,O,j,A,k,n,he]),Pe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current--,G.current<0&&(G.current=0),G.current===0&&Z()},[Z]),Fe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current++},[]),Ie=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=Y.current,n=t.find(e=>e.i===fe.i);G.current=0,Z(),w(t,n,e.nativeEvent)},[fe.i,Z,w]),Le=(0,K.useCallback)((e,t)=>{if(!e||!e.key)return null;let r=jn(R,String(e.key));if(!r)return null;let i=typeof r.isDraggable==`boolean`?r.isDraggable:!r.static&&ne,a=typeof r.isResizable==`boolean`?r.isResizable:!r.static&&oe,o=r.resizeHandles||[...se],c=i&&re&&r.isBounded!==!1,u=P;return(0,q.jsx)(Mi,{containerWidth:n,cols:O,margin:j,containerPadding:he,maxRows:A,rowHeight:k,cancel:ie,handle:N,onDragStart:Oe,onDrag:ke,onDragStop:X,onResizeStart:Ae,onResize:je,onResizeStop:Me,isDraggable:i,isResizable:a,isBounded:c,useCSSTransforms:pe&&ge,usePercentages:!ge,transformScale:me,positionStrategy:s,dragThreshold:ae,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?U:void 0,resizeHandles:o,resizeHandle:u,constraints:l,layoutItem:r,layout:R,children:e},r.i)},[R,n,O,j,he,A,k,ie,N,Oe,ke,X,Ae,je,Me,ne,oe,re,pe,ge,me,s,ae,U,se,P,l]),Re=()=>ve?(0,q.jsx)(Mi,{w:ve.w,h:ve.h,x:ve.x,y:ve.y,i:ve.i,className:`react-grid-placeholder ${V?`placeholder-resizing`:``}`,containerWidth:n,cols:O,margin:j,containerPadding:he,maxRows:A,rowHeight:k,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:pe,transformScale:me,constraints:l,layout:R,children:(0,q.jsx)(`div`,{})}):null,ze=_(Pi,p),Be={height:De,...m};return(0,q.jsxs)(`div`,{ref:h,className:ze,style:Be,onDrop:F?Ie:void 0,onDragLeave:F?Pe:void 0,onDragEnter:F?Fe:void 0,onDragOver:F?Ne:void 0,children:[K.Children.map(t,e=>K.isValidElement(e)?Le(e):null),F&&H&&Le(H,!0),Re()]})}var zi={lg:1200,md:996,sm:768,xs:480,xxs:0},Bi={lg:12,md:10,sm:6,xs:4,xxs:2},Vi=()=>{};function Hi(e,t,n,r){let i=[];K.Children.forEach(t,t=>{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key),r=e.find(e=>e.i===n);if(r)i.push({...r,i:n});else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:An(i),w:1,h:1})}});let a=Ln(i,{cols:n});return r.compact(a,n)}function Ui(e){let{children:t,width:n,breakpoint:r,breakpoints:i=zi,cols:a=Bi,layouts:o={},rowHeight:s=150,maxRows:c=1/0,margin:l=[10,10],containerPadding:u=null,compactor:d,onBreakpointChange:f=Vi,onLayoutChange:p=Vi,onWidthChange:m=Vi,...h}=e,g=d??br(`vertical`),_=g.type,v=g.allowOverlap,y=(0,K.useMemo)(()=>r??Sr(i,n),[]),b=(0,K.useMemo)(()=>Cr(y,a),[y,a]),x=(0,K.useMemo)(()=>wr(o,i,y,y,b,_),[]),[S,C]=(0,K.useState)(y),[w,T]=(0,K.useState)(b),[E,ee]=(0,K.useState)(x),[D,te]=(0,K.useState)(o),O=(0,K.useRef)(n),k=(0,K.useRef)(r),A=(0,K.useRef)(i),j=(0,K.useRef)(a),M=(0,K.useRef)(o),ne=(0,K.useRef)(_),re=(0,K.useRef)(D);(0,K.useEffect)(()=>{re.current=D},[D]);let N=(0,K.useMemo)(()=>(0,ji.deepEqual)(o,M.current)?null:wr(o,i,S,S,w,g),[o,i,S,w,g]),ie=N??E;(0,K.useEffect)(()=>{N!==null&&(ee(N),te(o),re.current=o,M.current=o)},[N,o]),(0,K.useEffect)(()=>{if(_!==ne.current){let e=g.compact(Pn(ie),w),t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t),ne.current=_}},[_,g,ie,w,v,S,p]),(0,K.useEffect)(()=>{let e=n!==O.current,o=r!==k.current,s=!(0,ji.deepEqual)(i,A.current),c=!(0,ji.deepEqual)(a,j.current);if(e||o||s||c){let e=r??Sr(i,n),o=Cr(e,a),d=S;if(d!==e||s||c){let n={...re.current};n[d]||(n[d]=Pn(E));let r=wr(n,i,e,d,o,g);r=Hi(r,t,o,g),n[e]=r,C(e),T(o),ee(r),te(n),re.current=n,f(e,o),p(r,n)}let h=Tr(l,e),_=u?Tr(u,e):null;m(n,h,o,_),O.current=n,k.current=r,A.current=i,j.current=a}},[n,r,i,a,S,w,E,t,g,_,v,l,u,f,p,m]);let ae=(0,K.useCallback)(e=>{let t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t)},[S,p]),oe=(0,K.useMemo)(()=>Tr(l,S),[l,S]),se=(0,K.useMemo)(()=>u===null?null:Tr(u,S),[u,S]),P=(0,K.useMemo)(()=>({cols:w,rowHeight:s,maxRows:c,margin:oe,containerPadding:se}),[w,s,c,oe,se]);return(0,q.jsx)(Ri,{...h,width:n,gridConfig:P,compactor:g,onLayoutChange:ae,layout:ie,children:t})}function Wi(e){let{children:t,width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,rowHeight:u,maxRows:d,margin:f,containerPadding:p,droppingItem:m,compactType:h,preventCollision:g=!1,allowOverlap:_=!1,verticalCompact:v,isDraggable:y=!0,isBounded:b=!1,draggableHandle:x,draggableCancel:S,isResizable:C=!0,resizeHandles:w=[`se`],resizeHandle:T,isDroppable:E=!1,useCSSTransforms:ee=!0,transformScale:D=1,autoSize:te,className:O,style:k,innerRef:A,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe}=e,se=h===void 0?`vertical`:h;v===!1&&(se=null);let P={enabled:y,bounded:b,handle:x,cancel:S},F={enabled:C,handles:w,handleComponent:T},ce={enabled:E},le;le=ee?D===1?rr:ar(D):ir;let I=br(se,_,g);return(0,q.jsx)(Ui,{width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,rowHeight:u,maxRows:d,margin:f,containerPadding:p,compactor:I,dragConfig:P,resizeConfig:F,dropConfig:ce,positionStrategy:le,droppingItem:m,autoSize:te,className:O,style:k,innerRef:A,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe,children:t})}Wi.displayName=`ResponsiveReactGridLayout`;var Gi=Wi,Ki=`react-grid-layout`;function qi(e){function t(t){let{measureBeforeMount:n=!1,className:r,style:i,...a}=t,[o,s]=(0,K.useState)(1280),[c,l]=(0,K.useState)(!1),u=(0,K.useRef)(null),d=(0,K.useRef)(null);return(0,K.useEffect)(()=>{l(!0)},[]),(0,K.useEffect)(()=>{let e=u.current;if(!(e instanceof HTMLElement))return;let t=null,n=new ResizeObserver(e=>{if(e[0]){let n=Math.round(e[0].contentRect.width);t!==null&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{s(e=>e===n?e:n),t=null})}});return n.observe(e),d.current=n,()=>{t!==null&&cancelAnimationFrame(t),n.unobserve(e),n.disconnect()}},[c]),n&&!c?(0,q.jsx)(`div`,{className:_(r,Ki),style:i,ref:u}):(0,q.jsx)(e,{innerRef:u,className:r,style:i,...a,width:o})}return t.displayName=`WidthProvider(${e.displayName||e.name||`Component`})`,t}function Ji(e){return e.reduce((e,t)=>Math.max(e,t.y+t.h),0)}function Yi(e,t){return e.map(e=>({...e,x:0,w:t,minW:Math.min(e.minW??1,t)}))}var Xi=qi(Gi),Zi=`fanout.dashboard-id`;async function Qi(e){let t=await D(e);if(!t.ok)throw Error(`Request failed (${t.status})`);return t.json()}var $i=e=>e.state.status===`error`&&15e3,ea={layout:[],widgets:[],filters:{window:`1h`,namespace:``}},ta={overview:`System health`,topology:`Service map`,activity:`Recent activity`,assistant:`Ask Fanout`,performance:`Performance`,trace:`Trace focus`,logs:`Logs`},na={overview:4,topology:4,activity:4,assistant:3,performance:4,trace:4,logs:4};function ra({dashboardID:e=``,agentAvailable:t,onOpenChat:n,onDashboardChange:r}){let i=H(),a=hn({queryKey:[`dashboards`],queryFn:()=>Qi(`/api/dashboards`),refetchInterval:3e3}),[o,s]=(0,K.useState)(()=>e||localStorage.getItem(Zi)||``),c=gn({mutationFn:async e=>{if(!l.data)throw Error(`No dashboard selected`);let t=await D(`/api/dashboards/${encodeURIComponent(l.data.id)}`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify({name:l.data.name,description:l.data.description,state:e})});if(!t.ok)throw Error(`Unable to save dashboard`);return t.json()},scope:{id:`dashboard-${o}`},onSuccess:e=>{i.setQueryData([`dashboard`,e.id],e),i.invalidateQueries({queryKey:[`dashboards`]})},onError:e=>console.error(`Dashboard save failed`,e)}),l=hn({queryKey:[`dashboard`,o],queryFn:()=>Qi(`/api/dashboards/${encodeURIComponent(o)}`),enabled:!!o,refetchInterval:c.isPending||c.isError?!1:3e3}),[u,d]=(0,K.useState)(ea),[f,p]=(0,K.useState)(`lg`);(0,K.useEffect)(()=>{!e||e===o||(s(e),localStorage.setItem(Zi,e))},[e,o]),(0,K.useEffect)(()=>{let t=a.data?.dashboards;if(t?.length&&!(e&&t.some(t=>t.id===e))){if(!e&&o&&t.some(e=>e.id===o)){r?.(o,!0);return}g((t.find(e=>e.is_default)??t[0]).id,!0)}},[e,a.data,o]),(0,K.useEffect)(()=>{c.isPending||c.isError||l.data?.state&&d(l.data.state)},[l.data?.updated_at,c.isPending,c.isError]),(0,K.useEffect)(()=>{c.reset()},[o]);let h=(0,K.useMemo)(()=>{let e=new Map(u.widgets.map(e=>[e.id,e.type])),t=u.layout.map(t=>{let n=na[e.get(t.i)??`overview`];return{...t,h:Math.max(t.h,n),minH:Math.max(t.minH??0,n)}});return{lg:t,md:t,sm:Yi(t,6),xs:Yi(t,2),xxs:Yi(t,1)}},[u.layout,u.widgets]);function g(e,t=!1){s(e),localStorage.setItem(Zi,e),r?.(e,t)}function _(e){d(e),c.mutate(e)}function v(e){let t=ve(),n=[`topology`,`performance`,`trace`,`logs`].includes(e),r=na[e];_({...u,widgets:[...u.widgets,{id:t,type:e,title:ta[e],enabled:!0}],layout:[...u.layout,{i:t,x:0,y:Ji(u.layout),w:n?8:4,h:r,minW:3,minH:r}]})}function y(e){_({...u,widgets:u.widgets.filter(t=>t.id!==e),layout:u.layout.filter(t=>t.i!==e)})}if(a.isLoading||o&&l.isLoading)return(0,q.jsx)(ia,{label:`Loading your workspace…`});if(a.isError||l.isError)return(0,q.jsx)(ia,{label:`Your workspace is unavailable. Try refreshing.`});let S=l.data;return S?(0,q.jsxs)(P,{component:`main`,maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},pt:{base:`xl`,sm:52},pb:100,children:[(0,q.jsxs)(X,{justify:`space-between`,align:{base:`flex-start`,md:`flex-end`},direction:{base:`column`,md:`row`},gap:`lg`,mb:`xl`,children:[(0,q.jsxs)(P,{miw:0,children:[(0,q.jsxs)(we,{shadow:`md`,position:`bottom-start`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:(0,q.jsx)(ln,{size:16,weight:`fill`}),rightSection:(0,q.jsx)(nn,{size:13,weight:`bold`}),children:`Dashboards`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Switch dashboard`}),(a.data?.dashboards??[]).map(e=>(0,q.jsx)(we.Item,{leftSection:e.id===o?(0,q.jsx)(re,{size:14,weight:`bold`}):(0,q.jsx)(P,{w:14}),onClick:()=>g(e.id),children:e.name},e.id))]})]}),(0,q.jsx)(x,{order:1,fz:{base:36,sm:52},lts:`-0.045em`,mt:4,children:S.name}),(0,q.jsx)(M,{c:`dimmed`,mt:4,children:S.description||`A focused view of the signals that matter now.`})]}),(0,q.jsxs)(se,{wrap:`nowrap`,w:{base:`100%`,md:`auto`},children:[t&&(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(sn,{size:16,weight:`fill`}),flex:{base:1,md:`initial`},onClick:()=>n(`Create a new dashboard for me. First ask what I want to monitor, then design it when you have enough context.`),children:`Create with AI`}),(0,q.jsx)(N,{leftSection:l.isFetching?(0,q.jsx)(b,{size:15,color:`var(--mantine-primary-color-contrast)`}):(0,q.jsx)(en,{size:16,weight:`bold`}),onClick:()=>void i.invalidateQueries(),children:l.isFetching?`Refreshing`:`Refresh`})]})]}),c.isError&&(0,q.jsx)(ee,{color:`bad`,radius:`lg`,mb:`lg`,icon:(0,q.jsx)(dn,{size:18,weight:`fill`}),title:`Dashboard changes not saved`,children:(0,q.jsxs)(se,{justify:`space-between`,gap:`sm`,children:[(0,q.jsx)(M,{size:`sm`,children:`Your latest edits are kept on this screen but Fanout could not store them.`}),(0,q.jsx)(N,{size:`compact-sm`,color:`bad`,variant:`light`,onClick:()=>c.mutate(u),children:`Retry save`})]})}),(0,q.jsx)(m,{withBorder:!0,radius:`lg`,p:{base:`md`,sm:`lg`},mb:`lg`,role:`group`,"aria-label":`Dashboard controls`,children:(0,q.jsxs)(X,{align:{base:`stretch`,md:`flex-end`},justify:`space-between`,direction:{base:`column`,md:`row`},gap:`md`,children:[(0,q.jsxs)(se,{align:`flex-end`,gap:`md`,grow:!0,wrap:`wrap`,w:{base:`100%`,md:`auto`},children:[(0,q.jsx)(Et,{label:`Window`,value:u.filters.window,onChange:e=>e&&_({...u,filters:{...u.filters,window:e}}),data:[{value:`15m`,label:`15 minutes`},{value:`1h`,label:`1 hour`},{value:`6h`,label:`6 hours`},{value:`24h`,label:`24 hours`},{value:`168h`,label:`7 days`},{value:`720h`,label:`30 days`}],w:{base:`100%`,xs:150}}),(0,q.jsx)(A,{label:`Namespace`,value:u.filters.namespace,onChange:e=>d({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),onBlur:e=>_({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),placeholder:`All namespaces`,w:{base:`100%`,xs:220}})]}),(0,q.jsxs)(X,{wrap:{base:`wrap`,sm:`nowrap`},justify:{base:`flex-start`,md:`flex-end`},align:`center`,gap:{base:`sm`,sm:`md`},w:{base:`100%`,md:`auto`},children:[(0,q.jsxs)(se,{gap:`xs`,wrap:`nowrap`,children:[(0,q.jsx)(Ct,{color:c.isError?`bad`:c.isPending?`warn`:`ok`,processing:c.isPending,size:8}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,miw:48,children:c.isPending?`Saving`:c.isError?`Failed`:`Saved`})]}),(0,q.jsx)(me,{orientation:`vertical`,h:28}),(0,q.jsxs)(we,{shadow:`md`,position:`bottom-end`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(z,{size:16,weight:`bold`}),rightSection:(0,q.jsx)(nn,{size:14,weight:`bold`}),children:`Add view`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Dashboard views`}),Object.entries(ta).filter(([e])=>t||e!==`assistant`).map(([e,t])=>(0,q.jsx)(we.Item,{onClick:()=>v(e),children:t},e))]})]}),t&&(0,q.jsx)(N,{variant:`subtle`,color:`gray`,rightSection:(0,q.jsx)(R,{size:16,weight:`bold`}),onClick:()=>n(),children:`Ask Fanout`})]})]})}),(0,q.jsx)(Xi,{className:`dashboard-grid`,layouts:h,breakpoints:{lg:1100,md:800,sm:600,xs:420,xxs:0},cols:{lg:12,md:10,sm:6,xs:2,xxs:1},rowHeight:76,margin:[16,16],containerPadding:[0,0],compactType:`vertical`,draggableCancel:`button,input,select,textarea,a,label,[role=menu]`,onBreakpointChange:p,onDragStop:e=>{f===`lg`&&_({...u,layout:[...e]})},onResizeStop:e=>{f===`lg`&&_({...u,layout:[...e]})},children:u.widgets.map(e=>(0,q.jsx)(`div`,{children:(0,q.jsx)(aa,{widget:e,filters:u.filters,agentAvailable:t,onRemove:()=>y(e.id),onOpenChat:n})},e.id))})]}):(0,q.jsx)(ia,{label:`Preparing your workspace…`})}function ia({label:e}){return(0,q.jsxs)(T,{mih:`50vh`,children:[(0,q.jsx)(b,{size:`sm`}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`sm`,children:e})]})}function aa({widget:e,filters:t,agentAvailable:n,onRemove:r,onOpenChat:i}){let a=new URLSearchParams({window:t.window,limit:`40`});t.namespace&&a.set(`namespace`,t.namespace);let o=typeof e.config?.service==`string`?e.config.service:``;o&&a.set(`service`,o);let s=hn({queryKey:[`overview`,a.toString()],queryFn:()=>Qi(`/api/observability/overview?${a}`),enabled:e.type===`overview`||e.type===`activity`,refetchInterval:$i}),c=hn({queryKey:[`topology`,a.toString()],queryFn:()=>Qi(`/api/observability/topology?${a}`),enabled:e.type===`topology`,refetchInterval:$i}),l=hn({queryKey:[`performance`,a.toString()],queryFn:()=>Qi(`/api/observability/performance?${a}`),enabled:e.type===`performance`,refetchInterval:$i}),u=new URLSearchParams(a);typeof e.config?.severity==`string`&&u.set(`severity`,e.config.severity),typeof e.config?.search==`string`&&u.set(`search`,e.config.search);let d=hn({queryKey:[`logs`,u.toString()],queryFn:()=>Qi(`/api/observability/logs?${u}`),enabled:e.type===`logs`,refetchInterval:$i}),f=new URLSearchParams(a);typeof e.config?.trace_id==`string`&&f.set(`trace_id`,e.config.trace_id);let p=hn({queryKey:[`trace`,f.toString()],queryFn:()=>Qi(`/api/observability/trace?${f}`),enabled:e.type===`trace`,refetchInterval:$i}),h=s.data?.data,g={overview:s,activity:s,topology:c,performance:l,logs:d,trace:p}[e.type]?.isError??!1;return(0,q.jsx)(m,{withBorder:!0,shadow:`xs`,radius:`lg`,p:`lg`,h:`100%`,style:{overflow:`hidden`},children:(0,q.jsxs)(oe,{h:`100%`,gap:`sm`,children:[(0,q.jsxs)(se,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,q.jsxs)(P,{children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e.type===`assistant`?`Guidance`:e.type}),(0,q.jsx)(x,{order:2,fz:`lg`,mt:2,children:e.title})]}),(0,q.jsx)(Se,{label:`Remove ${e.title}`,children:(0,q.jsx)(de,{variant:`subtle`,color:`bad`,"aria-label":`Remove ${e.title}`,onClick:r,children:(0,q.jsx)(pn,{size:16,weight:`bold`})})})]}),(0,q.jsxs)(Ce,{type:`auto`,offsetScrollbars:!0,flex:1,children:[g&&(0,q.jsx)(da,{}),!g&&e.type===`overview`&&(0,q.jsxs)(fe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(la,{label:`Health`,value:h?.health??`—`}),(0,q.jsx)(la,{label:`Services`,value:h?.service_count??`—`}),(0,q.jsx)(la,{label:`Spans`,value:h?.total_spans?.toLocaleString?.()??`—`}),(0,q.jsx)(la,{label:`Error rate`,value:h?`${(h.error_rate*100).toFixed(2)}%`:`—`})]}),!g&&e.type===`topology`&&(0,q.jsx)(oa,{rows:(c.data?.data?.nodes??[]).slice(0,6).map(e=>[(0,q.jsx)(sa,{health:e.health,label:e.service},`health`),`${e.spans?.toLocaleString?.()??0} spans`,`${e.p95_ms?.toFixed?.(1)??`—`} ms p95`]),empty:`No service relationships in this window`}),!g&&e.type===`activity`&&(0,q.jsx)(oa,{rows:(h?.services??[]).slice(0,5).map(e=>[(0,q.jsx)(sa,{health:e.health,label:e.service},`health`),e.error_rate?`${(e.error_rate*100).toFixed(2)}% errors`:`Operating normally`]),empty:`No recent activity`}),!g&&e.type===`performance`&&(0,q.jsx)(oa,{rows:(l.data?.data?.endpoints??[]).slice(0,5).map(e=>[(0,q.jsxs)(M,{fw:600,size:`sm`,truncate:!0,children:[e.method,` `,e.path]},`path`),`${e.calls?.toLocaleString?.()} calls`,`${e.p95_ms?.toFixed?.(1)} ms p95`]),empty:`No endpoint activity in this window`}),!g&&e.type===`logs`&&(0,q.jsx)(oa,{rows:(d.data?.data?.entries??[]).slice(0,5).map(e=>[(0,q.jsx)(_t,{color:ca(e.severity),variant:`light`,children:e.severity},`severity`),e.service,e.body]),empty:`No matching logs in this window`}),!g&&e.type===`trace`&&(0,q.jsxs)(oe,{children:[(0,q.jsxs)(fe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(la,{label:`Duration`,value:p.data?.data?`${p.data.data.duration_ms.toFixed?.(1)} ms`:`—`}),(0,q.jsx)(la,{label:`Spans`,value:p.data?.data?.spans?.length??`—`}),(0,q.jsx)(la,{label:`Services`,value:p.data?.data?.services?.length??`—`}),(0,q.jsx)(la,{label:`Status`,value:p.data?.data?p.data.data.has_error?`Error`:`Healthy`:`—`})]}),(0,q.jsx)(M,{c:`dimmed`,size:`xs`,ff:`monospace`,truncate:!0,children:p.data?.data?.trace_id?`Trace ${p.data.data.trace_id}`:`Most relevant recent trace`})]}),!g&&e.type===`assistant`&&(n?(0,q.jsxs)(oe,{align:`flex-start`,children:[(0,q.jsx)(M,{c:`dimmed`,children:`Ask a focused question about health, latency, errors, or dependencies.`}),(0,q.jsx)(N,{leftSection:(0,q.jsx)(sn,{size:16,weight:`fill`}),onClick:()=>i(`Summarize the most important system changes in the selected window`),children:`Start a conversation`})]}):(0,q.jsx)(M,{c:`dimmed`,children:`Configure an AI provider to enable this view. The rest of this dashboard remains available.`}))]})]})})}function oa({rows:e,empty:t}){return e.length?(0,q.jsx)(Gt.ScrollContainer,{minWidth:420,children:(0,q.jsx)(Gt,{verticalSpacing:`sm`,highlightOnHover:!0,children:(0,q.jsx)(Gt.Tbody,{children:e.map((e,t)=>(0,q.jsx)(Gt.Tr,{children:e.map((e,t)=>(0,q.jsx)(Gt.Td,{children:(0,q.jsx)(M,{component:`span`,size:`sm`,c:t?`dimmed`:void 0,lineClamp:1,children:e})},t))},t))})})}):(0,q.jsx)(ua,{text:t})}function sa({health:e,label:t}){return(0,q.jsx)(_t,{color:e===`healthy`?`ok`:e===`degraded`?`warn`:`bad`,variant:`light`,tt:`none`,children:t})}function ca(e){let t=String(e).toUpperCase();return t===`ERROR`||t===`FATAL`?`bad`:t===`WARN`||t===`WARNING`?`warn`:t===`INFO`?`info`:`gray`}function la({label:e,value:t}){return(0,q.jsxs)(m,{withBorder:!0,radius:`md`,p:`sm`,bg:`var(--mantine-color-default)`,children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,children:e}),(0,q.jsx)(M,{fw:700,fz:`xl`,mt:4,tt:`capitalize`,children:t})]})}function ua({text:e}){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(an,{size:20}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`xs`,children:e})]})}function da(){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(dn,{size:20,weight:`fill`,color:`var(--mantine-color-bad-filled)`}),(0,q.jsx)(M,{c:`bad`,fw:500,size:`sm`,ml:`xs`,children:`Couldn't load this view — retrying automatically`})]})}export{ra as t}; \ No newline at end of file diff --git a/internal/ui/dist/assets/dashboards._dashboardId-DA7AwZcJ.js b/internal/ui/dist/assets/dashboards._dashboardId-BKkqXjF1.js similarity index 69% rename from internal/ui/dist/assets/dashboards._dashboardId-DA7AwZcJ.js rename to internal/ui/dist/assets/dashboards._dashboardId-BKkqXjF1.js index e6b469558..9de2a1bc6 100644 --- a/internal/ui/dist/assets/dashboards._dashboardId-DA7AwZcJ.js +++ b/internal/ui/dist/assets/dashboards._dashboardId-BKkqXjF1.js @@ -1 +1 @@ -import{a as e,n as t}from"./useNavigate-BEpS2iE5.js";import{t as n}from"./dashboard-CVx3JIY1.js";import{r,t as i}from"./index-EuE6NBIL.js";var a=e();function o(){let{dashboardId:e}=i.useParams(),o=t(),{agentAvailable:s,openChat:c}=r();return(0,a.jsx)(n,{dashboardID:e,agentAvailable:s,onOpenChat:c,onDashboardChange:(e,t)=>void o({to:`/dashboards/$dashboardId`,params:{dashboardId:e},replace:t})})}export{o as component}; \ No newline at end of file +import{a as e,n as t}from"./useNavigate-BEpS2iE5.js";import{t as n}from"./dashboard-Bf0GrxUB.js";import{r,t as i}from"./index-Cnw6TNqL.js";var a=e();function o(){let{dashboardId:e}=i.useParams(),o=t(),{agentAvailable:s,openChat:c}=r();return(0,a.jsx)(n,{dashboardID:e,agentAvailable:s,onOpenChat:c,onDashboardChange:(e,t)=>void o({to:`/dashboards/$dashboardId`,params:{dashboardId:e},replace:t})})}export{o as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/dashboards.index-CDH5svxO.js b/internal/ui/dist/assets/dashboards.index-Dxwz9Ppx.js similarity index 82% rename from internal/ui/dist/assets/dashboards.index-CDH5svxO.js rename to internal/ui/dist/assets/dashboards.index-Dxwz9Ppx.js index 7fc276642..292bfb342 100644 --- a/internal/ui/dist/assets/dashboards.index-CDH5svxO.js +++ b/internal/ui/dist/assets/dashboards.index-Dxwz9Ppx.js @@ -1 +1 @@ -import{a as e,n as t}from"./useNavigate-BEpS2iE5.js";import{t as n}from"./dashboard-CVx3JIY1.js";import{r}from"./index-EuE6NBIL.js";var i=e();function a(){let e=t(),{agentAvailable:a,openChat:o}=r();return(0,i.jsx)(n,{agentAvailable:a,onOpenChat:o,onDashboardChange:t=>void e({to:`/dashboards/$dashboardId`,params:{dashboardId:t},replace:!0})})}export{a as component}; \ No newline at end of file +import{a as e,n as t}from"./useNavigate-BEpS2iE5.js";import{t as n}from"./dashboard-Bf0GrxUB.js";import{r}from"./index-Cnw6TNqL.js";var i=e();function a(){let e=t(),{agentAvailable:a,openChat:o}=r();return(0,i.jsx)(n,{agentAvailable:a,onOpenChat:o,onDashboardChange:t=>void e({to:`/dashboards/$dashboardId`,params:{dashboardId:t},replace:!0})})}export{a as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/index-EuE6NBIL.js b/internal/ui/dist/assets/index-Cnw6TNqL.js similarity index 99% rename from internal/ui/dist/assets/index-EuE6NBIL.js rename to internal/ui/dist/assets/index-Cnw6TNqL.js index 1ca17ffed..f7f3ece6e 100644 --- a/internal/ui/dist/assets/index-EuE6NBIL.js +++ b/internal/ui/dist/assets/index-Cnw6TNqL.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mcp-app-frame-CQHQVWwI.js","assets/useNavigate-BEpS2iE5.js","assets/auth-TmbGk91l.js","assets/routes-BQrzb4p9.js","assets/chat.index-D5MirYTs.js","assets/dashboards.index-CDH5svxO.js","assets/dashboard-CVx3JIY1.js","assets/dashboards._dashboardId-DA7AwZcJ.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mcp-app-frame-DUBLTjXl.js","assets/useNavigate-BEpS2iE5.js","assets/auth-TmbGk91l.js","assets/routes-BQrzb4p9.js","assets/chat.index-9CJIOrfA.js","assets/dashboards.index-Dxwz9Ppx.js","assets/dashboard-Bf0GrxUB.js","assets/dashboards._dashboardId-BKkqXjF1.js"])))=>i.map(i=>d[i]); import{a as e,c as t,d as n,g as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./useNavigate-BEpS2iE5.js";import{$ as p,B as m,C as h,E as g,F as _,G as v,H as y,I as b,J as x,K as S,L as C,M as w,N as T,O as E,P as D,Q as O,R as k,S as ee,T as te,U as ne,W as re,X as A,Y as ie,Z as ae,_ as oe,a as se,at as ce,b as le,c as ue,ct as de,d as fe,dt as j,et as pe,f as me,ft as he,g as ge,h as _e,i as ve,it as ye,j as be,l as xe,lt as Se,m as Ce,mt as we,n as Te,nt as Ee,ot as De,p as Oe,pt as ke,q as Ae,r as je,rt as Me,s as Ne,st as Pe,t as Fe,tt as Ie,u as Le,ut as Re,v as ze,w as Be,x as Ve,y as He,z as Ue}from"./auth-TmbGk91l.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var We=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Ge=n(((e,t)=>{t.exports=We()})),Ke=n((e=>{var t=Ge(),n=f(),r=we();function i(e){var t=`https://react.dev/errors/`+e;if(1se||(e.current=oe[se],oe[se]=null,se--)}function ue(e,t){se++,oe[se]=e.current,e.current=t}var de=ce(null),fe=ce(null),j=ce(null),pe=ce(null);function me(e,t){switch(ue(j,t),ue(fe,e),ue(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=cf(t),e=lf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}le(de),ue(de,e)}function he(){le(de),le(fe),le(j)}function ge(e){e.memoizedState!==null&&ue(pe,e);var t=de.current,n=lf(t,e.type);t!==n&&(ue(fe,e),ue(de,n))}function _e(e){fe.current===e&&(le(de),le(fe)),pe.current===e&&(le(pe),vp._currentValue=ae)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1)`:-1`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function qI(){return`!`}JI.peek=YI;function JI(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function YI(){return`!`}XI.peek=ZI;function XI(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a\u007F]/.test(e.url))}$I.peek=eL;function $I(e,t,n,r){let i=FI(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(QI(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function eL(e,t,n){return QI(e,n)?`<`:`[`}tL.peek=nL;function tL(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function nL(){return`[`}function rL(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function iL(e){let t=rL(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function aL(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function oL(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function sL(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?aL(n):rL(n),s=e.ordered?o===`.`?`)`:`.`:iL(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),oL(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function uL(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var dL=vP([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function fL(e,t,n,r){return(e.children.some(function(e){return dL(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function pL(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}mL.peek=hL;function mL(e,t,n,r){let i=pL(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=zI(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=RI(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=zI(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+RI(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function hL(e,t,n){return n.options.strong||`*`}function gL(e,t,n,r){return n.safe(e.value,r)}function _L(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function vL(e,t,n){let r=(oL(n)+(n.options.ruleSpaces?` `:``)).repeat(_L(n));return n.options.ruleSpaces?r.slice(0,-1):r}var yL={blockquote:TI,break:kI,code:NI,definition:II,emphasis:BI,hardBreak:kI,heading:UI,html:WI,image:KI,imageReference:JI,inlineCode:XI,link:$I,linkReference:tL,list:sL,listItem:lL,paragraph:uL,root:fL,strong:mL,text:gL,thematicBreak:vL};function bL(){return{enter:{table:xL,tableData:TL,tableHeader:TL,tableRow:CL},exit:{codeText:EL,table:SL,tableData:wL,tableHeader:wL,tableRow:wL}}}function xL(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function SL(e){this.exit(e),this.data.inTable=void 0}function CL(e){this.enter({type:`tableRow`,children:[]},e)}function wL(e){this.exit(e)}function TL(e){this.enter({type:`tableCell`,children:[]},e)}function EL(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,DL));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function DL(e,t){return t===`|`?t:e}function OL(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` -`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return SI(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var oR={tokenize:mR,partial:!0};function sR(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:dR,continuation:{tokenize:fR},exit:pR}},text:{91:{name:`gfmFootnoteCall`,tokenize:uR},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:cR,resolveTo:lR}}}}function cR(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=RA(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function lR(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function uR(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||KA(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(RA(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return KA(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function dR(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||KA(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=RA(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return KA(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),QA(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function fR(e,t,n){return e.check(pj,t,e.attempt(oR,t,n))}function pR(e){e.exit(`gfmFootnoteDefinition`)}function mR(e,t,n){let r=this;return QA(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function hR(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=aj(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var gR=class{constructor(){this.map=[]}add(e,t,n){_R(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function _R(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):$(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):qA(t)?QA(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||KA(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,qA(t)?QA(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return qA(t)?QA(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||$(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return qA(t)?QA(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||$(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||$(n)?(e.exit(`tableRow`),t(n)):qA(n)?QA(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||KA(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function xR(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new gR;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},wR(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function CR(e,t,n,r,i){let a=[],o=wR(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function wR(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var TR={name:`tasklistCheck`,tokenize:DR};function ER(){return{text:{91:TR}}}function DR(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return KA(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return $(r)?t(r):qA(r)?e.check({tokenize:OR},t,n)(r):n(r)}}function OR(e,t,n){return QA(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function kR(e){return PA([GL(),sR(),hR(e),yR(),ER()])}var AR={};function jR(e){let t=this,n=e||AR,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(kR(n)),a.push(PL()),o.push(FL(n))}var MR=[`agent-threads`];async function NR(e,t){let n=new URLSearchParams({limit:`30`});e&&n.set(`q`,e),t&&n.set(`cursor`,t);let r=await ve(`/api/agent/threads?${n}`);if(!r.ok)throw Error(`Unable to load conversations (${r.status})`);return r.json()}function PR({opened:e,activeThreadID:t,onClose:n,onNewChat:r,onSelect:i,onDeleted:a}){let o=Me(`(max-width: 48em)`),s=SD(),[c,l]=(0,M.useState)(``),[u]=Ha(c.trim(),250),[d,f]=(0,M.useState)(null),[p,m]=(0,M.useState)(null),[g,_]=(0,M.useState)(``),[v,y]=(0,M.useState)(``),[b,x]=(0,M.useState)(!1),S=(0,M.useRef)(null),C=GO({queryKey:[...MR,u],queryFn:({pageParam:e})=>NR(u,e),initialPageParam:``,getNextPageParam:e=>e.nextCursor||void 0,enabled:e}),w=(0,M.useMemo)(()=>C.data?.pages.flatMap(e=>e.threads)??[],[C.data]),T=(0,M.useMemo)(()=>LR(w),[w]);(0,M.useEffect)(()=>{e&&requestAnimationFrame(()=>S.current?.focus())},[e]);function E(e){y(``),_(e.title),f(e)}async function D(){if(!(!d||!g.trim())){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(d.threadId)}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({title:g.trim()})});if(!e.ok)throw Error(`Unable to rename conversation (${e.status})`);await s.invalidateQueries({queryKey:MR}),f(null)}catch(e){y(e instanceof Error?e.message:`Unable to rename this conversation.`)}finally{x(!1)}}}async function O(){if(p){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(p.threadId)}`,{method:`DELETE`});if(!e.ok)throw Error(`Unable to delete conversation (${e.status})`);let t=p.threadId;m(null),await s.invalidateQueries({queryKey:MR}),a(t)}catch(e){y(e instanceof Error?e.message:`Unable to delete this conversation.`)}finally{x(!1)}}}return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(zm,{opened:e,onClose:n,position:`left`,size:o?`100%`:372,title:(0,N.jsx)(Ce,{fw:700,children:`Investigations`}),padding:`md`,overlayProps:{backgroundOpacity:.24,blur:1},children:(0,N.jsxs)(Le,{gap:`sm`,h:`calc(100dvh - 86px)`,children:[(0,N.jsx)(Oe,{leftSection:(0,N.jsx)(mD,{size:17,weight:`bold`}),onClick:r,children:`New investigation`}),(0,N.jsx)(xe,{ref:S,value:c,onChange:e=>l(e.currentTarget.value),leftSection:(0,N.jsx)(oD,{size:16}),placeholder:`Search investigations`,"aria-label":`Search investigations`}),(0,N.jsx)(ym,{}),(0,N.jsxs)(id,{type:`auto`,offsetScrollbars:!0,flex:1,children:[C.isLoading&&(0,N.jsx)(me,{py:`xl`,children:(0,N.jsx)(le,{size:`sm`})}),C.isError&&(0,N.jsx)(_e,{color:`bad`,title:`History unavailable`,children:`Your conversations could not be loaded.`}),!C.isLoading&&!C.isError&&w.length===0&&(0,N.jsxs)(Be,{py:`xl`,px:`sm`,ta:`center`,children:[(0,N.jsx)(Ce,{fw:600,children:u?`No matching investigations`:`No investigations yet`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`sm`,mt:4,children:u?`Try words from the opening question.`:`Your completed investigations will appear here.`})]}),(0,N.jsxs)(Le,{gap:`lg`,pb:`md`,children:[T.map(e=>(0,N.jsxs)(Le,{gap:4,children:[(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,px:`sm`,children:e.label}),e.threads.map(e=>{let n=e.threadId===t;return(0,N.jsx)(Be,{"data-active":n||void 0,className:`chat-history-item`,children:(0,N.jsxs)(ze,{gap:2,wrap:`nowrap`,children:[(0,N.jsx)(h,{onClick:()=>i(e.threadId),"aria-current":n?`page`:void 0,p:`sm`,flex:1,style:{minWidth:0},children:(0,N.jsxs)(ze,{justify:`space-between`,gap:`sm`,wrap:`nowrap`,children:[(0,N.jsx)(Ce,{size:`sm`,fw:n?650:500,truncate:!0,children:e.title}),(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,style:{flexShrink:0},children:RR(e.updatedAt)})]})}),(0,N.jsxs)(Mh,{position:`bottom-end`,withinPortal:!0,children:[(0,N.jsx)(Mh.Target,{children:(0,N.jsx)(Zd,{className:`chat-history-actions`,variant:`subtle`,color:`gray`,size:`sm`,mr:6,"aria-label":`Actions for ${e.title}`,children:(0,N.jsx)(QE,{size:18,weight:`bold`})})}),(0,N.jsxs)(Mh.Dropdown,{children:[(0,N.jsx)(Mh.Item,{leftSection:(0,N.jsx)(fD,{size:15}),onClick:()=>E(e),children:`Rename`}),(0,N.jsx)(Mh.Item,{color:`bad`,leftSection:(0,N.jsx)(bD,{size:15}),onClick:()=>{y(``),m(e)},children:`Delete`})]})]})]})},e.threadId)})]},e.label)),C.hasNextPage&&(0,N.jsx)(Oe,{variant:`subtle`,color:`gray`,loading:C.isFetchingNextPage,onClick:()=>void C.fetchNextPage(),children:`Load older`})]})]})]})}),(0,N.jsx)(Jh,{opened:d!==null,onClose:()=>!b&&f(null),title:`Rename investigation`,centered:!0,children:(0,N.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),D()},children:(0,N.jsxs)(Le,{children:[(0,N.jsx)(xe,{label:`Name`,value:g,onChange:e=>_(e.currentTarget.value),maxLength:120,autoFocus:!0}),v&&(0,N.jsx)(_e,{color:`bad`,children:v}),(0,N.jsxs)(ze,{justify:`flex-end`,children:[(0,N.jsx)(Oe,{variant:`default`,onClick:()=>f(null),disabled:b,children:`Cancel`}),(0,N.jsx)(Oe,{type:`submit`,loading:b,disabled:!g.trim(),children:`Save`})]})]})})}),(0,N.jsx)(Jh,{opened:p!==null,onClose:()=>!b&&m(null),title:`Delete investigation?`,centered:!0,children:(0,N.jsxs)(Le,{children:[(0,N.jsxs)(Ce,{size:`sm`,children:[`This permanently removes `,(0,N.jsx)(Ce,{span:!0,fw:650,children:p?.title}),` and its saved conversation.`]}),v&&(0,N.jsx)(_e,{color:`bad`,children:v}),(0,N.jsxs)(ze,{justify:`flex-end`,children:[(0,N.jsx)(Oe,{variant:`default`,onClick:()=>m(null),disabled:b,children:`Cancel`}),(0,N.jsx)(Oe,{color:`bad`,loading:b,onClick:()=>void O(),children:`Delete`})]})]})})]})}function FR(e){return e.includes(`T`)?new Date(e):new Date(`${e.replace(` `,`T`)}Z`)}function IR(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function LR(e){let t=IR(new Date),n=new Map;for(let r of e){let e=Math.floor((t-IR(FR(r.updatedAt)))/864e5),i=e<=0?`Today`:e===1?`Yesterday`:e<=7?`Previous 7 days`:`Older`,a=n.get(i)??[];a.push(r),n.set(i,a)}return[...n].map(([e,t])=>({label:e,threads:t}))}function RR(e){let t=FR(e),n=IR(new Date);return Math.floor((n-IR(t))/864e5)<=1?new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(t):new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`}).format(t)}var zR=[];for(let e=0;e<256;++e)zR.push((e+256).toString(16).slice(1));function BR(e,t=0){return(zR[e[t+0]]+zR[e[t+1]]+zR[e[t+2]]+zR[e[t+3]]+`-`+zR[e[t+4]]+zR[e[t+5]]+`-`+zR[e[t+6]]+zR[e[t+7]]+`-`+zR[e[t+8]]+zR[e[t+9]]+`-`+zR[e[t+10]]+zR[e[t+11]]+zR[e[t+12]]+zR[e[t+13]]+zR[e[t+14]]+zR[e[t+15]]).toLowerCase()}var VR=new Uint8Array(16);function HR(){return crypto.getRandomValues(VR)}var UR={};function WR(e,t,n){let r;if(e)r=KR(e.random??e.rng?.()??HR(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=HR();GR(UR,e,i),r=KR(i,UR.msecs,UR.seq,t,n)}return t??BR(r)}function GR(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=qR(n),e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function KR(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=qR(e),r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}function qR(e){return(e[6]&127)<<24|e[7]<<16|e[8]<<8|e[9]}function JR(){return WR()}var YR=`modulepreload`,XR=function(e){return`/`+e},ZR={},QR=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=XR(t,n),t=s(t),t in ZR)return;ZR[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:YR,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},$R=(0,M.lazy)(()=>QR(()=>import(`./mcp-app-frame-CQHQVWwI.js`),__vite__mapDeps([0,1,2]))),ez=(0,M.createContext)(null);function tz(){let e=(0,M.useContext)(ez);if(!e)throw Error(`Fanout app context is unavailable`);return e}function nz(){let{agent_available:e}=Te(),t=o(),n=SD(),r=va({select:e=>e.location.pathname}),i=r===`/chat`||r===`/chat/`||r.startsWith(`/chat/`),{threadId:a}=Oi({strict:!1}),s=(0,M.useRef)(JR()).current,[c,l]=(0,M.useState)(a??``),u=a??(c||s),[d,f]=(0,M.useState)([]),[p,m]=(0,M.useState)(``),[h,g]=(0,M.useState)(!1),[_,v]=(0,M.useState)(``),[y,b]=(0,M.useState)(``),[x,S]=(0,M.useState)(!1),C=(0,M.useRef)(``),w=(0,M.useRef)(null),T=(0,M.useRef)(null),E=(0,M.useMemo)(()=>new kE({url:`/api/agent`,threadId:u,fetch:(e,t)=>ve(e,t)}),[u]),D=!e||p===u;(0,M.useEffect)(()=>{a&&l(a)},[a]),(0,M.useEffect)(()=>{let t=!0;if(f([]),m(``),g(!1),b(``),!e){m(u);return}ve(`/api/agent/threads/${encodeURIComponent(u)}`).then(async e=>e.status===404?{messages:[]}:e.ok?e.json():Promise.reject(Error(`Unable to load thread (${e.status})`))).then(e=>{t&&(E.setMessages(e.messages??[]),f([...e.messages??[]]),m(u))}).catch(()=>{t&&(C.current=``,b(`This conversation could not be restored. Start a new chat or try again.`))});let r=E.subscribe({onEvent:({messages:e})=>f([...e]),onRunInitialized:()=>{g(!0),b(``)},onRunFinalized:({messages:e})=>{f([...e]),g(!1),n.invalidateQueries({queryKey:MR})},onRunFailed:e=>{console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1),n.invalidateQueries({queryKey:MR})}});return()=>{t=!1,r.unsubscribe(),E.abortRun()}},[E,e,n,u]),(0,M.useEffect)(()=>{w.current?.scrollIntoView({behavior:`smooth`,block:`end`})},[d,h]),(0,M.useEffect)(()=>{if(!e)return;let n=e=>{let n=e.target,r=n?.matches(`input, textarea, [contenteditable='true']`);if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`){e.preventDefault(),S(!0);return}e.key===`/`&&!r&&(e.preventDefault(),t(c?{to:`/chat/$threadId`,params:{threadId:c}}:{to:`/chat`}),requestAnimationFrame(()=>T.current?.focus())),e.key===`Escape`&&n===T.current&&(v(``),T.current?.blur())};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,c,t]);async function O(t){let n=t.trim();if(!e||!n||h||!D)return;let r={id:JR(),role:`user`,content:n};E.addMessage(r),f([...E.messages]),v(``),g(!0),b(``);try{await E.runAgent()}catch(e){console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1)}}(0,M.useEffect)(()=>{let e=C.current;!D||!i||!e||(C.current=``,O(e))},[i,D,u]);function k(e){e.preventDefault(),O(_)}function ee(n){if(!e)return;let r=JR();C.current=n??``,S(!1),t({to:`/chat/$threadId`,params:{threadId:r}})}function te(){E.abortRun(),C.current=``,S(!1),t({to:`/chat`})}function ne(){t(c?{to:`/chat/$threadId`,params:{threadId:c}}:{to:`/chat`})}function re(e){S(!1),t({to:`/chat/$threadId`,params:{threadId:e}})}return(0,N.jsxs)(ez.Provider,{value:{agentAvailable:e,messages:d,ready:D,running:h,input:_,setInput:v,error:y,bottomRef:w,inputRef:T,send:O,submit:k,openChat:ee},children:[e&&(0,N.jsx)(PR,{opened:x,activeThreadID:i?u:void 0,onClose:()=>S(!1),onNewChat:te,onSelect:re,onDeleted:e=>{e===u&&te()}}),(0,N.jsxs)(rm,{header:{height:56},footer:{height:42},padding:0,children:[(0,N.jsx)(rm.Header,{children:(0,N.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,N.jsx)(je,{size:`small`}),(0,N.jsxs)(ze,{gap:`xs`,wrap:`nowrap`,children:[(0,N.jsxs)(ze,{gap:6,mr:4,visibleFrom:`md`,children:[(0,N.jsx)(Be,{w:7,h:7,bg:`ok`,style:{borderRadius:`50%`}}),(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:600,children:`Live`})]}),(e||i)&&(0,N.jsx)(Oe,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:i?(0,N.jsx)(iD,{size:16,weight:`bold`}):(0,N.jsx)(JE,{size:16,weight:`bold`}),onClick:()=>i?void t({to:`/dashboards`}):ne(),children:i?`Dashboard`:`Chat`}),e&&(0,N.jsx)(cg,{label:`Conversation history`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`Conversation history`,onClick:()=>S(!0),children:(0,N.jsx)(XE,{size:17,weight:`bold`})})}),e&&i&&(0,N.jsx)(cg,{label:`New chat`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`New chat`,onClick:te,children:(0,N.jsx)(mD,{size:17,weight:`bold`})})}),(0,N.jsx)(rz,{}),(0,N.jsx)(cg,{label:`Sign out`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`Sign out`,onClick:()=>void se().catch(e=>b(e instanceof Error?e.message:`Sign-out failed — your session is still active.`)),children:(0,N.jsx)(gD,{size:17})})})]})]})}),(0,N.jsxs)(rm.Main,{children:[(0,N.jsx)(ca,{}),e&&i&&(0,N.jsx)(iz,{})]}),(0,N.jsx)(sz,{})]})]})}function rz(){let{setColorScheme:e}=xo(),t=wo(`light`,{getInitialValueInEffect:!0}),n=t===`dark`?`light`:`dark`;return(0,N.jsx)(cg,{label:`Switch to ${n} theme`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`Switch to ${n} theme`,onClick:()=>e(n),children:t===`dark`?(0,N.jsx)(vD,{size:17,weight:`bold`}):(0,N.jsx)(cD,{size:17,weight:`bold`})})})}function iz(){let{input:e,setInput:t,inputRef:n,submit:r,send:i,ready:a,running:o}=tz();return(0,N.jsx)(Be,{pos:`fixed`,bottom:42,left:0,right:0,pb:`md`,pt:`md`,bg:`var(--mantine-color-body)`,style:{zIndex:20},children:(0,N.jsx)(Be,{maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},children:(0,N.jsx)(ee,{component:`form`,onSubmit:r,className:`chat-composer-field`,withBorder:!0,shadow:`sm`,radius:28,py:6,pl:`lg`,pr:6,children:(0,N.jsxs)(ze,{align:`flex-end`,gap:`xs`,wrap:`nowrap`,children:[(0,N.jsx)(qm,{ref:n,"aria-label":`Message Fanout`,value:e,onChange:e=>t(e.currentTarget.value),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),i(e))},placeholder:o?`Fanout is analyzing…`:`Ask about health, errors, or latency…`,disabled:!a||o,autosize:!0,minRows:1,maxRows:6,variant:`unstyled`,flex:1}),(0,N.jsx)(Zd,{type:`submit`,variant:`filled`,size:40,radius:`xl`,disabled:!e.trim()||!a||o,"aria-label":`Send message`,children:(0,N.jsx)(uD,{size:17,weight:`fill`})})]})})})})}function az(){let{agentAvailable:e,messages:t,ready:n,running:r,error:i,bottomRef:a,send:o}=tz();if(!e)return(0,N.jsx)(fe,{size:`sm`,py:96,children:(0,N.jsx)(ee,{withBorder:!0,radius:`xl`,p:{base:`xl`,sm:40},children:(0,N.jsxs)(Le,{gap:`md`,children:[(0,N.jsx)(Ce,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Optional capability`}),(0,N.jsx)(ue,{order:1,children:`Chat is not configured`}),(0,N.jsx)(Ce,{c:`dimmed`,children:`Add an AI provider key to enable investigation chat. Telemetry ingest, dashboards, traces, logs, and metrics remain available without it.`}),(0,N.jsx)(Oe,{component:`a`,href:`/dashboards`,variant:`light`,mt:`sm`,children:`Open dashboards`})]})})});let s=t.filter(e=>e.role!==`tool`);return n?(0,N.jsxs)(fe,{size:1440,px:{base:`md`,sm:`xl`,lg:72},pt:{base:36,sm:64},pb:190,children:[s.length===0&&(0,N.jsx)(oz,{onSelect:o}),(0,N.jsxs)(Le,{gap:`xl`,"aria-live":`polite`,children:[s.map(e=>(0,N.jsx)(cz,{message:e,send:o},e.id)),r&&(0,N.jsxs)(ze,{gap:`xs`,children:[(0,N.jsx)(le,{type:`dots`,size:`sm`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`sm`,children:`Analyzing your system`})]}),i&&(0,N.jsx)(_e,{color:`bad`,title:`Something went wrong`,children:i}),(0,N.jsx)(`div`,{ref:a})]})]}):(0,N.jsxs)(me,{mih:`50vh`,children:[(0,N.jsx)(le,{size:`sm`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`sm`,ml:`sm`,children:`Loading conversation`})]})}function oz({onSelect:e}){return(0,N.jsxs)(Le,{align:`center`,gap:`lg`,maw:780,mx:`auto`,mb:56,ta:`center`,children:[(0,N.jsx)(je,{size:`large`}),(0,N.jsx)(Ce,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.14em`,children:`Your system, understood`}),(0,N.jsxs)(ue,{order:1,fz:{base:40,sm:56},lh:1.05,lts:`-0.045em`,children:[`See what changed.`,(0,N.jsx)(`br`,{}),`Know what to do next.`]}),(0,N.jsx)(Ce,{c:`dimmed`,maw:620,children:`Ask about service health, latency, errors, or dependencies. Fanout turns live signals into clear answers and focused views.`}),(0,N.jsx)(_g,{cols:{base:1,sm:3},spacing:`sm`,w:`100%`,mt:`md`,children:[`Summarize system health for the last hour`,`Find the source of elevated errors`,`Map the current service dependencies`].map((t,n)=>(0,N.jsx)(h,{onClick:()=>void e(t),children:(0,N.jsx)(ee,{withBorder:!0,radius:`lg`,p:`md`,mih:{base:74,sm:120},h:`100%`,children:(0,N.jsxs)(Le,{justify:`space-between`,h:`100%`,gap:`md`,children:[(0,N.jsxs)(Ce,{c:`dimmed`,size:`xs`,fw:700,children:[`0`,n+1]}),(0,N.jsxs)(ze,{justify:`space-between`,wrap:`nowrap`,children:[(0,N.jsx)(Ce,{size:`sm`,fw:500,children:t}),(0,N.jsx)(KE,{size:17,weight:`bold`})]})]})})},t))})]})}function sz(){return(0,N.jsx)(rm.Footer,{children:(0,N.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,N.jsxs)(Ce,{c:`dimmed`,size:`xs`,children:[`© 2026 Fanout by `,(0,N.jsx)(Ce,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,inherit:!0,fw:600,c:`var(--mantine-color-text)`,children:`LabStack`})]}),(0,N.jsxs)(ze,{gap:4,children:[(0,N.jsx)(cg,{label:`GitHub`,children:(0,N.jsx)(Zd,{component:`a`,href:`https://github.com/labstack/fanout`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`Fanout on GitHub`,children:(0,N.jsx)(eD,{size:14,weight:`bold`})})}),(0,N.jsx)(cg,{label:`LabStack`,children:(0,N.jsx)(Zd,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`LabStack website`,children:(0,N.jsx)(nD,{size:14})})})]})]})})}function cz({message:e,send:t}){if(e.role===`activity`){let n=e;return n.activityType===`mcp-app`?(0,N.jsx)(ee,{radius:`lg`,shadow:`md`,style:{overflow:`hidden`},"aria-label":lz(n.content.toolName),children:(0,N.jsx)(M.Suspense,{fallback:(0,N.jsx)(me,{mih:180,children:(0,N.jsx)(le,{size:`sm`})}),children:(0,N.jsx)($R,{content:n.content,onMessage:t})})}):null}let n=typeof e.content==`string`?e.content:JSON.stringify(e.content);if(!n&&e.role===`assistant`)return null;let r=e.role===`user`;return(0,N.jsxs)(Le,{gap:`xs`,align:r?`flex-end`:`stretch`,maw:r?`min(92%, 650px)`:780,ml:r?`auto`:void 0,children:[(0,N.jsxs)(ze,{gap:`xs`,justify:r?`flex-end`:`flex-start`,children:[(0,N.jsx)(hm,{size:22,radius:`sm`,color:r?`gray`:`brand`,children:r?`Y`:`F`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,children:r?`You`:`Fanout`})]}),r?(0,N.jsx)(ee,{withBorder:!0,radius:`lg`,p:`sm`,bg:`var(--mantine-color-brand-light)`,children:(0,N.jsx)(Ce,{style:{whiteSpace:`pre-wrap`},children:n})}):(0,N.jsx)(yg,{children:(0,N.jsx)(DF,{remarkPlugins:[jR],children:n})})]})}function lz(e){return{observability_overview:`System health`,service_topology:`Service map`,service_performance:`Performance`,trace_detail:`Trace analysis`,search_logs:`Logs`}[e]??`System analysis`}function uz(){let e=(0,M.useMemo)(()=>new MO,[]);return(0,N.jsx)(CD,{client:e,children:(0,N.jsx)(Fe,{children:(0,N.jsx)(nz,{})})})}var dz=Yi({component:uz,notFoundComponent:()=>(0,N.jsx)(d,{to:`/`,replace:!0})}),fz=Xi(`/`)({component:Zi(()=>QR(()=>import(`./routes-BQrzb4p9.js`),__vite__mapDeps([3,1,2])),`component`)}),pz=Xi(`/chat/`)({component:Zi(()=>QR(()=>import(`./chat.index-D5MirYTs.js`),__vite__mapDeps([4,1])),`component`)}),mz=Xi(`/chat/$threadId`)({component:Zi(()=>QR(()=>import(`./chat._threadId-C-lVUJMf.js`),[]),`component`)}),hz=Xi(`/dashboards/`)({component:Zi(()=>QR(()=>import(`./dashboards.index-CDH5svxO.js`),__vite__mapDeps([5,1,6,2])),`component`)}),gz=Xi(`/dashboards/$dashboardId`)({component:Zi(()=>QR(()=>import(`./dashboards._dashboardId-DA7AwZcJ.js`),__vite__mapDeps([7,1,6,2])),`component`)}),_z=fz.update({id:`/`,path:`/`,getParentRoute:()=>dz}),vz=pz.update({id:`/chat/`,path:`/chat/`,getParentRoute:()=>dz}),yz=mz.update({id:`/chat/$threadId`,path:`/chat/$threadId`,getParentRoute:()=>dz}),bz=hz.update({id:`/dashboards/`,path:`/dashboards/`,getParentRoute:()=>dz}),xz={IndexRoute:_z,ChatThreadIdRoute:yz,DashboardsDashboardIdRoute:gz.update({id:`/dashboards/$dashboardId`,path:`/dashboards/$dashboardId`,getParentRoute:()=>dz}),ChatIndexRoute:vz,DashboardsIndexRoute:bz},Sz=ma({routeTree:dz._addFileChildren(xz)._addFileTypes(),defaultPreload:`intent`,scrollRestoration:!0}),Cz=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],wz=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],Tz=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],Ez=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],Dz=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],Oz=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],kz={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},Az={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:Cz,brand:wz,ok:Tz,warn:Ez,bad:Dz,info:Oz},defaultRadius:`md`,fontFamily:kz.body,fontFamilyMonospace:kz.display,headings:{fontFamily:kz.display,fontWeight:`500`},cursorType:`pointer`},jz=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),Mz=Ro(Az);(0,mv.createRoot)(document.getElementById(`root`)).render((0,N.jsx)(M.StrictMode,{children:(0,N.jsx)(Lo,{theme:Mz,defaultColorScheme:`auto`,cssVariablesResolver:jz,children:(0,N.jsx)(_a,{router:Sz})})}));export{ro as A,Ud as C,mo as D,_o as E,xa as M,po as O,Zd as S,wo as T,_g as _,WO as a,ym as b,iO as c,OD as d,BD as f,KE as g,mD as h,JR as i,Sa as j,io as k,eO as l,SD as m,az as n,OO as o,XD as p,tz as r,bO as s,gz as t,ID as u,cg as v,id as w,im as x,Mh as y}; \ No newline at end of file +`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return SI(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var oR={tokenize:mR,partial:!0};function sR(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:dR,continuation:{tokenize:fR},exit:pR}},text:{91:{name:`gfmFootnoteCall`,tokenize:uR},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:cR,resolveTo:lR}}}}function cR(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=RA(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function lR(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function uR(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||KA(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(RA(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return KA(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function dR(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||KA(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=RA(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return KA(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),QA(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function fR(e,t,n){return e.check(pj,t,e.attempt(oR,t,n))}function pR(e){e.exit(`gfmFootnoteDefinition`)}function mR(e,t,n){let r=this;return QA(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function hR(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=aj(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var gR=class{constructor(){this.map=[]}add(e,t,n){_R(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function _R(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):$(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):qA(t)?QA(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||KA(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,qA(t)?QA(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return qA(t)?QA(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||$(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return qA(t)?QA(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||$(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||$(n)?(e.exit(`tableRow`),t(n)):qA(n)?QA(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||KA(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function xR(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new gR;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},wR(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function CR(e,t,n,r,i){let a=[],o=wR(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function wR(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var TR={name:`tasklistCheck`,tokenize:DR};function ER(){return{text:{91:TR}}}function DR(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return KA(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return $(r)?t(r):qA(r)?e.check({tokenize:OR},t,n)(r):n(r)}}function OR(e,t,n){return QA(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function kR(e){return PA([GL(),sR(),hR(e),yR(),ER()])}var AR={};function jR(e){let t=this,n=e||AR,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(kR(n)),a.push(PL()),o.push(FL(n))}var MR=[`agent-threads`];async function NR(e,t){let n=new URLSearchParams({limit:`30`});e&&n.set(`q`,e),t&&n.set(`cursor`,t);let r=await ve(`/api/agent/threads?${n}`);if(!r.ok)throw Error(`Unable to load conversations (${r.status})`);return r.json()}function PR({opened:e,activeThreadID:t,onClose:n,onNewChat:r,onSelect:i,onDeleted:a}){let o=Me(`(max-width: 48em)`),s=SD(),[c,l]=(0,M.useState)(``),[u]=Ha(c.trim(),250),[d,f]=(0,M.useState)(null),[p,m]=(0,M.useState)(null),[g,_]=(0,M.useState)(``),[v,y]=(0,M.useState)(``),[b,x]=(0,M.useState)(!1),S=(0,M.useRef)(null),C=GO({queryKey:[...MR,u],queryFn:({pageParam:e})=>NR(u,e),initialPageParam:``,getNextPageParam:e=>e.nextCursor||void 0,enabled:e}),w=(0,M.useMemo)(()=>C.data?.pages.flatMap(e=>e.threads)??[],[C.data]),T=(0,M.useMemo)(()=>LR(w),[w]);(0,M.useEffect)(()=>{e&&requestAnimationFrame(()=>S.current?.focus())},[e]);function E(e){y(``),_(e.title),f(e)}async function D(){if(!(!d||!g.trim())){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(d.threadId)}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({title:g.trim()})});if(!e.ok)throw Error(`Unable to rename conversation (${e.status})`);await s.invalidateQueries({queryKey:MR}),f(null)}catch(e){y(e instanceof Error?e.message:`Unable to rename this conversation.`)}finally{x(!1)}}}async function O(){if(p){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(p.threadId)}`,{method:`DELETE`});if(!e.ok)throw Error(`Unable to delete conversation (${e.status})`);let t=p.threadId;m(null),await s.invalidateQueries({queryKey:MR}),a(t)}catch(e){y(e instanceof Error?e.message:`Unable to delete this conversation.`)}finally{x(!1)}}}return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(zm,{opened:e,onClose:n,position:`left`,size:o?`100%`:372,title:(0,N.jsx)(Ce,{fw:700,children:`Investigations`}),padding:`md`,overlayProps:{backgroundOpacity:.24,blur:1},children:(0,N.jsxs)(Le,{gap:`sm`,h:`calc(100dvh - 86px)`,children:[(0,N.jsx)(Oe,{leftSection:(0,N.jsx)(mD,{size:17,weight:`bold`}),onClick:r,children:`New investigation`}),(0,N.jsx)(xe,{ref:S,value:c,onChange:e=>l(e.currentTarget.value),leftSection:(0,N.jsx)(oD,{size:16}),placeholder:`Search investigations`,"aria-label":`Search investigations`}),(0,N.jsx)(ym,{}),(0,N.jsxs)(id,{type:`auto`,offsetScrollbars:!0,flex:1,children:[C.isLoading&&(0,N.jsx)(me,{py:`xl`,children:(0,N.jsx)(le,{size:`sm`})}),C.isError&&(0,N.jsx)(_e,{color:`bad`,title:`History unavailable`,children:`Your conversations could not be loaded.`}),!C.isLoading&&!C.isError&&w.length===0&&(0,N.jsxs)(Be,{py:`xl`,px:`sm`,ta:`center`,children:[(0,N.jsx)(Ce,{fw:600,children:u?`No matching investigations`:`No investigations yet`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`sm`,mt:4,children:u?`Try words from the opening question.`:`Your completed investigations will appear here.`})]}),(0,N.jsxs)(Le,{gap:`lg`,pb:`md`,children:[T.map(e=>(0,N.jsxs)(Le,{gap:4,children:[(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,px:`sm`,children:e.label}),e.threads.map(e=>{let n=e.threadId===t;return(0,N.jsx)(Be,{"data-active":n||void 0,className:`chat-history-item`,children:(0,N.jsxs)(ze,{gap:2,wrap:`nowrap`,children:[(0,N.jsx)(h,{onClick:()=>i(e.threadId),"aria-current":n?`page`:void 0,p:`sm`,flex:1,style:{minWidth:0},children:(0,N.jsxs)(ze,{justify:`space-between`,gap:`sm`,wrap:`nowrap`,children:[(0,N.jsx)(Ce,{size:`sm`,fw:n?650:500,truncate:!0,children:e.title}),(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,style:{flexShrink:0},children:RR(e.updatedAt)})]})}),(0,N.jsxs)(Mh,{position:`bottom-end`,withinPortal:!0,children:[(0,N.jsx)(Mh.Target,{children:(0,N.jsx)(Zd,{className:`chat-history-actions`,variant:`subtle`,color:`gray`,size:`sm`,mr:6,"aria-label":`Actions for ${e.title}`,children:(0,N.jsx)(QE,{size:18,weight:`bold`})})}),(0,N.jsxs)(Mh.Dropdown,{children:[(0,N.jsx)(Mh.Item,{leftSection:(0,N.jsx)(fD,{size:15}),onClick:()=>E(e),children:`Rename`}),(0,N.jsx)(Mh.Item,{color:`bad`,leftSection:(0,N.jsx)(bD,{size:15}),onClick:()=>{y(``),m(e)},children:`Delete`})]})]})]})},e.threadId)})]},e.label)),C.hasNextPage&&(0,N.jsx)(Oe,{variant:`subtle`,color:`gray`,loading:C.isFetchingNextPage,onClick:()=>void C.fetchNextPage(),children:`Load older`})]})]})]})}),(0,N.jsx)(Jh,{opened:d!==null,onClose:()=>!b&&f(null),title:`Rename investigation`,centered:!0,children:(0,N.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),D()},children:(0,N.jsxs)(Le,{children:[(0,N.jsx)(xe,{label:`Name`,value:g,onChange:e=>_(e.currentTarget.value),maxLength:120,autoFocus:!0}),v&&(0,N.jsx)(_e,{color:`bad`,children:v}),(0,N.jsxs)(ze,{justify:`flex-end`,children:[(0,N.jsx)(Oe,{variant:`default`,onClick:()=>f(null),disabled:b,children:`Cancel`}),(0,N.jsx)(Oe,{type:`submit`,loading:b,disabled:!g.trim(),children:`Save`})]})]})})}),(0,N.jsx)(Jh,{opened:p!==null,onClose:()=>!b&&m(null),title:`Delete investigation?`,centered:!0,children:(0,N.jsxs)(Le,{children:[(0,N.jsxs)(Ce,{size:`sm`,children:[`This permanently removes `,(0,N.jsx)(Ce,{span:!0,fw:650,children:p?.title}),` and its saved conversation.`]}),v&&(0,N.jsx)(_e,{color:`bad`,children:v}),(0,N.jsxs)(ze,{justify:`flex-end`,children:[(0,N.jsx)(Oe,{variant:`default`,onClick:()=>m(null),disabled:b,children:`Cancel`}),(0,N.jsx)(Oe,{color:`bad`,loading:b,onClick:()=>void O(),children:`Delete`})]})]})})]})}function FR(e){return e.includes(`T`)?new Date(e):new Date(`${e.replace(` `,`T`)}Z`)}function IR(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function LR(e){let t=IR(new Date),n=new Map;for(let r of e){let e=Math.floor((t-IR(FR(r.updatedAt)))/864e5),i=e<=0?`Today`:e===1?`Yesterday`:e<=7?`Previous 7 days`:`Older`,a=n.get(i)??[];a.push(r),n.set(i,a)}return[...n].map(([e,t])=>({label:e,threads:t}))}function RR(e){let t=FR(e),n=IR(new Date);return Math.floor((n-IR(t))/864e5)<=1?new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(t):new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`}).format(t)}var zR=[];for(let e=0;e<256;++e)zR.push((e+256).toString(16).slice(1));function BR(e,t=0){return(zR[e[t+0]]+zR[e[t+1]]+zR[e[t+2]]+zR[e[t+3]]+`-`+zR[e[t+4]]+zR[e[t+5]]+`-`+zR[e[t+6]]+zR[e[t+7]]+`-`+zR[e[t+8]]+zR[e[t+9]]+`-`+zR[e[t+10]]+zR[e[t+11]]+zR[e[t+12]]+zR[e[t+13]]+zR[e[t+14]]+zR[e[t+15]]).toLowerCase()}var VR=new Uint8Array(16);function HR(){return crypto.getRandomValues(VR)}var UR={};function WR(e,t,n){let r;if(e)r=KR(e.random??e.rng?.()??HR(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=HR();GR(UR,e,i),r=KR(i,UR.msecs,UR.seq,t,n)}return t??BR(r)}function GR(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=qR(n),e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function KR(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=qR(e),r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}function qR(e){return(e[6]&127)<<24|e[7]<<16|e[8]<<8|e[9]}function JR(){return WR()}var YR=`modulepreload`,XR=function(e){return`/`+e},ZR={},QR=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=XR(t,n),t=s(t),t in ZR)return;ZR[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:YR,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},$R=(0,M.lazy)(()=>QR(()=>import(`./mcp-app-frame-DUBLTjXl.js`),__vite__mapDeps([0,1,2]))),ez=(0,M.createContext)(null);function tz(){let e=(0,M.useContext)(ez);if(!e)throw Error(`Fanout app context is unavailable`);return e}function nz(){let{agent_available:e}=Te(),t=o(),n=SD(),r=va({select:e=>e.location.pathname}),i=r===`/chat`||r===`/chat/`||r.startsWith(`/chat/`),{threadId:a}=Oi({strict:!1}),s=(0,M.useRef)(JR()).current,[c,l]=(0,M.useState)(a??``),u=a??(c||s),[d,f]=(0,M.useState)([]),[p,m]=(0,M.useState)(``),[h,g]=(0,M.useState)(!1),[_,v]=(0,M.useState)(``),[y,b]=(0,M.useState)(``),[x,S]=(0,M.useState)(!1),C=(0,M.useRef)(``),w=(0,M.useRef)(null),T=(0,M.useRef)(null),E=(0,M.useMemo)(()=>new kE({url:`/api/agent`,threadId:u,fetch:(e,t)=>ve(e,t)}),[u]),D=!e||p===u;(0,M.useEffect)(()=>{a&&l(a)},[a]),(0,M.useEffect)(()=>{let t=!0;if(f([]),m(``),g(!1),b(``),!e){m(u);return}ve(`/api/agent/threads/${encodeURIComponent(u)}`).then(async e=>e.status===404?{messages:[]}:e.ok?e.json():Promise.reject(Error(`Unable to load thread (${e.status})`))).then(e=>{t&&(E.setMessages(e.messages??[]),f([...e.messages??[]]),m(u))}).catch(()=>{t&&(C.current=``,b(`This conversation could not be restored. Start a new chat or try again.`))});let r=E.subscribe({onEvent:({messages:e})=>f([...e]),onRunInitialized:()=>{g(!0),b(``)},onRunFinalized:({messages:e})=>{f([...e]),g(!1),n.invalidateQueries({queryKey:MR})},onRunFailed:e=>{console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1),n.invalidateQueries({queryKey:MR})}});return()=>{t=!1,r.unsubscribe(),E.abortRun()}},[E,e,n,u]),(0,M.useEffect)(()=>{w.current?.scrollIntoView({behavior:`smooth`,block:`end`})},[d,h]),(0,M.useEffect)(()=>{if(!e)return;let n=e=>{let n=e.target,r=n?.matches(`input, textarea, [contenteditable='true']`);if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`){e.preventDefault(),S(!0);return}e.key===`/`&&!r&&(e.preventDefault(),t(c?{to:`/chat/$threadId`,params:{threadId:c}}:{to:`/chat`}),requestAnimationFrame(()=>T.current?.focus())),e.key===`Escape`&&n===T.current&&(v(``),T.current?.blur())};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,c,t]);async function O(t){let n=t.trim();if(!e||!n||h||!D)return;let r={id:JR(),role:`user`,content:n};E.addMessage(r),f([...E.messages]),v(``),g(!0),b(``);try{await E.runAgent()}catch(e){console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1)}}(0,M.useEffect)(()=>{let e=C.current;!D||!i||!e||(C.current=``,O(e))},[i,D,u]);function k(e){e.preventDefault(),O(_)}function ee(n){if(!e)return;let r=JR();C.current=n??``,S(!1),t({to:`/chat/$threadId`,params:{threadId:r}})}function te(){E.abortRun(),C.current=``,S(!1),t({to:`/chat`})}function ne(){t(c?{to:`/chat/$threadId`,params:{threadId:c}}:{to:`/chat`})}function re(e){S(!1),t({to:`/chat/$threadId`,params:{threadId:e}})}return(0,N.jsxs)(ez.Provider,{value:{agentAvailable:e,messages:d,ready:D,running:h,input:_,setInput:v,error:y,bottomRef:w,inputRef:T,send:O,submit:k,openChat:ee},children:[e&&(0,N.jsx)(PR,{opened:x,activeThreadID:i?u:void 0,onClose:()=>S(!1),onNewChat:te,onSelect:re,onDeleted:e=>{e===u&&te()}}),(0,N.jsxs)(rm,{header:{height:56},footer:{height:42},padding:0,children:[(0,N.jsx)(rm.Header,{children:(0,N.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,N.jsx)(je,{size:`small`}),(0,N.jsxs)(ze,{gap:`xs`,wrap:`nowrap`,children:[(0,N.jsxs)(ze,{gap:6,mr:4,visibleFrom:`md`,children:[(0,N.jsx)(Be,{w:7,h:7,bg:`ok`,style:{borderRadius:`50%`}}),(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:600,children:`Live`})]}),(e||i)&&(0,N.jsx)(Oe,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:i?(0,N.jsx)(iD,{size:16,weight:`bold`}):(0,N.jsx)(JE,{size:16,weight:`bold`}),onClick:()=>i?void t({to:`/dashboards`}):ne(),children:i?`Dashboard`:`Chat`}),e&&(0,N.jsx)(cg,{label:`Conversation history`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`Conversation history`,onClick:()=>S(!0),children:(0,N.jsx)(XE,{size:17,weight:`bold`})})}),e&&i&&(0,N.jsx)(cg,{label:`New chat`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`New chat`,onClick:te,children:(0,N.jsx)(mD,{size:17,weight:`bold`})})}),(0,N.jsx)(rz,{}),(0,N.jsx)(cg,{label:`Sign out`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`Sign out`,onClick:()=>void se().catch(e=>b(e instanceof Error?e.message:`Sign-out failed — your session is still active.`)),children:(0,N.jsx)(gD,{size:17})})})]})]})}),(0,N.jsxs)(rm.Main,{children:[(0,N.jsx)(ca,{}),e&&i&&(0,N.jsx)(iz,{})]}),(0,N.jsx)(sz,{})]})]})}function rz(){let{setColorScheme:e}=xo(),t=wo(`light`,{getInitialValueInEffect:!0}),n=t===`dark`?`light`:`dark`;return(0,N.jsx)(cg,{label:`Switch to ${n} theme`,children:(0,N.jsx)(Zd,{variant:`subtle`,color:`gray`,"aria-label":`Switch to ${n} theme`,onClick:()=>e(n),children:t===`dark`?(0,N.jsx)(vD,{size:17,weight:`bold`}):(0,N.jsx)(cD,{size:17,weight:`bold`})})})}function iz(){let{input:e,setInput:t,inputRef:n,submit:r,send:i,ready:a,running:o}=tz();return(0,N.jsx)(Be,{pos:`fixed`,bottom:42,left:0,right:0,pb:`md`,pt:`md`,bg:`var(--mantine-color-body)`,style:{zIndex:20},children:(0,N.jsx)(Be,{maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},children:(0,N.jsx)(ee,{component:`form`,onSubmit:r,className:`chat-composer-field`,withBorder:!0,shadow:`sm`,radius:28,py:6,pl:`lg`,pr:6,children:(0,N.jsxs)(ze,{align:`flex-end`,gap:`xs`,wrap:`nowrap`,children:[(0,N.jsx)(qm,{ref:n,"aria-label":`Message Fanout`,value:e,onChange:e=>t(e.currentTarget.value),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),i(e))},placeholder:o?`Fanout is analyzing…`:`Ask about health, errors, or latency…`,disabled:!a||o,autosize:!0,minRows:1,maxRows:6,variant:`unstyled`,flex:1}),(0,N.jsx)(Zd,{type:`submit`,variant:`filled`,size:40,radius:`xl`,disabled:!e.trim()||!a||o,"aria-label":`Send message`,children:(0,N.jsx)(uD,{size:17,weight:`fill`})})]})})})})}function az(){let{agentAvailable:e,messages:t,ready:n,running:r,error:i,bottomRef:a,send:o}=tz();if(!e)return(0,N.jsx)(fe,{size:`sm`,py:96,children:(0,N.jsx)(ee,{withBorder:!0,radius:`xl`,p:{base:`xl`,sm:40},children:(0,N.jsxs)(Le,{gap:`md`,children:[(0,N.jsx)(Ce,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Optional capability`}),(0,N.jsx)(ue,{order:1,children:`Chat is not configured`}),(0,N.jsx)(Ce,{c:`dimmed`,children:`Add an AI provider key to enable investigation chat. Telemetry ingest, dashboards, traces, logs, and metrics remain available without it.`}),(0,N.jsx)(Oe,{component:`a`,href:`/dashboards`,variant:`light`,mt:`sm`,children:`Open dashboards`})]})})});let s=t.filter(e=>e.role!==`tool`);return n?(0,N.jsxs)(fe,{size:1440,px:{base:`md`,sm:`xl`,lg:72},pt:{base:36,sm:64},pb:190,children:[s.length===0&&(0,N.jsx)(oz,{onSelect:o}),(0,N.jsxs)(Le,{gap:`xl`,"aria-live":`polite`,children:[s.map(e=>(0,N.jsx)(cz,{message:e,send:o},e.id)),r&&(0,N.jsxs)(ze,{gap:`xs`,children:[(0,N.jsx)(le,{type:`dots`,size:`sm`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`sm`,children:`Analyzing your system`})]}),i&&(0,N.jsx)(_e,{color:`bad`,title:`Something went wrong`,children:i}),(0,N.jsx)(`div`,{ref:a})]})]}):(0,N.jsxs)(me,{mih:`50vh`,children:[(0,N.jsx)(le,{size:`sm`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`sm`,ml:`sm`,children:`Loading conversation`})]})}function oz({onSelect:e}){return(0,N.jsxs)(Le,{align:`center`,gap:`lg`,maw:780,mx:`auto`,mb:56,ta:`center`,children:[(0,N.jsx)(je,{size:`large`}),(0,N.jsx)(Ce,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.14em`,children:`Your system, understood`}),(0,N.jsxs)(ue,{order:1,fz:{base:40,sm:56},lh:1.05,lts:`-0.045em`,children:[`See what changed.`,(0,N.jsx)(`br`,{}),`Know what to do next.`]}),(0,N.jsx)(Ce,{c:`dimmed`,maw:620,children:`Ask about service health, latency, errors, or dependencies. Fanout turns live signals into clear answers and focused views.`}),(0,N.jsx)(_g,{cols:{base:1,sm:3},spacing:`sm`,w:`100%`,mt:`md`,children:[`Summarize system health for the last hour`,`Find the source of elevated errors`,`Map the current service dependencies`].map((t,n)=>(0,N.jsx)(h,{onClick:()=>void e(t),children:(0,N.jsx)(ee,{withBorder:!0,radius:`lg`,p:`md`,mih:{base:74,sm:120},h:`100%`,children:(0,N.jsxs)(Le,{justify:`space-between`,h:`100%`,gap:`md`,children:[(0,N.jsxs)(Ce,{c:`dimmed`,size:`xs`,fw:700,children:[`0`,n+1]}),(0,N.jsxs)(ze,{justify:`space-between`,wrap:`nowrap`,children:[(0,N.jsx)(Ce,{size:`sm`,fw:500,children:t}),(0,N.jsx)(KE,{size:17,weight:`bold`})]})]})})},t))})]})}function sz(){return(0,N.jsx)(rm.Footer,{children:(0,N.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,N.jsxs)(Ce,{c:`dimmed`,size:`xs`,children:[`© 2026 Fanout by `,(0,N.jsx)(Ce,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,inherit:!0,fw:600,c:`var(--mantine-color-text)`,children:`LabStack`})]}),(0,N.jsxs)(ze,{gap:4,children:[(0,N.jsx)(cg,{label:`GitHub`,children:(0,N.jsx)(Zd,{component:`a`,href:`https://github.com/labstack/fanout`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`Fanout on GitHub`,children:(0,N.jsx)(eD,{size:14,weight:`bold`})})}),(0,N.jsx)(cg,{label:`LabStack`,children:(0,N.jsx)(Zd,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`LabStack website`,children:(0,N.jsx)(nD,{size:14})})})]})]})})}function cz({message:e,send:t}){if(e.role===`activity`){let n=e;return n.activityType===`mcp-app`?(0,N.jsx)(ee,{radius:`lg`,shadow:`md`,style:{overflow:`hidden`},"aria-label":lz(n.content.toolName),children:(0,N.jsx)(M.Suspense,{fallback:(0,N.jsx)(me,{mih:180,children:(0,N.jsx)(le,{size:`sm`})}),children:(0,N.jsx)($R,{content:n.content,onMessage:t})})}):null}let n=typeof e.content==`string`?e.content:JSON.stringify(e.content);if(!n&&e.role===`assistant`)return null;let r=e.role===`user`;return(0,N.jsxs)(Le,{gap:`xs`,align:r?`flex-end`:`stretch`,maw:r?`min(92%, 650px)`:780,ml:r?`auto`:void 0,children:[(0,N.jsxs)(ze,{gap:`xs`,justify:r?`flex-end`:`flex-start`,children:[(0,N.jsx)(hm,{size:22,radius:`sm`,color:r?`gray`:`brand`,children:r?`Y`:`F`}),(0,N.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,children:r?`You`:`Fanout`})]}),r?(0,N.jsx)(ee,{withBorder:!0,radius:`lg`,p:`sm`,bg:`var(--mantine-color-brand-light)`,children:(0,N.jsx)(Ce,{style:{whiteSpace:`pre-wrap`},children:n})}):(0,N.jsx)(yg,{children:(0,N.jsx)(DF,{remarkPlugins:[jR],children:n})})]})}function lz(e){return{observability_overview:`System health`,service_topology:`Service map`,service_performance:`Performance`,trace_detail:`Trace analysis`,search_logs:`Logs`}[e]??`System analysis`}function uz(){let e=(0,M.useMemo)(()=>new MO,[]);return(0,N.jsx)(CD,{client:e,children:(0,N.jsx)(Fe,{children:(0,N.jsx)(nz,{})})})}var dz=Yi({component:uz,notFoundComponent:()=>(0,N.jsx)(d,{to:`/`,replace:!0})}),fz=Xi(`/`)({component:Zi(()=>QR(()=>import(`./routes-BQrzb4p9.js`),__vite__mapDeps([3,1,2])),`component`)}),pz=Xi(`/chat/`)({component:Zi(()=>QR(()=>import(`./chat.index-9CJIOrfA.js`),__vite__mapDeps([4,1])),`component`)}),mz=Xi(`/chat/$threadId`)({component:Zi(()=>QR(()=>import(`./chat._threadId-DuBrYsq9.js`),[]),`component`)}),hz=Xi(`/dashboards/`)({component:Zi(()=>QR(()=>import(`./dashboards.index-Dxwz9Ppx.js`),__vite__mapDeps([5,1,6,2])),`component`)}),gz=Xi(`/dashboards/$dashboardId`)({component:Zi(()=>QR(()=>import(`./dashboards._dashboardId-BKkqXjF1.js`),__vite__mapDeps([7,1,6,2])),`component`)}),_z=fz.update({id:`/`,path:`/`,getParentRoute:()=>dz}),vz=pz.update({id:`/chat/`,path:`/chat/`,getParentRoute:()=>dz}),yz=mz.update({id:`/chat/$threadId`,path:`/chat/$threadId`,getParentRoute:()=>dz}),bz=hz.update({id:`/dashboards/`,path:`/dashboards/`,getParentRoute:()=>dz}),xz={IndexRoute:_z,ChatThreadIdRoute:yz,DashboardsDashboardIdRoute:gz.update({id:`/dashboards/$dashboardId`,path:`/dashboards/$dashboardId`,getParentRoute:()=>dz}),ChatIndexRoute:vz,DashboardsIndexRoute:bz},Sz=ma({routeTree:dz._addFileChildren(xz)._addFileTypes(),defaultPreload:`intent`,scrollRestoration:!0}),Cz=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],wz=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],Tz=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],Ez=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],Dz=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],Oz=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],kz={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},Az={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:Cz,brand:wz,ok:Tz,warn:Ez,bad:Dz,info:Oz},defaultRadius:`md`,fontFamily:kz.body,fontFamilyMonospace:kz.display,headings:{fontFamily:kz.display,fontWeight:`500`},cursorType:`pointer`},jz=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),Mz=Ro(Az);(0,mv.createRoot)(document.getElementById(`root`)).render((0,N.jsx)(M.StrictMode,{children:(0,N.jsx)(Lo,{theme:Mz,defaultColorScheme:`auto`,cssVariablesResolver:jz,children:(0,N.jsx)(_a,{router:Sz})})}));export{ro as A,Ud as C,mo as D,_o as E,xa as M,po as O,Zd as S,wo as T,_g as _,WO as a,ym as b,iO as c,OD as d,BD as f,KE as g,mD as h,JR as i,Sa as j,io as k,eO as l,SD as m,az as n,OO as o,XD as p,tz as r,bO as s,gz as t,ID as u,cg as v,id as w,im as x,Mh as y}; \ No newline at end of file diff --git a/internal/ui/dist/assets/mcp-app-frame-CQHQVWwI.js b/internal/ui/dist/assets/mcp-app-frame-DUBLTjXl.js similarity index 99% rename from internal/ui/dist/assets/mcp-app-frame-CQHQVWwI.js rename to internal/ui/dist/assets/mcp-app-frame-DUBLTjXl.js index 4b40e04fc..35168b410 100644 --- a/internal/ui/dist/assets/mcp-app-frame-CQHQVWwI.js +++ b/internal/ui/dist/assets/mcp-app-frame-DUBLTjXl.js @@ -1,4 +1,4 @@ -import{a as e,d as t,f as n,g as r,h as i,m as a,p as o,u as s}from"./useNavigate-BEpS2iE5.js";import{b as c,f as l,h as u,i as d,m as f,w as p}from"./auth-TmbGk91l.js";import{T as m}from"./index-EuE6NBIL.js";var h,g=Object.freeze({status:`aborted`});function _(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var v=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},y=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(h=globalThis).__zod_globalConfig??(h.__zod_globalConfig={});var b=globalThis.__zod_globalConfig;function x(e){return e&&Object.assign(b,e),b}function S(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function C(e,t){return typeof t==`bigint`?t.toString():t}function ee(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function te(e){return e==null}function ne(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function re(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function ue(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var de=ee(()=>{if(b.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function fe(e){if(ue(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ue(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function pe(e){return fe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var me=new Set([`string`,`number`,`symbol`]);function he(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ge(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function _e(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var ve={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ye(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ge(e,oe(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ae(this,`shape`,e),e},checks:[]}))}function be(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ge(e,oe(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ae(this,`shape`,r),r},checks:[]}))}function xe(e,t){if(!fe(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ae(this,`shape`,n),n}}))}function Se(e,t){if(!fe(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ae(this,`shape`,n),n}}))}function Ce(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ae(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function we(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ge(t,oe(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ae(this,`shape`,i),i},checks:[]}))}function Te(e,t,n){return ge(t,oe(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ae(this,`shape`,i),i}}))}function Ee(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ke(e){return typeof e==`string`?e:e?.message}function Ae(e,t,n){let r=e.message?e.message:ke(e.inst?._zod.def?.error?.(e))??ke(t?.error?.(e))??ke(n.customError?.(e))??ke(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function je(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Me(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ne=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,C,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pe=_(`$ZodError`,Ne),Fe=_(`$ZodError`,Ne,{Parent:Error});function Ie(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Le(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new v;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ae(e,a,x())));throw le(t,i?.callee),t}return o.value},ze=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ae(e,a,x())));throw le(t,i?.callee),t}return o.value},Be=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new v;return a.issues.length?{success:!1,error:new(e??Pe)(a.issues.map(e=>Ae(e,i,x())))}:{success:!0,data:a.value}},Ve=Be(Fe),He=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ae(e,i,x())))}:{success:!0,data:a.value}},Ue=He(Fe),We=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Re(e)(t,n,i)},Ge=e=>(t,n,r)=>Re(e)(t,n,r),Ke=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ze(e)(t,n,i)},qe=e=>async(t,n,r)=>ze(e)(t,n,r),Je=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Be(e)(t,n,i)},Ye=e=>(t,n,r)=>Be(e)(t,n,r),Xe=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return He(e)(t,n,i)},Ze=e=>async(t,n,r)=>He(e)(t,n,r),Qe=/^[cC][0-9a-z]{6,}$/,$e=/^[0-9a-z]+$/,et=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tt=/^[0-9a-vA-V]{20}$/,nt=/^[A-Za-z0-9]{27}$/,rt=/^[a-zA-Z0-9_-]{21}$/,it=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,at=/^([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})$/,ot=e=>e?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)$/,st=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ct=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function lt(){return new RegExp(ct,`u`)}var ut=/^(?:(?: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])$/,dt=/^(([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}|:))$/,ft=/^((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])$/,pt=/^(([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])$/,mt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ht=/^[A-Za-z0-9_-]*$/,gt=/^https?$/,_t=/^\+[1-9]\d{6,14}$/,vt=`(?:(?:\\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])))`,yt=RegExp(`^${vt}$`);function bt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function xt(e){return RegExp(`^${bt(e)}$`)}function St(e){let t=bt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${vt}T(?:${r})$`)}var Ct=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},wt=/^-?\d+$/,Tt=/^-?\d+(?:\.\d+)?$/,Et=/^(?:true|false)$/i,Dt=/^null$/i,Ot=/^undefined$/i,kt=/^[^A-Z]*$/,At=/^[^a-z]*$/,E=_(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),jt={number:`number`,bigint:`bigint`,object:`date`},Mt=_(`$ZodCheckLessThan`,(e,t)=>{E.init(e,t);let n=jt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{E.init(e,t);let n=jt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pt=_(`$ZodCheckMultipleOf`,(e,t)=>{E.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):re(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ft=_(`$ZodCheckNumberFormat`,(e,t)=>{E.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ve[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=wt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.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:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),It=_(`$ZodCheckMaxLength`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=je(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Lt=_(`$ZodCheckMinLength`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=je(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Rt=_(`$ZodCheckLengthEquals`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=je(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),zt=_(`$ZodCheckStringFormat`,(e,t)=>{var n,r;E.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Bt=_(`$ZodCheckRegex`,(e,t)=>{zt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vt=_(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=kt,zt.init(e,t)}),Ht=_(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=At,zt.init(e,t)}),Ut=_(`$ZodCheckIncludes`,(e,t)=>{E.init(e,t);let n=he(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Wt=_(`$ZodCheckStartsWith`,(e,t)=>{E.init(e,t);let n=RegExp(`^${he(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Gt=_(`$ZodCheckEndsWith`,(e,t)=>{E.init(e,t);let n=RegExp(`.*${he(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Kt=_(`$ZodCheckOverwrite`,(e,t)=>{E.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),qt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +import{a as e,d as t,f as n,g as r,h as i,m as a,p as o,u as s}from"./useNavigate-BEpS2iE5.js";import{b as c,f as l,h as u,i as d,m as f,w as p}from"./auth-TmbGk91l.js";import{T as m}from"./index-Cnw6TNqL.js";var h,g=Object.freeze({status:`aborted`});function _(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var v=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},y=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(h=globalThis).__zod_globalConfig??(h.__zod_globalConfig={});var b=globalThis.__zod_globalConfig;function x(e){return e&&Object.assign(b,e),b}function S(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function C(e,t){return typeof t==`bigint`?t.toString():t}function ee(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function te(e){return e==null}function ne(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function re(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function ue(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var de=ee(()=>{if(b.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function fe(e){if(ue(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ue(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function pe(e){return fe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var me=new Set([`string`,`number`,`symbol`]);function he(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ge(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function _e(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var ve={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ye(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ge(e,oe(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ae(this,`shape`,e),e},checks:[]}))}function be(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ge(e,oe(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ae(this,`shape`,r),r},checks:[]}))}function xe(e,t){if(!fe(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ae(this,`shape`,n),n}}))}function Se(e,t){if(!fe(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ae(this,`shape`,n),n}}))}function Ce(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ae(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function we(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ge(t,oe(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ae(this,`shape`,i),i},checks:[]}))}function Te(e,t,n){return ge(t,oe(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ae(this,`shape`,i),i}}))}function Ee(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ke(e){return typeof e==`string`?e:e?.message}function Ae(e,t,n){let r=e.message?e.message:ke(e.inst?._zod.def?.error?.(e))??ke(t?.error?.(e))??ke(n.customError?.(e))??ke(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function je(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Me(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ne=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,C,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pe=_(`$ZodError`,Ne),Fe=_(`$ZodError`,Ne,{Parent:Error});function Ie(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Le(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new v;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ae(e,a,x())));throw le(t,i?.callee),t}return o.value},ze=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ae(e,a,x())));throw le(t,i?.callee),t}return o.value},Be=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new v;return a.issues.length?{success:!1,error:new(e??Pe)(a.issues.map(e=>Ae(e,i,x())))}:{success:!0,data:a.value}},Ve=Be(Fe),He=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ae(e,i,x())))}:{success:!0,data:a.value}},Ue=He(Fe),We=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Re(e)(t,n,i)},Ge=e=>(t,n,r)=>Re(e)(t,n,r),Ke=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ze(e)(t,n,i)},qe=e=>async(t,n,r)=>ze(e)(t,n,r),Je=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Be(e)(t,n,i)},Ye=e=>(t,n,r)=>Be(e)(t,n,r),Xe=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return He(e)(t,n,i)},Ze=e=>async(t,n,r)=>He(e)(t,n,r),Qe=/^[cC][0-9a-z]{6,}$/,$e=/^[0-9a-z]+$/,et=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tt=/^[0-9a-vA-V]{20}$/,nt=/^[A-Za-z0-9]{27}$/,rt=/^[a-zA-Z0-9_-]{21}$/,it=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,at=/^([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})$/,ot=e=>e?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)$/,st=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ct=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function lt(){return new RegExp(ct,`u`)}var ut=/^(?:(?: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])$/,dt=/^(([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}|:))$/,ft=/^((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])$/,pt=/^(([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])$/,mt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ht=/^[A-Za-z0-9_-]*$/,gt=/^https?$/,_t=/^\+[1-9]\d{6,14}$/,vt=`(?:(?:\\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])))`,yt=RegExp(`^${vt}$`);function bt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function xt(e){return RegExp(`^${bt(e)}$`)}function St(e){let t=bt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${vt}T(?:${r})$`)}var Ct=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},wt=/^-?\d+$/,Tt=/^-?\d+(?:\.\d+)?$/,Et=/^(?:true|false)$/i,Dt=/^null$/i,Ot=/^undefined$/i,kt=/^[^A-Z]*$/,At=/^[^a-z]*$/,E=_(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),jt={number:`number`,bigint:`bigint`,object:`date`},Mt=_(`$ZodCheckLessThan`,(e,t)=>{E.init(e,t);let n=jt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{E.init(e,t);let n=jt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pt=_(`$ZodCheckMultipleOf`,(e,t)=>{E.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):re(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ft=_(`$ZodCheckNumberFormat`,(e,t)=>{E.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ve[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=wt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.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:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),It=_(`$ZodCheckMaxLength`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=je(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Lt=_(`$ZodCheckMinLength`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=je(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Rt=_(`$ZodCheckLengthEquals`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=je(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),zt=_(`$ZodCheckStringFormat`,(e,t)=>{var n,r;E.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Bt=_(`$ZodCheckRegex`,(e,t)=>{zt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vt=_(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=kt,zt.init(e,t)}),Ht=_(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=At,zt.init(e,t)}),Ut=_(`$ZodCheckIncludes`,(e,t)=>{E.init(e,t);let n=he(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Wt=_(`$ZodCheckStartsWith`,(e,t)=>{E.init(e,t);let n=RegExp(`^${he(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Gt=_(`$ZodCheckEndsWith`,(e,t)=>{E.init(e,t);let n=RegExp(`.*${he(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Kt=_(`$ZodCheckOverwrite`,(e,t)=>{E.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),qt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` `))}},Jt={major:4,minor:4,patch:3},D=_(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jt;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ee(e),i;for(let a of t){if(a._zod.def.when){if(De(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new v;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ee(e,t))});else{if(e.issues.length===t)continue;r||=Ee(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ee(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new v;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new v;return o.then(e=>t(e,r,a))}return t(o,r,a)}}w(e,`~standard`,()=>({validate:t=>{try{let n=Ve(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ue(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Yt=_(`$ZodString`,(e,t)=>{D.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ct(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),O=_(`$ZodStringFormat`,(e,t)=>{zt.init(e,t),Yt.init(e,t)}),Xt=_(`$ZodGUID`,(e,t)=>{t.pattern??=at,O.init(e,t)}),Zt=_(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=ot(e)}else t.pattern??=ot();O.init(e,t)}),Qt=_(`$ZodEmail`,(e,t)=>{t.pattern??=st,O.init(e,t)}),$t=_(`$ZodURL`,(e,t)=>{O.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===gt.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),en=_(`$ZodEmoji`,(e,t)=>{t.pattern??=lt(),O.init(e,t)}),tn=_(`$ZodNanoID`,(e,t)=>{t.pattern??=rt,O.init(e,t)}),nn=_(`$ZodCUID`,(e,t)=>{t.pattern??=Qe,O.init(e,t)}),rn=_(`$ZodCUID2`,(e,t)=>{t.pattern??=$e,O.init(e,t)}),an=_(`$ZodULID`,(e,t)=>{t.pattern??=et,O.init(e,t)}),on=_(`$ZodXID`,(e,t)=>{t.pattern??=tt,O.init(e,t)}),sn=_(`$ZodKSUID`,(e,t)=>{t.pattern??=nt,O.init(e,t)}),cn=_(`$ZodISODateTime`,(e,t)=>{t.pattern??=St(t),O.init(e,t)}),ln=_(`$ZodISODate`,(e,t)=>{t.pattern??=yt,O.init(e,t)}),un=_(`$ZodISOTime`,(e,t)=>{t.pattern??=xt(t),O.init(e,t)}),dn=_(`$ZodISODuration`,(e,t)=>{t.pattern??=it,O.init(e,t)}),fn=_(`$ZodIPv4`,(e,t)=>{t.pattern??=ut,O.init(e,t),e._zod.bag.format=`ipv4`}),pn=_(`$ZodIPv6`,(e,t)=>{t.pattern??=dt,O.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),mn=_(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ft,O.init(e,t)}),hn=_(`$ZodCIDRv6`,(e,t)=>{t.pattern??=pt,O.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function gn(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var _n=_(`$ZodBase64`,(e,t)=>{t.pattern??=mt,O.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{gn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function vn(e){if(!ht.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return gn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var yn=_(`$ZodBase64URL`,(e,t)=>{t.pattern??=ht,O.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{vn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),bn=_(`$ZodE164`,(e,t)=>{t.pattern??=_t,O.init(e,t)});function xn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Sn=_(`$ZodJWT`,(e,t)=>{O.init(e,t),e._zod.check=n=>{xn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Cn=_(`$ZodNumber`,(e,t)=>{D.init(e,t),e._zod.pattern=e._zod.bag.pattern??Tt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),wn=_(`$ZodNumberFormat`,(e,t)=>{Ft.init(e,t),Cn.init(e,t)}),Tn=_(`$ZodBoolean`,(e,t)=>{D.init(e,t),e._zod.pattern=Et,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),En=_(`$ZodUndefined`,(e,t)=>{D.init(e,t),e._zod.pattern=Ot,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Dn=_(`$ZodNull`,(e,t)=>{D.init(e,t),e._zod.pattern=Dt,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),On=_(`$ZodAny`,(e,t)=>{D.init(e,t),e._zod.parse=e=>e}),kn=_(`$ZodUnknown`,(e,t)=>{D.init(e,t),e._zod.parse=e=>e}),An=_(`$ZodNever`,(e,t)=>{D.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function jn(e,t,n){e.issues.length&&t.issues.push(...Oe(n,e.issues)),t.value[n]=e.value}var Mn=_(`$ZodArray`,(e,t)=>{D.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ejn(t,n,e))):jn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Nn(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Oe(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Pn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=_e(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Fn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Nn(e,n,i,t,u,d))):Nn(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var In=_(`$ZodObject`,(e,t)=>{if(D.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=ee(()=>Pn(t));w(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ue,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Nn(n,t,e,s,r,i))):Nn(a,t,e,s,r,i)}return i?Fn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Ln=_(`$ZodObjectJIT`,(e,t)=>{In.init(e,t);let n=e._zod.parse,r=ee(()=>Pn(t)),i=e=>{let t=new qt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=se(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=se(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { diff --git a/internal/ui/dist/index.html b/internal/ui/dist/index.html index 6fa62c2bc..9b2a4c682 100644 --- a/internal/ui/dist/index.html +++ b/internal/ui/dist/index.html @@ -21,7 +21,7 @@ document.documentElement.setAttribute("data-mantine-color-scheme", computed); } catch (e) {} - + diff --git a/site/src/content/docs/guides/tune-retention.mdx b/site/src/content/docs/guides/tune-retention.mdx index 4c4b1494d..aeac2b3bc 100644 --- a/site/src/content/docs/guides/tune-retention.mdx +++ b/site/src/content/docs/guides/tune-retention.mdx @@ -21,6 +21,10 @@ Zero means keep everything. Changing it does not delete anything immediately — expired data goes when maintenance next runs, so disk use falls on the maintenance cycle rather than at the moment you change the setting. +Observability API, MCP, and dashboard queries can span up to this retention +period. With unlimited retention, each query remains capped at 30 days. Fanout +automatically uses wider timeline buckets for windows longer than 24 hours. + ## The maintenance cycle ```sh diff --git a/site/src/content/docs/reference/mcp-tools.mdx b/site/src/content/docs/reference/mcp-tools.mdx index b4b85c459..6f272844d 100644 --- a/site/src/content/docs/reference/mcp-tools.mdx +++ b/site/src/content/docs/reference/mcp-tools.mdx @@ -93,7 +93,7 @@ Read-only. Calling it changes nothing. |---|---|---|---| | `limit` | `integer` | no | Maximum services or edges to return, from 1 to 500 | | `namespace` | `string` | no | OpenTelemetry service namespace; empty queries all namespaces | -| `window` | `string` | no | Time window such as 15m, 1h, or 24h; defaults to 1h | +| `window` | `string` | no | Time window such as 15m, 1h, 24h, 168h, or 720h; defaults to 1h | ## search_logs @@ -108,7 +108,7 @@ Read-only. Calling it changes nothing. | `search` | `string` | no | Optional case-insensitive text contained in the log body | | `service` | `string` | no | Optional exact OpenTelemetry service name | | `severity` | `string` | no | Optional exact severity such as ERROR, WARN, or INFO | -| `window` | `string` | no | Time window such as 15m, 1h, or 24h; defaults to 1h | +| `window` | `string` | no | Time window such as 15m, 1h, 24h, 168h, or 720h; defaults to 1h | ## service_performance @@ -121,7 +121,7 @@ Read-only. Calling it changes nothing. | `limit` | `integer` | no | Maximum endpoints to return, from 1 to 500 | | `namespace` | `string` | no | OpenTelemetry service namespace; empty queries all namespaces | | `service` | `string` | no | Optional exact OpenTelemetry service name; omit for the whole system | -| `window` | `string` | no | Time window such as 15m, 1h, or 24h; defaults to 1h | +| `window` | `string` | no | Time window such as 15m, 1h, 24h, 168h, or 720h; defaults to 1h | ## service_topology @@ -133,7 +133,7 @@ Read-only. Calling it changes nothing. |---|---|---|---| | `limit` | `integer` | no | Maximum services or edges to return, from 1 to 500 | | `namespace` | `string` | no | OpenTelemetry service namespace; empty queries all namespaces | -| `window` | `string` | no | Time window such as 15m, 1h, or 24h; defaults to 1h | +| `window` | `string` | no | Time window such as 15m, 1h, 24h, 168h, or 720h; defaults to 1h | ## trace_detail @@ -147,7 +147,7 @@ Read-only. Calling it changes nothing. | `namespace` | `string` | no | OpenTelemetry service namespace; empty queries all namespaces | | `service` | `string` | no | Optional service filter when choosing a recent trace | | `trace_id` | `string` | no | Exact trace ID; omit to inspect the most relevant recent error or slow trace | -| `window` | `string` | no | Trace lookup window such as 1h or 24h; defaults to 1h | +| `window` | `string` | no | Trace lookup window such as 1h, 24h, 168h, or 720h; defaults to 1h | ## Authentication diff --git a/ui/host/src/dashboard.tsx b/ui/host/src/dashboard.tsx index eb68872f6..c85a970e8 100644 --- a/ui/host/src/dashboard.tsx +++ b/ui/host/src/dashboard.tsx @@ -123,7 +123,7 @@ export default function Dashboard({ dashboardID = "", agentAvailable, onOpenChat - window && update({ ...state, filters: { ...state.filters, window } })} data={[{ value: "15m", label: "15 minutes" }, { value: "1h", label: "1 hour" }, { value: "6h", label: "6 hours" }, { value: "24h", label: "24 hours" }, { value: "168h", label: "7 days" }, { value: "720h", label: "30 days" }]} w={{ base: "100%", xs: 150 }} /> setState({ ...state, filters: { ...state.filters, namespace: event.currentTarget.value } })} onBlur={(event) => update({ ...state, filters: { ...state.filters, namespace: event.currentTarget.value } })} placeholder="All namespaces" w={{ base: "100%", xs: 220 }} /> From 3609898cc7f298a2bc24baeca6fe73c5d0682ead Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Tue, 1 Sep 2026 09:43:17 -0700 Subject: [PATCH 2/2] fix(observability): handle long-window UI edge cases --- cmd/fanout/main.go | 2 +- internal/api/dashboard_test.go | 4 +- internal/dashboard/service.go | 52 ++++++++++++++++++++++-- internal/dashboard/service_test.go | 63 +++++++++++++++++++++++++++++- internal/mcp/apps/logs.html | 42 ++++++++++---------- internal/mcp/apps/performance.html | 26 ++++++------ internal/mcp/describe.go | 2 +- internal/mcp/describe_test.go | 2 +- internal/mcp/server_test.go | 4 +- ui/apps/src/format.ts | 15 +++++++ ui/apps/src/logs.tsx | 16 ++++---- ui/apps/src/performance.tsx | 22 +++++------ 12 files changed, 184 insertions(+), 66 deletions(-) diff --git a/cmd/fanout/main.go b/cmd/fanout/main.go index 619aa9c7f..273f15416 100644 --- a/cmd/fanout/main.go +++ b/cmd/fanout/main.go @@ -306,7 +306,7 @@ func main() { queries := observability.New(q, q, cfg.RetentionDays) api.NewObservabilityHandler(queries).Register(e.Group("/api/observability", api.RequireCapability(api.ReadTelemetry))) api.RegisterIntelligenceRoutes(e, detector) - dashboards := dashboard.New(sqlite.DB) + dashboards := dashboard.New(sqlite.DB, cfg.RetentionDays) api.RegisterDashboardRoutes(e, dashboards) // Alert management REST endpoints diff --git a/internal/api/dashboard_test.go b/internal/api/dashboard_test.go index e4c8bf16a..ca8b98713 100644 --- a/internal/api/dashboard_test.go +++ b/internal/api/dashboard_test.go @@ -13,7 +13,7 @@ func TestAnonymousCannotOwnDashboards(t *testing.T) { if _, err := s.users.Create("admin@example.com", "", "admin"); err != nil { t.Fatalf("Create admin: %v", err) } - RegisterDashboardRoutes(s.e, dashboard.New(s.db.DB)) + RegisterDashboardRoutes(s.e, dashboard.New(s.db.DB, 30)) rec := httptest.NewRecorder() s.e.ServeHTTP(rec, httptest.NewRequest(http.MethodGet, "/api/dashboards", nil)) if rec.Code != http.StatusUnauthorized { @@ -31,7 +31,7 @@ func TestDashboardRoutesHideOtherOwnersResources(t *testing.T) { if err != nil { t.Fatalf("Create owner B: %v", err) } - dashboards := dashboard.New(s.db.DB) + dashboards := dashboard.New(s.db.DB, 30) item, err := dashboards.Default(t.Context(), ownerA.ID) if err != nil { t.Fatalf("create dashboard: %v", err) diff --git a/internal/dashboard/service.go b/internal/dashboard/service.go index 4d2aea2f4..e23c1807e 100644 --- a/internal/dashboard/service.go +++ b/internal/dashboard/service.go @@ -87,11 +87,18 @@ type UpdateInput struct { } type Service struct { - db *sql.DB - now func() time.Time + db *sql.DB + maxWindow time.Duration + now func() time.Time } -func New(db *sql.DB) *Service { return &Service{db: db, now: time.Now} } +func New(db *sql.DB, retentionDays int) *Service { + maxWindow := 30 * 24 * time.Hour + if retentionDays > 0 { + maxWindow = time.Duration(retentionDays) * 24 * time.Hour + } + return &Service{db: db, maxWindow: maxWindow, now: time.Now} +} func DefaultState() State { return State{ @@ -162,6 +169,7 @@ func (s *Service) Create(ctx context.Context, ownerID string, input CreateInput) if err := Validate(input.Name, input.Description, input.State); err != nil { return Dashboard{}, err } + input.State.Filters.Window = clampDashboardWindow(input.State.Filters.Window, s.maxWindow) tx, err := s.db.BeginTx(ctx, nil) if err != nil { return Dashboard{}, err @@ -204,6 +212,7 @@ func (s *Service) Update(ctx context.Context, ownerID, id string, input UpdateIn if err := Validate(input.Name, input.Description, input.State); err != nil { return Dashboard{}, err } + input.State.Filters.Window = clampDashboardWindow(input.State.Filters.Window, s.maxWindow) tx, err := s.db.BeginTx(ctx, nil) if err != nil { return Dashboard{}, err @@ -266,6 +275,7 @@ func (s *Service) get(ctx context.Context, q interface { } else if err != nil { return Dashboard{}, err } + out.State.Filters.Window = clampDashboardWindow(out.State.Filters.Window, s.maxWindow) rows, err := q.QueryContext(ctx, `SELECT id,type,title,config_json,enabled,x,y,w,h,min_w,min_h FROM dashboard_widgets WHERE dashboard_id=? ORDER BY sort_order,id`, id) if err != nil { return Dashboard{}, err @@ -367,6 +377,18 @@ func (s *Service) ensureInitial(ctx context.Context, ownerID string) error { // duplicating the literals. var WidgetTypes = []string{"overview", "topology", "activity", "assistant", "performance", "trace", "logs"} +var dashboardWindows = []struct { + value string + duration time.Duration +}{ + {"15m", 15 * time.Minute}, + {"1h", time.Hour}, + {"6h", 6 * time.Hour}, + {"24h", 24 * time.Hour}, + {"168h", 7 * 24 * time.Hour}, + {"720h", 30 * 24 * time.Hour}, +} + func Validate(name, description string, state State) error { if len(strings.TrimSpace(name)) == 0 || len([]rune(strings.TrimSpace(name))) > 80 { return invalid("dashboard name must be between 1 and 80 characters") @@ -409,12 +431,34 @@ func Validate(name, description string, state State) error { } } } - if state.Filters.Window != "15m" && state.Filters.Window != "1h" && state.Filters.Window != "6h" && state.Filters.Window != "24h" && state.Filters.Window != "168h" && state.Filters.Window != "720h" { + if _, ok := dashboardWindowDuration(state.Filters.Window); !ok { return invalid("unsupported dashboard window") } return nil } +func dashboardWindowDuration(value string) (time.Duration, bool) { + for _, option := range dashboardWindows { + if option.value == value { + return option.duration, true + } + } + return 0, false +} + +func clampDashboardWindow(value string, maxWindow time.Duration) string { + requested, ok := dashboardWindowDuration(value) + if !ok || requested <= maxWindow { + return value + } + for index := len(dashboardWindows) - 1; index >= 0; index-- { + if dashboardWindows[index].duration <= maxWindow { + return dashboardWindows[index].value + } + } + return dashboardWindows[0].value +} + // normalizeStateIDs makes the service, rather than callers or the model, the // authority for widget identifiers. Existing UUIDv7 values remain stable; // omitted, descriptive, and legacy values are replaced and layout references diff --git a/internal/dashboard/service_test.go b/internal/dashboard/service_test.go index 031ce7ec8..908da3cc5 100644 --- a/internal/dashboard/service_test.go +++ b/internal/dashboard/service_test.go @@ -21,7 +21,7 @@ func TestServiceCreatesNamedOwnerScopedDashboards(t *testing.T) { t.Fatal(err) } } - service := New(database.DB) + service := New(database.DB, 30) initial, err := service.List(ctx, "owner-a") if err != nil { @@ -67,6 +67,65 @@ func TestServiceCreatesNamedOwnerScopedDashboards(t *testing.T) { } } +func TestServiceClampsDashboardWindowToRetention(t *testing.T) { + database, err := controlstore.NewSQLite(":memory:") + if err != nil { + t.Fatal(err) + } + defer database.Close() + ctx := context.Background() + if _, err := database.DB.ExecContext(ctx, `INSERT INTO users(id,email,name,role,active) VALUES('owner','owner@example.test','Owner','admin',1)`); err != nil { + t.Fatal(err) + } + + state := DefaultState() + state.Filters.Window = "720h" + service := New(database.DB, 7) + created, err := service.Create(ctx, "owner", CreateInput{Name: "Long range", State: state}) + if err != nil { + t.Fatal(err) + } + if created.State.Filters.Window != "168h" { + t.Fatalf("created window = %q, want 168h", created.State.Filters.Window) + } + var stored string + if err := database.DB.QueryRowContext(ctx, `SELECT window FROM dashboards WHERE id=?`, created.ID).Scan(&stored); err != nil { + t.Fatal(err) + } + if stored != "168h" { + t.Fatalf("stored window = %q, want 168h", stored) + } + created.State.Filters.Window = "720h" + updated, err := New(database.DB, 1).Update(ctx, "owner", created.ID, UpdateInput{Name: created.Name, State: created.State}) + if err != nil { + t.Fatal(err) + } + if updated.State.Filters.Window != "24h" { + t.Fatalf("updated window = %q, want 24h", updated.State.Filters.Window) + } + + // Dashboards saved before the retention setting was lowered must also be + // safe to render immediately, before the next edit persists the clamp. + if _, err := database.DB.ExecContext(ctx, `UPDATE dashboards SET window='720h' WHERE id=?`, created.ID); err != nil { + t.Fatal(err) + } + loaded, err := service.Get(ctx, "owner", created.ID) + if err != nil { + t.Fatal(err) + } + if loaded.State.Filters.Window != "168h" { + t.Fatalf("loaded window = %q, want 168h", loaded.State.Filters.Window) + } + + unlimited, err := New(database.DB, 0).Get(ctx, "owner", created.ID) + if err != nil { + t.Fatal(err) + } + if unlimited.State.Filters.Window != "720h" { + t.Fatalf("unlimited-retention window = %q, want 720h", unlimited.State.Filters.Window) + } +} + func TestServiceMigratesLegacyCanvasOnFirstRead(t *testing.T) { database, err := controlstore.NewSQLite(":memory:") if err != nil { @@ -81,7 +140,7 @@ func TestServiceMigratesLegacyCanvasOnFirstRead(t *testing.T) { if _, err := database.DB.ExecContext(ctx, `INSERT INTO dashboard_state(owner_id,state_json) VALUES('owner',?)`, legacy); err != nil { t.Fatal(err) } - item, err := New(database.DB).Default(ctx, "owner") + item, err := New(database.DB, 30).Default(ctx, "owner") if err != nil { t.Fatal(err) } diff --git a/internal/mcp/apps/logs.html b/internal/mcp/apps/logs.html index 27941067c..7b9bdaf6f 100644 --- a/internal/mcp/apps/logs.html +++ b/internal/mcp/apps/logs.html @@ -5,13 +5,13 @@ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=En(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Dn(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=un(l),S=0;S<_.length;S++)w=Math.max(gn(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var An=function(){function e(){}return e}(),jn=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Mn=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Nn(e,t,n,r,i){var a=new Mn,o=Hn(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=wn.lastIndex=0,h;(h=wn.exec(o))!=null;){var g=h.index;g>m&&Pn(a,o.substring(m,g),t,p),Pn(a,h[2],t,p,h[1]),m=wn.lastIndex}md){var te=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` `),l=!0),r.accumWidth=m}else{var h=Rn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` `);for(var g=un(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var In=se(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Ln(e){return!Fn(e)||!!In[e]}function Rn(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=un(t),f=0;fn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function zn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;en.set(Bn,yn(n,o,i),bn(r,s,a),o,s),en.intersect(t,Bn,null,Vn);var c=Vn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=yn(c.x,c.width,i,!0),e.baseY=bn(c.y,c.height,a,!0)}}var Bn=new en(0,0,0,0),Vn={outIntersectRect:{},clamp:!0};function Hn(e){return e==null?e=``:e+=``}function Un(e){var t=Hn(e.text),n=e.font;return Wn(e,gn(un(n),t),xn(n),null)}function Wn(e,t,n,r){var i=new en(yn(e.x||0,t,e.textAlign),bn(e.y||0,n,e.textBaseline),t,n),a=r??(Gn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Gn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Kn=_t,qn=5e-5;function Jn(e){return e>qn||e<-qn}var Yn=[],Xn=[],Zn=gt(),Qn=Math.abs,$n=function(){function e(){}return e.prototype.getLocalTransform=function(e){return er(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Jn(this.rotation)||Jn(this.x)||Jn(this.y)||Jn(this.scaleX-1)||Jn(this.scaleY-1)||Jn(this.skewX)||Jn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Kn(n),this.invTransform=null);return}n||=gt(),t?this.getLocalTransform(n):Kn(n),e&&(t?yt(n,e,n):vt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||gt(),Ct(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Yn);var n=Yn[0]<0?-1:1,r=Yn[1]<0?-1:1,i=((Yn[0]-n)*t+n)/Yn[0]||0,a=((Yn[1]-r)*t+r)/Yn[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||gt(),yt(Xn,e.invTransform,t),t=Xn);var n=this.originX,r=this.originY;(n||r)&&(Zn[4]=n,Zn[5]=r,yt(Xn,t,Zn),Xn[4]-=n,Xn[5]-=r,t=Xn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Lt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Lt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Qn(e[0]-1)>1e-10&&Qn(e[3]-1)>1e-10?Math.sqrt(Qn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){nr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&xt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),er=$n.getLocalTransform,tr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function nr(e,t){return ne(e,t,tr)}var rr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?rr.bounceIn(e*2)*.5:rr.bounceOut(e*2-1)*.5+.5}},ir=Math.pow,ar=Math.sqrt,or=1e-8,sr=1e-4,cr=ar(3),lr=1/3,ur=wt(),dr=wt(),fr=wt();function pr(e){return e>-or&&eor||e<-or}function hr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function gr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function _r(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(pr(u)&&pr(d)){if(pr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(pr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=ar(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-ir(-y,lr):ir(y,lr),b=b<0?-ir(-b,lr):ir(b,lr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*ar(u*u*u)),S=Math.acos(x)/3,C=ar(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+cr*Math.sin(S)))/(3*o),T=(-s+C*(w-cr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function vr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(pr(o)){if(mr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(pr(u))i[0]=-a/(2*o);else if(u>0){var d=ar(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function yr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function br(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ur[0]=c,ur[1]=l;for(var v=0;v<1;v+=.05)dr[0]=hr(e,n,i,o,v),dr[1]=hr(t,r,a,s,v),g=It(ur,dr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(pr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=ar(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Tr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Er(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Dr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ur[0]=o,ur[1]=s;for(var f=0;f<1;f+=.05){dr[0]=Sr(e,n,i,f),dr[1]=Sr(t,r,a,f);var p=It(ur,dr);p=0&&p=1?1:_r(0,r,a,1,e,s)&&hr(0,i,o,1,s[0])}}}var jr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Be,this.ondestroy=e.ondestroy||Be,this.onrestart=e.onrestart||Be,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:rr[e]||Ar(e)},e}(),Mr={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Nr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Pr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Fr(e){return e<0?0:e>1?1:e}function Ir(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Nr(parseFloat(t)/100*255):Nr(parseInt(t,10))}function Lr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Fr(parseFloat(t)/100):Fr(parseFloat(t))}function Rr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function zr(e,t,n){return e+(t-e)*n}function Br(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Vr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hr=new ut(20),Ur=null;function Wr(e,t){Ur&&Vr(Ur,t),Ur=Hr.put(e,Ur||t.slice())}function Gr(e,t){if(e){t||=[];var n=Hr.get(e);if(n)return Vr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Mr)return Vr(t,Mr[r]),Wr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Br(t,0,0,0,1);return}return Br(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Wr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Br(t,0,0,0,1);return}return Br(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Wr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Br(t,+l[0],+l[1],+l[2],1):Br(t,0,0,0,1);u=Lr(l.pop());case`rgb`:if(l.length>=3)return Br(t,Ir(l[0]),Ir(l[1]),Ir(l[2]),l.length===3?u:Lr(l[3])),Wr(e,t),t;Br(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Br(t,0,0,0,1);return}return l[3]=Lr(l[3]),Kr(l,t),Wr(e,t),t;case`hsl`:if(l.length!==3){Br(t,0,0,0,1);return}return Kr(l,t),Wr(e,t),t;default:return}}Br(t,0,0,0,1)}}function Kr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Lr(e[1]),i=Lr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Br(t,Nr(Rr(o,a,n+1/3)*255),Nr(Rr(o,a,n)*255),Nr(Rr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function qr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Jr(e,t){var n=Gr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Qr(n,n.length===4?`rgba`:`rgb`)}}function Yr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Nr(zr(o[0],s[0],c)),n[1]=Nr(zr(o[1],s[1],c)),n[2]=Nr(zr(o[2],s[2],c)),n[3]=Fr(zr(o[3],s[3],c)),n}}function Xr(e,t,n,r){var i=Gr(e);if(e)return i=qr(i),t!=null&&(i[0]=Pr(me(t)?t(i[0]):t)),n!=null&&(i[1]=Lr(me(n)?n(i[1]):n)),r!=null&&(i[2]=Lr(me(r)?r(i[2]):r)),Qr(Kr(i),`rgba`)}function Zr(e,t){var n=Gr(e);if(n&&t!=null)return n[3]=Fr(t),Qr(n,`rgba`)}function Qr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function $r(e,t){var n=Gr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var ei=new ut(100);function ti(e){if(V(e)){var t=ei.get(e);return t||(t=Jr(e,-.1),ei.put(e,t)),t}if(be(e)){var n=I({},e);return n.colorStops=z(e.colorStops,function(e){return{offset:e.offset,color:Jr(e.color,-.1)}}),n}return e}var ni=Math.round;function ri(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Gr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var ii=1e-4;function ai(e){return e-ii}function oi(e){return ni(e*1e3)/1e3}function si(e){return ni(e*1e4)/1e4}function ci(e){return`matrix(`+oi(e[0])+`,`+oi(e[1])+`,`+oi(e[2])+`,`+oi(e[3])+`,`+si(e[4])+`,`+si(e[5])+`)`}var li={left:`start`,right:`end`,center:`middle`,middle:`middle`};function ui(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function di(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function fi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function pi(e){return e&&!!e.image}function mi(e){return e&&!!e.svgElement}function hi(e){return pi(e)||mi(e)}function gi(e){return e.type===`linear`}function _i(e){return e.type===`radial`}function vi(e){return e&&(e.type===`linear`||e.type===`radial`)}function yi(e){return`url(#`+e+`)`}function bi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function xi(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ve,i=Ce(e.scaleX,1),a=Ce(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+ni(o*Ve)+`deg, `+ni(s*Ve)+`deg)`),c.join(` `)}var Si=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Ci=Array.prototype.slice;function wi(e,t,n){return(t-e)*n+e}function Ti(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Bi,s=t;if(oe(t)){var c=Ni(t);o=c,(c===1&&!ge(t[0])||c===2&&!ge(t[0][0]))&&(a=!0)}else if(ge(t)&&!xe(t))o=Pi;else if(V(t)){if(!isNaN(+t))o=Pi;else{var l=Gr(t);l&&(s=l,o=Li)}}else if(be(t)){var u=I({},s);u.colorStops=z(t.colorStops,function(e){return{offset:e.offset,color:Gr(e.color)}}),gi(t)?o=Ri:_i(t)&&(o=zi),s=u}i===0?this.valType=o:(o!==this.valType||o===Bi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:rr[n]||Ar(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Hi(r),c=Vi(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Ui:e[s];if((Hi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Hi(i))i===Fi?Ti(g,f[r],p[r],h):Ei(g,f[r],p[r],h);else if(Vi(i)){var _=f[r],v=p[r],y=i===Ri;e[s]={type:y?`linear`:`radial`,x:wi(_.x,v.x,h),y:wi(_.y,v.y,h),colorStops:z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:wi(e.offset,n.offset,h),color:Mi(Ti([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=wi(_.x2,v.x2,h),e[s].y2=wi(_.y2,v.y2,h)):e[s].r=wi(_.r,v.r,h)}else if(c)Ti(g,f[r],p[r],h),n||(e[s]=Mi(g));else{var b=wi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Pi?e[n]=e[n]+r:t===Li?(Gr(e[n],Ui),Di(Ui,Ui,r,1),e[n]=Mi(Ui)):t===Fi?Di(e[n],e[n],r,1):t===Ii&&Oi(e[n],e[n],r,1)},e}(),Gi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){te(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ue(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,ji(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ji(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Ki=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zi:Xi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Gr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Qr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(H(e))for(var n=ue(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState($i,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===$i;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(re(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){te(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=pa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ha(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=re(r,e),a=re(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var ga=`__zr_style_`+Math.round(Math.random()*10),_a={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},va={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_a[ga]=!0;var ya=[`z`,`z2`,`invisible`],ba=[`invisible`],xa=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ue(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Aa[0]=Oa(i)*n+e,Aa[1]=Da(i)*r+t,ja[0]=Oa(a)*n+e,ja[1]=Da(a)*r+t,l(s,Aa,ja),u(c,Aa,ja),i%=ka,i<0&&(i+=ka),a%=ka,a<0&&(a+=ka),i>a&&!o?a+=ka:ii&&(Ma[0]=Oa(p)*n+e,Ma[1]=Da(p)*r+t,l(s,Ma,s),u(c,Ma,c))}var za={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ba=[],Va=[],Ha=[],Ua=[],Wa=[],Ga=[],Ka=Math.min,qa=Math.max,Ja=Math.cos,Ya=Math.sin,Xa=Math.abs,Za=Math.PI,Qa=Za*2,$a=typeof Float32Array<`u`,eo=[];function to(e){return Math.round(e/Za*1e8)/1e8%2*Za}function no(e,t){var n=to(e[0]);n<0&&(n+=Qa);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Qa?i=n+Qa:t&&n-i>=Qa?i=n-Qa:!t&&n>i?i=n+(Qa-to(n-i)):t&&n0&&(this._ux=Xa(n/Ji/e)||0,this._uy=Xa(n/Ji/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(za.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Xa(e-this._xi),r=Xa(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(za.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(za.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(za.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),eo[0]=r,eo[1]=i,no(eo,a),r=eo[0],i=eo[1];var o=i-r;return this.addData(za.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Ja(i)*n+e,this._yi=Ya(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(za.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(za.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&$a&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ha[0]=Ha[1]=Wa[0]=Wa[1]=Number.MAX_VALUE,Ua[0]=Ua[1]=Ga[0]=Ga[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||Xa(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case za.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=xr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case za.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Or(i,a,y,b,h,g,10),i=h,a=g;break;case za.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Ja(D)*T+C,s=Ya(D)*E+w),m=qa(T,E)*Ka(Qa,Math.abs(O)),i=Ja(k)*T+C,a=Ya(k)*E+w;break;case za.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case za.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case za.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case za.L:u=n[x++],d=n[x++];var w=Xa(u-c),T=Xa(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case za.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;yr(c,k,j,M,D,Ba),yr(l,A,ee,N,D,Va),e.bezierCurveTo(Ba[1],Va[1],Ba[2],Va[2],Ba[3],Va[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case za.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Er(c,k,j,D,Ba),Er(l,A,ee,D,Va),e.quadraticCurveTo(Ba[1],Va[1],Ba[2],Va[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case za.A:var te=n[x++],P=n[x++],F=n[x++],I=n[x++],ne=n[x++],L=n[x++],re=n[x++],ie=!n[x++],ae=F>I?F:I,oe=Xa(F-I)>.001,R=ne+L,z=!1;if(f){var E=p[g++];h+E>_&&(R=ne+L*(_-h)/E,z=!0),h+=E}if(oe&&e.ellipse?e.ellipse(te,P,F,I,re,ne,R,ie):e.arc(te,P,ae,ne,R,ie),z)break lo;C&&(o=Ja(ne)*F+te,s=Ya(ne)*I+P),c=Ja(R)*F+te,l=Ya(R)*I+P;break;case za.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var se=n[x++],ce=n[x++];if(f){var E=p[g++];if(h+E>_){var le=_-h;e.moveTo(u,d),e.lineTo(u+Ka(le,se),d),le-=se,le>0&&e.lineTo(u+se,d+Ka(le,ce)),le-=ce,le>0&&e.lineTo(u+qa(se-le,0),d+ce),le-=se,le>0&&e.lineTo(u,d+qa(ce-le,0));break lo}h+=E}e.rect(u,d,se,ce);break;case za.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=za,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function io(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=lo);var f=Math.atan2(c,s);return f<0&&(f+=lo),f>=r&&f<=i||f+lo>=r&&f+lo<=i}function fo(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var po=ro.CMD,mo=Math.PI*2,ho=1e-4;function go(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&yo(),p=hr(t,r,a,s,vo[0]),f>1&&(m=hr(t,r,a,s,vo[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=Sr(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);_o[0]=-c,_o[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=mo-1e-4){r=0,i=mo;var u=a?1:-1;return o>=_o[0]+e&&o<=_o[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=mo,i+=mo);for(var f=0,p=0;p<2;p++){var m=_o[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=mo+h),(h>=r&&h<=i||h+mo>=r&&h+mo<=i)&&(h>Math.PI/2&&h1&&(n||(s+=fo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case po.M:u=a[m++],d=a[m++],c=u,l=d;break;case po.L:if(n){if(io(c,l,a[m],a[m+1],t,r,i))return!0}else s+=fo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.C:if(n){if(ao(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=bo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.Q:if(n){if(oo(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=xo(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=fo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(uo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=So(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case po.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(io(u,d,f,d,t,r,i)||io(f,d,f,p,t,r,i)||io(f,p,u,p,t,r,i)||io(u,p,u,d,t,r,i))return!0}else s+=fo(f,d,f,p,r,i),s+=fo(u,p,u,d,r,i);break;case po.Z:if(n){if(io(c,l,u,d,t,r,i))return!0}else s+=fo(c,l,u,d,r,i);c=u,l=d}}return!n&&!go(l,d)&&(s+=fo(c,l,u,d,r,i)||0),s!==0}function wo(e,t,n){return Co(e,0,!1,t,n)}function To(e,t,n,r){return Co(e,t,!0,n,r)}var Eo=L({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_a),Do={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},va.style)},Oo=tr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),ko=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Xi:t>.2?Qi:Zi}if(e)return Zi}return Xi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(V(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==$r(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ro(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),To(a,o/s,e,t)))return!0}if(this.hasFill())return wo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Re(Eo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=I({},this.shape);for(var l={},u=ue(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Lo=Math.round;function Ro(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Lo(r*2)===Lo(i*2)&&(e.x1=e.x2=Bo(r,s,!0)),Lo(a*2)===Lo(o*2)&&(e.y1=e.y2=Bo(a,s,!0)),e):e}}function zo(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Bo(r,s,!0),e.y=Bo(i,s,!0),e.width=Math.max(Bo(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Bo(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Bo(e,t,n){if(!t)return e;var r=Lo(e*2);return(r+Lo(t))%2==0?r/2:(r+(n?1:-1))/2}var Vo=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ho={},Uo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vo},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=zo(Ho,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Io(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ko);Uo.prototype.type=`rect`;var Wo={fill:`#000`},Go=2,Ko={},qo={style:L({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},va.style)},Jo=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Wo,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ss(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=as(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(jo),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=is(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=rs(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Go,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=we(s.opacity,t.opacity,1),$o(p,s),y&&(p.lineWidth=we(s.lineWidth,t.lineWidth,g),p.lineDash=Ce(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Wn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Uo),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=Ce(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Fo),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=Ce(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=we(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return es(e)&&(t=[e.fontStyle,e.fontWeight,Qo(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Oe(t)||e.textFont||e.font},t}(xa),Yo={left:!0,right:1,center:1},Xo={top:1,bottom:1,middle:1},Zo=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Qo(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function $o(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Cs=ws;function ws(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Ts(e,t,n)}function Ts(e,t,n){return V(e)?Es(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Es(e){return!!us(e).match(/%$/)}function Ds(e,t,n){return isNaN(t)?n?``+e:+e:(t=ds(fs(0,t),ls),e=(+e).toFixed(t),n?e:+e)}function Os(e){return e.sort(function(e,t){return e-t}),e}function ks(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(ms(e*t)/t===e)return n}return As(e)}function As(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return fs(0,(a<0?0:i-1-a)-r)}function js(e,t,n){var r=ps(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=vs(2*ps(n||1)*ps(r))/ys,a=vs(ps(t))/ys,o=fs(0,gs(-i+a));return isFinite(o)||(o=NaN),o}function Ms(e,t){var n=fs(ks(e),ks(t)),r=e+t;return n>ls?r:Ds(r,n)}var Ns=_s(2,53)-1;function Ps(e){var t=bs*2;return(e%t+t)%t}function Fs(e){return e>-cs&&e=10&&t++,t}function Bs(e,t){var n=zs(e),r=_s(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Ds(e,-n)}function Vs(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Nc(){return[1/0,-1/0]}function Pc(e,t){Rc(t)&&(te[1]&&(e[1]=t))}function Fc(e,t){Rc(t)&&te[1]&&(e[1]=t)}function Lc(e,t){zc(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function Rc(e){return e!=null&&isFinite(e)}function zc(e,t){return Rc(e)&&Rc(t)&&e<=t}function Bc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Vc(e){zc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Hc(){var e=`__ec_once_`+Uc++;return function(t,n){ze(t,e)||(t[e]=1,n())}}var Uc=Ws();function Wc(e,t,n){var r=Ie(),i=0;R(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Gc(e){return e.value+``}function Kc(e){return e+``}function qc(e,t){return Ce(t,!0)?e.seriesIndex+2:0}function Jc(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Yc(e){return{overallReset:e}}var Xc=Cc(),Zc=function(e,t,n,r){if(r){var i=Xc(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Xc(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Qc=Ie([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),$c=`original`,el=`arrayRows`,tl=`objectRows`,nl=`keyedColumns`,rl=`typedArray`,il=`unknown`,al=`column`,ol=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],sl=function(){function e(e){R(ol,function(t){this[t]=fe(e[t],e)},this)}return e}();function cl(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var ll=1,ul={},dl=Cc(),fl=Cc(),pl=[`emphasis`,`blur`,`select`],ml=[`normal`,`emphasis`,`blur`,`select`],hl=`highlight`,gl=`downplay`,_l=`select`,vl=`unselect`,yl=`toggleSelect`,bl=`selectchanged`;function xl(e){return e!=null&&e!==`none`}function Sl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Cl(e){Sl(e,`emphasis`,2)}function wl(e){e.hoverState===2&&Sl(e,`normal`,0)}function Tl(e){Sl(e,`blur`,1)}function El(e){e.hoverState===1&&Sl(e,`normal`,0)}function Dl(e){e.selected=!0}function Ol(e){e.selected=!1}function kl(e,t,n){t(e,n)}function Al(e,t,n){kl(e,t,n),e.isGroup&&e.traverse(function(e){kl(e,t,n)})}function jl(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof ko){var o=dl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(xl(s)||xl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!xl(l.fill)&&xl(s)?(a=!0,r=I({},r),l=I({},l),l.fill=ti(s)):!xl(l.stroke)&&xl(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=ti(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Nl(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Pl(e,t,n){var r=re(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:jl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Fl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Ml(this,e,t,n);if(e===`blur`)return Pl(this,e,n);if(e===`select`)return Nl(this,e,n)}return n}function Il(e){e.stateProxy=Fl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Fl),n&&(n.stateProxy=Fl)}function Ll(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,Cl)}function Rl(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,wl)}function zl(e,t){e.__highByOuter|=1<<(t||0),Al(e,Cl)}function Bl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Al(e,wl)}function Vl(e){Al(e,Tl)}function Hl(e){Al(e,El)}function Ul(e){Al(e,Dl)}function Wl(e){Al(e,Ol)}function Gl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Kl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=fl(i),o=cl(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){El(e)}),s&&n.push(i)),a.isBlured=!1}),R(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function ql(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function nu(e,t,n){lu(e,!0),Al(e,Il),au(e,t,n)}function ru(e){lu(e,!1)}function iu(e,t,n,r){r?ru(e):nu(e,t,n)}function au(e,t,n){var r=Xc(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var ou=[`emphasis`,`blur`,`select`],su={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function cu(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=bu(m),s*=bu(m));var h=(i===a?-1:1)*bu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Su(d)*g-xu(d)*_,y=(t+r)/2+xu(d)*g+Su(d)*_,b=Eu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Eu(x,S);if(Tu(x,S)<=-1&&(C=Cu),Tu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Cu*1e6)/1e6;C=Cu*2+w%2*Cu}u.addData(l,v,y,o,s,b,C,d,a)}var Ou=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ku=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Au(e){var t=new ro;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ro.CMD,c=e.match(Ou);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=re(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=re(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function td(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function nd(e,t){var n,r=Xu(t.r,0),i=Xu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Ju(c-s),p=f>Uu&&f%Uu;if(p>Qu&&(f=p),!(r>Qu))e.moveTo(l,u);else if(f>Uu-Qu)e.moveTo(l+r*Gu(s),u+r*Wu(s)),e.arc(l,u,r,s,c,!d),i>Qu&&(e.moveTo(l+i*Gu(c),u+i*Wu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Gu(s),j=r*Wu(s),ee=i*Gu(c),M=i*Wu(c),N=f>Qu;if(N){var te=t.cornerRadius;te&&(n=td(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=Ju(r-i)/2;if(v=Zu(P,g),y=Zu(P,_),b=Zu(P,m),x=Zu(P,h),w=S=Xu(v,y),T=C=Xu(b,x),(S>Qu||C>Qu)&&(E=r*Gu(c),D=r*Wu(c),O=i*Gu(s),k=i*Wu(s),fQu){var oe=Zu(g,w),R=Zu(_,w),z=ed(O,k,A,j,r,oe,d),se=ed(E,D,ee,M,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w0&&e.arc(l+z.cx,u+z.cy,oe,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,r,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),!d),R>0&&e.arc(l+se.cx,u+se.cy,R,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Qu)||!N)e.lineTo(l+ee,u+M);else if(T>Qu){var oe=Zu(m,T),R=Zu(h,T),z=ed(ee,M,E,D,i,-R,d),se=ed(A,j,O,k,i,-oe,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T0&&e.arc(l+z.cx,u+z.cy,R,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,i,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),d),oe>0&&e.arc(l+se.cx,u+se.cy,oe,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var rd=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),id=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new rd},t.prototype.buildPath=function(e,t){nd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ko);id.prototype.type=`sector`;var ad=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),od=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ko);od.prototype.type=`ring`;function sd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=sd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sAd[1]){if(i=!1,jd.negativeSize||n)return i;var s=Od(Ad[0]-kd[1]),c=Od(kd[0]-Ad[1]);Ed(s,c)>Nd.len()&&(s=c||!jd.bidirectional)&&(Bt.scale(Md,o,-c*r),jd.useDir&&jd.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Bd(e,t,n,r,i,a){zd(`update`,e,t,n,r,i,a)}function Vd(e,t,n,r,i,a){zd(`enter`,e,t,n,r,i,a)}function Hd(e){if(!e.__zr)return!0;for(var t=0;txd,BezierCurve:()=>yd,BoundingRect:()=>en,Circle:()=>zu,CompoundPath:()=>Sd,Ellipse:()=>Vu,Group:()=>Lu,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Fo,IncrementalDisplayable:()=>Id,Line:()=>hd,LinearGradient:()=>wd,OrientedBoundingRect:()=>Pd,Path:()=>ko,Point:()=>Bt,Polygon:()=>ud,Polyline:()=>fd,RadialGradient:()=>Td,Rect:()=>Uo,Ring:()=>od,Sector:()=>id,Text:()=>Jo,WH:()=>Xd,XY:()=>Yd,applyTransform:()=>ff,calcZ2Range:()=>Ff,clipPointsByRect:()=>_f,clipRectByRect:()=>vf,createIcon:()=>yf,decomposeTransform:()=>zf,ensureCopyRect:()=>Mf,ensureCopyTransform:()=>Nf,expandOrShrinkRect:()=>wf,extendPath:()=>$d,extendShape:()=>Zd,getCurrentCanvasPainter:()=>Vf,getShapeClass:()=>tf,getTransform:()=>df,groupTransition:()=>gf,initProps:()=>Vd,isBoundingRectAxisAligned:()=>Af,isElementRemoved:()=>Hd,lineLineIntersect:()=>xf,linePolygonIntersect:()=>bf,makeImage:()=>rf,makePath:()=>nf,mergePath:()=>of,payloadDisableAnimation:()=>Rf,registerShape:()=>ef,removeElement:()=>Ud,removeElementWithFadeOut:()=>Gd,resizePath:()=>sf,retrieveZInfo:()=>Pf,setTooltipConfig:()=>Df,subPixelOptimize:()=>uf,subPixelOptimizeLine:()=>cf,subPixelOptimizeRect:()=>lf,transformDirection:()=>pf,traverseElements:()=>kf,traverseUpdateZ:()=>If,updateProps:()=>Bd}),Jd={},Yd=[`x`,`y`],Xd=[`width`,`height`];function Zd(e){return ko.extend(e)}var Qd=Fu;function $d(e,t){return Qd(e,t)}function ef(e,t){Jd[e]=t}function tf(e){if(Jd.hasOwnProperty(e))return Jd[e]}function nf(e,t,n,r){var i=Pu(e,t);return n&&(r===`center`&&(n=af(n,i.getBoundingRect())),sf(i,n)),i}function rf(e,t,n){var r=new Fo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(af(t,i))}}});return r}function af(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var of=Iu;function sf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function cf(e,t){return Ro(e,e,{lineWidth:t}),e}function lf(e,t){return zo(e,e,t),e}var uf=Bo;function df(e,t){for(var n=_t([]);e&&e!==t;)yt(n,e.getLocalTransform(),n),e=e.parent;return n}function ff(e,t,n){return t&&!oe(t)&&(t=$n.getLocalTransform(t)),n&&(t=Ct([],t)),Lt([],e,t)}function pf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ps(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ps(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=ff(a,t,n),ps(a[0])>ps(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function mf(e){return!e.isGroup}function hf(e){return e.shape!=null}function gf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){mf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return hf(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(mf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Bd(e,r,n,Xc(e).dataIndex)}}})}function _f(e,t){return z(e,function(e){var n=e[0];n=fs(n,t.x),n=ds(n,t.x+t.width);var r=e[1];return r=fs(r,t.y),r=ds(r,t.y+t.height),[n,r]})}function vf(e,t){var n=fs(e.x,t.x),r=ds(e.x+e.width,t.x+t.width),i=fs(e.y,t.y),a=ds(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function yf(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),L(i,n),new Fo(r)):nf(e.replace(`path://`,``),r,n,`center`)}function bf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Sf(p,m,u,d)/f;return!(g<0||g>1)}function Sf(e,t,n,r){return e*r-n*t}function Cf(e){return e<=1e-6&&e>=-1e-6}function wf(e,t,n,r,i){return t==null?e:(ge(t)?Tf[0]=Tf[1]=Tf[2]=Tf[3]=t:(Tf[0]=t[0],Tf[1]=t[1],Tf[2]=t[2],Tf[3]=t[3]),r&&(Tf[0]=fs(0,Tf[0]),Tf[1]=fs(0,Tf[1]),Tf[2]=fs(0,Tf[2]),Tf[3]=fs(0,Tf[3])),n&&(Tf[0]=-Tf[0],Tf[1]=-Tf[1],Tf[2]=-Tf[2],Tf[3]=-Tf[3]),Ef(e,Tf,`x`,`width`,3,1,i&&i[0]||0),Ef(e,Tf,`y`,`height`,0,2,i&&i[1]||0),e)}var Tf=[0,0,0,0];function Ef(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=fs(0,ds(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:ps(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Df(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=V(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&R(ue(c),function(e){ze(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Xc(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:L({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Of(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function kf(e,t){if(e){if(B(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function If(e,t,n){Lf(e,t,n,-1/0)}function Lf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Hp=(e={},e[el+`_`+al]={pure:!0,appendData:i},e[el+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[tl]={pure:!0,appendData:i},e[nl]={pure:!0,appendData:function(e){var t=this._data;R(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[$c]={appendData:i},e[rl]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){ge(t)||$s(``),this._opFn=um[e],this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){return ge(e)?this._opFn(e,this._rvalFloat):this._opFn(Hs(e),this._rvalFloat)},e})();var dm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ge(e)?e:Hs(e),r=ge(t)?t:Hs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=V(e),s=V(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Hs(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function fm(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function pm(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,hm=typeof Uint16Array>`u`?Array:Uint16Array,gm=typeof Int32Array>`u`?Array:Int32Array,_m=typeof Float64Array>`u`?Array:Float64Array,vm={float:_m,int:gm,ordinal:Array,number:Array,time:_m},ym;function bm(e){return e>65535?mm:hm}function xm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sm(e,t,n,r,i){var a=vm[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=z(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(bm(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return lm(e[r],this._dimensions[r])}ym={arrayRows:e,objectRows:function(e,t,n,r){return lm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return lm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),wm=Cc(),Tm={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Em=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=km(this.source))},e.prototype.getSourceDimensionIndex=function(e){return Ce(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Lp(this.source),n=!Am(e),r=``,i=[],a=0,o=0;a30}var jm=H,Mm=z,Nm=typeof Int32Array>`u`?Array:Int32Array,Pm=`e\0\0`,Fm=-1,Im=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Lm=[`_approximateExtent`],Rm,zm,Bm,Vm,Hm,Um,Wm,Gm=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Dm(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():jm(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,jm(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){jm(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Zc(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Mm(this.dimensions,this._getDimInfo,this),this.hostModel),Hm(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Te(arguments)))})},e.internalField=function(){Rm=function(e){var t=e._invertedIndicesMap;R(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Nm(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Km(e,t){Op(e)||(e=Ap(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ie(),a=[],o=qm(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Am(o),c=r===e.dimensionsDefine,l=c?km(e):Om(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Ie(u),f=new gm(o),p=0;p0&&(e.name+=t-1)}),new Em({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qm(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(e){var t;H(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Jm(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Ym={},Xm={},Zm=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ym,!0),this._normalMasterList=n(Xm,!1);function n(n,r){var i=[];return R(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){R(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Ym[e]=t;return}Xm[e]=t},e.get=function(e){return Xm[e]||Ym[e]},e}();function eee(e){return!!Ym[e]}var tee=Ie();function Qm(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=tee.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function nee(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!eee(n)&&(i=0))}return{coordSysType:n,kind:i}}function $m(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=nee(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var eh=function(){function e(e){this.coordSysDims=[],this.axisMap=Ie(),this.categoryAxisMap=Ie(),this.coordSysName=e}return e}();function th(e){var t=e.get(`coordinateSystem`),n=new eh(t),r=nh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var nh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Dc).models[0],a=e.getReferringComponents(`yAxis`,Dc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),rh(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),rh(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Dc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),rh(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Dc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),rh(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),rh(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),rh(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Dc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function rh(e){return e.get(`type`)===`category`}function ih(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;ah(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(R(a,function(e,t){V(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),R(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;R(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function ah(e){return!Dm(e.schema)}function oh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function sh(e,t){return oh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function ch(e,t){var n=e.get(`coordinateSystem`),r=Zm.get(n),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=om(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function ree(e,t,n){var r,i;return n&&R(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function lh(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Ap(e)):(i=r.getSource(),a=i.sourceFormat===$c);var o=th(t),s=ch(t,o),c=n.useEncodeDefaulter,l=me(c)?c:c?pe(Sp,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Km(i,u),f=ree(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=ih(t,{schema:d,store:p}),h=new Gm(d,t);h.setCalculationInfo(m);var g=f!=null&&iee(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function iee(e){if(e.sourceFormat===`original`)return!B(ac(uh(e.data||[])))}function uh(e){for(var t=0;t=0&&n.push(e)}),n}}function hh(e,t){return F(F({},e,!0),t,!0)}var gh=Math.log(2);function _h(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){R(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Th(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?vh(s,o):vh(o,s))}function Eh(e){return e.nodeName.toUpperCase()===`CANVAS`}var Dh=/([&<>"'])/g,Oh={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function kh(e){return e==null?``:(e+``).replace(Dh,function(e,t){return Oh[t]})}var Ah={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},jh={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Mh=`ZH`,Nh=`EN`,Ph=Nh,Fh={},Ih={},Lh=Ue.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ph).toUpperCase().indexOf(Mh)>-1?Mh:Ph}():Ph;function Rh(e,t){e=e.toUpperCase(),Ih[e]=new hp(t),Fh[e]=t}function zh(e){if(V(e)){var t=Fh[e.toUpperCase()]||{};return e===Mh||e===Nh?P(t):F(P(t),P(Fh[Ph]),!1)}return F(P(e),P(Fh[Ph]),!1)}function Bh(e){return Ih[e]}function Vh(){return Ih[Ph]}Rh(Nh,Ah),Rh(Mh,jh);var Hh=null;function Uh(){return Hh}function Wh(e,t){var n=Uh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Gh(e){var t=e.brk;return t?t.breaks:[]}function Kh(e){var t=e.brk;return t?t.hasBreaks():!1}var qh=1e3,Jh=qh*60,Yh=Jh*60,Xh=Yh*24,Zh=Xh*365,Qh={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},$h={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},eg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,tg=`{yyyy}-{MM}-{dd}`,ng={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:tg,hour:tg+` `+$h.hour,minute:tg+` `+$h.minute,second:tg+` `+$h.second,millisecond:eg},rg=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],ig=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function ag(e){return!V(e)&&!me(e)?og(e):e}function og(e){e||={};var t={},n=!0;return R(rg,function(t){n&&=e[t]==null}),R(rg,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=rg[s],l=H(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):V(l)?(o=l,u=[o]):(o==null?o=$h[r]:Qh[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function sg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function cg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function lg(e){return e===cg(e)}function ug(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function dg(e,t,n,r){var i=Ls(e),a=i[hg(n)](),o=i[gg(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[_g(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[vg(n)](),d=(u-1)%12+1,f=i[yg(n)](),p=i[bg(n)](),m=i[xg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof hp?r:Bh(r||Lh)||Vh()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,sg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,sg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,sg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,sg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,sg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,sg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,sg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,sg(m,3)).replace(/{S}/g,m+``)}function fg(e,t,n,r,i){var a=null;if(V(n))a=n;else if(me(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Uh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=pg(e.value,i);a=n[u][u][0]}}return dg(new Date(e.value),a,i,r)}function pg(e,t){var n=Ls(e),r=n[gg(t)]()+1,i=n[_g(t)](),a=n[vg(t)](),o=n[yg(t)](),s=n[bg(t)](),c=n[xg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function mg(e,t,n){switch(t){case`year`:e[Cg(n)](0);case`month`:e[wg(n)](1);case`day`:e[Tg(n)](0);case`hour`:e[Eg(n)](0);case`minute`:e[Dg(n)](0);case`second`:e[Og(n)](0)}return e}function hg(e){return e?`getUTCFullYear`:`getFullYear`}function gg(e){return e?`getUTCMonth`:`getMonth`}function _g(e){return e?`getUTCDate`:`getDate`}function vg(e){return e?`getUTCHours`:`getHours`}function yg(e){return e?`getUTCMinutes`:`getMinutes`}function bg(e){return e?`getUTCSeconds`:`getSeconds`}function xg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Sg(e){return e?`setUTCFullYear`:`setFullYear`}function Cg(e){return e?`setUTCMonth`:`setMonth`}function wg(e){return e?`setUTCDate`:`setDate`}function Tg(e){return e?`setUTCHours`:`setHours`}function Eg(e){return e?`setUTCMinutes`:`setMinutes`}function Dg(e){return e?`setUTCSeconds`:`setSeconds`}function Og(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function kg(e){if(!Us(e))return V(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Ag(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var jg=Ee;function Mg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Oe(e)?e:`-`}function a(e){return qs(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ls(e):e;if(!isNaN(+c))return dg(c,r,n);if(s)return`-`}if(t===`ordinal`)return he(e)?i(e):ge(e)&&a(e)?e+``:`-`;var l=Hs(e);return a(l)?kg(l):he(e)?i(e):typeof e==`boolean`?e+``:`-`}var Ng=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Pg=function(e,t){return`{`+e+(t??``)+`}`};function Fg(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Lg(e,t){return t||=`transparent`,V(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Rg=R,zg=[`left`,`right`,`top`,`bottom`,`width`,`height`],Bg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Vg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var Hg=Vg;pe(Vg,`vertical`),pe(Vg,`horizontal`);function Ug(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Wg(e,t,n){n=jg(n||0);var r=t.width,i=t.height,a=Cs(e.left,r),o=Cs(e.top,i),s=Cs(e.right,r),c=Cs(e.bottom,i),l=Cs(e.width,r),u=Cs(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new en((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var Gg={rect:1,point:2};function Kg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Qm(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Gg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Gg.point,s=u,i=o.dataToPoint(l))}return a??=Gg.rect,a===Gg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function qg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new en(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Wg(L({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Jg(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Yg(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(Bg[0],0),a=o(Bg[1],1);c(Bg[0],e,i),c(Bg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Rg(n,function(t){c[t]=e[t]}),Rg(n,function(e){ze(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d=0;o--)a=F(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Oc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Ug(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(hp);$e($g,hp),it($g),ph($g),mh($g,e_);function e_(e){var t=[];return R($g.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return Je(e).main}),e!==`dataset`&&re(t,`dataset`)<=0&&t.unshift(`dataset`),t}var t_=Cc(),n_=Cc(),r_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=nc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return o_(this,t_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){s_(this,t_)},e}();function i_(e,t,n,r){return o_(e,n_,nc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function a_(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function o_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:a_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function s_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var c_=/\{@(.+?)\}/g,l_=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),me(i))return s.status=t,s.dimensionIndex=r,i(s);if(V(i))return Fg(i,s).replace(c_,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=nm(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return nm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function u_(e){var t,n;return H(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function d_(e){return new f_(e)}var f_=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(S_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ve(o)?rl:$c,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=Ce(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ce(u.sourceHeader,d.sourceHeader),m=Ce(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[kp(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[kp(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&C_(``);var i,a=[],o=[];return R(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&C_(``),a.push(t),o.push(e._getVersionSign())}),n?i=v_(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[jp(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;tn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function zn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;en.set(Bn,yn(n,o,i),bn(r,s,a),o,s),en.intersect(t,Bn,null,Vn);var c=Vn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=yn(c.x,c.width,i,!0),e.baseY=bn(c.y,c.height,a,!0)}}var Bn=new en(0,0,0,0),Vn={outIntersectRect:{},clamp:!0};function Hn(e){return e==null?e=``:e+=``}function Un(e){var t=Hn(e.text),n=e.font;return Wn(e,gn(un(n),t),xn(n),null)}function Wn(e,t,n,r){var i=new en(yn(e.x||0,t,e.textAlign),bn(e.y||0,n,e.textBaseline),t,n),a=r??(Gn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Gn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Kn=_t,qn=5e-5;function Jn(e){return e>qn||e<-qn}var Yn=[],Xn=[],Zn=gt(),Qn=Math.abs,$n=function(){function e(){}return e.prototype.getLocalTransform=function(e){return er(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Jn(this.rotation)||Jn(this.x)||Jn(this.y)||Jn(this.scaleX-1)||Jn(this.scaleY-1)||Jn(this.skewX)||Jn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Kn(n),this.invTransform=null);return}n||=gt(),t?this.getLocalTransform(n):Kn(n),e&&(t?yt(n,e,n):vt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||gt(),Ct(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Yn);var n=Yn[0]<0?-1:1,r=Yn[1]<0?-1:1,i=((Yn[0]-n)*t+n)/Yn[0]||0,a=((Yn[1]-r)*t+r)/Yn[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||gt(),yt(Xn,e.invTransform,t),t=Xn);var n=this.originX,r=this.originY;(n||r)&&(Zn[4]=n,Zn[5]=r,yt(Xn,t,Zn),Xn[4]-=n,Xn[5]-=r,t=Xn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Lt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Lt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Qn(e[0]-1)>1e-10&&Qn(e[3]-1)>1e-10?Math.sqrt(Qn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){nr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&xt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),er=$n.getLocalTransform,tr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function nr(e,t){return ne(e,t,tr)}var rr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?rr.bounceIn(e*2)*.5:rr.bounceOut(e*2-1)*.5+.5}},ir=Math.pow,ar=Math.sqrt,or=1e-8,sr=1e-4,cr=ar(3),lr=1/3,ur=wt(),dr=wt(),fr=wt();function pr(e){return e>-or&&eor||e<-or}function hr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function gr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function _r(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(pr(u)&&pr(d)){if(pr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(pr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=ar(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-ir(-y,lr):ir(y,lr),b=b<0?-ir(-b,lr):ir(b,lr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*ar(u*u*u)),S=Math.acos(x)/3,C=ar(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+cr*Math.sin(S)))/(3*o),T=(-s+C*(w-cr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function vr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(pr(o)){if(mr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(pr(u))i[0]=-a/(2*o);else if(u>0){var d=ar(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function yr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function br(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ur[0]=c,ur[1]=l;for(var v=0;v<1;v+=.05)dr[0]=hr(e,n,i,o,v),dr[1]=hr(t,r,a,s,v),g=It(ur,dr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(pr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=ar(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Tr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Er(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Dr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ur[0]=o,ur[1]=s;for(var f=0;f<1;f+=.05){dr[0]=Sr(e,n,i,f),dr[1]=Sr(t,r,a,f);var p=It(ur,dr);p=0&&p=1?1:_r(0,r,a,1,e,s)&&hr(0,i,o,1,s[0])}}}var jr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Be,this.ondestroy=e.ondestroy||Be,this.onrestart=e.onrestart||Be,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:rr[e]||Ar(e)},e}(),Mr={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Nr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Pr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Fr(e){return e<0?0:e>1?1:e}function Ir(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Nr(parseFloat(t)/100*255):Nr(parseInt(t,10))}function Lr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Fr(parseFloat(t)/100):Fr(parseFloat(t))}function Rr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function zr(e,t,n){return e+(t-e)*n}function Br(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Vr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hr=new ut(20),Ur=null;function Wr(e,t){Ur&&Vr(Ur,t),Ur=Hr.put(e,Ur||t.slice())}function Gr(e,t){if(e){t||=[];var n=Hr.get(e);if(n)return Vr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Mr)return Vr(t,Mr[r]),Wr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Br(t,0,0,0,1);return}return Br(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Wr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Br(t,0,0,0,1);return}return Br(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Wr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Br(t,+l[0],+l[1],+l[2],1):Br(t,0,0,0,1);u=Lr(l.pop());case`rgb`:if(l.length>=3)return Br(t,Ir(l[0]),Ir(l[1]),Ir(l[2]),l.length===3?u:Lr(l[3])),Wr(e,t),t;Br(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Br(t,0,0,0,1);return}return l[3]=Lr(l[3]),Kr(l,t),Wr(e,t),t;case`hsl`:if(l.length!==3){Br(t,0,0,0,1);return}return Kr(l,t),Wr(e,t),t;default:return}}Br(t,0,0,0,1)}}function Kr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Lr(e[1]),i=Lr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Br(t,Nr(Rr(o,a,n+1/3)*255),Nr(Rr(o,a,n)*255),Nr(Rr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function qr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Jr(e,t){var n=Gr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Qr(n,n.length===4?`rgba`:`rgb`)}}function Yr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Nr(zr(o[0],s[0],c)),n[1]=Nr(zr(o[1],s[1],c)),n[2]=Nr(zr(o[2],s[2],c)),n[3]=Fr(zr(o[3],s[3],c)),n}}function Xr(e,t,n,r){var i=Gr(e);if(e)return i=qr(i),t!=null&&(i[0]=Pr(me(t)?t(i[0]):t)),n!=null&&(i[1]=Lr(me(n)?n(i[1]):n)),r!=null&&(i[2]=Lr(me(r)?r(i[2]):r)),Qr(Kr(i),`rgba`)}function Zr(e,t){var n=Gr(e);if(n&&t!=null)return n[3]=Fr(t),Qr(n,`rgba`)}function Qr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function $r(e,t){var n=Gr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var ei=new ut(100);function ti(e){if(V(e)){var t=ei.get(e);return t||(t=Jr(e,-.1),ei.put(e,t)),t}if(be(e)){var n=I({},e);return n.colorStops=z(e.colorStops,function(e){return{offset:e.offset,color:Jr(e.color,-.1)}}),n}return e}var ni=Math.round;function ri(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Gr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var ii=1e-4;function ai(e){return e-ii}function oi(e){return ni(e*1e3)/1e3}function si(e){return ni(e*1e4)/1e4}function ci(e){return`matrix(`+oi(e[0])+`,`+oi(e[1])+`,`+oi(e[2])+`,`+oi(e[3])+`,`+si(e[4])+`,`+si(e[5])+`)`}var li={left:`start`,right:`end`,center:`middle`,middle:`middle`};function ui(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function di(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function fi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function pi(e){return e&&!!e.image}function mi(e){return e&&!!e.svgElement}function hi(e){return pi(e)||mi(e)}function gi(e){return e.type===`linear`}function _i(e){return e.type===`radial`}function vi(e){return e&&(e.type===`linear`||e.type===`radial`)}function yi(e){return`url(#`+e+`)`}function bi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function xi(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ve,i=Ce(e.scaleX,1),a=Ce(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+ni(o*Ve)+`deg, `+ni(s*Ve)+`deg)`),c.join(` `)}var Si=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Ci=Array.prototype.slice;function wi(e,t,n){return(t-e)*n+e}function Ti(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Bi,s=t;if(oe(t)){var c=Ni(t);o=c,(c===1&&!ge(t[0])||c===2&&!ge(t[0][0]))&&(a=!0)}else if(ge(t)&&!xe(t))o=Pi;else if(V(t)){if(!isNaN(+t))o=Pi;else{var l=Gr(t);l&&(s=l,o=Li)}}else if(be(t)){var u=I({},s);u.colorStops=z(t.colorStops,function(e){return{offset:e.offset,color:Gr(e.color)}}),gi(t)?o=Ri:_i(t)&&(o=zi),s=u}i===0?this.valType=o:(o!==this.valType||o===Bi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:rr[n]||Ar(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Hi(r),c=Vi(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Ui:e[s];if((Hi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Hi(i))i===Fi?Ti(g,f[r],p[r],h):Ei(g,f[r],p[r],h);else if(Vi(i)){var _=f[r],v=p[r],y=i===Ri;e[s]={type:y?`linear`:`radial`,x:wi(_.x,v.x,h),y:wi(_.y,v.y,h),colorStops:z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:wi(e.offset,n.offset,h),color:Mi(Ti([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=wi(_.x2,v.x2,h),e[s].y2=wi(_.y2,v.y2,h)):e[s].r=wi(_.r,v.r,h)}else if(c)Ti(g,f[r],p[r],h),n||(e[s]=Mi(g));else{var b=wi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Pi?e[n]=e[n]+r:t===Li?(Gr(e[n],Ui),Di(Ui,Ui,r,1),e[n]=Mi(Ui)):t===Fi?Di(e[n],e[n],r,1):t===Ii&&Oi(e[n],e[n],r,1)},e}(),Gi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){te(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ue(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,ji(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ji(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Ki=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zi:Xi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Gr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Qr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(H(e))for(var n=ue(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState($i,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===$i;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(re(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){te(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=pa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ha(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=re(r,e),a=re(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var ga=`__zr_style_`+Math.round(Math.random()*10),_a={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},va={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_a[ga]=!0;var ya=[`z`,`z2`,`invisible`],ba=[`invisible`],xa=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ue(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Aa[0]=Oa(i)*n+e,Aa[1]=Da(i)*r+t,ja[0]=Oa(a)*n+e,ja[1]=Da(a)*r+t,l(s,Aa,ja),u(c,Aa,ja),i%=ka,i<0&&(i+=ka),a%=ka,a<0&&(a+=ka),i>a&&!o?a+=ka:ii&&(Ma[0]=Oa(p)*n+e,Ma[1]=Da(p)*r+t,l(s,Ma,s),u(c,Ma,c))}var za={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ba=[],Va=[],Ha=[],Ua=[],Wa=[],Ga=[],Ka=Math.min,qa=Math.max,Ja=Math.cos,Ya=Math.sin,Xa=Math.abs,Za=Math.PI,Qa=Za*2,$a=typeof Float32Array<`u`,eo=[];function to(e){return Math.round(e/Za*1e8)/1e8%2*Za}function no(e,t){var n=to(e[0]);n<0&&(n+=Qa);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Qa?i=n+Qa:t&&n-i>=Qa?i=n-Qa:!t&&n>i?i=n+(Qa-to(n-i)):t&&n0&&(this._ux=Xa(n/Ji/e)||0,this._uy=Xa(n/Ji/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(za.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Xa(e-this._xi),r=Xa(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(za.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(za.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(za.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),eo[0]=r,eo[1]=i,no(eo,a),r=eo[0],i=eo[1];var o=i-r;return this.addData(za.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Ja(i)*n+e,this._yi=Ya(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(za.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(za.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&$a&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ha[0]=Ha[1]=Wa[0]=Wa[1]=Number.MAX_VALUE,Ua[0]=Ua[1]=Ga[0]=Ga[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||Xa(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case za.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=xr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case za.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Or(i,a,y,b,h,g,10),i=h,a=g;break;case za.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Ja(D)*T+C,s=Ya(D)*E+w),m=qa(T,E)*Ka(Qa,Math.abs(O)),i=Ja(k)*T+C,a=Ya(k)*E+w;break;case za.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case za.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case za.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case za.L:u=n[x++],d=n[x++];var w=Xa(u-c),T=Xa(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case za.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;yr(c,k,j,M,D,Ba),yr(l,A,ee,N,D,Va),e.bezierCurveTo(Ba[1],Va[1],Ba[2],Va[2],Ba[3],Va[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case za.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Er(c,k,j,D,Ba),Er(l,A,ee,D,Va),e.quadraticCurveTo(Ba[1],Va[1],Ba[2],Va[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case za.A:var te=n[x++],P=n[x++],F=n[x++],I=n[x++],ne=n[x++],L=n[x++],re=n[x++],ie=!n[x++],ae=F>I?F:I,oe=Xa(F-I)>.001,R=ne+L,z=!1;if(f){var E=p[g++];h+E>_&&(R=ne+L*(_-h)/E,z=!0),h+=E}if(oe&&e.ellipse?e.ellipse(te,P,F,I,re,ne,R,ie):e.arc(te,P,ae,ne,R,ie),z)break lo;C&&(o=Ja(ne)*F+te,s=Ya(ne)*I+P),c=Ja(R)*F+te,l=Ya(R)*I+P;break;case za.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var se=n[x++],ce=n[x++];if(f){var E=p[g++];if(h+E>_){var le=_-h;e.moveTo(u,d),e.lineTo(u+Ka(le,se),d),le-=se,le>0&&e.lineTo(u+se,d+Ka(le,ce)),le-=ce,le>0&&e.lineTo(u+qa(se-le,0),d+ce),le-=se,le>0&&e.lineTo(u,d+qa(ce-le,0));break lo}h+=E}e.rect(u,d,se,ce);break;case za.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=za,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function io(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=lo);var f=Math.atan2(c,s);return f<0&&(f+=lo),f>=r&&f<=i||f+lo>=r&&f+lo<=i}function fo(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var po=ro.CMD,mo=Math.PI*2,ho=1e-4;function go(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&yo(),p=hr(t,r,a,s,vo[0]),f>1&&(m=hr(t,r,a,s,vo[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=Sr(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);_o[0]=-c,_o[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=mo-1e-4){r=0,i=mo;var u=a?1:-1;return o>=_o[0]+e&&o<=_o[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=mo,i+=mo);for(var f=0,p=0;p<2;p++){var m=_o[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=mo+h),(h>=r&&h<=i||h+mo>=r&&h+mo<=i)&&(h>Math.PI/2&&h1&&(n||(s+=fo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case po.M:u=a[m++],d=a[m++],c=u,l=d;break;case po.L:if(n){if(io(c,l,a[m],a[m+1],t,r,i))return!0}else s+=fo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.C:if(n){if(ao(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=bo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.Q:if(n){if(oo(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=xo(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=fo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(uo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=So(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case po.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(io(u,d,f,d,t,r,i)||io(f,d,f,p,t,r,i)||io(f,p,u,p,t,r,i)||io(u,p,u,d,t,r,i))return!0}else s+=fo(f,d,f,p,r,i),s+=fo(u,p,u,d,r,i);break;case po.Z:if(n){if(io(c,l,u,d,t,r,i))return!0}else s+=fo(c,l,u,d,r,i);c=u,l=d}}return!n&&!go(l,d)&&(s+=fo(c,l,u,d,r,i)||0),s!==0}function wo(e,t,n){return Co(e,0,!1,t,n)}function To(e,t,n,r){return Co(e,t,!0,n,r)}var Eo=L({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_a),Do={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},va.style)},Oo=tr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),ko=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Xi:t>.2?Qi:Zi}if(e)return Zi}return Xi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(V(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==$r(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ro(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),To(a,o/s,e,t)))return!0}if(this.hasFill())return wo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Re(Eo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=I({},this.shape);for(var l={},u=ue(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Lo=Math.round;function Ro(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Lo(r*2)===Lo(i*2)&&(e.x1=e.x2=Bo(r,s,!0)),Lo(a*2)===Lo(o*2)&&(e.y1=e.y2=Bo(a,s,!0)),e):e}}function zo(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Bo(r,s,!0),e.y=Bo(i,s,!0),e.width=Math.max(Bo(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Bo(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Bo(e,t,n){if(!t)return e;var r=Lo(e*2);return(r+Lo(t))%2==0?r/2:(r+(n?1:-1))/2}var Vo=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ho={},Uo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vo},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=zo(Ho,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Io(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ko);Uo.prototype.type=`rect`;var Wo={fill:`#000`},Go=2,Ko={},qo={style:L({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},va.style)},Jo=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Wo,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ss(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=as(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(jo),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=is(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=rs(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Go,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=we(s.opacity,t.opacity,1),$o(p,s),y&&(p.lineWidth=we(s.lineWidth,t.lineWidth,g),p.lineDash=Ce(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Wn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Uo),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=Ce(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Fo),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=Ce(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=we(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return es(e)&&(t=[e.fontStyle,e.fontWeight,Qo(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Oe(t)||e.textFont||e.font},t}(xa),Yo={left:!0,right:1,center:1},Xo={top:1,bottom:1,middle:1},Zo=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Qo(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function $o(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Cs=ws;function ws(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Ts(e,t,n)}function Ts(e,t,n){return V(e)?Es(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Es(e){return!!us(e).match(/%$/)}function Ds(e,t,n){return isNaN(t)?n?``+e:+e:(t=ds(fs(0,t),ls),e=(+e).toFixed(t),n?e:+e)}function Os(e){return e.sort(function(e,t){return e-t}),e}function ks(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(ms(e*t)/t===e)return n}return As(e)}function As(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return fs(0,(a<0?0:i-1-a)-r)}function js(e,t,n){var r=ps(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=vs(2*ps(n||1)*ps(r))/ys,a=vs(ps(t))/ys,o=fs(0,gs(-i+a));return isFinite(o)||(o=NaN),o}function Ms(e,t){var n=fs(ks(e),ks(t)),r=e+t;return n>ls?r:Ds(r,n)}var Ns=_s(2,53)-1;function Ps(e){var t=bs*2;return(e%t+t)%t}function Fs(e){return e>-cs&&e=10&&t++,t}function Bs(e,t){var n=zs(e),r=_s(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Ds(e,-n)}function Vs(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Nc(){return[1/0,-1/0]}function Pc(e,t){Rc(t)&&(te[1]&&(e[1]=t))}function Fc(e,t){Rc(t)&&te[1]&&(e[1]=t)}function Lc(e,t){zc(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function Rc(e){return e!=null&&isFinite(e)}function zc(e,t){return Rc(e)&&Rc(t)&&e<=t}function Bc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Vc(e){zc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Hc(){var e=`__ec_once_`+Uc++;return function(t,n){ze(t,e)||(t[e]=1,n())}}var Uc=Ws();function Wc(e,t,n){var r=Ie(),i=0;R(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Gc(e){return e.value+``}function Kc(e){return e+``}function qc(e,t){return Ce(t,!0)?e.seriesIndex+2:0}function Jc(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Yc(e){return{overallReset:e}}var Xc=Cc(),Zc=function(e,t,n,r){if(r){var i=Xc(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Xc(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Qc=Ie([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),$c=`original`,el=`arrayRows`,tl=`objectRows`,nl=`keyedColumns`,rl=`typedArray`,il=`unknown`,al=`column`,ol=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],sl=function(){function e(e){R(ol,function(t){this[t]=fe(e[t],e)},this)}return e}();function cl(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var ll=1,ul={},dl=Cc(),fl=Cc(),pl=[`emphasis`,`blur`,`select`],ml=[`normal`,`emphasis`,`blur`,`select`],hl=`highlight`,gl=`downplay`,_l=`select`,vl=`unselect`,yl=`toggleSelect`,bl=`selectchanged`;function xl(e){return e!=null&&e!==`none`}function Sl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Cl(e){Sl(e,`emphasis`,2)}function wl(e){e.hoverState===2&&Sl(e,`normal`,0)}function Tl(e){Sl(e,`blur`,1)}function El(e){e.hoverState===1&&Sl(e,`normal`,0)}function Dl(e){e.selected=!0}function Ol(e){e.selected=!1}function kl(e,t,n){t(e,n)}function Al(e,t,n){kl(e,t,n),e.isGroup&&e.traverse(function(e){kl(e,t,n)})}function jl(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof ko){var o=dl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(xl(s)||xl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!xl(l.fill)&&xl(s)?(a=!0,r=I({},r),l=I({},l),l.fill=ti(s)):!xl(l.stroke)&&xl(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=ti(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Nl(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Pl(e,t,n){var r=re(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:jl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Fl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Ml(this,e,t,n);if(e===`blur`)return Pl(this,e,n);if(e===`select`)return Nl(this,e,n)}return n}function Il(e){e.stateProxy=Fl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Fl),n&&(n.stateProxy=Fl)}function Ll(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,Cl)}function Rl(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,wl)}function zl(e,t){e.__highByOuter|=1<<(t||0),Al(e,Cl)}function Bl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Al(e,wl)}function Vl(e){Al(e,Tl)}function Hl(e){Al(e,El)}function Ul(e){Al(e,Dl)}function Wl(e){Al(e,Ol)}function Gl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Kl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=fl(i),o=cl(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){El(e)}),s&&n.push(i)),a.isBlured=!1}),R(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function ql(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function nu(e,t,n){lu(e,!0),Al(e,Il),au(e,t,n)}function ru(e){lu(e,!1)}function iu(e,t,n,r){r?ru(e):nu(e,t,n)}function au(e,t,n){var r=Xc(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var ou=[`emphasis`,`blur`,`select`],su={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function cu(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=bu(m),s*=bu(m));var h=(i===a?-1:1)*bu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Su(d)*g-xu(d)*_,y=(t+r)/2+xu(d)*g+Su(d)*_,b=Eu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Eu(x,S);if(Tu(x,S)<=-1&&(C=Cu),Tu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Cu*1e6)/1e6;C=Cu*2+w%2*Cu}u.addData(l,v,y,o,s,b,C,d,a)}var Ou=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ku=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Au(e){var t=new ro;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ro.CMD,c=e.match(Ou);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=re(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=re(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function td(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function nd(e,t){var n,r=Xu(t.r,0),i=Xu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Ju(c-s),p=f>Uu&&f%Uu;if(p>Qu&&(f=p),!(r>Qu))e.moveTo(l,u);else if(f>Uu-Qu)e.moveTo(l+r*Gu(s),u+r*Wu(s)),e.arc(l,u,r,s,c,!d),i>Qu&&(e.moveTo(l+i*Gu(c),u+i*Wu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Gu(s),j=r*Wu(s),ee=i*Gu(c),M=i*Wu(c),N=f>Qu;if(N){var te=t.cornerRadius;te&&(n=td(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=Ju(r-i)/2;if(v=Zu(P,g),y=Zu(P,_),b=Zu(P,m),x=Zu(P,h),w=S=Xu(v,y),T=C=Xu(b,x),(S>Qu||C>Qu)&&(E=r*Gu(c),D=r*Wu(c),O=i*Gu(s),k=i*Wu(s),fQu){var oe=Zu(g,w),R=Zu(_,w),z=ed(O,k,A,j,r,oe,d),se=ed(E,D,ee,M,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w0&&e.arc(l+z.cx,u+z.cy,oe,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,r,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),!d),R>0&&e.arc(l+se.cx,u+se.cy,R,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Qu)||!N)e.lineTo(l+ee,u+M);else if(T>Qu){var oe=Zu(m,T),R=Zu(h,T),z=ed(ee,M,E,D,i,-R,d),se=ed(A,j,O,k,i,-oe,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T0&&e.arc(l+z.cx,u+z.cy,R,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,i,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),d),oe>0&&e.arc(l+se.cx,u+se.cy,oe,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var rd=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),id=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new rd},t.prototype.buildPath=function(e,t){nd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ko);id.prototype.type=`sector`;var ad=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),od=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ko);od.prototype.type=`ring`;function sd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=sd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sAd[1]){if(i=!1,jd.negativeSize||n)return i;var s=Od(Ad[0]-kd[1]),c=Od(kd[0]-Ad[1]);Ed(s,c)>Nd.len()&&(s=c||!jd.bidirectional)&&(Bt.scale(Md,o,-c*r),jd.useDir&&jd.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Bd(e,t,n,r,i,a){zd(`update`,e,t,n,r,i,a)}function Vd(e,t,n,r,i,a){zd(`enter`,e,t,n,r,i,a)}function Hd(e){if(!e.__zr)return!0;for(var t=0;txd,BezierCurve:()=>yd,BoundingRect:()=>en,Circle:()=>zu,CompoundPath:()=>Sd,Ellipse:()=>Vu,Group:()=>Lu,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Fo,IncrementalDisplayable:()=>Id,Line:()=>hd,LinearGradient:()=>wd,OrientedBoundingRect:()=>Pd,Path:()=>ko,Point:()=>Bt,Polygon:()=>ud,Polyline:()=>fd,RadialGradient:()=>Td,Rect:()=>Uo,Ring:()=>od,Sector:()=>id,Text:()=>Jo,WH:()=>Xd,XY:()=>Yd,applyTransform:()=>ff,calcZ2Range:()=>Ff,clipPointsByRect:()=>_f,clipRectByRect:()=>vf,createIcon:()=>yf,decomposeTransform:()=>zf,ensureCopyRect:()=>Mf,ensureCopyTransform:()=>Nf,expandOrShrinkRect:()=>wf,extendPath:()=>$d,extendShape:()=>Zd,getCurrentCanvasPainter:()=>Vf,getShapeClass:()=>tf,getTransform:()=>df,groupTransition:()=>gf,initProps:()=>Vd,isBoundingRectAxisAligned:()=>Af,isElementRemoved:()=>Hd,lineLineIntersect:()=>xf,linePolygonIntersect:()=>bf,makeImage:()=>rf,makePath:()=>nf,mergePath:()=>of,payloadDisableAnimation:()=>Rf,registerShape:()=>ef,removeElement:()=>Ud,removeElementWithFadeOut:()=>Gd,resizePath:()=>sf,retrieveZInfo:()=>Pf,setTooltipConfig:()=>Df,subPixelOptimize:()=>uf,subPixelOptimizeLine:()=>cf,subPixelOptimizeRect:()=>lf,transformDirection:()=>pf,traverseElements:()=>kf,traverseUpdateZ:()=>If,updateProps:()=>Bd}),Jd={},Yd=[`x`,`y`],Xd=[`width`,`height`];function Zd(e){return ko.extend(e)}var Qd=Fu;function $d(e,t){return Qd(e,t)}function ef(e,t){Jd[e]=t}function tf(e){if(Jd.hasOwnProperty(e))return Jd[e]}function nf(e,t,n,r){var i=Pu(e,t);return n&&(r===`center`&&(n=af(n,i.getBoundingRect())),sf(i,n)),i}function rf(e,t,n){var r=new Fo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(af(t,i))}}});return r}function af(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var of=Iu;function sf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function cf(e,t){return Ro(e,e,{lineWidth:t}),e}function lf(e,t){return zo(e,e,t),e}var uf=Bo;function df(e,t){for(var n=_t([]);e&&e!==t;)yt(n,e.getLocalTransform(),n),e=e.parent;return n}function ff(e,t,n){return t&&!oe(t)&&(t=$n.getLocalTransform(t)),n&&(t=Ct([],t)),Lt([],e,t)}function pf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ps(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ps(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=ff(a,t,n),ps(a[0])>ps(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function mf(e){return!e.isGroup}function hf(e){return e.shape!=null}function gf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){mf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return hf(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(mf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Bd(e,r,n,Xc(e).dataIndex)}}})}function _f(e,t){return z(e,function(e){var n=e[0];n=fs(n,t.x),n=ds(n,t.x+t.width);var r=e[1];return r=fs(r,t.y),r=ds(r,t.y+t.height),[n,r]})}function vf(e,t){var n=fs(e.x,t.x),r=ds(e.x+e.width,t.x+t.width),i=fs(e.y,t.y),a=ds(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function yf(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),L(i,n),new Fo(r)):nf(e.replace(`path://`,``),r,n,`center`)}function bf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Sf(p,m,u,d)/f;return!(g<0||g>1)}function Sf(e,t,n,r){return e*r-n*t}function Cf(e){return e<=1e-6&&e>=-1e-6}function wf(e,t,n,r,i){return t==null?e:(ge(t)?Tf[0]=Tf[1]=Tf[2]=Tf[3]=t:(Tf[0]=t[0],Tf[1]=t[1],Tf[2]=t[2],Tf[3]=t[3]),r&&(Tf[0]=fs(0,Tf[0]),Tf[1]=fs(0,Tf[1]),Tf[2]=fs(0,Tf[2]),Tf[3]=fs(0,Tf[3])),n&&(Tf[0]=-Tf[0],Tf[1]=-Tf[1],Tf[2]=-Tf[2],Tf[3]=-Tf[3]),Ef(e,Tf,`x`,`width`,3,1,i&&i[0]||0),Ef(e,Tf,`y`,`height`,0,2,i&&i[1]||0),e)}var Tf=[0,0,0,0];function Ef(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=fs(0,ds(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:ps(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Df(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=V(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&R(ue(c),function(e){ze(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Xc(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:L({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Of(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function kf(e,t){if(e){if(B(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function If(e,t,n){Lf(e,t,n,-1/0)}function Lf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Hp=(e={},e[el+`_`+al]={pure:!0,appendData:i},e[el+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[tl]={pure:!0,appendData:i},e[nl]={pure:!0,appendData:function(e){var t=this._data;R(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[$c]={appendData:i},e[rl]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){ge(t)||$s(``),this._opFn=um[e],this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){return ge(e)?this._opFn(e,this._rvalFloat):this._opFn(Hs(e),this._rvalFloat)},e})();var dm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ge(e)?e:Hs(e),r=ge(t)?t:Hs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=V(e),s=V(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Hs(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function fm(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function pm(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,hm=typeof Uint16Array>`u`?Array:Uint16Array,gm=typeof Int32Array>`u`?Array:Int32Array,_m=typeof Float64Array>`u`?Array:Float64Array,vm={float:_m,int:gm,ordinal:Array,number:Array,time:_m},ym;function bm(e){return e>65535?mm:hm}function xm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sm(e,t,n,r,i){var a=vm[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=z(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(bm(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return lm(e[r],this._dimensions[r])}ym={arrayRows:e,objectRows:function(e,t,n,r){return lm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return lm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),wm=Cc(),Tm={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Em=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=km(this.source))},e.prototype.getSourceDimensionIndex=function(e){return Ce(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Lp(this.source),n=!Am(e),r=``,i=[],a=0,o=0;a30}var jm=H,Mm=z,Nm=typeof Int32Array>`u`?Array:Int32Array,Pm=`e\0\0`,Fm=-1,Im=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Lm=[`_approximateExtent`],Rm,zm,Bm,Vm,Hm,Um,Wm,Gm=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Dm(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():jm(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,jm(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){jm(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Zc(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Mm(this.dimensions,this._getDimInfo,this),this.hostModel),Hm(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Te(arguments)))})},e.internalField=function(){Rm=function(e){var t=e._invertedIndicesMap;R(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Nm(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Km(e,t){Op(e)||(e=Ap(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ie(),a=[],o=qm(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Am(o),c=r===e.dimensionsDefine,l=c?km(e):Om(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Ie(u),f=new gm(o),p=0;p0&&(e.name+=t-1)}),new Em({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qm(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(e){var t;H(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Jm(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Ym={},Xm={},Zm=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ym,!0),this._normalMasterList=n(Xm,!1);function n(n,r){var i=[];return R(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){R(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Ym[e]=t;return}Xm[e]=t},e.get=function(e){return Xm[e]||Ym[e]},e}();function eee(e){return!!Ym[e]}var tee=Ie();function Qm(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=tee.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function $m(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!eee(n)&&(i=0))}return{coordSysType:n,kind:i}}function eh(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=$m(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var th=function(){function e(e){this.coordSysDims=[],this.axisMap=Ie(),this.categoryAxisMap=Ie(),this.coordSysName=e}return e}();function nh(e){var t=e.get(`coordinateSystem`),n=new th(t),r=rh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var rh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Dc).models[0],a=e.getReferringComponents(`yAxis`,Dc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),ih(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),ih(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Dc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),ih(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Dc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),ih(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),ih(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),ih(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Dc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function ih(e){return e.get(`type`)===`category`}function ah(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;oh(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(R(a,function(e,t){V(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),R(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;R(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function oh(e){return!Dm(e.schema)}function sh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function ch(e,t){return sh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function lh(e,t){var n=e.get(`coordinateSystem`),r=Zm.get(n),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=om(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function uh(e,t,n){var r,i;return n&&R(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function dh(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Ap(e)):(i=r.getSource(),a=i.sourceFormat===$c);var o=nh(t),s=lh(t,o),c=n.useEncodeDefaulter,l=me(c)?c:c?pe(Sp,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Km(i,u),f=uh(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=ah(t,{schema:d,store:p}),h=new Gm(d,t);h.setCalculationInfo(m);var g=f!=null&&fh(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function fh(e){if(e.sourceFormat===`original`)return!B(ac(ph(e.data||[])))}function ph(e){for(var t=0;t=0&&n.push(e)}),n}}function vh(e,t){return F(F({},e,!0),t,!0)}var yh=Math.log(2);function bh(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){R(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Oh(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?xh(s,o):xh(o,s))}function kh(e){return e.nodeName.toUpperCase()===`CANVAS`}var Ah=/([&<>"'])/g,jh={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Mh(e){return e==null?``:(e+``).replace(Ah,function(e,t){return jh[t]})}var Nh={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},Ph={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Fh=`ZH`,Ih=`EN`,Lh=Ih,Rh={},zh={},Bh=Ue.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Lh).toUpperCase().indexOf(Fh)>-1?Fh:Lh}():Lh;function Vh(e,t){e=e.toUpperCase(),zh[e]=new hp(t),Rh[e]=t}function Hh(e){if(V(e)){var t=Rh[e.toUpperCase()]||{};return e===Fh||e===Ih?P(t):F(P(t),P(Rh[Lh]),!1)}return F(P(e),P(Rh[Lh]),!1)}function Uh(e){return zh[e]}function nee(){return zh[Lh]}Vh(Ih,Nh),Vh(Fh,Ph);var ree=null;function Wh(){return ree}function Gh(e,t){var n=Wh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Kh(e){var t=e.brk;return t?t.breaks:[]}function qh(e){var t=e.brk;return t?t.hasBreaks():!1}var Jh=1e3,Yh=Jh*60,Xh=Yh*60,Zh=Xh*24,Qh=Zh*365,$h={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},eg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},tg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,ng=`{yyyy}-{MM}-{dd}`,rg={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:ng,hour:ng+` `+eg.hour,minute:ng+` `+eg.minute,second:ng+` `+eg.second,millisecond:tg},ig=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],ag=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function og(e){return!V(e)&&!me(e)?sg(e):e}function sg(e){e||={};var t={},n=!0;return R(ig,function(t){n&&=e[t]==null}),R(ig,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=ig[s],l=H(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):V(l)?(o=l,u=[o]):(o==null?o=eg[r]:$h[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function cg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function lg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function ug(e){return e===lg(e)}function dg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function fg(e,t,n,r){var i=Ls(e),a=i[gg(n)](),o=i[_g(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[vg(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[yg(n)](),d=(u-1)%12+1,f=i[bg(n)](),p=i[xg(n)](),m=i[Sg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof hp?r:Uh(r||Bh)||nee()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,cg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,cg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,cg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,cg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,cg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,cg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,cg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,cg(m,3)).replace(/{S}/g,m+``)}function pg(e,t,n,r,i){var a=null;if(V(n))a=n;else if(me(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Wh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=mg(e.value,i);a=n[u][u][0]}}return fg(new Date(e.value),a,i,r)}function mg(e,t){var n=Ls(e),r=n[_g(t)]()+1,i=n[vg(t)](),a=n[yg(t)](),o=n[bg(t)](),s=n[xg(t)](),c=n[Sg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function hg(e,t,n){switch(t){case`year`:e[wg(n)](0);case`month`:e[Tg(n)](1);case`day`:e[Eg(n)](0);case`hour`:e[Dg(n)](0);case`minute`:e[Og(n)](0);case`second`:e[kg(n)](0)}return e}function gg(e){return e?`getUTCFullYear`:`getFullYear`}function _g(e){return e?`getUTCMonth`:`getMonth`}function vg(e){return e?`getUTCDate`:`getDate`}function yg(e){return e?`getUTCHours`:`getHours`}function bg(e){return e?`getUTCMinutes`:`getMinutes`}function xg(e){return e?`getUTCSeconds`:`getSeconds`}function Sg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Cg(e){return e?`setUTCFullYear`:`setFullYear`}function wg(e){return e?`setUTCMonth`:`setMonth`}function Tg(e){return e?`setUTCDate`:`setDate`}function Eg(e){return e?`setUTCHours`:`setHours`}function Dg(e){return e?`setUTCMinutes`:`setMinutes`}function Og(e){return e?`setUTCSeconds`:`setSeconds`}function kg(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Ag(e){if(!Us(e))return V(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function jg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Mg=Ee;function Ng(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Oe(e)?e:`-`}function a(e){return qs(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ls(e):e;if(!isNaN(+c))return fg(c,r,n);if(s)return`-`}if(t===`ordinal`)return he(e)?i(e):ge(e)&&a(e)?e+``:`-`;var l=Hs(e);return a(l)?Ag(l):he(e)?i(e):typeof e==`boolean`?e+``:`-`}var Pg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Fg=function(e,t){return`{`+e+(t??``)+`}`};function Ig(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Rg(e,t){return t||=`transparent`,V(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var zg=R,Bg=[`left`,`right`,`top`,`bottom`,`width`,`height`],Vg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Hg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var Ug=Hg;pe(Hg,`vertical`),pe(Hg,`horizontal`);function Wg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Gg(e,t,n){n=Mg(n||0);var r=t.width,i=t.height,a=Cs(e.left,r),o=Cs(e.top,i),s=Cs(e.right,r),c=Cs(e.bottom,i),l=Cs(e.width,r),u=Cs(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new en((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var Kg={rect:1,point:2};function qg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Qm(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Kg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Kg.point,s=u,i=o.dataToPoint(l))}return a??=Kg.rect,a===Kg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function Jg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new en(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Gg(L({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Yg(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Xg(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(Vg[0],0),a=o(Vg[1],1);c(Vg[0],e,i),c(Vg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(zg(n,function(t){c[t]=e[t]}),zg(n,function(e){ze(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d=0;o--)a=F(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Oc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Wg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(hp);$e(e_,hp),it(e_),gh(e_),_h(e_,t_);function t_(e){var t=[];return R(e_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return Je(e).main}),e!==`dataset`&&re(t,`dataset`)<=0&&t.unshift(`dataset`),t}var n_=Cc(),r_=Cc(),i_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=nc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return s_(this,n_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){c_(this,n_)},e}();function a_(e,t,n,r){return s_(e,r_,nc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function o_(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function s_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:o_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function c_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var l_=/\{@(.+?)\}/g,u_=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),me(i))return s.status=t,s.dimensionIndex=r,i(s);if(V(i))return Ig(i,s).replace(l_,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=nm(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return nm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function d_(e){var t,n;return H(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function f_(e){return new p_(e)}var p_=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(D_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ve(o)?rl:$c,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=Ce(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ce(u.sourceHeader,d.sourceHeader),m=Ce(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[kp(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[kp(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&O_(``);var i,a=[],o=[];return R(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&O_(``),a.push(t),o.push(e._getVersionSign())}),n?i=C_(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[jp(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return R(e.blocks,function(e){var n=I_(e);n>=t&&(t=n+ +(r&&(!n||P_(e)&&!e.noHeader)))}),t}return 0}function L_(e,t,n,r){var i=t.noHeader,a=B_(I_(t)),o=[],s=t.blocks||[];De(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(ze(l,c)){var u=new dm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}R(s,function(n,i){var s=t.valueFormatter,c=F_(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):V_(r,o.join(``),i?n:a.html);if(i)return d;var f=Mg(t.header,`ordinal`,e.useUTC),p=A_(r,e.renderMode).nameStyle,m=k_(r);return e.renderMode===`richText`?W_(e,f,p)+a.richText+d:V_(r,`
`+kh(f)+`
`+d,n)}function R_(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],z(e,function(e,t){return Mg(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||w_.color.secondary,i),f=a?``:Mg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=A_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:W_(e,f,v))+(o?``:G_(e,m,h,g,y)):V_(r,(s?``:d)+(a?``:H_(f,!s,v))+(o?``:U_(m,h,g,y)),n)}}function z_(e,t,n,r,i,a){if(e)return F_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function B_(e){return{html:j_[e],richText:M_[e]}}function V_(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=k_(e);return`
`+t+r+`
`}function H_(e,t,n){var r=t?`margin-left:2px`:``;return``+kh(e)+``}function U_(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],``+z(e,function(e){return kh(e)}).join(`  `)+``}function W_(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function G_(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function K_(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Lg(n)}function q_(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var J_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ws()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Ig({color:t,type:e,renderMode:n,markerId:r});return V(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?R(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Y_(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=K_(t,n),u,d,f,p;if(o>1||c&&!o){var m=X_(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=nm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=_c(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return N_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[N_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Oe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function X_(e,t,n,r,i){var a=t.getData(),o=se(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?R(r,function(e){u(nm(a,n,e),e)}):R(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(N_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var Z_=Cc();function Q_(e,t){return e.getName(t)||e.getId(t)}var $_=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=d_({count:nv,reset:rv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Z_(this).sourceManager=new x_(this)).prepareSource();var r=this.getInitialData(e,n);av(r,this),this.dataTask.context.data=r,Z_(this).dataBeforeProcessed=r,ev(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Jg(this),r=n?Xg(e):{},i=this.subType;$g.hasClass(i)&&(i+=`Series`),F(e,t.getTheme().get(this.subType)),F(e,this.getDefaultOption()),rc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Yg(e,r,n)},t.prototype.mergeOption=function(e,t){e=F(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Jg(this);n&&Yg(this.option,e,n);var r=Z_(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);av(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Z_(this).dataBeforeProcessed=i,ev(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ve(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Y_({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ue.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=r_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[Q_(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){H(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return $g.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}($g);ae($_,l_),ae($_,r_),$e($_,$g);function ev(e){var t=e.name;_c(e)||(e.name=tv(e)||t)}function tv(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return R(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function nv(e){return e.model.getRawData().count()}function rv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),iv}function iv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function av(e,t){R(Le(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,pe(ov,t))})}function ov(e,t){var n=sv(e);return n&&n.setOutputEnd((t||this).count()),t}function sv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var cv=ko.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),lv={line:hd,rect:Uo,roundRect:Uo,square:Uo,circle:zu,diamond:ko.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:ko.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:ko.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:cv},uv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},dv={};R(lv,function(e,t){dv[t]=new e});var fv=ko.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Cn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=dv[r];i||=(r=`rect`,dv[r]),uv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function pv(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||w_.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function mv(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?rf(e.slice(8),new en(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?nf(e.slice(7),{},new en(t,n,r,i),o?`center`:`cover`):new fv({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=pv,a&&c.setColor(a),c}function hv(e,t){if(e!=null)return B(e)||(e=[e,e]),[Cs(e[0],t[0])||0,Cs(Ce(e[1],e[0]),t[1])||0]}function gv(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=nm(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var vv=typeof Float32Array<`u`?Float32Array:void 0,yv=typeof Float64Array<`u`?Float64Array:void 0;function bv(e){return xv({ctor:vv},e).arr}function xv(e,t){var n=e.arr,r=e.ctor;if(t>Ns&&(t=Ns),!n||e.typed&&n.length=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){Yv(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),Yv(r,e,t,n)},freeze:function(){}};function Yv(e,t,n,r){zc(n,r)&&(e[t][0]=n,e[t][1]=r)}function Xv(e){return Zv(e)||$v(e)}function Zv(e){return e.type===`interval`}function Qv(e){return e.type===`time`}function $v(e){return e.type===`log`}function ey(e){return e.type===`ordinal`}function ty(e){var t=zs(e),n=_s(10,t),r=ms(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ds(r*n,-t)}function ny(e){return ks(e)+2}function ry(e,t){return vs(e)/vs(t)}function iy(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var ly=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Vv(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Lv({}),B(i)&&(i=new Lv({categories:z(i,function(e){return H(e)?e.value:e})})),r._ordinalMeta=i;var a=Bv(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Hv(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:V(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=ms(e),e},t.prototype.getTicks=function(){var e=[];return cy(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=ds(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=ds(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Ds(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Ds(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Ds(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return uy(this,e,Gh(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ks(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),kg(Ds(e.value,n,!0))},t.type=`interval`,t}(Fv);Fv.registerClass(dy);var fy=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function _y(e){var t=30*Xh;return e/=t,e>6?6:e>3?3:e>2?2:1}function vy(e){return e/=Yh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function yy(e,t){return e/=t?Jh:qh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function by(e){return fs(Bs(e,!0),1)}function xy(e,t,n){var r=Math.max(0,re(rg,t)-1);return mg(new Date(e),rg[r],n).getTime()}function Sy(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Cy(e,t,n,r,i,a){var o=ig,s=0;function c(e,t,n,i,o,c,l){for(var u=Sy(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!hy(cg(e),r[0],r[1],n)){s&&(i=[{value:xy(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ce(z(u,function(e){return ce(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=my.length,l=Math.min(fy(my,a,0,c),c-1),u=my[l][1],d=my[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Fv.registerClass(py);var Ty=0,Ey=1,Dy=2,Oy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=dy.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Ty]=i[Ey]=a[Ty]=a[Ey]=NaN,Vv(r,t.mapperMethods);var s=Uh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},Dy,l),r.powStub=new dy({breakParsed:l.original}),r.intervalStub=new dy({breakParsed:l.transformed}),Hv(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Uh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return z(i.getTicks(e||{}),function(e){var i=e.value,o=iy(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Gh(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return uy(this,e,Gh(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(ry(e,this.base))},scale:function(e){return iy(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=ry(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return ky.depth=n,Ay.lookup=this._lookup,iy(n===2?e:this.intervalStub.transformOut(e,ky),this.base,Ay)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!zc(t,n)||t<=0||n<=0)){var r=jy,i=jy;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Ty]=t,r[Ey]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Ty]=ry(t,o),i[Ey]=ry(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return zc(t[0],t[1])&&qs(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(Fv);Fv.registerClass(Oy);var ky={},Ay={},jy=[],My={value:1,category:1,time:1,log:1},Ny=Cc();function Py(e){var t=e.get(`type`);return(t==null||!ze(My,t)&&!Fv.getClass(t))&&(t=`value`),t}function Fy(e,t,n){var r=Uh(),i;switch(r&&(i=Ky(e,t,n)),t){case`category`:return new ly({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Nc()});case`time`:return new py({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Oy({logBase:e.get(`logBase`),breakOption:i});case`value`:return new dy({breakOption:i});default:return new((Fv.getClass(t))||dy)({})}}function Iy(e,t,n){var r=n?Wv(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return zc(i,a)?i===t||a===t?2:it?1:3:3}function Ly(e){Ny(e).noOnMyZero=!0}function Ry(e){return Ny(e).noOnMyZero}function zy(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=ag(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(V(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(me(t)){if(e.type===`category`)return function(n,r){return t(By(e,n),n.value-e.scale.getExtent()[0],null)};var r=Uh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(By(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function By(e,t){var n=e.scale;return ey(n)?n.getLabel(t):t.value}function Vy(e){return e.get(`interval`)??`auto`}function Hy(e){return e.type===`category`&&Vy(e.getLabelModel())===0}function Uy(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[sh(e,t)]=!0}),ue(n)}function Wy(e){return e===`middle`||e===`center`}function Gy(e){return e.getShallow(`show`)}function Ky(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Uh()||!n||!qy(t)?void 0:r}function qy(e){return e!==`category`}function Jy(e,t,n,r,i,a){var o=$v(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=oy(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function Yy(e,t){return ey(e)?e.getRawOrdinalNumber(t.value):t.value}function Xy(e,t){return ey(e)&&!!t.get(`boundaryGap`)}var Zy={average:function(e){for(var t=0,n=0,r=0;rt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;V(i)?p=Zy[i]:me(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Qy))}}}}}var eb=Cc(),tb=Cc(),nb={estimate:1,determine:2};function rb(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function ib(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:z(ob(n,r),function(t,n){return{formattedLabel:zy(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?sb(e,t):ub(e)}function ab(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:ob(i,r)}:e.type===`category`?lb(e,t):{ticks:r.getTicks(n)}}function ob(e,t){var n=t.getExtent(),r=[];return R(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Wc(r,Kc,null),Os(r),z(r,function(e){return{value:e}})}function sb(e,t){var n=e.getLabelModel(),r=cb(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function cb(e,t,n){var r=fb(e),i=Vy(t),a=n.kind===nb.estimate;if(!a){var o=mb(r,i);if(o)return o}var s,c;me(i)?s=xb(e,i,!1):(c=i===`auto`?gb(e,n):i,s=xb(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return hb(r,i,l),!0}):hb(r,i,l),l}function lb(e,t){var n=db(e),r=Vy(t),i=mb(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),me(r))a=xb(e,r,!0);else if(r===`auto`){var s=cb(e,e.getLabelModel(),rb(nb.determine));o=s.labelCategoryInterval,a=z(s.labels,function(e){return e.tick})}else o=r,a=xb(e,o,!0);return hb(n,r,{ticks:a,tickCategoryInterval:o})}function ub(e){var t=e.scale.getTicks(),n=zy(e);return{labels:z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var db=pb(`axisTick`),fb=pb(`axisLabel`);function pb(e){return function(t){return tb(t)[e]||(tb(t)[e]={list:[]})}}function mb(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=vn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===nb.estimate?(t.out.noPxChangeTryDetermine.push(fe(vb,null,e,S,c)),S):yb(e,S,c)??S}function vb(e,t,n){return yb(e,t,n)==null}function yb(e,t,n){var r=eb(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function bb(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function xb(e,t,n){var r=zy(e),i=e.scale,a=[],o=me(t);return cy(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var Sb=Cc();function Cb(e){Sb(e).prepare={}}function wb(e){Sb(e).fullUpdate={}}function Tb(e){return Sb(e).prepare}function Eb(e){return Sb(e).fullUpdate}var Db=Hc(),Ob=Cc(),kb=Cc();function Ab(e,t){var n=e.model,r=Ob(Eb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function jb(e,t){return Pb(Ab(e,t))}function Mb(e,t){var n=[];return Nb(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),qs(n)&&n>0&&qs(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*qb,e.w2=e.w*n/r)}var Zb=[0,1],Qb=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Ss(e,Zb,$b(this),t)},e.prototype.coordToData=function(e,t){var n=Ss(e,$b(this),Zb,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=z(ab(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(Yy(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=ex(this,n,r);return z(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(ey(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),z(this.scale.getMinorTicks(e),function(e){return z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=rb(nb.determine),ib(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return Jb(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=rb(nb.determine),_b(this,e)},e}();function $b(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function ex(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=Jb(e).w;if(!i)return!1;R(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var tx=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Qb),nx=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],rx=1,ix=2,ax=rx|ix;function ox(e,t,n){n||=ax,t?e.dirty|=n:e.dirty&=~n}function sx(e,t){return t||=ax,e.dirty==null||!!(e.dirty&t)}function cx(e){if(e)return sx(e)&&lx(e,e.label,e),e}function lx(e,t,n){var r=t.getComputedTransform();e.transform=Nf(e.transform,r);var i=e.localRect=Mf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=ip.textMargin);for(var d=0;d<4;d++)ux[d]=u===ip.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===ip.textMargin&&wf(i,ux,!1,!1);var f=e.rect=Mf(e.rect,i);return r&&f.applyTransform(r),u===ip.minMargin&&wf(f,ux,!1,!1),e.axisAligned=Af(r),(e.label=e.label||{}).ignore=t.ignore,ox(e,!1),ox(e,!0,ix),e}var ux=[0,0,0,0];function dx(e,t,n){return e.transform=Nf(e.transform,n),e.localRect=Mf(e.localRect,t),e.rect=Mf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Af(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function fx(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function px(e,t){for(var n=0;n.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new en(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Ox=gt(),kx=new en(0,0,0,0),Ax=function(e,t,n,r,i,a){if(Wy(e.nameLocation)){var o=a.stOccupiedRect;o&&jx(dx({},o,a.transGroup.transform),r,i)}else Mx(a.labelInfoList,a.dirVec,r,i)};function jx(e,t,n){var r=new Bt;gx(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&fx(t,r)}function Mx(e,t,n,r){for(var i=Bt.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):Fs(r-bx)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Px=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Fx={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Lt(u,u,l),Lt(d,d,l));var p=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Kh(r.axis.scale))vx().buildAxisBreakLine(r,i,a,m);else{var h=new hd(I({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));cf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);V(g)&&(g=[g,g]),(V(_)||ge(_))&&(_=[_,_]);var v=hv(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=mv(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Wx(t,i,s)&&Ix(e,t,n,r,i,a,o,nb.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Wx(t,i,s)&&Ix(e,t,n,r,i,a,o,nb.determine);var c=Hx(e,i,a,r);zx(e,t.labelLayoutList,c),Ux(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Zx(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Bt(0,0),_=new Bt(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=gt();_.transform(xt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*bx/180);var b,x;Wy(u)?b=Nx.innerTextLayout(e.rotation,y??e.rotation,d):(b=Lx(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=Se(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Jo({x:g.x,y:g.y,rotation:b.rotation,silent:Nx.isLabelSilent(r),style:qf(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Df({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Nx.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Xc(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=cx({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Wy(u)?xx[E]:Sx[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function Ix(e,t,n,r,i,a,o,s){Kx(t)||Gx(e,t,i,s,r,o);var c=t.labelLayoutList;Jx(e,r,c,a),$x(r,e.rotation,c);var l=e.optionHideOverlap;Rx(r,c,l),l&&hx(ce(c,function(e){return e&&!e.label.ignore})),Dx(e,n,r,c)}function Lx(e,t,n,r){var i=Ps(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Fs(i-bx/2)?(o=c?`bottom`:`top`,a=`center`):Fs(i-bx*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=ibx/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Rx(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(Hy(r))return;function a(e,a,o){var s=cx(t[a]),c=cx(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Cx(s.label).labelInfo.tick;if(Qv(l)&&u.notNice||ey(l)&&u.offInterval){Bx(s.label);return}}if(e===!1||s.suggestIgnore){Bx(s.label);return}if(c.suggestIgnore){Bx(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=px({marginForce:f},s),c=px({marginForce:f},c)}gx(s,c,null,{touchThreshold:d})&&Bx(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function zx(e,t,n){e.showMinorTicks||R(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=lS(e,t.get(`startValue`,!0)),x=b!=null;!qs(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),qs(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),cS(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),cS(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function cS(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Vc(t))}function lS(e,t){return t==null?null:xe(t)?NaN:e.parse(t)}function uS(e,t){var n;if(ey(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=B(r)?r:[r,r]}return[dS(n[0]),dS(n[1])]}function dS(e){return Sn(typeof e==`boolean`?0:e,1)||0}function fS(e){var t=aS(e.scale);return t.extent||=Nc(),t}function pS(e,t){fS(e).dimIdxInCoord=t.get(e.dim)}function mS(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||hS(n,e,i,r,t)}function hS(e,t,n,r,i){var a=fS(t),o=a.extent,s=!1;Fb(t,function(r){if(r.boxCoordinateSystem){var i=Qm(r).coord,c=a.dimIdxInCoord;if(c>=0&&B(i)){var l=i[c];l!=null&&!B(l)&&Pc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;R(Uy(u,n),function(e){Lc(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=lee(e,t,r);_S(e,new sS(e,r,o,s,c),i),a.extent=null}function gS(e,t){var n=e.scale;_S(n,new sS(n,e.model,t,!1,!1),oS)}function _S(e,t,n){e.rawExtentInfo=t,t.from=n}function vS(e,t){yS.set(e,t)}var yS=Ie();function bS(e,t,n,r,i){e.rawExtentInfo||gS({scale:e,model:t},i||Nc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function lee(e,t,n){var r=Xy(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return zb(t,function(e){a=!!yS.get(e)||a}),a}function uee(e,t,n,r){if(n.ctnShp){var i;if(zb(e,function(t){var n=yS.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Fc(i,a[0]),Ic(i,a[1]),Ly(e))}}),i){var a=t.getExtent();if(ey(t))e.onBand||t.setExtent2(1,ds(a[0],a[0]+i[0]),fs(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=ds(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=fs(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function dee(){Vb(`liPosMinGap`,fee)}function fee(e,t,n){var r=Ie(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=fm(u);function f(n){Lb(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}xv(xS,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}var xS=xv({ctor:yv},50);function pee(e){return function(t,n){var r=Jb(t,{fromStat:{key:e}});if(qs(r.w2))return[-r.w2/2,r.w2/2]}}function SS(e,t){return e+`|&`+t}function mee(e){return dee(),{liPosMinGap:!ey(e.scale)}}function hee(e,t,n,r){Gb(e,{key:t,seriesType:n,coordSysType:r,getMetrics:mee})}function gee(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var CS={left:0,right:0,top:0,bottom:0},wS=[`25%`,`25%`],TS=`cartesian2d`,ES=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Xg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Yg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Yg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:CS,outerBoundsContain:`all`,outerBoundsClampWidth:wS[0],outerBoundsClampHeight:wS[1],backgroundColor:w_.color.transparent,borderWidth:1,borderColor:w_.color.neutral30},t}($g),_ee=Hc(),DS=`__ec_stack_`;function OS(e){return e.get(`stack`)||DS+e.seriesIndex}function kS(e,t){var n=AS(e,t);return n.columnMap=jS(n),n}function AS(e,t){var n=SS(t,TS),r=[],i=Jb(e,{fromStat:{key:n},min:1});return Ib(e,n,function(e){r.push({barWidth:Cs(e.get(`barWidth`),i.w),barMaxWidth:Cs(e.get(`barMaxWidth`),i.w),barMinWidth:Cs(e.get(`barMinWidth`)||(PS(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:OS(e)})}),{bandWidthResult:i,seriesInfo:r}}function jS(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;ze(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=ds(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=fs(35-o.length*4,15)+`%`;var c=Cs(i,t),l=Cs(a,1),u=(n-c)/(r+(r-1)*l);u=fs(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=ds(o,i)),a&&(o=fs(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&io&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=fs(u,0);var d=0,f;R(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return R(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function MS(e){return{seriesType:e,overallReset:function(t){var n=SS(e,TS);Rb(t,n,function(t){var r=kS(t,e);Ib(t,n,function(e){var t=r.columnMap[OS(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function NS(e){return{seriesType:e,plan:Sv(),reset:function(e){if(tS(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=oh(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(gee(i))),p=PS(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&bv(r*3),c=p&&s&&bv(r*3),l=p&&bv(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,ps(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}($_);$_.registerClass(LS);var RS=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return lh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Jc(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=hh(LS.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:w_.color.primary,borderWidth:2}},realtimeSort:!1}),t}(LS),zS=`\0__throttleOriginMethod`,BS=`\0__throttleRate`,VS=`\0__throttleType`;function HS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function US(e,t,n,r){var i=e[t];if(i){var a=i[zS]||i,o=i[VS];if(i[BS]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=HS(a,n,r===`debounce`),i[zS]=a,i[VS]=r,i[BS]=n}return i}}function WS(e,t){var n=e[t];n&&n[zS]&&(n.clear&&n.clear(),e[t]=n[zS])}var GS=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),KS=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new GS},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Gd(t,e,Xc(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Tv),tC={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=QS(t.x,e.x),s=$S(t.x+t.width,i),c=QS(t.y,e.y),l=$S(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=$S(t.r,e.r),a=QS(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},nC={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Uo({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?KS:id,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=qS(uC(i),{isRoundCap:l===KS}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Bd:Vd)(u,{shape:p},a)}return u}};function rC(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function iC(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Bd:Vd)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Bd:Vd)(n,{shape:l},u,i)}function aC(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function lC(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function uC(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function dC(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,ZS(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?vC(i,a.coordinateSystem):yC(i,a.coordinateSystem),p=Kf(r);Gf(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:gv(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,JS(e,h===`outside`?f:h,uC(o),r.get([`label`,`rotate`]))}rp(m,p,a.getRawValue(n),function(e){return _v(t,e)});var g=r.getModel([`emphasis`]);iu(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),cu(e,r),lC(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function yee(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var bee=function(){function e(){}return e}(),fC=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new bee},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function hC(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function gC(e,t,n){if(Pv(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function _C(e,t,n){return new(e.type===`polar`?id:Uo)({shape:gC(t,n,e),silent:!0,z2:0})}function vC(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function yC(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function bC(e){e.registerChartView(eC),e.registerSeriesModel(RS),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,MS(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,NS(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$y(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),IS(e)}function xC(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&OC(e,i,t,n)}else{OC(e,t,t,n);var a=MC(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&TC.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function MC(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function NC(e,t,n,r){e.addEventListener(t,n,r)}function PC(e,t,n,r){e.removeEventListener(t,n,r)}var FC=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},IC=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=LC(r)/LC(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=RC(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},BC=`silent`;function VC(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:HC}}function HC(){FC(this.event)}var UC=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ki),WC=function(){function e(e,t){this.x=e,this.y=t}return e}(),GC=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],KC=new en(0,0,0,0),qC=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new WC(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new UC,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new wC(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(GC,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=XC(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new WC(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new WC(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=VC(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new WC(e,t);if(YC(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new en(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(KC.copy(u.getBoundingRect()),u.transform&&KC.applyTransform(u.transform),KC.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function JC(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||BC}return!1}function YC(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=JC(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==BC)){t.target=o;break}}}function XC(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var ZC=32,QC=7;function $C(e){for(var t=0;e>=ZC;)t|=e&1,e>>=1;return e+t}function ew(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function tw(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function rw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function iw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function aw(e,t){var n=QC,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=QC||m>=QC);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-rw(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=QC||g>=QC);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),nw(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var sw=!1;function cw(){sw||(sw=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function lw(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var uw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lw}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),dw=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function fw(){return new Date().getTime()}var pw=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=fw()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(dw(t),!e._paused&&e.update())}dw(t)},t.prototype.start=function(){this._running||(this._time=fw(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=fw(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=fw()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Gi(e,t.loop);return this.addAnimator(n),n},t}(Ki),mw=300,hw=Ue.domSupported,gw=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),_w={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},vw=!1;function yw(e){var t=e.pointerType;return t===`pen`||t===`touch`}function bw(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function xw(e){e&&(e.zrByTouch=!0)}function Sw(e,t){return jC(e.dom,new ww(e,t),!0)}function Cw(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ww=function(){function e(e,t){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Tw={mousedown:function(e){e=jC(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=jC(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=jC(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=jC(this.dom,e);var t=e.toElement||e.relatedTarget;Cw(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){vw=!0,e=jC(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){vw||(e=jC(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=jC(this.dom,e),xw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Tw.mousemove.call(this,e),Tw.mousedown.call(this,e)},touchmove:function(e){e=jC(this.dom,e),xw(e),this.handler.processGesture(e,`change`),Tw.mousemove.call(this,e)},touchend:function(e){e=jC(this.dom,e),xw(e),this.handler.processGesture(e,`end`),Tw.mouseup.call(this,e),new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!vc(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[qw],e},t.prototype.setTheme=function(e){this._theme=new hp(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function oT(e,t){return e.join(`,`)===t.join(`,`)}var sT=R,cT=H,lT=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function uT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=lT.length;n0?e[n-1].seriesModel:null)}),MT(e))})}function MT(e){R(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ms(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var NT=function(){function e(){this.group=new Lu,this.uid=fh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ze(NT),it(NT);var PT=Cc(),FT={itemStyle:at(fp,!0),lineStyle:at(lp,!0)},IT={lineStyle:`stroke`,itemStyle:`fill`};function LT(e,t){return e.visualStyleMapper||FT[t]||(console.warn(`Unknown style type '`+t+`'.`),FT.itemStyle)}function RT(e,t){return e.visualDrawType||IT[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var zT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=LT(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=RT(e,r),c=a[s],l=me(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||me(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||me(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},BT=new hp,VT={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=LT(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){BT.option=n[r];var o=i(BT);I(e.ensureUniqueItemVisual(t,`style`),o),BT.option.decal&&(e.setItemVisual(t,`decal`,BT.option.decal),BT.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},HT={performRawSeries:!0,overallReset:function(e){var t=Ie();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();PT(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=PT(e).scope,a=RT(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},UT=Math.PI;function WT(e,t){t||={},L(t,{text:`loading`,textColor:w_.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:w_.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Lu,r=new Uo({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Jo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Uo({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new xd({shape:{startAngle:-UT/2,endAngle:-UT/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:UT*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:UT*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var GT=function(){function e(e,t,n,r){this._stageTaskMap=Ie(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Jc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Ie();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});De(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;R(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Ie(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||d_({plan:XT,reset:ZT,count:eE}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||d_({reset:KT});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Ie(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;De(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):R(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,d_({reset:qT,onDirty:YT})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:tE(e)}),e.uid=fh(`stageHandler`),t&&(e.visualType=t),e},e}();function KT(e){e.overallReset(e.ecModel,e.api,e.payload)}function qT(e){return e.dirtyOnOverallProgress&&JT}function JT(){this.agent.dirty(),this.getDownstream().dirty()}function YT(){this.agent&&this.agent.dirty()}function XT(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ZT(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=nc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(e,t){return $T(t)}):QT}var QT=$T(0);function $T(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),dE=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],fE=dE.concat([`symbolKeepAspect`]),pE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&TE(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function OE(e,t,n){for(var r=t.type===`radial`?DE(e,t,n):EE(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ge(e)?[e]:B(e)?e:null}function NE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&ME(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=z(n,function(e){return e/i}),r/=i)}return[n,r]}var PE=new ro(!0);function FE(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function IE(e){return typeof e==`string`&&e!==`none`}function LE(e){var t=e.fill;return t!=null&&t!==`none`}function RE(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function zE(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function BE(e,t,n){var r=pt(t.image,t.__image,n);if(ht(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ve),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function VE(e,t,n,r,i){var a,o=FE(n),s=LE(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||PE,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?OE(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?OE(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?BE(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?BE(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=NE(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&zE(e,n),s&&RE(e,n)):(s&&RE(e,n),o&&zE(e,n)),T&&e.setLineDash([])}function HE(e,t,n){var r=t.__image=pt(n.image,t.__image,t,t.onload);if(!(!r||!ht(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function UE(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=NE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(FE(n)&&e.strokeText(i,n.x,n.y),LE(n)&&e.fillText(i,n.x,n.y)):(LE(n)&&e.fillText(i,n.x,n.y),FE(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var WE=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],GE=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function KE(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){rD(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?_a.opacity:o}(r||t.blend!==n.blend)&&(a||=(rD(e,i),!0),e.globalCompositeOperation=t.blend||_a.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[LD]){if(this._disposed){this.id;return}var r,i,a;if(H(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[LD]=!0,hO(this),!this._model||t){var o=new nT(this._api),s=this._theme,c=this._model=new Yw;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},CO);var l={seriesTransition:a,optionChanged:!0};if(n)this[zD]={silent:r,updateParams:l},this[LD]=!1,this.getZr().wakeUp();else{try{ZD(this),eO.update.call(this,null,l)}catch(e){throw this[zD]=null,this[LD]=!1,e}this._ssr||this._zr.flush(),this[zD]=null,this[LD]=!1,iO.call(this,r),aO.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[LD]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[zD]&&(r??=this[zD].silent,i=this[zD].updateParams,this[zD]=null),this[LD]=!0,hO(this);try{this._updateTheme(e),n.setTheme(this._theme),ZD(this),eO.update.call(this,{type:`setTheme`},i)}catch(e){throw this[LD]=!1,e}this[LD]=!1,iO.call(this,r),aO.call(this,r)}}},t.prototype._updateTheme=function(e){V(e)&&(e=TO[e]),e&&(e=P(e),e&&kT(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ue.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return R(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;R(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return R(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(OO[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();R(DO,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=b.createCanvas(),h=Fw(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return R(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Uo({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),R(u,function(e){var t=new Fo({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return tO(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return tO(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return tO(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return R(Tc(n,e),function(e,n){n.indexOf(`Models`)>=0&&R(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Tc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?gE(i,t):hE(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;R(vO,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&vE(i,function(e){var t=Xc(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=I({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;R(xO,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),SC(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Ac(this.getDom(),AO,``);var e=this,t=e._api,n=e._model;R(e._componentsViews,function(e){e.dispose(n,t)}),R(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete DO[e.id]},t.prototype.resize=function(e){if(!this[LD]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[zD]&&(r??=this[zD].silent,n=!0,this[zD]=null),this[LD]=!0,hO(this);try{n&&ZD(this),eO.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[LD]=!1,e}this[LD]=!1,iO.call(this,r),aO.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(H(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),EO[e]){var n=EO[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=bO[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(H(t)||(t={silent:!!t}),yO[e.type]&&this._model){if(this[LD]){this._pendingActions.push(e);return}var n=t.silent;rO.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),iO.call(this,n),aO.call(this,n)}},t.prototype.updateLabelLayout=function(){yE.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ZD=function(e){Cb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),QD(e,!0),QD(e,!1),t.plan()},QD=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;cCe(t.get(`hoverLayerThreshold`),Hw.hoverLayerThreshold)&&!Ue.node&&!Ue.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Pf(e);t.eachRendered(function(e){return If(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Hd(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Hd(e))return;if(e instanceof ko&&mu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}dO=function(e){return new(function(t){p(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){zl(t,n),pO(e)},n.prototype.leaveEmphasis=function(t,n){Bl(t,n),pO(e)},n.prototype.enterBlur=function(t){Vl(t),pO(e)},n.prototype.leaveBlur=function(t){Hl(t),pO(e)},n.prototype.enterSelect=function(t){Ul(t),pO(e)},n.prototype.leaveSelect=function(t){Wl(t),pO(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[RD]},n.prototype.usingTHL=function(){return e._usingTHL},n}(sl))(e)},fO=function(e){function t(e,t){for(var n=0;n=0)){UO.push(n);var o=GT.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function GO(e,t){EO[e]=t}function KO(e,t,n){var r=SE(`registerMap`);r&&r(e,t,n)}var qO=__;HO(OD,zT),HO(jD,VT),HO(jD,HT),HO(OD,pE),HO(jD,mE),HO(FD,_D),PO(kT),FO(xD,AT),GO(`default`,WT),zO({type:hl,event:hl,update:hl},Be),zO({type:gl,event:gl,update:gl},Be),zO({type:_l,event:bl,update:_l,action:Be,refineEvent:JO,publishNonRefinedEvent:!0}),zO({type:vl,event:bl,update:vl,action:Be,refineEvent:JO,publishNonRefinedEvent:!0}),zO({type:yl,event:bl,update:yl,action:Be,refineEvent:JO,publishNonRefinedEvent:!0});function JO(e,t,n,r){return{eventContent:{selected:tu(n),isFromClick:t.isFromClick||!1}}}NO(`default`,{}),NO(`dark`,lE);var YO=[],XO={registerPreprocessor:PO,registerProcessor:FO,registerPostInit:IO,registerPostUpdate:LO,registerUpdateLifecycle:RO,registerAction:zO,registerCoordinateSystem:BO,registerLayout:VO,registerVisual:HO,registerTransform:qO,registerLoading:GO,registerMap:KO,registerImpl:xE,PRIORITY:ID,ComponentModel:$g,ComponentView:NT,SeriesModel:$_,ChartView:Tv,registerComponentModel:function(e){$g.registerClass(e)},registerComponentView:function(e){NT.registerClass(e)},registerSeriesModel:function(e){$_.registerClass(e)},registerChartView:function(e){Tv.registerClass(e)},registerCustomSeries:function(e,t){Oee(e,t)},registerSubTypeDefaulter:function(e,t){$g.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){wee(e,t)}};function ZO(e){if(B(e)){R(e,function(e){ZO(e)});return}re(YO,e)>=0||(YO.push(e),me(e)&&(e={install:e}),e.install(XO))}var QO=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),$O=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Dc).models[0]},t.type=`cartesian2dAxis`,t}($g);ae($O,QO);var ek={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:w_.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:w_.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:w_.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[w_.color.backgroundTint,w_.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:w_.color.neutral00,borderColor:w_.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},tk=F({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},ek),nk=F({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:w_.color.axisMinorSplitLine,width:1}}},ek),rk={category:tk,value:nk,time:F({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},nk),log:L({logBase:10},nk)};function ik(e,t,n,r){R(My,function(i,a){var o=F(F({},rk[a],!0),r,!0),s=function(e){p(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Jg(this),r=n?Xg(e):{};F(e,t.getTheme().get(a+`Axis`)),F(e,this.getDefaultOption()),e.type=ak(e),n&&Yg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Lv.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=vx();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,ak)}function ak(e){return e.type||(e.data?`category`:`value`)}var ok=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ce(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),sk=[`x`,`y`];function ck(e){return(e.type===`interval`||e.type===`time`)&&!Kh(e)}var lk=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=TS,t.dimensions=sk,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!ck(e)||!ck(t))){var n=Wv(e,null),r=Wv(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Ct([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new en(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Lt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Lt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new en(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(ok);function uk(e,t){var n=e.scale,r=e.model,i=bS(n,r,r.ecModel,e,null),a=$v(n),o=$v(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=ps(l[0].value-l[1].value),g=ps(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=Ds(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Ds(gs(C[0]/E)*E,D),O=Ds(hs(C[1]/E)*E,D);var e=ms((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=hs(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}Jy(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function dk(e,t){var n=$v(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=ay(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?pk(r,t):fk(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=ny(d)),i[0]||(s[0]=Ds(hs(s[0]/u)*u,l)),i[1]||(s[1]=Ds(gs(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),Jy(e,i,o,s,a,c)}function fk(e,t){var n=sy(t.splitNumber,5),r=Kv(e),i=t.minInterval,a=t.maxInterval,o=Bs(r/n,!0);i!=null&&oa&&(o=a);var s=ny(o),c=e.getExtent(),l=[Ds(gs(c[0]/o)*o,s),Ds(hs(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function pk(e,t){var n=sy(t.splitNumber,10),r=e.getExtent(),i=Kv(e),a=fs(Rs(i),1);n/i*a<=.5&&(a*=10);var o=ny(a),s=[Ds(gs(r[0]/a)*a,o),Ds(hs(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function mk(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;hk(t,n,r,i,null)}function hk(e,t,n,r,i){var a=bS(e,t,r,n,i),o=Zv(e)||Qv(e);gk(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&uee(n,e,a,r)}function gk(e,t){_k[e.type](e,t)}var _k={interval:dk,log:dk,time:wy,ordinal:Be},vk=[[3,1],[0,2]],yk=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sk,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;R(this._axesList,function(e){mS(e,1);var t=e.scale;ey(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=ue(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):mk(i)}R(n,function(e){wk(e,e.__alignTo)?mk(e):uk(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};R(n.x,function(e){xk(n,`y`,e,i)}),R(n.y,function(e){xk(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Kg(e,t),i=this._rect=Wg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Ek(a,i),!n){var c=Ak(i,o,a,s,t),l=void 0;if(s)Ok?(Ok(this._axesList,i),Ek(a,i)):l=kk(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=Mk(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=kk(d,f,p,i,a,c,r))}jk(i,a,nb.determine,null,l,r),R(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}H(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];Xv(a.scale)&&Ky(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&R(r,function(e){e.__alignTo=n})}function wk(e,t){return Kh(e.scale)||Kh(t.scale)||t.scale.getTicks().length<2}function Tk(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Ek(e,t){R(e.x,function(e){return Dk(e,t.x,t.width)}),R(e.y,function(e){return Dk(e,t.y,t.height)})}function Dk(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),Tk(e,t)}var Ok;function kk(e,t,n,r,i,a,o){jk(r,i,nb.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=le(s,function(e){return e>0})==null;return wf(r,s,!0,!0,n),Ek(i,r),c;function l(e){R(i[Yd[e]],function(t){if(Gy(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!xe(t)&&t>1e-4&&(e/=t),e}}function Ak(e,t,n,r,i){var a=new Ex(Nk);return R(n,function(n){return R(n,function(n){if(Gy(n.model)){var o=!r;n.axisBuilder=rS(e,t,n.model,i,a,o)}})}),a}function jk(e,t,n,r,i,a){var o=n===nb.determine;R(t,function(t){return R(t,function(t){Gy(t.model)&&(iS(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Yd[1-t]]=e[Xd[t]]<=a.refContainer[Xd[t]]*.5?0:1-t==1?2:1}R(t,function(e,t){return R(e,function(e){Gy(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function Mk(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Wg(e.get(`outerBounds`,!0)||CS,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||re([`all`,`axisLabel`],a)<0?`all`:a,s=[Ts(Ce(e.get(`outerBoundsClampWidth`,!0),wS[0]),t.width),Ts(Ce(e.get(`outerBoundsClampHeight`,!0),wS[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Nk=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;Ax(e,t,n,r,i,a),Wy(e.nameLocation)||R(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&Mx(e.labelInfoList,e.dirVec,r,i)})};function Pk(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Fk(n,e,t),n.seriesInvolved&&Lk(n,e),n}function Fk(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];R(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=Wk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(R(n.getAxes(),pe(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&R(f.baseAxes,pe(p,!d||`cross`,u)),d&&R(f.otherAxes,pe(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!Uk(d))){s??=d.get(`triggerTooltip`),d=r?Ik(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=Wk(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:Uk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=Rk(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Ik(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};R(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&L(l,u.textStyle)}return e.model.getModel(`axisPointer`,new hp(c,n,r))}function Lk(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||R(e.coordSysAxesInfo[Wk(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function Rk(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function Bk(e){var t=Vk(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=Uk(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o=0;a--)r[a]??(delete n[t[a]],t.pop())}function uA(e,t){var n=e.visual,r=[];H(n)?iA(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),vA(e,r)}function dA(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:gA([0,1])}}function fA(e){var t=this.option.visual;return t[Math.round(Ss(e,[0,1],[0,t.length-1],!0))]||{}}function pA(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function mA(e){var t=this.option.visual;return t[this.option.loop&&e!==oA?e%t.length:e]}function hA(){return this.option.visual[0]}function gA(e){return{linear:function(t){return Ss(t,e,this.option.visual,!0)},category:mA,piecewise:function(t,n){var r=_A.call(this,n);return r??=Ss(t,e,this.option.visual,!0),r},fixed:hA}}function _A(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[sA.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function vA(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=z(t,function(e){return Gr(e)||[0,0,0,1]})),t}var yA={linear:function(e){return Ss(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=sA.findPieceIndex(e,t,!0);if(n!=null)return Ss(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??oA},fixed:Be};function bA(e,t,n){return e?t<=n:ta&&(t[1-r]=Ms(t[r],d.sign*a)),t}function SA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function CA(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}function wA(e){return Object.keys(e)}function TA(e){return e&&typeof e==`object`&&!Array.isArray(e)}function EA(e,t){let n={...e},r=t;return TA(e)&&TA(t)&&Object.keys(t).forEach(t=>{TA(r[t])&&t in e?n[t]=EA(n[t],r[t]):n[t]=r[t]}),n}function DA(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function OA(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function kA(e){let t=OA(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function AA(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function jA(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?AA(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?AA(n):n}}return r}return n}var W=jA(`rem`,{shouldScale:!0}),MA=jA(`em`);function NA(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function PA(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var FA=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=FA()})),G=u(IA(),1);function LA(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==G.Fragment}function RA(e){let t=(0,G.createContext)(null);return[t,()=>{let n=(0,G.use)(t);if(n===null)throw Error(e);return n}]}var zA={app:100,modal:200,popover:300,overlay:400,max:9999};function BA(e){return zA[e]}function VA(e,t=`size`,n=!0){if(e!==void 0)return PA(e)?n?W(e):e:`var(--${t}-${e})`}function HA(e){return VA(e,`mantine-spacing`)}function UA(e){return e===void 0?`var(--mantine-radius-default)`:VA(e,`mantine-radius`)}function WA(e){return VA(e,`mantine-font-size`)}function GA(e){return VA(e,`mantine-line-height`,!1)}function KA(e){if(e)return VA(e,`mantine-shadow`,!1)}function qA(e,t){return n=>{e?.(n),t?.(n)}}function JA(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function YA(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i{t.current=e}),(0,G.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function ZA(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=XA(e),s=(0,G.useRef)(0),c=(0,G.useRef)(0),l=(0,G.useRef)(null),u=(0,G.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,G.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}function QA(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function $A(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,G.useState)(n?t:QA(e));return(0,G.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var ej=typeof document<`u`?G.useLayoutEffect:G.useEffect;function tj(e,t){let n=(0,G.useRef)(!1);(0,G.useEffect)(()=>()=>{n.current=!1},[]),(0,G.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function nj(e){let[t,n]=(0,G.useState)(`mantine-${(0,G.useId)().replace(/:/g,``)}`),r=(0,G.useRef)(!1);return ej(()=>{r.current||(r.current=!0,n(JA()))},[]),typeof e==`string`?e:t}function rj(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function ij(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=rj(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():rj(e,null)}),t.clear()}}}function aj(...e){return(0,G.useCallback)(ij(...e),e)}function oj({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,G.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function sj(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var cj=`dots`;function lj({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:o=1}){let s=Math.max(Math.trunc(o),1),c=Math.max(Math.trunc(e),s),l=c-s+1,u=i??s,[d,f]=oj({value:r,onChange:a,defaultValue:u,finalValue:u}),p=(0,G.useCallback)(e=>{f(ec?c:e)},[s,c,f]),m=(0,G.useCallback)(()=>p(d+1),[d,p]),h=(0,G.useCallback)(()=>p(d-1),[d,p]),g=(0,G.useCallback)(()=>p(s),[p,s]),_=(0,G.useCallback)(()=>p(c),[c,p]);return{range:(0,G.useMemo)(()=>{if(t*2+3+n*2>=l)return sj(s,c);let e=Math.max(d-t,s+n-1),r=Math.min(d+t,c-n),i=e>s+n+1,a=r{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,G.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,G.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function hj(e,t,n){let r=(0,G.useRef)(null);(0,G.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function gj(){let[e,t]=(0,G.useState)(!1);return(0,G.useEffect)(()=>t(!0),[]),e}var _j=s((e=>{var t=IA();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_j()}));function yj(){return`development`}function bj(e){return e?.props?.ref}function xj(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function Sj(e){let t=G.Children.toArray(e);return t.length!==1||!LA(t[0])?null:t[0]}function Cj(e){return e}function wj(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=Tj(t[e],n):t[e]=n})}),t}function Oj({theme:e,classNames:t,props:n,stylesCtx:r}){return Dj((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Ej))}function kj({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function Aj(e){return e===`auto`||e===`dark`||e===`light`}function jj({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Aj(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Aj(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Mj(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Nj(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Pj(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Fj(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function Ij(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function Lj(e){return Nj(e)?Pj(e):e.startsWith(`rgb`)?Fj(e):e.startsWith(`hsl`)?Ij(e):{r:0,g:0,b:0,a:1}}function Rj(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function zj(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Bj(e){if(e.startsWith(`oklch(`))return(zj(e)||0)/100;let{r:t,g:n,b:r}=Lj(e),i=t/255,a=n/255,o=r/255,s=Rj(i),c=Rj(a),l=Rj(o);return .2126*s+.7152*c+.0722*l}function Vj(e,t=.179){return!e.startsWith(`var(`)&&Bj(e)>t}function Hj({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Vj(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Vj(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Vj(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Mj(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:Vj(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:Vj(e,t.luminanceThreshold),shade:a,variable:void 0}}function Uj(e,t){let n=Hj({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Wj(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function Gj(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=Lj(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function Kj(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=Uj(n.from,t),i=Uj(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function qj(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=Lj(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var Jj=qj,Yj=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=Hj({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&Wj(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:Gj(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:Gj(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:qj(e,.1),hover:qj(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:qj(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:qj(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:qj(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:qj(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Gj(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Gj(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Gj(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:Kj(r,t),hover:Kj(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function Xj({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&Hj({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Zj(e,t,n){return Xj({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Qj(e,t){let n=e.colors[e.primaryColor];return Wj(n)?e.autoContrast?Zj(n,e,t):`var(--mantine-color-white)`:Xj({color:n[Mj(e,t)],theme:e,autoContrast:null})}function $j(e,t){return typeof e==`boolean`?e:t.autoContrast}var eM=(0,G.createContext)(null);function tM(){let e=(0,G.use)(eM);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function nM(){return tM().cssVariablesResolver}function rM(){return tM().classNamesPrefix}function iM(){return tM().getStyleNonce}function aM(){return tM().withStaticClasses}function oM(){return tM().headless}function sM(){return tM().stylesTransform?.sx}function cM(){return tM().stylesTransform?.styles}function lM(){return tM().env||`default`}function uM(){return tM().deduplicateInlineStyles}function dM(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function fM({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,G.useRef)(null),[a,o]=(0,G.useState)(()=>e.get(t)),s=r||a,c=(0,G.useCallback)(t=>{r||(dM(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,G.useCallback)(()=>{o(t),dM(t,n),e.clear()},[e.clear,t]);return(0,G.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),ej(()=>{dM(e.get(t),n)},[]),(0,G.useEffect)(()=>{if(r)return dM(r,n),()=>{};r===void 0&&dM(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&dM(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var pM=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),mM=s(((e,t)=>{t.exports=pM()})),hM={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},gM=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,_M={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:hM,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Yj,autoContrast:!1,luminanceThreshold:.3,fontFamily:gM,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:gM,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},vM=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,yM=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function bM(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function xM(e){if(!(e.primaryColor in e.colors))throw Error(vM);if(typeof e.primaryShade==`object`&&(!bM(e.primaryShade.dark)||!bM(e.primaryShade.light))||typeof e.primaryShade==`number`&&!bM(e.primaryShade))throw Error(yM)}function SM(e,t){if(!t)return xM(e),e;let n=EA(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),xM(n),n}var K=mM(),CM=(0,G.createContext)(null),jee=()=>(0,G.use)(CM)||_M;function wM(){let e=(0,G.use)(CM);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function TM({theme:e,children:t,inherit:n=!0}){let r=jee(),i=(0,G.useMemo)(()=>SM(n?r:_M,e),[e,r,n]);return(0,K.jsx)(CM,{value:i,children:t})}TM.displayName=`@mantine/core/MantineThemeProvider`;function EM(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function DM(e,t){let n=t?[t]:[`:root`,`:host`],r=EM(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=EM(e.dark),o=EM(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function OM({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Mj(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:Jj(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Mj(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Gj(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:Gj(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Jj(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function kM(e,t,n){wA(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var AM=e=>{let t=Mj(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":Qj(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":Qj(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};kM(r.variables,e.breakpoints,`breakpoint`),kM(r.variables,e.spacing,`spacing`),kM(r.variables,e.fontSizes,`font-size`),kM(r.variables,e.lineHeights,`line-height`),kM(r.variables,e.shadows,`shadow`),kM(r.variables,e.radius,`radius`),kM(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),wA(e.colors).forEach(t=>{let n=e.colors[t];if(Wj(n)){Object.assign(r.light,OM({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,OM({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=Zj(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=Zj(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,OM({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,OM({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return wA(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function Mee(){let e=wM(),t=iM(),n=wA(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=kA(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:MA(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:MA(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,K.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Nee({theme:e,generator:t}){let n=AM(e),r=t?.(e);return r?EA(n,r):n}var jM=AM(_M);function Pee(e){let t={variables:{},light:{},dark:{}};return wA(e.variables).forEach(n=>{jM.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),wA(e.light).forEach(n=>{jM.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),wA(e.dark).forEach(n=>{jM.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Fee(e){return DM({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function MM({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=wM(),r=iM(),i=Nee({theme:n,generator:nM()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=DM(a?Pee(i):i,e);return o?(0,K.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Fee(e)}`}}):null}MM.displayName=`@mantine/CssVariables`;function Iee({respectReducedMotion:e,getRootElement:t}){ej(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function NM({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=jj(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=fM({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return Iee({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,K.jsx)(eM,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,K.jsxs)(TM,{theme:e,children:[o&&(0,K.jsx)(MM,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,K.jsx)(Mee,{}),t]})})}NM.displayName=`@mantine/core/MantineProvider`;function PM(e,t,n){let r=wM(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...NA(n)}}function FM(e){return e}function IM({classNames:e,styles:t,props:n,stylesCtx:r}){let i=wM();return{resolvedClassNames:e===void 0?void 0:Oj({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:kj({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var LM={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function RM({theme:e,options:t,unstyled:n}){return Tj(t?.focusable&&!n&&(e.focusClassName||LM[e.focusRing]),t?.active&&!n&&e.activeClassName)}function zM({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Oj({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function BM({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Oj({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function VM({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function HM({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function UM({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function WM({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function GM({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return Tj(RM({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),WM({options:t,classes:s,selector:r,unstyled:c||m}),a[r],BM({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),zM({selector:r,stylesCtx:f,options:t,props:d,theme:e}),VM({rootSelector:u,selector:r,className:l}),HM({selector:r,classes:s,unstyled:c||m}),p&&!m&&UM({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function KM({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...KM({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function qM({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&kj({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...KM({style:n?.style,theme:e})}}function JM(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...NA(t[n])}}),e),{})}function YM({props:e,stylesCtx:t,themeName:n,theme:r}){let i=cM()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function XM({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=wM(),m=rM(),h=aM(),g=oM(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=YM({props:n,stylesCtx:r,themeName:_,theme:p}),b=Oj({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>Oj({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:kj({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=kj({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=JM([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=KM({style:a,theme:p});return(e,a)=>({...f?.[e],className:GM({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:qM({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function ZM(e){return wA(e).reduce((t,n)=>e[n]===void 0?t:`${t}${DA(n)}:${e[n]};`,``).trim()}function QM({selector:e,styles:t,media:n,container:r}){let i=t?ZM(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${ZM(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${ZM(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function $M(e){let t=5381;for(let n=0;n>>0).toString(36)}function eN({deduplicate:e,...t}){let n=iM(),r=QM(t);return e?(0,K.jsx)(`style`,{href:`mantine-${$M(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,K.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function tN(e){let t=5381;for(let n=0;n>>0).toString(36)}function nN(e,t){return`__mdi__-${tN(`${e?ZM(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${ZM(e.styles)}`).join(`|`):``}`)}`}function rN(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H,..._e}=e;return{styleProps:NA({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,bdrs:w,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H}),rest:_e}}var iN={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function aN(e,t){let n=Hj({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function Lee(e,t){let n=Hj({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:aN(e,t)}function Ree(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${aN(i.join(` `),t)}`),a.trim()}return e}var oN={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function sN(e){return typeof e==`string`&&e in oN?oN[e]:e}var cN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function lN(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&cN.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function uN(e){return e}var dN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function fN(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&dN.includes(e)?`var(--mantine-${e}-line-height)`:e}function pN(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function mN(e){return typeof e==`number`?W(e):e}function hN(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var gN={color:aN,textColor:Lee,fontSize:lN,spacing:hN,radius:pN,identity:uN,size:mN,lineHeight:fN,fontFamily:sN,border:Ree};function _N(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function vN({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(_N(e))-Number(_N(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function yN(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function bN(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function xN(e){return typeof e==`object`&&e?wA(e).filter(e=>e!==`base`):[]}function SN(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function CN({styleProps:e,data:t,theme:n}){return vN(wA(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=bN(e[i]);if(!yN(e[i]))return o.forEach(e=>{r.inlineStyles[e]=gN[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=xN(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=gN[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:gN[a.type](SN(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function wN(){return`__m__-${(0,G.useId)().replace(/[:«»]/g,``)}`}function TN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...TN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function EN(e){return e}var DN=EN;function ON(e){return e}function kN(e){let t=e;return t.extend=ON,t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function AN(e){return kN(e)}function jN(e){let t=e;return t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=ON,t}function MN(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function NN(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[MN(n)]=e[n]),t},{})}function PN(e){return e?typeof e==`string`?{[MN(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...PN(t)}),{}):NN(e):null}function FN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...FN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function IN({theme:e,style:t,vars:n,styleProps:r}){let i=FN(t,e),a=FN(n,e);return{...i,...a,...r}}function LN({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=wM(),g=e||`div`,{styleProps:_,rest:v}=rN(m),y=sM()?.()?.(_.sx),b=wN(),x=CN({styleProps:_,theme:h,data:iN}),S=uM(),C=S&&x.hasResponsiveStyles?nN(x.styles,x.media):b,w={ref:p,style:IN({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:Tj(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":PA(o)?void 0:o||void 0,size:f,...PN(a),...v};return(0,K.jsxs)(K.Fragment,{children:[x.hasResponsiveStyles&&(0,K.jsx)(eN,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,K.jsx)(g,{...w})]})}LN.displayName=`@mantine/core/Box`;var RN=DN(LN),zN=(0,G.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function BN(){return(0,G.use)(zN)}var[VN,HN]=RA(`ScrollArea.Root component was not found in tree`);function UN(e,t){let n=(0,G.useEffectEvent)(t);ej(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function WN(e){let{style:t,...n}=e,r=HN(),[i,a]=(0,G.useState)(0),[o,s]=(0,G.useState)(0),c=!!(i&&o);return UN(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),UN(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,K.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function GN(e){let t=HN(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,K.jsx)(WN,{...e}):null}var KN={scrollHideDelay:1e3,type:`hover`};function qN(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=PM(`ScrollAreaRoot`,KN,e),[s,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(null),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(0),[y,b]=(0,G.useState)(0),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(!1),T=aj(a,c);return(0,K.jsx)(VN,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,K.jsx)(RN,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}qN.displayName=`@mantine/core/ScrollAreaRoot`;function JN(e,t){let n=e/t;return Number.isNaN(n)?0:n}function YN(e){let t=JN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function XN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ZN(e,[t,n]){return Math.min(n,Math.max(t,e))}function QN(e,t,n=`ltr`){let r=YN(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=ZN(e,n===`ltr`?[0,o]:[o*-1,0]);return XN([0,o],[0,s])(c)}function $N(e,t,n,r=`ltr`){let i=YN(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return XN([c,l],d)(e)}function eP(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[rP,iP]=RA(`ScrollAreaScrollbar was not found in tree`);function aP(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=HN(),[p,m]=(0,G.useState)(null),h=aj(u,m),g=(0,G.useRef)(null),_=(0,G.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,G.useEffectEvent)(c),x=XA(o),S=ZA(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,G.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,G.useEffect)(x,[t,x]),UN(p,S),UN(f.content,S),(0,K.jsx)(rP,{value:{scrollbar:p,hasThumb:n,onThumbChange:XA(r),onThumbPointerUp:XA(i),onThumbPositionChange:x,onThumbPointerDown:XA(a)},children:(0,K.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:nP(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:nP(e.onPointerMove,C),onPointerUp:nP(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var oP=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=HN(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=aj(i,l,o.onScrollbarXChange);return(0,G.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,K.jsx)(aP,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${YN(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),eP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:tP(s.paddingLeft),paddingEnd:tP(s.paddingRight)}})}})};oP.displayName=`@mantine/core/ScrollAreaScrollbarX`;function sP(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=HN(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=aj(i,l,o.onScrollbarYChange);return(0,G.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,K.jsx)(aP,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${YN(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),eP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:tP(s.paddingTop),paddingEnd:tP(s.paddingBottom)}})}})}sP.displayName=`@mantine/core/ScrollAreaScrollbarY`;function cP(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=BN(),i=HN(),a=(0,G.useRef)(null),o=(0,G.useRef)(0),[s,c]=(0,G.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=JN(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>$N(e,o.current,s,t);return t===`horizontal`?(0,K.jsx)(oP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=QN(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,K.jsx)(sP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=QN(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}cP.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function lP(e){let t=HN(),{forceMount:n,...r}=e,[i,a]=(0,G.useState)(!1),o=e.orientation===`horizontal`,s=ZA(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,K.jsx)(lP,{"data-state":i?`visible`:`hidden`,...n}):null}uP.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function dP(e){let{forceMount:t,...n}=e,r=HN(),i=e.orientation===`horizontal`,[a,o]=(0,G.useState)(`hidden`),s=ZA(()=>o(`idle`),100);return(0,G.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,G.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,K.jsx)(cP,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:nP(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:nP(e.onPointerLeave,()=>o(`idle`))}):null}function fP(e){let{forceMount:t,...n}=e,r=HN(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,G.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,K.jsx)(uP,{...n,forceMount:t}):r.type===`scroll`?(0,K.jsx)(dP,{...n,forceMount:t}):r.type===`auto`?(0,K.jsx)(lP,{...n,forceMount:t}):r.type===`always`?(0,K.jsx)(cP,{...n}):null}fP.displayName=`@mantine/core/ScrollAreaScrollbar`;function zee(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function pP(e){let{style:t,ref:n,...r}=e,i=HN(),a=iP(),{onThumbPositionChange:o}=a,s=aj(n,a.onThumbChange),c=(0,G.useRef)(void 0),l=ZA(()=>{c.current&&=(c.current(),void 0)},100);return(0,G.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=zee(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,K.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:nP(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:nP(e.onPointerUp,a.onThumbPointerUp)})}pP.displayName=`@mantine/core/ScrollAreaThumb`;function mP(e){let{forceMount:t,...n}=e,r=iP();return t||r.hasThumb?(0,K.jsx)(pP,{...n}):null}mP.displayName=`@mantine/core/ScrollAreaThumb`;function hP({children:e,style:t,ref:n,onWheel:r,...i}){let a=HN(),o=aj(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,K.jsx)(RN,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,K.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}hP.displayName=`@mantine/core/ScrollAreaViewport`;var gP={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function _P(){return typeof window<`u`}function vP(e){return xP(e)?(e.nodeName||``).toLowerCase():`#document`}function yP(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bP(e){return((xP(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function xP(e){return _P()?e instanceof Node||e instanceof yP(e).Node:!1}function SP(e){return _P()?e instanceof Element||e instanceof yP(e).Element:!1}function CP(e){return _P()?e instanceof HTMLElement||e instanceof yP(e).HTMLElement:!1}function wP(e){return!_P()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof yP(e).ShadowRoot}function TP(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=IP(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function EP(e){return/^(table|td|th)$/.test(vP(e))}function DP(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var OP=/transform|translate|scale|rotate|perspective|filter/,kP=/paint|layout|strict|content/,AP=e=>!!e&&e!==`none`,jP;function MP(e){let t=SP(e)?IP(e):e;return AP(t.transform)||AP(t.translate)||AP(t.scale)||AP(t.rotate)||AP(t.perspective)||!PP()&&(AP(t.backdropFilter)||AP(t.filter))||OP.test(t.willChange||``)||kP.test(t.contain||``)}function NP(e){let t=RP(e);for(;CP(t)&&!FP(t);){if(MP(t))return t;if(DP(t))return null;t=RP(t)}return null}function PP(){return jP??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),jP}function FP(e){return/^(html|body|#document)$/.test(vP(e))}function IP(e){return yP(e).getComputedStyle(e)}function LP(e){return SP(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function RP(e){if(vP(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||wP(e)&&e.host||bP(e);return wP(t)?t.host:t}function zP(e){let t=RP(e);return FP(t)?(e.ownerDocument||e).body:CP(t)&&TP(t)?t:zP(t)}function BP(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=zP(e),i=r===e.ownerDocument?.body,a=yP(r);if(i){let e=VP(a);return t.concat(a,a.visualViewport||[],TP(r)?r:[],e&&n?BP(e):[])}return t.concat(r,BP(r,[],n))}function VP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var HP=Math.min,UP=Math.max,WP=Math.round,GP=Math.floor,KP=e=>({x:e,y:e}),qP={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function JP(e,t,n){return UP(e,HP(t,n))}function YP(e,t){return typeof e==`function`?e(t):e}function XP(e){return e.split(`-`)[0]}function ZP(e){return e.split(`-`)[1]}function QP(e){return e===`x`?`y`:`x`}function $P(e){return e===`y`?`height`:`width`}function eF(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function tF(e){return QP(eF(e))}function nF(e,t,n){n===void 0&&(n=!1);let r=ZP(e),i=tF(e),a=$P(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=dF(o)),[o,dF(o)]}function rF(e){let t=dF(e);return[iF(e),t,iF(t)]}function iF(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var aF=[`left`,`right`],oF=[`right`,`left`],sF=[`top`,`bottom`],cF=[`bottom`,`top`];function lF(e,t,n){switch(e){case`top`:case`bottom`:return n?t?oF:aF:t?aF:oF;case`left`:case`right`:return t?sF:cF;default:return[]}}function uF(e,t,n,r){let i=ZP(e),a=lF(XP(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(iF)))),a}function dF(e){let t=XP(e);return qP[t]+e.slice(t.length)}function fF(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function pF(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:fF(e)}function mF(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hF(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function gF(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function _F(){return/apple/i.test(navigator.vendor)}function vF(){return hF().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function yF(){return gF().includes(`jsdom/`)}var bF=`data-floating-ui-focusable`,xF=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function SF(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function CF(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&wP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function wF(e){return`composedPath`in e?e.composedPath()[0]:e.target}function TF(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function EF(e){return e.matches(`html,body`)}function DF(e){return e?.ownerDocument||document}function OF(e){return CP(e)&&e.matches(xF)}function kF(e){if(!e||yF())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function AF(e){return e?e.hasAttribute(bF)?e:e.querySelector(`[`+bF+`]`)||e:null}function jF(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...jF(e,t.id,n)])}function MF(e){return`nativeEvent`in e}function NF(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var PF=typeof document<`u`?G.useLayoutEffect:function(){},FF={...G};function IF(e){let t=G.useRef(e);return PF(()=>{t.current=e}),t}var LF=FF.useInsertionEffect||(e=>e());function RF(e){let t=G.useRef(()=>{});return LF(()=>{t.current=e}),G.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function zF(e,t,n){let{reference:r,floating:i}=e,a=eF(t),o=tF(t),s=$P(o),c=XP(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ZP(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function BF(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=YP(t,e),p=pF(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=mF(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=mF(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var VF=50,HF=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:BF},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=zF(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=YP(e,t)||{};if(l==null)return{};let d=pF(u),f={x:n,y:r},p=tF(i),m=$P(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=HP(d[_],T),D=HP(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=JP(E,k,O),j=!c.arrow&&ZP(i)!=null&&k!==A&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===eF(t)||T.every(e=>eF(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=eF(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function GF(e){let t=HP(...e.map(e=>e.left)),n=HP(...e.map(e=>e.top)),r=UP(...e.map(e=>e.right)),i=UP(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function KF(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>mF(GF(e)))}var qF=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=YP(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=KF(u),f=mF(GF(u)),p=pF(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(eF(n)===`y`){let e=d[0],t=d[d.length-1],r=XP(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return mF({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=XP(n)===`left`,t=UP(...d.map(e=>e.right)),r=HP(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return mF({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},JF=new Set([`left`,`top`]);async function YF(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=XP(n),s=ZP(n),c=eF(n)===`y`,l=JF.has(o)?-1:1,u=a&&c?-1:1,d=YP(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var XF=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await YF(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ZF=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=YP(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=eF(i),p=QP(f),m=u[p],h=u[f],g=(e,t)=>JP(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}};function QF(e){let t=IP(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=CP(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=WP(n)!==a||WP(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $F(e){return SP(e)?e:e.contextElement}function eI(e){let t=$F(e);if(!CP(t))return KP(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=QF(t),o=(a?WP(n.width):n.width)/r,s=(a?WP(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tI=KP(0);function nI(e){let t=yP(e);return!PP()||!t.visualViewport?tI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rI(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===yP(e)}function iI(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$F(e),o=KP(1);t&&(r?SP(r)&&(o=eI(r)):o=eI(e));let s=rI(a,n,r)?nI(a):KP(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=yP(a),t=SP(r)?yP(r):r,n=e,i=VP(n);for(;i&&t!==n;){let e=eI(i),t=i.getBoundingClientRect(),r=IP(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=yP(i),i=VP(n)}}return mF({width:u,height:d,x:c,y:l})}function aI(e,t){let n=LP(e).scrollLeft;return t?t.left+n:iI(bP(e)).left+n}function oI(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-aI(e,n),y:n.top+t.scrollTop}}function sI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=bP(r),s=t?DP(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=KP(1),u=KP(0),d=CP(r);if((d||!a)&&((vP(r)!==`body`||TP(o))&&(c=LP(r)),d)){let e=iI(r);l=eI(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?oI(o,c):KP(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cI(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function lI(e){let t=LP(e),n=e.ownerDocument.body,r=UP(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=UP(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+aI(e),o=-t.scrollTop;return IP(n).direction===`rtl`&&(a+=UP(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var uI=25;function dI(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=yP(e),a=bP(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!PP()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(aI(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=uI&&(s-=o)}return{width:s,height:c,x:l,y:u}}function fI(e,t){let n=iI(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=eI(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pI(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=dI(e,n,t);else if(t===`document`)r=lI(bP(e));else if(SP(t))r=fI(t,n);else{let n=nI(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return mF(r)}function mI(e,t){let n=t.get(e);if(n)return n;let r=BP(e,[],!1).filter(e=>SP(e)&&vP(e)!==`body`),i=null,a=IP(e).position===`fixed`,o=a?RP(e):e;for(;SP(o)&&!FP(o);){let e=IP(o),t=MP(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=RP(o)}return t.set(e,r),r}function hI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?DP(t)?[]:mI(t,this._c):[].concat(n),r],o=pI(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=yP(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function EI(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$F(e),u=i||a?[...l?BP(l):[],...t?BP(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?TI(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?iI(e):null;c&&g();function g(){let t=iI(e);h&&!wI(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var DI=XF,OI=ZF,kI=WF,AI=UF,jI=qF,MI=(e,t,n)=>{let r=new Map,i=n??{},a={...CI,...i.platform,_c:r};return HF(e,t,{...i,platform:a})},NI=u(vj(),1),PI=typeof document<`u`?G.useLayoutEffect:function(){};function FI(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!FI(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!FI(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function II(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function LI(e,t){let n=II(e);return Math.round(t*n)/n}function RI(e){let t=G.useRef(e);return PI(()=>{t.current=e}),t}function zI(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=G.useState(r);FI(f,r)||p(r);let[m,h]=G.useState(null),[g,_]=G.useState(null),v=G.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=G.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=G.useRef(null),C=G.useRef(null),w=G.useRef(u),T=c!=null,E=RI(c),D=RI(i),O=RI(l),k=G.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),MI(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!FI(w.current,t)&&(w.current=t,NI.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);PI(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=G.useRef(!1);PI(()=>(A.current=!0,()=>{A.current=!1}),[]),PI(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=G.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ee=G.useMemo(()=>({reference:b,floating:x}),[b,x]),M=G.useMemo(()=>{let e={position:n,left:0,top:0};if(!ee.floating)return e;let t=LI(ee.floating,u.x),r=LI(ee.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...II(ee.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ee.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:k,refs:j,elements:ee,floatingStyles:M}),[u,k,j,ee,M])}var BI=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:AI({element:r.current,padding:i}).fn(n):r?AI({element:r,padding:i}).fn(n):{}}}},VI=(e,t)=>{let n=DI(e);return{name:n.name,fn:n.fn,options:[e,t]}},HI=(e,t)=>{let n=OI(e);return{name:n.name,fn:n.fn,options:[e,t]}},UI=(e,t)=>{let n=kI(e);return{name:n.name,fn:n.fn,options:[e,t]}},WI=(e,t)=>{let n=jI(e);return{name:n.name,fn:n.fn,options:[e,t]}},GI=(e,t)=>{let n=BI(e);return{name:n.name,fn:n.fn,options:[e,t]}};function KI(e){let t=G.useRef(void 0),n=G.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return G.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var qI=`data-floating-ui-focusable`,JI=`active`,YI=`selected`,XI=`ArrowLeft`,ZI=`ArrowRight`,QI=`ArrowUp`,$I=`ArrowDown`,eL=[XI,ZI],tL=[QI,$I];[...eL,...tL];var nL={...G},rL=!1,iL=0,aL=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+iL++;function oL(){let[e,t]=G.useState(()=>rL?aL():void 0);return PF(()=>{e??t(aL())},[]),G.useEffect(()=>{rL=!0},[]),e}var sL=nL.useId||oL;function cL(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var lL=G.createContext(null),uL=G.createContext(null),dL=()=>G.useContext(lL)?.id||null,fL=()=>G.useContext(uL);function pL(e){return`data-floating-ui-`+e}function mL(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var hL=pL(`safe-polygon`);function gL(e,t,n){if(n&&!NF(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function _L(e){return typeof e==`function`?e():e}function vL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=fL(),m=dL(),h=IF(l),g=IF(c),_=IF(n),v=IF(d),y=G.useRef(),b=G.useRef(-1),x=G.useRef(),S=G.useRef(-1),C=G.useRef(!0),w=G.useRef(!1),T=G.useRef(()=>{}),E=G.useRef(!1),D=RF(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});G.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(mL(b),mL(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),G.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=DF(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=G.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=gL(g.current,`close`,y.current);i&&!x.current?(mL(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(mL(b),r(!1,e,n))},[g,r]),k=RF(()=>{T.current(),x.current=void 0}),A=RF(()=>{if(w.current){let e=DF(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(hL),w.current=!1}}),j=RF(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);G.useEffect(()=>{if(!s)return;function e(e){if(mL(b),C.current=!1,u&&!NF(y.current)||_L(v.current)>0&&!gL(g.current,`open`))return;let t=gL(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(j()){A();return}T.current();let t=DF(o.floating);if(mL(S),E.current=!1,h.current&&i.current.floatingContext){n||mL(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)};return}(y.current!==`touch`||!CF(o.floating,e.relatedTarget))&&O(e)}function a(e){j()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e)}})(e))}function c(){mL(b)}function l(e){j()||O(e,!1)}if(SP(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,A,r,n,_,p,g,h,i,j,v]),PF(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(SP(o.domReference)&&e){var t;let n=DF(o.floating).body;n.setAttribute(hL,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),PF(()=>{n||(y.current=void 0,E.current=!1,k(),A())},[n,k,A]),G.useEffect(()=>()=>{k(),mL(b),mL(S),A()},[s,o.domReference,k,A]);let ee=G.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}u&&!NF(y.current)||n||_L(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(mL(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,_L(v.current))))}}},[u,r,n,_,v]);return G.useMemo(()=>s?{reference:ee}:{},[s,ee])}var yL=()=>{},bL=G.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:yL,setState:yL,isInstantPhase:!1}),xL=()=>G.useContext(bL);function SL(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=G.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=G.useRef(null),s=G.useCallback(e=>{a({currentId:e})},[]);return PF(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,K.jsx)(bL.Provider,{value:G.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function CL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=xL(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return PF(()=>{o&&l&&(f({delay:{open:1,close:gL(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),PF(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),PF(()=>{o&&(u===yL||!n||u(s))},[o,n,u,s]),c}function wL(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&wP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function TL(e){return`composedPath`in e?e.composedPath()[0]:e.target}var EL={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},DL={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},OL=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function kL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=fL(),g=RF(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=G.useRef(!1),{escapeKey:y,outsidePress:b}=OL(p),{escapeKey:x,outsidePress:S}=OL(m),C=G.useRef(!1),w=RF(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?jF(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,MF(e)?e.nativeEvent:e,`escape-key`)}),T=RF(e=>{var t;let n=()=>{var t;w(e),(t=wF(e))==null||t.removeEventListener(`keydown`,n)};(t=wF(e))==null||t.addEventListener(`keydown`,n)}),E=RF(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=wF(e),s=`[`+pL(`inert`)+`]`,c=DF(i.floating).querySelectorAll(s),u=SP(o)?o:null;for(;u&&!FP(u);){let e=RP(u);if(FP(e)||!SP(e))break;u=e}if(c.length&&SP(o)&&!EF(o)&&!CF(o,i.floating)&&Array.from(c).every(e=>!CF(u,e)))return;if(CP(o)&&k){let t=FP(o),n=IP(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&jF(h.nodesRef.current,d).some(t=>TF(e,t.context?.elements.floating));if(TF(e,i.floating)||TF(e,i.domReference)||f)return;let p=h?jF(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=RF(e=>{var t;let n=()=>{var t;E(e),(t=wF(e))==null||t.removeEventListener(l,n)};(t=wF(e))==null||t.addEventListener(l,n)});G.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},PP()?5:0)}let d=DF(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(SP(i.domReference)&&(p=BP(i.domReference)),SP(i.floating)&&(p=p.concat(BP(i.floating))),!SP(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(BP(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),G.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=G.useMemo(()=>({onKeyDown:w,...u&&{[EL[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=G.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[DL[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return G.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function AL(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=sL(),a=G.useRef({}),[o]=G.useState(()=>cL()),s=dL()!=null,[c,l]=G.useState(r.reference),u=RF((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=G.useMemo(()=>({setPositionReference:l}),[]),f=G.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return G.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function jL(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=AL({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=G.useState(null),[l,u]=G.useState(null),d=o?.domReference||s,f=G.useRef(null),p=fL();PF(()=>{d&&(f.current=d)},[d]);let m=zI({...n,elements:{...o,...l&&{reference:l}}}),h=G.useCallback(e=>{let t=SP(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=G.useCallback(e=>{(SP(e)||e===null)&&(f.current=e,c(e)),(SP(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!SP(e))&&m.refs.setReference(e)},[m.refs]),_=G.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=G.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=G.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return PF(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),G.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function ML(){return vF()&&_F()}function NL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=G.useRef(!1),u=G.useRef(-1),d=G.useRef(!0);G.useEffect(()=>{if(!s)return;let e=yP(o.domReference);function t(){!n&&CP(o.domReference)&&o.domReference===SF(DF(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),ML()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),ML()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),G.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),G.useEffect(()=>()=>{mL(u)},[]);let f=G.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=wF(e.nativeEvent);if(c&&SP(t)){if(ML()&&!e.relatedTarget){if(!d.current&&!OF(t))return}else if(!kF(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=SP(t)&&t.hasAttribute(pL(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=SF(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||CF(a.current.floatingContext?.refs.floating.current,e)||CF(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return G.useMemo(()=>s?{reference:f}:{},[s,f])}function PL(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[JI]:t,[YI]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[qI]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[JI,YI].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function FL(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=G.useCallback(t=>PL(t,e,`reference`),t),a=G.useCallback(t=>PL(t,e,`floating`),n),o=G.useCallback(t=>PL(t,e,`item`),r);return G.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var IL=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function LL(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=sL(),c=r.domReference?.id||s,l=G.useMemo(()=>AF(r.floating)?.id||i,[r.floating,i]),u=IL.get(o)??o,d=dL()!=null,f=G.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=G.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=G.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return G.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function RL(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...RL(e,t.id,n)])}function zL(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function BL(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Bee(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){mL(i),u()}if(mL(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=TL(e),v=e.type===`mouseleave`,y=wL(c.floating,_),b=wL(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=BL(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,ee=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&SP(e.relatedTarget)&&wL(c.floating,e.relatedTarget)||f&&RL(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let M=[];switch(C){case`top`:M=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:M=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:M=[[S.right-1,ee],[S.right-1,j],[x.left+1,j],[x.left+1,ee]];break;case`right`:M=[[x.right-1,ee],[x.right-1,j],[S.left+1,j],[S.left+1,ee]]}function N(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!zL([m,h],M)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}zL([m,h],N([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var VL={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},HL=Cj((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),UL=kN(e=>{let t=PM(`ScrollArea`,VL,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...T}=t,[E,D]=(0,G.useState)(!1),[O,k]=(0,G.useState)(!1),[A,j]=(0,G.useState)(!1),ee=(0,G.useRef)(!0),M=(0,G.useRef)(!1),N=(0,G.useRef)(!0),te=(0,G.useRef)(!1),P=XM({name:`ScrollArea`,props:t,classes:gP,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:HL}),F=(0,G.useRef)(null),[I,ne]=(0,G.useState)(null),L=KI([f,F,(0,G.useCallback)(e=>{ne(t=>t===e?t:e)},[])]);return UN(h===`present`?I:null,()=>{let e=F.current;e&&(k(e.scrollHeight>e.clientHeight),j(e.scrollWidth>e.clientWidth))}),ej(()=>{S&&F.current&&F.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,K.jsxs)(qN,{getStyles:P,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...P(`root`),...T,children:[(0,K.jsx)(hP,{...d,...P(`viewport`,{style:d?.style}),ref:L,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!A?`true`:void 0,"data-vertical-hidden":h===`present`&&!O?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!M.current&&_?.(),c&&!ee.current&&v?.(),M.current=s,ee.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!te.current&&b?.(),u&&!N.current&&y?.(),te.current=l,N.current=u},children:m}),(g===`xy`||g===`x`)&&(0,K.jsx)(fP,{...P(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(mP,{...P(`thumb`)})}),(g===`xy`||g===`y`)&&(0,K.jsx)(fP,{...P(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!O||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(mP,{...P(`thumb`)})}),(0,K.jsx)(GN,{...P(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":E||void 0,"data-hidden":l===`never`||void 0})]})});UL.displayName=`@mantine/core/ScrollArea`;var WL=kN(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=PM(`ScrollAreaAutosize`,VL,e),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(null),D=KI([u,w,(0,G.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,G.useRef)(!1),k=(0,G.useRef)(!1),A=(0,G.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return UN(S?T:null,A),(0,K.jsx)(RN,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,K.jsx)(RN,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,K.jsx)(UL,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});UL.classes=gP,UL.varsResolver=HL,WL.displayName=`@mantine/core/ScrollAreaAutosize`,WL.classes=gP,UL.Autosize=WL;var GL={root:`m_87cf2631`},Vee={__staticSelector:`UnstyledButton`},KL=jN(e=>{let t=PM(`UnstyledButton`,Vee,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t;return(0,K.jsx)(RN,{...XM({name:i,props:t,classes:GL,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});KL.classes=GL,KL.displayName=`@mantine/core/UnstyledButton`;var qL={root:`m_1b7284a3`},JL=Cj((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:UA(t),"--paper-shadow":KA(n)}})),YL=jN(e=>{let t=PM(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=XM({name:`Paper`,props:t,classes:qL,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:JL});return(0,K.jsx)(RN,{mod:[{"data-with-border":s},f],...h(`root`),variant:d,...m})});YL.classes=qL,YL.varsResolver=JL,YL.displayName=`@mantine/core/Paper`;function XL(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function ZL(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var Hee={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function QL({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function $L({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=QL({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[Hee[c]]:r},d=-t/2;return c===`left`?{...u,...XL(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...XL(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...ZL(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...ZL(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function eR({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function tR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=BN();return a?(0,K.jsx)(`div`,{role:`presentation`,...l,style:{...c,...$L({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}tR.displayName=`@mantine/core/FloatingArrow`;function nR(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function rR(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function iR({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||rR(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=rR(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return rR(n)}var aR={reuseTargetNode:!0},oR=kN(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=PM(`Portal`,aR,e),[o,s]=(0,G.useState)(!1),c=(0,G.useRef)(null);return ej(()=>(s(!0),c.current=iR({target:n,reuseTargetNode:r,...a}),rj(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,NI.createPortal)((0,K.jsx)(K.Fragment,{children:t}),c.current)});oR.displayName=`@mantine/core/Portal`;var sR=kN(({withinPortal:e=!0,children:t,...n})=>lM()===`test`||!e?(0,K.jsx)(K.Fragment,{children:t}):(0,K.jsx)(oR,{...n,children:t}));sR.displayName=`@mantine/core/OptionalPortal`;var cR=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),lR={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...cR(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...cR(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...cR(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...cR(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...cR(`top`),common:{transformOrigin:`top right`}}},uR={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function dR({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in lR?{transitionProperty:lR[e].transitionProperty,...i,...lR[e].common,...lR[e][uR[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[uR[t]]}}function fR({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=wM(),d=uj(),f=u.respectReducedMotion?d:!1,[p,m]=(0,G.useState)(f?0:e),[h,g]=(0,G.useState)(r?`entered`:`exited`),_=(0,G.useRef)(-1),v=(0,G.useRef)(-1),y=(0,G.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{NI.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{if(b(),typeof(e?c:l)!=`number`){x(e);return}v.current=window.setTimeout(()=>{x(e)},e?c:l)};return tj(()=>{S(r)},[r]),(0,G.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function pR({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=lM(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=fR({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,K.jsx)(K.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,K.jsx)(K.Fragment,{children:o({})}):o({display:`none`}):(0,K.jsx)(G.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,K.jsx)(K.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:dR({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,K.jsx)(G.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,K.jsx)(K.Fragment,{children:o(dR({transition:n,duration:h,state:g,timingFunction:_}))})}pR.displayName=`@mantine/core/Transition`;var mR={duration:100,transition:`fade`};function hR(e,t){return{...mR,...t,...e}}var gR={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},_R=({className:e,...t})=>(0,K.jsxs)(RN,{component:`span`,className:Tj(gR.barsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:gR.bar}),(0,K.jsx)(`span`,{className:gR.bar}),(0,K.jsx)(`span`,{className:gR.bar})]});_R.displayName=`@mantine/core/Bars`;var vR=({className:e,...t})=>(0,K.jsxs)(RN,{component:`span`,className:Tj(gR.dotsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:gR.dot}),(0,K.jsx)(`span`,{className:gR.dot}),(0,K.jsx)(`span`,{className:gR.dot})]});vR.displayName=`@mantine/core/Dots`;var yR=({className:e,...t})=>(0,K.jsx)(RN,{component:`span`,className:Tj(gR.ovalLoader,e),...t});yR.displayName=`@mantine/core/Oval`;var bR={bars:_R,oval:yR,dots:vR},xR={loaders:bR,type:`oval`},SR=Cj((e,{size:t,color:n})=>({root:{"--loader-size":VA(t,`loader-size`),"--loader-color":n?Uj(n,e):void 0}})),CR=kN(e=>{let t=PM(`Loader`,xR,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=XM({name:`Loader`,props:t,classes:gR,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:SR});return p?(0,K.jsx)(RN,{...g(`root`),...h,children:p}):(0,K.jsx)(RN,{...g(`root`),component:d[i],variant:f,size:n,...h})});CR.defaultLoaders=bR,CR.classes=gR,CR.varsResolver=SR,CR.displayName=`@mantine/core/Loader`;var wR={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},TR={orientation:`horizontal`},ER=Cj((e,{borderWidth:t})=>({group:{"--ai-border-width":W(t)}})),DR=kN(e=>{let t=PM(`ActionIconGroup`,TR,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t;return(0,K.jsx)(RN,{...XM({name:`ActionIconGroup`,props:t,classes:wR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:ER,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});DR.classes=wR,DR.varsResolver=ER,DR.displayName=`@mantine/core/ActionIconGroup`;var OR=Cj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":VA(o,`section-height`),"--section-padding-x":VA(o,`section-padding-x`),"--section-fz":WA(o),"--section-radius":t===void 0?void 0:UA(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),kR=kN(e=>{let t=PM(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,K.jsx)(RN,{...XM({name:`ActionIconGroupSection`,props:t,classes:wR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:OR,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});kR.classes=wR,kR.varsResolver=OR,kR.displayName=`@mantine/core/ActionIconGroupSection`;var AR=Cj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":VA(t,`ai-size`),"--ai-radius":n===void 0?void 0:UA(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),jR=jN(e=>{let t=PM(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=XM({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:wR,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:AR});return(0,K.jsxs)(KL,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,K.jsx)(pR,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,K.jsx)(RN,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(CR,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,K.jsx)(RN,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});jR.classes=wR,jR.varsResolver=AR,jR.displayName=`@mantine/core/ActionIcon`,jR.Group=DR,jR.GroupSection=kR;function MR({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,K.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}MR.displayName=`@mantine/core/CloseIcon`;var NR={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},PR={variant:`subtle`},FR=Cj((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":VA(t,`cb-size`),"--cb-radius":n===void 0?void 0:UA(n),"--cb-icon-size":W(r)}})),IR=jN(e=>{let t=PM(`CloseButton`,PR,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=XM({name:_||`CloseButton`,props:t,className:o,style:c,classes:NR,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:FR});return(0,K.jsxs)(KL,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,K.jsx)(MR,{}),r]})});IR.classes=NR,IR.varsResolver=FR,IR.displayName=`@mantine/core/CloseButton`;function LR(e){return G.Children.toArray(e).filter(Boolean)}var RR={root:`m_4081bf90`},zR={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},BR=Cj((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":HA(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),VR=kN(e=>{let t=PM(`Group`,zR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=LR(s),x=b.length,S=HA(c??`md`);return(0,K.jsx)(RN,{...XM({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:RR,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:BR})(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});VR.classes=RR,VR.varsResolver=BR,VR.displayName=`@mantine/core/Group`;var HR=(0,G.createContext)({size:`sm`}),UR=kN(e=>{let t=PM(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,G.use)(HR),{resolvedClassNames:l,resolvedStyles:u}=IM({classNames:a,styles:o,props:t});return(0,K.jsx)(IR,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});UR.displayName=`@mantine/core/InputClearButton`;var WR={xs:7,sm:8,md:10,lg:12,xl:15};function GR({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,K.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:WR[i]},children:[o,n||r]}):n===null?null:n||o||r}var KR=(0,G.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),qR={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},JR=Cj((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${WA(t)} - ${W(2)})`}})),YR=kN(e=>{let t=PM(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=PM(`InputDescription`,null,t),f=(0,G.use)(KR),p=XM({name:[`InputWrapper`,c],props:t,classes:qR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:JR});return(0,K.jsx)(RN,{component:`p`,...(l&&f?.getStyles||p)(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});YR.classes=qR,YR.varsResolver=JR,YR.displayName=`@mantine/core/InputDescription`;var XR=Cj((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${WA(t)} - ${W(2)})`}})),ZR=kN(e=>{let t=PM(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=XM({name:[`InputWrapper`,l],props:t,classes:qR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:XR}),p=(0,G.use)(KR);return(0,K.jsx)(RN,{component:`p`,...(u&&p?.getStyles||f)(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});ZR.classes=qR,ZR.varsResolver=XR,ZR.displayName=`@mantine/core/InputError`;var QR={labelElement:`label`},$R=Cj((e,{size:t})=>({label:{"--input-label-size":WA(t),"--input-asterisk-color":void 0}})),ez=kN(e=>{let t=PM(`InputLabel`,QR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=XM({name:[`InputWrapper`,p],props:t,classes:qR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:$R}),v=(0,G.use)(KR),y=v?.getStyles||_,b=g.component||c,x=typeof b!=`string`||b===`label`;return(0,K.jsxs)(RN,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:x?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,K.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});ez.classes=qR,ez.varsResolver=$R,ez.displayName=`@mantine/core/InputLabel`;var tz=kN(e=>{let t=PM(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t;return(0,K.jsx)(RN,{...XM({name:[`InputPlaceholder`,c],props:t,classes:qR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});tz.classes=qR,tz.displayName=`@mantine/core/InputPlaceholder`;var nz=Cj((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${WA(t)} - ${W(2)})`}})),rz=kN(e=>{let t=PM(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=XM({name:[`InputWrapper`,l],props:t,classes:qR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:nz}),p=(0,G.use)(KR);return(0,K.jsx)(RN,{component:`p`,...(u&&p?.getStyles||f)(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});rz.classes=qR,rz.varsResolver=nz,rz.displayName=`@mantine/core/InputSuccess`;function iz(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var az={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},oz=Cj((e,{size:t})=>({label:{"--input-label-size":WA(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${WA(t)} - ${W(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${WA(t)} - ${W(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${WA(t)} - ${W(2)})`}})),sz=kN(e=>{let t=PM(`InputWrapper`,az,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:g,labelProps:_,descriptionProps:v,errorProps:y,successProps:b,labelElement:x,children:S,withAsterisk:C,id:w,required:T,__stylesApiProps:E,mod:D,attributes:O,...k}=t,A=XM({name:[`InputWrapper`,u],props:E||t,classes:qR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:oz}),j={size:c,variant:l,__staticSelector:u},ee=nj(w),M=typeof C==`boolean`?C:T,N=y?.id||`${ee}-error`,te=b?.id||`${ee}-success`,P=v?.id||`${ee}-description`,F=ee,I=!!m&&typeof m!=`boolean`,ne=!!h&&typeof h!=`boolean`&&!m,L=!!g,re=I&&f.includes(`error`),ie=ne&&f.includes(`error`),ae=L&&f.includes(`description`),oe=`${re?N:``} ${ie?te:``} ${ae?P:``}`,R=oe.trim().length>0?oe.trim():void 0,z=_?.id||`${ee}-label`,se=p&&(0,K.jsx)(ez,{labelElement:x,id:z,htmlFor:F,required:M,...j,..._,children:p},`label`),ce=L&&(0,K.jsx)(YR,{...v,...j,size:v?.size||j.size,id:v?.id||P,children:g},`description`),le=(0,K.jsx)(G.Fragment,{children:d(S)},`input`),ue=I&&(0,G.createElement)(ZR,{...y,...j,size:y?.size||j.size,key:`error`,id:y?.id||N},m),de=ne&&(0,G.createElement)(rz,{...b,...j,size:b?.size||j.size,key:`success`,id:b?.id||te},h),fe=f.map(e=>{switch(e){case`label`:return se;case`input`:return le;case`description`:return ce;case`error`:return ue||de;default:return null}});return(0,K.jsx)(KR,{value:{getStyles:A,describedBy:R,inputId:F,labelId:z,...iz(f,{hasDescription:L,hasError:I||ne})},children:(0,K.jsx)(RN,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},D],id:x===`label`?void 0:w,...A(`root`),...k,children:fe})})});sz.classes=qR,sz.varsResolver=oz,sz.displayName=`@mantine/core/InputWrapper`;var cz={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},lz=Cj((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":VA(t.size,`input-height`),"--input-fz":WA(t.size),"--input-radius":t.radius===void 0?void 0:UA(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:W(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:W(t.rightSectionWidth),"--input-padding-y":t.multiline?VA(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),uz=jN(e=>{let t=PM(`Input`,cz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:g,leftSectionWidth:_,rightSection:v,rightSectionProps:y,rightSectionWidth:b,rightSectionPointerEvents:x,leftSectionPointerEvents:S,variant:C,vars:w,pointer:T,multiline:E,radius:D,id:O,withAria:k,withErrorStyles:A,withSuccessStyles:j,mod:ee,inputSize:M,attributes:N,__clearSection:te,__clearable:P,__clearSectionMode:F,__defaultRightSection:I,loading:ne,loadingPosition:L,__bottomSection:re,__bottomSectionProps:ie,rootRef:ae,dir:oe,...R}=t,{styleProps:z,rest:se}=rN(R),ce=(0,G.use)(KR),le={offsetBottom:ce?.offsetBottom,offsetTop:ce?.offsetTop},ue=XM({name:[`Input`,c],props:l||t,classes:qR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:N,stylesCtx:le,rootSelector:`wrapper`,vars:w,varsResolver:lz}),de=k?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":ce?.describedBy,id:ce?.inputId||O}:{},fe=ne?(0,K.jsx)(CR,{size:L===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=ne&&L===`left`?fe:h,B=GR({__clearable:P,__clearSection:te,rightSection:ne&&L===`right`?fe:v,__defaultRightSection:I,size:u,__clearSectionMode:F});return(0,K.jsx)(HR,{value:{size:u||`sm`},children:(0,K.jsxs)(RN,{ref:ae,dir:oe,...ue(`wrapper`),...z,...d,mod:[{error:!!f&&A,success:!!p&&!f&&j,pointer:T,disabled:m,multiline:E,"data-with-right-section":!!B,"data-with-left-section":!!pe,"data-with-bottom-section":!!re},ee],variant:C,size:u,children:[pe&&(0,K.jsx)(`div`,{...g,"data-position":`left`,...ue(`section`,{className:g?.className,style:g?.style}),children:pe}),(0,K.jsx)(RN,{component:`input`,...se,...de,required:s,mod:{disabled:m,error:!!f&&A,success:!!p&&!f&&j},variant:C,__size:M,...ue(`input`)}),re&&(0,K.jsx)(`div`,{...ie,...ue(`bottomSection`,{className:ie?.className,style:ie?.style}),children:re}),B&&(0,K.jsx)(`div`,{...y,"data-position":`right`,...ue(`section`,{className:y?.className,style:y?.style}),children:B})]})})});uz.classes=qR,uz.varsResolver=lz,uz.Wrapper=sz,uz.Label=ez,uz.Error=ZR,uz.Success=rz,uz.Description=YR,uz.Placeholder=tz,uz.ClearButton=UR,uz.displayName=`@mantine/core/Input`;function dz(e,t,n){let r=PM([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:ee}=rN(A),M={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...ee,classNames:l,styles:u,unstyled:f,wrapperProps:{...M,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var fz={__staticSelector:`InputBase`,withAria:!0,size:`sm`},pz=jN(e=>{let{inputProps:t,wrapperProps:n,...r}=dz(`InputBase`,fz,e);return(0,K.jsx)(uz.Wrapper,{...n,children:(0,K.jsx)(uz,{...t,...r})})});pz.classes={...uz.classes,...uz.Wrapper.classes},pz.displayName=`@mantine/core/InputBase`;function mz(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function hz({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,G.useRef)(-1),s=(0,G.useRef)(e),[c,l]=(0,G.useState)(!1),[u,d]=(0,G.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=tP(s.borderTopWidth)+tP(c.borderTopWidth),u=tP(s.borderLeftWidth)+tP(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,G.useRef)(null),h=(0,G.useRef)(null);return(0,G.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,G.useEffect)(()=>{if(t){let e=e=>{mz(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,G.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),mj(()=>{yj()!==`test`&&l(!0)},20,{autoInvoke:!0}),hj(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var gz={root:`m_96b553a6`},_z=Cj((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),vz=kN(e=>{let t=PM(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=XM({name:`FloatingIndicator`,classes:gz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:_z,stylesCtx:{shouldReduceMotion:uj()}}),y=(0,G.useRef)(null),{initialized:b,hidden:x}=hz({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=aj(g,y);return!c||!l?null:(0,K.jsx)(RN,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});vz.displayName=`@mantine/core/FloatingIndicator`,vz.classes=gz,vz.varsResolver=_z;var yz={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},bz=Cj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:UA(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),xz=kN(e=>{let t=PM(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=XM({name:`Alert`,classes:yz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:bz}),C=nj(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,K.jsx)(RN,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,K.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,K.jsx)(`div`,{...S(`icon`),children:p}),(0,K.jsxs)(`div`,{...S(`body`),children:[u&&(0,K.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,K.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,K.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,K.jsx)(IR,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});xz.classes=yz,xz.varsResolver=bz,xz.displayName=`@mantine/core/Alert`;var Sz={root:`m_b6d8b162`};function Cz(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var wz={inherit:!1},Tz=Cj((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":WA(i),"--text-lh":GA(i),"--text-gradient":t===`gradient`?Kj(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Ez=jN(e=>{let t=PM(`Text`,wz,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t;return(0,K.jsx)(RN,{...XM({name:[`Text`,l],props:t,classes:Sz,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Tz})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{"data-truncate":Cz(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},_],size:v,...b})});Ez.classes=Sz,Ez.varsResolver=Tz,Ez.displayName=`@mantine/core/Text`;var Dz={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},Oz=Cj((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":VA(a,`badge-height`),"--badge-padding-x":VA(a,`badge-padding-x`),"--badge-fz":VA(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:UA(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?Uj(n,e):void 0}}}),kz=jN(e=>{let t=PM(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=XM({name:`Badge`,props:t,classes:Dz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Oz});return(0,K.jsxs)(RN,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,K.jsx)(`span`,{...x(`label`),children:p}),f&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});kz.classes=Dz,kz.varsResolver=Oz,kz.displayName=`@mantine/core/Badge`;var Az={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},jz={orientation:`horizontal`},Mz=Cj((e,{borderWidth:t})=>({group:{"--button-border-width":W(t)}})),Nz=kN(e=>{let t=PM(`ButtonGroup`,jz,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=PM(`ButtonGroup`,jz,e);return(0,K.jsx)(RN,{...XM({name:`ButtonGroup`,props:t,classes:Az,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Mz,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});Nz.classes=Az,Nz.varsResolver=Mz,Nz.displayName=`@mantine/core/ButtonGroup`;var Pz=Cj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":VA(o,`section-height`),"--section-padding-x":VA(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?WA(o.replace(`compact-`,``)):WA(o),"--section-radius":t===void 0?void 0:UA(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Fz=kN(e=>{let t=PM(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,K.jsx)(RN,{...XM({name:`ButtonGroupSection`,props:t,classes:Az,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Pz,rootSelector:`groupSection`})(`groupSection`),...f})});Fz.classes=Az,Fz.varsResolver=Pz,Fz.displayName=`@mantine/core/ButtonGroupSection`;var Iz={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${W(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Lz=Cj((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":VA(a,`button-height`),"--button-padding-x":VA(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?WA(a.replace(`compact-`,``)):WA(a),"--button-radius":t===void 0?void 0:UA(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Rz=jN(e=>{let t=PM(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=XM({name:`Button`,props:t,classes:Az,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Lz}),T=!!c,E=!!l;return(0,K.jsxs)(KL,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,K.jsx)(pR,{mounted:p,transition:Iz,duration:150,children:e=>(0,K.jsx)(RN,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(CR,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,K.jsxs)(`span`,{...w(`inner`),children:[c&&(0,K.jsx)(RN,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,K.jsx)(RN,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,K.jsx)(RN,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});Rz.classes=Az,Rz.varsResolver=Lz,Rz.displayName=`@mantine/core/Button`,Rz.Group=Nz,Rz.GroupSection=Fz;var zz={root:`m_4451eb3a`},Bz=jN(e=>{let t=PM(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=XM({name:`Center`,props:t,classes:zz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,K.jsx)(RN,{mod:[{inline:c},l],...f(`root`),...d})});Bz.classes=zz,Bz.displayName=`@mantine/core/Center`;var[Vz,Hz]=RA(`Pagination.Root component was not found in tree`),Uz={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`,items:`m_105fdbed`,label:`m_10817321`},Wz={withPadding:!0},Gz=kN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=PM(`PaginationControl`,Wz,e),d=Hz(),f=s||d.disabled;return(0,K.jsx)(KL,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});Gz.classes=Uz,Gz.displayName=`@mantine/core/PaginationControl`;function Kz({style:e,children:t,path:n,...r}){return(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,K.jsx)(`path`,{d:n,fill:`currentColor`})})}var qz=e=>(0,K.jsx)(Kz,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),Jz=e=>(0,K.jsx)(Kz,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),Yz=e=>(0,K.jsx)(Kz,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),Xz=e=>(0,K.jsx)(Kz,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),Zz={icon:e=>(0,K.jsx)(Kz,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},Qz=kN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=PM(`PaginationDots`,Zz,e);return(0,K.jsx)(RN,{...Hz().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,K.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});Qz.classes=Uz,Qz.displayName=`@mantine/core/PaginationDots`;function $z({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=PM(t,i,e),s=Hz(),c=r===`next`?s.active===s.total:s.active===1;return(0,K.jsx)(Gz,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,K.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,DN(a)}var eB=$z({icon:qz,name:`PaginationNext`,action:`onNext`,type:`next`}),tB=$z({icon:Jz,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),nB=$z({icon:Yz,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),rB=$z({icon:Xz,name:`PaginationLast`,action:`onLast`,type:`next`});function iB({dotsIcon:e}){let t=Hz();return(0,K.jsx)(K.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,K.jsx)(Qz,{icon:e},r):(0,K.jsx)(Gz,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}iB.displayName=`@mantine/core/PaginationItems`;var aB={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},oB=kN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=PM(`PaginationLabel`,aB,e),c=Hz();return(0,K.jsx)(RN,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});oB.classes=Uz,oB.displayName=`@mantine/core/PaginationLabel`;var sB={siblings:1,boundaries:1},cB=Cj((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:UA(n),"--pagination-control-size":VA(t,`pagination-control-size`),"--pagination-control-fz":WA(t),"--pagination-active-bg":r?Uj(r,e):void 0,"--pagination-active-color":$j(i,e)?Xj({color:r,theme:e,autoContrast:i}):void 0}})),lB=kN(e=>{let t=PM(`PaginationRoot`,sB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=XM({name:`Pagination`,classes:Uz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:cB}),{range:k,setPage:A,next:j,previous:ee,active:M,first:N,last:te}=lj({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,K.jsx)(Vz,{value:{total:c,range:k,active:M,disabled:f,layout:w,getItemProps:x,onChange:A,onNext:qA(_,j),onPrevious:qA(v,ee),onFirst:qA(y,N),onLast:qA(b,te),getStyles:O},children:(0,K.jsx)(RN,{...O(`root`),mod:[{layout:w},T],...D})})});lB.classes=Uz,lB.varsResolver=cB,lB.displayName=`@mantine/core/PaginationRoot`;var uB={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function dB({children:e}){return(0,K.jsx)(RN,{...Hz().getStyles(`items`),children:e})}var fB=kN(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=PM(`Pagination`,uB,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(dB,{children:(0,K.jsx)(iB,{dotsIcon:c})}),(0,K.jsx)(oB,{formatLabel:m})]}):(0,K.jsx)(iB,{dotsIcon:c}):null;return(0,K.jsx)(lB,{total:l,layout:p,...h,children:(0,K.jsxs)(VR,{gap:u,children:[t&&(0,K.jsx)(nB,{icon:s,...r?.(`first`)}),n&&(0,K.jsx)(tB,{icon:a,...r?.(`previous`)}),g,n&&(0,K.jsx)(eB,{icon:i,...r?.(`next`)}),t&&(0,K.jsx)(rB,{icon:o,...r?.(`last`)})]})})});fB.classes=Uz,fB.displayName=`@mantine/core/Pagination`,fB.Root=lB,fB.Control=Gz,fB.Dots=Qz,fB.First=nB,fB.Last=rB,fB.Next=eB,fB.Previous=tB,fB.Items=iB,fB.Label=oB;function pB({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,G.useState)(n),a=(0,G.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=jL({placement:t,middleware:[HI({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,G.useCallback)(({clientX:e,clientY:t})=>{!Number.isFinite(e)||!Number.isFinite(t)||l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,G.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=BP(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var mB={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},hB={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:BA(`popover`)},gB=Cj((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:UA(t),"--tooltip-bg":n?Uj(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),_B=kN(e=>{let t=PM(`TooltipFloating`,hB,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=wM(),E=XM({name:`TooltipFloating`,props:t,classes:mB,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:gB}),{handleMouseMove:D,x:O,y:k,opened:A,boundaryRef:j,floating:ee,setOpened:M}=pB({offset:p,position:m,defaultOpened:v}),N=Sj(n);if(!N)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let te=aj(j,bj(N),C),P=N.props,F=e=>{P.onMouseEnter?.(e),D(e),M(!0)},I=e=>{P.onMouseLeave?.(e),M(!1)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(sR,{...x,withinPortal:i,children:(0,K.jsx)(RN,{...w,...E(`tooltip`,{style:{...TN(a,T),zIndex:g,display:!_&&A?`block`:`none`,top:Number.isFinite(k)?Math.round(k):``,left:Number.isFinite(O)?Math.round(O):``}}),variant:y,ref:ee,mod:{multiline:h},children:f})}),(0,G.cloneElement)(N,{...P,[r]:te,onMouseEnter:F,onMouseLeave:I})]})});_B.classes=mB,_B.varsResolver=gB,_B.displayName=`@mantine/core/TooltipFloating`;var vB=(0,G.createContext)({withinGroup:!1}),yB={openDelay:0,closeDelay:0};function bB(e){let{openDelay:t,closeDelay:n,children:r}=PM(`TooltipGroup`,yB,e);return(0,K.jsx)(vB,{value:{withinGroup:!0},children:(0,K.jsx)(SL,{delay:{open:t,close:n},children:r})})}bB.displayName=`@mantine/core/TooltipGroup`,bB.extend=e=>e;function xB(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function SB(e){let t=xB(e.middlewares),n=[VI(e.offset)];return t.shift&&n.push(HI(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?UI():UI(t.flip)),n.push(GI({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?WI():WI(t.inline)):e.inline&&n.push(WI()),n}function CB(e){let[t,n]=(0,G.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,G.use)(vB).withinGroup,a=nj(),o=(0,G.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=jL({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:SB(e),whileElementsMounted:EI}),{delay:m,currentId:h,setCurrentId:g}=CL(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=FL([vL(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Bee():null}),NL(l,{enabled:e.events?.focus,visibleOnly:!0}),LL(l,{role:`tooltip`}),kL(l,{enabled:e.opened===void 0})]),y=(0,G.useRef)(d);ej(()=>{y.current!==d&&(y.current=d,e.onPositionChange?.(d))},[d]);let b=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:b,opened:r,placement:d}}var wB={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:BA(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},TB=Cj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:UA(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),EB=kN(e=>{let t=PM(`Tooltip`,wB,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,interactive:O,zIndex:k,disabled:A,onClick:j,onMouseEnter:ee,onMouseLeave:M,inline:N,variant:te,keepMounted:P,vars:F,portalProps:I,mod:ne,floatingStrategy:L,middlewares:re,autoContrast:ie,attributes:ae,target:oe,ref:R,...z}=t,{dir:se}=BN(),ce=(0,G.useRef)(null),le=CB({position:nR(se,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,interactive:O,arrowRef:ce,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:N,strategy:L,middlewares:re});(0,G.useEffect)(()=>{let e=oe instanceof HTMLElement?oe:typeof oe==`string`?document.querySelector(oe):oe?.current||null;e&&le.reference(e)},[oe,le]);let ue=XM({name:`Tooltip`,props:t,classes:mB,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:ae,rootSelector:`tooltip`,vars:F,varsResolver:TB}),de=Sj(n);if(!oe&&!de)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let fe=ue(`tooltip`),pe=O&&!A&&!!le.opened,B=C===`merge`&&y?eR({position:le.placement,dir:se}):void 0;if(oe){let e=hR(T,{duration:100,transition:`fade`});return(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(sR,{...I,withinPortal:d,children:(0,K.jsx)(pR,{...e,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:e.duration,children:e=>(0,K.jsxs)(RN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...fe,...le.getFloatingProps({ref:le.floating,className:fe.className,style:{...fe.style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(tR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})})})}let me=de.props,V=aj(le.reference,bj(de),R),he=hR(T,{duration:100,transition:`fade`});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(sR,{...I,withinPortal:d,children:(0,K.jsx)(pR,{...he,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:he.duration,children:e=>(0,K.jsxs)(RN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...le.getFloatingProps({ref:le.floating,className:ue(`tooltip`).className,style:{...ue(`tooltip`).style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(tR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})}),(0,G.cloneElement)(de,le.getReferenceProps({onClick:j,onMouseEnter:ee,onMouseLeave:M,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...me,className:Tj(v,me.className),[i]:V}))]})});EB.classes=mB,EB.varsResolver=TB,EB.displayName=`@mantine/core/Tooltip`,EB.Floating=_B,EB.Group=bB;var DB={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},OB={withItemsBorders:!0},kB=Cj((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:UA(t),"--sc-color":n?Uj(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":VA(i,`sc-padding`),"--sc-font-size":WA(i)}})),AB=AN(e=>{let t=PM(`SegmentedControl`,OB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:w,mod:T,attributes:E,ref:D,...O}=t,k=XM({name:`SegmentedControl`,props:t,classes:DB,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:kB}),A=wM(),j=c.map(e=>xj(e)?{label:`${e}`,value:e}:e),ee=gj(),[M,N]=(0,G.useState)(JA()),[te,P]=(0,G.useState)(null),[F,I]=(0,G.useState)({}),ne=(e,t)=>{F[t]=e,I(F)},[L,re]=oj({value:l,defaultValue:u,finalValue:Array.isArray(c)?j.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),ie=nj(p),ae=j.map(e=>(0,G.createElement)(RN,{...k(`control`),mod:{active:L===e.value,orientation:_},key:`${e.value}`},(0,G.createElement)(`input`,{...k(`input`),disabled:m||e.disabled,type:`radio`,name:ie,value:`${e.value}`,id:`${ie}-${e.value}`,checked:L===e.value,onChange:()=>!h&&re(e.value),"data-focus-ring":A.focusRing,key:`${e.value}-input`}),(0,G.createElement)(RN,{component:`label`,...k(`label`),mod:{active:L===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${ie}-${e.value}`,ref:t=>ne(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:Xj({color:y,theme:A,autoContrast:C})},key:`${e.value}-label`},(0,K.jsx)(`span`,{...k(`innerLabel`),children:e.label})))),oe=aj(D,P);return pj(()=>{N(JA())},[c.length]),c.length===0?null:(0,K.jsxs)(RN,{...k(`root`),variant:S,size:f,ref:oe,mod:[{"full-width":g,orientation:_,initialized:ee,"with-items-borders":w},T],...O,role:`radiogroup`,"data-disabled":m,children:[L!==void 0&&(0,K.jsx)(vz,{target:F[`${L}`],parent:te,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...k(`indicator`)},M),ae]})});AB.classes=DB,AB.varsResolver=kB,AB.displayName=`@mantine/core/SegmentedControl`;var[jB,MB]=RA(`Table component was not found in the tree`),NB={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function PB(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function FB(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=kN(r=>{let i=PM(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=MB();return(0,K.jsx)(RN,{component:e,...PB(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=NB,r}var IB=FB(`th`,{columnBorder:!0}),LB=FB(`td`,{columnBorder:!0}),RB=FB(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),zB=FB(`thead`,{stickyHeader:!0}),BB=FB(`tbody`),VB=FB(`tfoot`),HB=FB(`caption`,{captionSide:!0}),UB={type:`scrollarea`},WB=Cj((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),GB=kN(e=>{let t=PM(`TableScrollContainer`,UB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=XM({name:`TableScrollContainer`,classes:NB,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:WB,rootSelector:`scrollContainer`});return(0,K.jsx)(RN,{component:d===`scrollarea`?UL:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,K.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});GB.classes=NB,GB.varsResolver=WB,GB.displayName=`@mantine/core/TableScrollContainer`;function KB({data:e}){return(0,K.jsxs)(K.Fragment,{children:[e.caption&&(0,K.jsx)(HB,{children:e.caption}),e.head&&(0,K.jsx)(zB,{children:(0,K.jsx)(RB,{children:e.head.map((e,t)=>(0,K.jsx)(IB,{children:e},t))})}),e.body&&(0,K.jsx)(BB,{children:e.body.map((e,t)=>(0,K.jsx)(RB,{children:e.map((e,t)=>(0,K.jsx)(LB,{children:e},t))},t))}),e.foot&&(0,K.jsx)(VB,{children:(0,K.jsx)(RB,{children:e.foot.map((e,t)=>(0,K.jsx)(IB,{children:e},t))})})]})}KB.displayName=`@mantine/core/TableDataRenderer`;var qB={withRowBorders:!0,verticalSpacing:7},JB=Cj((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":HA(r),"--table-vertical-spacing":HA(i),"--table-border-color":a?Uj(a,e):void 0,"--table-striped-color":c&&o?Uj(o,e):void 0,"--table-highlight-on-hover-color":l&&s?Uj(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),YB=kN(e=>{let t=PM(`Table`,qB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=XM({name:`Table`,props:t,className:r,style:i,classes:NB,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:JB});return(0,K.jsx)(jB,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,K.jsx)(RN,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,K.jsx)(KB,{data:b})})})});YB.classes=NB,YB.varsResolver=JB,YB.displayName=`@mantine/core/Table`,YB.Td=LB,YB.Th=IB,YB.Tr=RB,YB.Thead=zB,YB.Tbody=BB,YB.Tfoot=VB,YB.Caption=HB,YB.ScrollContainer=GB,YB.DataRenderer=KB;var XB=kN(e=>(0,K.jsx)(pz,{component:`input`,...PM([`Input`,`InputWrapper`,`TextInput`],null,e),__staticSelector:`TextInput`}));XB.classes=pz.classes,XB.displayName=`@mantine/core/TextInput`;var ZB={root:`m_7341320d`},QB=Cj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":VA(t,`ti-size`),"--ti-radius":n===void 0?void 0:UA(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),$B=kN(e=>{let t=PM(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,K.jsx)(RN,{...XM({name:`ThemeIcon`,classes:ZB,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:QB})(`root`),...u})});$B.classes=ZB,$B.varsResolver=QB,$B.displayName=`@mantine/core/ThemeIcon`;var eV=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],tV=[`xs`,`sm`,`md`,`lg`,`xl`];function nV(e,t){let n=t===void 0?`h${e}`:t;return eV.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:tV.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var rV={root:`m_8a5d1357`},iV={order:1},aV=Cj((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=nV(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),oV=kN(e=>{let t=PM(`Title`,iV,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=XM({name:`Title`,props:t,classes:rV,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:aV});return[1,2,3,4,5,6].includes(s)?(0,K.jsx)(RN,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});oV.classes=rV,oV.varsResolver=aV,oV.displayName=`@mantine/core/Title`;var sV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),cV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z`}))]]),lV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),uV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),dV=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),fV=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(dV);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});fV.displayName=`IconBase`;var pV=G.forwardRef((e,t)=>G.createElement(fV,{ref:t,...e,weights:sV}));pV.displayName=`ArrowClockwiseIcon`;var mV=pV,hV=G.forwardRef((e,t)=>G.createElement(fV,{ref:t,...e,weights:cV}));hV.displayName=`ArrowSquareOutIcon`;var gV=hV,_V=G.forwardRef((e,t)=>G.createElement(fV,{ref:t,...e,weights:lV}));_V.displayName=`ListMagnifyingGlassIcon`;var vV=_V,yV=G.forwardRef((e,t)=>G.createElement(fV,{ref:t,...e,weights:uV}));yV.displayName=`MagnifyingGlassIcon`;var bV=yV,xV=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),SV=s(((e,t)=>{t.exports=xV()})),CV=s((e=>{var t=SV(),n=IA(),r=vj();function i(e){var t=`https://react.dev/errors/`+e;if(1F||(e.current=P[F],P[F]=null,F--)}function L(e,t){F++,P[F]=e.current,e.current=t}var re=I(null),ie=I(null),ae=I(null),oe=I(null);function R(e,t){switch(L(ae,t),L(ie,e),L(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ne(re),L(re,e)}function z(){ne(re),ne(ie),ne(ae)}function se(e){e.memoizedState!==null&&L(oe,e);var t=re.current,n=Xd(t,e.type);t!==n&&(L(ie,e),L(re,n))}function ce(e){ie.current===e&&(ne(re),ne(ie)),oe.current===e&&(ne(oe),op._currentValue=te)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``,ue=-11||n>0&&!e.noHeader;return R(e.blocks,function(e){var n=V_(e);n>=t&&(t=n+ +(r&&(!n||z_(e)&&!e.noHeader)))}),t}return 0}function H_(e,t,n,r){var i=t.noHeader,a=G_(V_(t)),o=[],s=t.blocks||[];De(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(ze(l,c)){var u=new dm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}R(s,function(n,i){var s=t.valueFormatter,c=B_(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):K_(r,o.join(``),i?n:a.html);if(i)return d;var f=Ng(t.header,`ordinal`,e.useUTC),p=F_(r,e.renderMode).nameStyle,m=P_(r);return e.renderMode===`richText`?Y_(e,f,p)+a.richText+d:K_(r,`
`+Mh(f)+`
`+d,n)}function U_(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],z(e,function(e,t){return Ng(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||k_.color.secondary,i),f=a?``:Ng(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=F_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:Y_(e,f,v))+(o?``:X_(e,m,h,g,y)):K_(r,(s?``:d)+(a?``:q_(f,!s,v))+(o?``:J_(m,h,g,y)),n)}}function W_(e,t,n,r,i,a){if(e)return B_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function G_(e){return{html:I_[e],richText:L_[e]}}function K_(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=P_(e);return`
`+t+r+`
`}function q_(e,t,n){var r=t?`margin-left:2px`:``;return``+Mh(e)+``}function J_(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],``+z(e,function(e){return Mh(e)}).join(`  `)+``}function Y_(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function X_(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function Z_(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Rg(n)}function Q_(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var $_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ws()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Lg({color:t,type:e,renderMode:n,markerId:r});return V(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?R(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function ev(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=Z_(t,n),u,d,f,p;if(o>1||c&&!o){var m=tv(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=nm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=_c(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return R_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[R_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Oe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function tv(e,t,n,r,i){var a=t.getData(),o=se(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?R(r,function(e){u(nm(a,n,e),e)}):R(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(R_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var nv=Cc();function rv(e,t){return e.getName(t)||e.getId(t)}var iv=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=f_({count:sv,reset:cv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(nv(this).sourceManager=new E_(this)).prepareSource();var r=this.getInitialData(e,n);uv(r,this),this.dataTask.context.data=r,nv(this).dataBeforeProcessed=r,av(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Yg(this),r=n?Zg(e):{},i=this.subType;e_.hasClass(i)&&(i+=`Series`),F(e,t.getTheme().get(this.subType)),F(e,this.getDefaultOption()),rc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Xg(e,r,n)},t.prototype.mergeOption=function(e,t){e=F(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Yg(this);n&&Xg(this.option,e,n);var r=nv(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);uv(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,nv(this).dataBeforeProcessed=i,av(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ve(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return ev({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ue.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=i_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[rv(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){H(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return e_.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(e_);ae(iv,u_),ae(iv,i_),$e(iv,e_);function av(e){var t=e.name;_c(e)||(e.name=ov(e)||t)}function ov(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return R(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function sv(e){return e.model.getRawData().count()}function cv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),lv}function lv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function uv(e,t){R(Le(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,pe(dv,t))})}function dv(e,t){var n=fv(e);return n&&n.setOutputEnd((t||this).count()),t}function fv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var pv=ko.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),mv={line:hd,rect:Uo,roundRect:Uo,square:Uo,circle:zu,diamond:ko.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:ko.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:ko.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:pv},hv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},gv={};R(mv,function(e,t){gv[t]=new e});var _v=ko.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Cn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=gv[r];i||=(r=`rect`,gv[r]),hv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function vv(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||k_.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function yv(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?rf(e.slice(8),new en(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?nf(e.slice(7),{},new en(t,n,r,i),o?`center`:`cover`):new _v({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=vv,a&&c.setColor(a),c}function bv(e,t){if(e!=null)return B(e)||(e=[e,e]),[Cs(e[0],t[0])||0,Cs(Ce(e[1],e[0]),t[1])||0]}function xv(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=nm(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var Cv=typeof Float32Array<`u`?Float32Array:void 0,wv=typeof Float64Array<`u`?Float64Array:void 0;function Tv(e){return Ev({ctor:Cv},e).arr}function Ev(e,t){var n=e.arr,r=e.ctor;if(t>Ns&&(t=Ns),!n||e.typed&&n.length=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){Zv(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),Zv(r,e,t,n)},freeze:function(){}};function Zv(e,t,n,r){zc(n,r)&&(e[t][0]=n,e[t][1]=r)}function Qv(e){return $v(e)||ty(e)}function $v(e){return e.type===`interval`}function ey(e){return e.type===`time`}function ty(e){return e.type===`log`}function ny(e){return e.type===`ordinal`}function ry(e){var t=zs(e),n=_s(10,t),r=ms(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ds(r*n,-t)}function iy(e){return ks(e)+2}function ay(e,t){return vs(e)/vs(t)}function oy(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var uy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Kv(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Hv({}),B(i)&&(i=new Hv({categories:z(i,function(e){return H(e)?e.value:e})})),r._ordinalMeta=i;var a=Gv(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,qv(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:V(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=ms(e),e},t.prototype.getTicks=function(){var e=[];return ly(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=ds(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=ds(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Ds(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Ds(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Ds(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return dy(this,e,Kh(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ks(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Ag(Ds(e.value,n,!0))},t.type=`interval`,t}(Bv);Bv.registerClass(fy);var py=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function vy(e){var t=30*Zh;return e/=t,e>6?6:e>3?3:e>2?2:1}function cee(e){return e/=Xh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function yy(e,t){return e/=t?Yh:Jh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function by(e){return fs(Bs(e,!0),1)}function xy(e,t,n){var r=Math.max(0,re(ig,t)-1);return hg(new Date(e),ig[r],n).getTime()}function Sy(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Cy(e,t,n,r,i,a){var o=ag,s=0;function c(e,t,n,i,o,c,l){for(var u=Sy(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!gy(lg(e),r[0],r[1],n)){s&&(i=[{value:xy(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ce(z(u,function(e){return ce(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=hy.length,l=Math.min(py(hy,a,0,c),c-1),u=hy[l][1],d=hy[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Bv.registerClass(my);var Ty=0,Ey=1,Dy=2,Oy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=fy.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Ty]=i[Ey]=a[Ty]=a[Ey]=NaN,Kv(r,t.mapperMethods);var s=Wh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},Dy,l),r.powStub=new fy({breakParsed:l.original}),r.intervalStub=new fy({breakParsed:l.transformed}),qv(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Wh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return z(i.getTicks(e||{}),function(e){var i=e.value,o=oy(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Kh(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return dy(this,e,Kh(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(ay(e,this.base))},scale:function(e){return oy(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=ay(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return ky.depth=n,Ay.lookup=this._lookup,oy(n===2?e:this.intervalStub.transformOut(e,ky),this.base,Ay)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!zc(t,n)||t<=0||n<=0)){var r=jy,i=jy;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Ty]=t,r[Ey]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Ty]=ay(t,o),i[Ey]=ay(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return zc(t[0],t[1])&&qs(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(Bv);Bv.registerClass(Oy);var ky={},Ay={},jy=[],My={value:1,category:1,time:1,log:1},Ny=Cc();function Py(e){var t=e.get(`type`);return(t==null||!ze(My,t)&&!Bv.getClass(t))&&(t=`value`),t}function Fy(e,t,n){var r=Wh(),i;switch(r&&(i=Ky(e,t,n)),t){case`category`:return new uy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Nc()});case`time`:return new my({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Oy({logBase:e.get(`logBase`),breakOption:i});case`value`:return new fy({breakOption:i});default:return new((Bv.getClass(t))||fy)({})}}function Iy(e,t,n){var r=n?Yv(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return zc(i,a)?i===t||a===t?2:it?1:3:3}function Ly(e){Ny(e).noOnMyZero=!0}function Ry(e){return Ny(e).noOnMyZero}function zy(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=og(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(V(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(me(t)){if(e.type===`category`)return function(n,r){return t(By(e,n),n.value-e.scale.getExtent()[0],null)};var r=Wh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(By(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function By(e,t){var n=e.scale;return ny(n)?n.getLabel(t):t.value}function Vy(e){return e.get(`interval`)??`auto`}function Hy(e){return e.type===`category`&&Vy(e.getLabelModel())===0}function Uy(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[ch(e,t)]=!0}),ue(n)}function Wy(e){return e===`middle`||e===`center`}function Gy(e){return e.getShallow(`show`)}function Ky(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Wh()||!n||!qy(t)?void 0:r}function qy(e){return e!==`category`}function Jy(e,t,n,r,i,a){var o=ty(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=see(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function Yy(e,t){return ny(e)?e.getRawOrdinalNumber(t.value):t.value}function Xy(e,t){return ny(e)&&!!t.get(`boundaryGap`)}var Zy={average:function(e){for(var t=0,n=0,r=0;rt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;V(i)?p=Zy[i]:me(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Qy))}}}}}var eb=Cc(),tb=Cc(),nb={estimate:1,determine:2};function rb(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function ib(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:z(ob(n,r),function(t,n){return{formattedLabel:zy(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?sb(e,t):ub(e)}function ab(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:ob(i,r)}:e.type===`category`?lb(e,t):{ticks:r.getTicks(n)}}function ob(e,t){var n=t.getExtent(),r=[];return R(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Wc(r,Kc,null),Os(r),z(r,function(e){return{value:e}})}function sb(e,t){var n=e.getLabelModel(),r=cb(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function cb(e,t,n){var r=fb(e),i=Vy(t),a=n.kind===nb.estimate;if(!a){var o=mb(r,i);if(o)return o}var s,c;me(i)?s=xb(e,i,!1):(c=i===`auto`?gb(e,n):i,s=xb(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return hb(r,i,l),!0}):hb(r,i,l),l}function lb(e,t){var n=db(e),r=Vy(t),i=mb(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),me(r))a=xb(e,r,!0);else if(r===`auto`){var s=cb(e,e.getLabelModel(),rb(nb.determine));o=s.labelCategoryInterval,a=z(s.labels,function(e){return e.tick})}else o=r,a=xb(e,o,!0);return hb(n,r,{ticks:a,tickCategoryInterval:o})}function ub(e){var t=e.scale.getTicks(),n=zy(e);return{labels:z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var db=pb(`axisTick`),fb=pb(`axisLabel`);function pb(e){return function(t){return tb(t)[e]||(tb(t)[e]={list:[]})}}function mb(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=vn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===nb.estimate?(t.out.noPxChangeTryDetermine.push(fe(vb,null,e,S,c)),S):yb(e,S,c)??S}function vb(e,t,n){return yb(e,t,n)==null}function yb(e,t,n){var r=eb(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function bb(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function xb(e,t,n){var r=zy(e),i=e.scale,a=[],o=me(t);return ly(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var Sb=Cc();function Cb(e){Sb(e).prepare={}}function wb(e){Sb(e).fullUpdate={}}function Tb(e){return Sb(e).prepare}function Eb(e){return Sb(e).fullUpdate}var Db=Hc(),Ob=Cc(),lee=Cc();function kb(e,t){var n=e.model,r=Ob(Eb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function Ab(e,t){return Nb(kb(e,t))}function jb(e,t){var n=[];return Mb(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),qs(n)&&n>0&&qs(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*Kb,e.w2=e.w*n/r)}var Xb=[0,1],Zb=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Ss(e,Xb,Qb(this),t)},e.prototype.coordToData=function(e,t){var n=Ss(e,Qb(this),Xb,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=z(ab(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(Yy(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=$b(this,n,r);return z(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(ny(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),z(this.scale.getMinorTicks(e),function(e){return z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=rb(nb.determine),ib(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return qb(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=rb(nb.determine),_b(this,e)},e}();function Qb(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function $b(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=qb(e).w;if(!i)return!1;R(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var ex=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Zb),tx=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],nx=1,rx=2,ix=nx|rx;function ax(e,t,n){n||=ix,t?e.dirty|=n:e.dirty&=~n}function ox(e,t){return t||=ix,e.dirty==null||!!(e.dirty&t)}function sx(e){if(e)return ox(e)&&cx(e,e.label,e),e}function cx(e,t,n){var r=t.getComputedTransform();e.transform=Nf(e.transform,r);var i=e.localRect=Mf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=ip.textMargin);for(var d=0;d<4;d++)lx[d]=u===ip.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===ip.textMargin&&wf(i,lx,!1,!1);var f=e.rect=Mf(e.rect,i);return r&&f.applyTransform(r),u===ip.minMargin&&wf(f,lx,!1,!1),e.axisAligned=Af(r),(e.label=e.label||{}).ignore=t.ignore,ax(e,!1),ax(e,!0,rx),e}var lx=[0,0,0,0];function ux(e,t,n){return e.transform=Nf(e.transform,n),e.localRect=Mf(e.localRect,t),e.rect=Mf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Af(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function dx(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function fx(e,t){for(var n=0;n.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new en(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Dx=gt(),Ox=new en(0,0,0,0),kx=function(e,t,n,r,i,a){if(Wy(e.nameLocation)){var o=a.stOccupiedRect;o&&Ax(ux({},o,a.transGroup.transform),r,i)}else jx(a.labelInfoList,a.dirVec,r,i)};function Ax(e,t,n){var r=new Bt;hx(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&dx(t,r)}function jx(e,t,n,r){for(var i=Bt.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):Fs(r-yx)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Nx=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Px={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Lt(u,u,l),Lt(d,d,l));var p=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&qh(r.axis.scale))_x().buildAxisBreakLine(r,i,a,m);else{var h=new hd(I({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));cf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);V(g)&&(g=[g,g]),(V(_)||ge(_))&&(_=[_,_]);var v=bv(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=yv(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Ux(t,i,s)&&Fx(e,t,n,r,i,a,o,nb.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Ux(t,i,s)&&Fx(e,t,n,r,i,a,o,nb.determine);var c=Vx(e,i,a,r);Rx(e,t.labelLayoutList,c),Hx(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Xx(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Bt(0,0),_=new Bt(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=gt();_.transform(xt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*yx/180);var b,x;Wy(u)?b=Mx.innerTextLayout(e.rotation,y??e.rotation,d):(b=Ix(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=Se(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Jo({x:g.x,y:g.y,rotation:b.rotation,silent:Mx.isLabelSilent(r),style:qf(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Df({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Mx.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Xc(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=sx({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Wy(u)?bx[E]:xx[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function Fx(e,t,n,r,i,a,o,s){Gx(t)||Wx(e,t,i,s,r,o);var c=t.labelLayoutList;qx(e,r,c,a),Qx(r,e.rotation,c);var l=e.optionHideOverlap;Lx(r,c,l),l&&mx(ce(c,function(e){return e&&!e.label.ignore})),Ex(e,n,r,c)}function Ix(e,t,n,r){var i=Ps(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Fs(i-yx/2)?(o=c?`bottom`:`top`,a=`center`):Fs(i-yx*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=iyx/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Lx(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(Hy(r))return;function a(e,a,o){var s=sx(t[a]),c=sx(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Sx(s.label).labelInfo.tick;if(ey(l)&&u.notNice||ny(l)&&u.offInterval){zx(s.label);return}}if(e===!1||s.suggestIgnore){zx(s.label);return}if(c.suggestIgnore){zx(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=fx({marginForce:f},s),c=fx({marginForce:f},c)}hx(s,c,null,{touchThreshold:d})&&zx(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Rx(e,t,n){e.showMinorTicks||R(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=cS(e,t.get(`startValue`,!0)),x=b!=null;!qs(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),qs(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),sS(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),sS(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function sS(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Vc(t))}function cS(e,t){return t==null?null:xe(t)?NaN:e.parse(t)}function lS(e,t){var n;if(ny(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=B(r)?r:[r,r]}return[uS(n[0]),uS(n[1])]}function uS(e){return Sn(typeof e==`boolean`?0:e,1)||0}function dS(e){var t=iS(e.scale);return t.extent||=Nc(),t}function fS(e,t){dS(e).dimIdxInCoord=t.get(e.dim)}function pS(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||mS(n,e,i,r,t)}function mS(e,t,n,r,i){var a=dS(t),o=a.extent,s=!1;Pb(t,function(r){if(r.boxCoordinateSystem){var i=Qm(r).coord,c=a.dimIdxInCoord;if(c>=0&&B(i)){var l=i[c];l!=null&&!B(l)&&Pc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;R(Uy(u,n),function(e){Lc(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=bS(e,t,r);gS(e,new oS(e,r,o,s,c),i),a.extent=null}function hS(e,t){var n=e.scale;gS(n,new oS(n,e.model,t,!1,!1),aS)}function gS(e,t,n){e.rawExtentInfo=t,t.from=n}function _S(e,t){vS.set(e,t)}var vS=Ie();function yS(e,t,n,r,i){e.rawExtentInfo||hS({scale:e,model:t},i||Nc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function bS(e,t,n){var r=Xy(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return Rb(t,function(e){a=!!vS.get(e)||a}),a}function xS(e,t,n,r){if(n.ctnShp){var i;if(Rb(e,function(t){var n=vS.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Fc(i,a[0]),Ic(i,a[1]),Ly(e))}}),i){var a=t.getExtent();if(ny(t))e.onBand||t.setExtent2(1,ds(a[0],a[0]+i[0]),fs(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=ds(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=fs(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function SS(){Bb(`liPosMinGap`,CS)}function CS(e,t,n){var r=Ie(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=fm(u);function f(n){Ib(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}Ev(wS,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}var wS=Ev({ctor:wv},50);function uee(e){return function(t,n){var r=qb(t,{fromStat:{key:e}});if(qs(r.w2))return[-r.w2/2,r.w2/2]}}function TS(e,t){return e+`|&`+t}function dee(e){return SS(),{liPosMinGap:!ny(e.scale)}}function fee(e,t,n,r){Wb(e,{key:t,seriesType:n,coordSysType:r,getMetrics:dee})}function pee(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var ES={left:0,right:0,top:0,bottom:0},DS=[`25%`,`25%`],OS=`cartesian2d`,mee=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Zg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Xg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Xg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:ES,outerBoundsContain:`all`,outerBoundsClampWidth:DS[0],outerBoundsClampHeight:DS[1],backgroundColor:k_.color.transparent,borderWidth:1,borderColor:k_.color.neutral30},t}(e_),kS=Hc(),AS=`__ec_stack_`;function jS(e){return e.get(`stack`)||AS+e.seriesIndex}function MS(e,t){var n=NS(e,t);return n.columnMap=PS(n),n}function NS(e,t){var n=TS(t,OS),r=[],i=qb(e,{fromStat:{key:n},min:1});return Fb(e,n,function(e){r.push({barWidth:Cs(e.get(`barWidth`),i.w),barMaxWidth:Cs(e.get(`barMaxWidth`),i.w),barMinWidth:Cs(e.get(`barMinWidth`)||(LS(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:jS(e)})}),{bandWidthResult:i,seriesInfo:r}}function PS(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;ze(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=ds(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=fs(35-o.length*4,15)+`%`;var c=Cs(i,t),l=Cs(a,1),u=(n-c)/(r+(r-1)*l);u=fs(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=ds(o,i)),a&&(o=fs(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&io&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=fs(u,0);var d=0,f;R(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return R(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function FS(e){return{seriesType:e,overallReset:function(t){var n=TS(e,OS);Lb(t,n,function(t){var r=MS(t,e);Fb(t,n,function(e){var t=r.columnMap[jS(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function IS(e){return{seriesType:e,plan:Dv(),reset:function(e){if(eS(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=sh(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(pee(i))),p=LS(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Tv(r*3),c=p&&s&&Tv(r*3),l=p&&Tv(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,ps(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(iv);iv.registerClass(BS);var VS=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return dh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Jc(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=vh(BS.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:k_.color.primary,borderWidth:2}},realtimeSort:!1}),t}(BS),HS=`\0__throttleOriginMethod`,US=`\0__throttleRate`,WS=`\0__throttleType`;function GS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function KS(e,t,n,r){var i=e[t];if(i){var a=i[HS]||i,o=i[WS];if(i[US]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=GS(a,n,r===`debounce`),i[HS]=a,i[WS]=r,i[US]=n}return i}}function qS(e,t){var n=e[t];n&&n[HS]&&(n.clear&&n.clear(),e[t]=n[HS])}var JS=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),YS=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new JS},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Gd(t,e,Xc(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Av),iC={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=tC(t.x,e.x),s=nC(t.x+t.width,i),c=tC(t.y,e.y),l=nC(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=nC(t.r,e.r),a=tC(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},aC={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Uo({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?YS:id,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=XS(mC(i),{isRoundCap:l===YS}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Bd:Vd)(u,{shape:p},a)}return u}};function oC(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function sC(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Bd:Vd)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Bd:Vd)(n,{shape:l},u,i)}function cC(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function pC(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function mC(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function hC(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,eC(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?wC(i,a.coordinateSystem):TC(i,a.coordinateSystem),p=Kf(r);Gf(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:xv(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,ZS(e,h===`outside`?f:h,mC(o),r.get([`label`,`rotate`]))}rp(m,p,a.getRawValue(n),function(e){return Sv(t,e)});var g=r.getModel([`emphasis`]);iu(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),cu(e,r),pC(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function gC(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var _C=function(){function e(){}return e}(),vC=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new _C},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function xC(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function SC(e,t,n){if(zv(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function CC(e,t,n){return new(e.type===`polar`?id:Uo)({shape:SC(t,n,e),silent:!0,z2:0})}function wC(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function TC(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function EC(e){e.registerChartView(rC),e.registerSeriesModel(VS),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,FS(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,IS(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$y(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),zS(e)}function DC(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&PC(e,i,t,n)}else{PC(e,t,t,n);var a=RC(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&jC.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function RC(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function zC(e,t,n,r){e.addEventListener(t,n,r)}function BC(e,t,n,r){e.removeEventListener(t,n,r)}var VC=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},HC=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=UC(r)/UC(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=WC(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},KC=`silent`;function qC(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:JC}}function JC(){VC(this.event)}var YC=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ki),XC=function(){function e(e,t){this.x=e,this.y=t}return e}(),ZC=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],QC=new en(0,0,0,0),$C=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new XC(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new YC,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new AC(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(ZC,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=nw(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new XC(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new XC(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=qC(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new XC(e,t);if(tw(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new en(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(QC.copy(u.getBoundingRect()),u.transform&&QC.applyTransform(u.transform),QC.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ew(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||KC}return!1}function tw(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=ew(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==KC)){t.target=o;break}}}function nw(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var rw=32,iw=7;function aw(e){for(var t=0;e>=rw;)t|=e&1,e>>=1;return e+t}function ow(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function sw(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function lw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function uw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function dw(e,t){var n=iw,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=iw||m>=iw);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-lw(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=iw||g>=iw);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),cw(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var pw=!1;function mw(){pw||(pw=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function hw(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hw}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),_w=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function vw(){return new Date().getTime()}var yw=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=vw()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(_w(t),!e._paused&&e.update())}_w(t)},t.prototype.start=function(){this._running||(this._time=vw(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=vw(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=vw()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Gi(e,t.loop);return this.addAnimator(n),n},t}(Ki),bw=300,xw=Ue.domSupported,Sw=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Cw={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},ww=!1;function Tw(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ew(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Dw(e){e&&(e.zrByTouch=!0)}function Ow(e,t){return LC(e.dom,new Aw(e,t),!0)}function kw(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Aw=function(){function e(e,t){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),jw={mousedown:function(e){e=LC(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=LC(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=LC(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=LC(this.dom,e);var t=e.toElement||e.relatedTarget;kw(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){ww=!0,e=LC(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){ww||(e=LC(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=LC(this.dom,e),Dw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),jw.mousemove.call(this,e),jw.mousedown.call(this,e)},touchmove:function(e){e=LC(this.dom,e),Dw(e),this.handler.processGesture(e,`change`),jw.mousemove.call(this,e)},touchend:function(e){e=LC(this.dom,e),Dw(e),this.handler.processGesture(e,`end`),jw.mouseup.call(this,e),new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!vc(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[aT],e},t.prototype.setTheme=function(e){this._theme=new hp(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function vT(e,t){return e.join(`,`)===t.join(`,`)}var yT=R,bT=H,xT=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function ST(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=xT.length;n0?e[n-1].seriesModel:null)}),GT(e))})}function GT(e){R(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ms(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var KT=function(){function e(){this.group=new Lu,this.uid=hh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ze(KT),it(KT);var qT=Cc(),JT={itemStyle:at(fp,!0),lineStyle:at(lp,!0)},YT={lineStyle:`stroke`,itemStyle:`fill`};function XT(e,t){return e.visualStyleMapper||JT[t]||(console.warn(`Unknown style type '`+t+`'.`),JT.itemStyle)}function ZT(e,t){return e.visualDrawType||YT[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var QT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=XT(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=ZT(e,r),c=a[s],l=me(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||me(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||me(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},$T=new hp,eE={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=XT(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){$T.option=n[r];var o=i($T);I(e.ensureUniqueItemVisual(t,`style`),o),$T.option.decal&&(e.setItemVisual(t,`decal`,$T.option.decal),$T.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},tE={performRawSeries:!0,overallReset:function(e){var t=Ie();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();qT(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=qT(e).scope,a=ZT(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},nE=Math.PI;function rE(e,t){t||={},L(t,{text:`loading`,textColor:k_.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:k_.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Lu,r=new Uo({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Jo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Uo({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new xd({shape:{startAngle:-nE/2,endAngle:-nE/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:nE*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:nE*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var iE=function(){function e(e,t,n,r){this._stageTaskMap=Ie(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Jc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Ie();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});De(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;R(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Ie(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||f_({plan:lE,reset:uE,count:pE}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||f_({reset:aE});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Ie(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;De(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):R(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,f_({reset:oE,onDirty:cE})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:mE(e)}),e.uid=hh(`stageHandler`),t&&(e.visualType=t),e},e}();function aE(e){e.overallReset(e.ecModel,e.api,e.payload)}function oE(e){return e.dirtyOnOverallProgress&&sE}function sE(){this.agent.dirty(),this.getDownstream().dirty()}function cE(){this.agent&&this.agent.dirty()}function lE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function uE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=nc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(e,t){return fE(t)}):dE}var dE=fE(0);function fE(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),wE=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],TE=wE.concat([`symbolKeepAspect`]),EE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&VE(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function WE(e,t,n){for(var r=t.type===`radial`?UE(e,t,n):HE(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ge(e)?[e]:B(e)?e:null}function YE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&JE(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=z(n,function(e){return e/i}),r/=i)}return[n,r]}var XE=new ro(!0);function ZE(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function QE(e){return typeof e==`string`&&e!==`none`}function $E(e){var t=e.fill;return t!=null&&t!==`none`}function eD(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function tD(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function nD(e,t,n){var r=pt(t.image,t.__image,n);if(ht(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ve),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function rD(e,t,n,r,i){var a,o=ZE(n),s=$E(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||XE,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?WE(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?WE(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?nD(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?nD(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=YE(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&tD(e,n),s&&eD(e,n)):(s&&eD(e,n),o&&tD(e,n)),T&&e.setLineDash([])}function iD(e,t,n){var r=t.__image=pt(n.image,t.__image,t,t.onload);if(!(!r||!ht(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function aD(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=YE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(ZE(n)&&e.strokeText(i,n.x,n.y),$E(n)&&e.fillText(i,n.x,n.y)):($E(n)&&e.fillText(i,n.x,n.y),ZE(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var oD=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],sD=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function cD(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){yD(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?_a.opacity:o}(r||t.blend!==n.blend)&&(a||=(yD(e,i),!0),e.globalCompositeOperation=t.blend||_a.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[$D]){if(this._disposed){this.id;return}var r,i,a;if(H(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[$D]=!0,jO(this),!this._model||t){var o=new mT(this._api),s=this._theme,c=this._model=new sT;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},zO);var l={seriesTransition:a,optionChanged:!0};if(n)this[tO]={silent:r,updateParams:l},this[$D]=!1,this.getZr().wakeUp();else{try{pO(this),gO.update.call(this,null,l)}catch(e){throw this[tO]=null,this[$D]=!1,e}this._ssr||this._zr.flush(),this[tO]=null,this[$D]=!1,bO.call(this,r),xO.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[$D]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[tO]&&(r??=this[tO].silent,i=this[tO].updateParams,this[tO]=null),this[$D]=!0,jO(this);try{this._updateTheme(e),n.setTheme(this._theme),pO(this),gO.update.call(this,{type:`setTheme`},i)}catch(e){throw this[$D]=!1,e}this[$D]=!1,bO.call(this,r),xO.call(this,r)}}},t.prototype._updateTheme=function(e){V(e)&&(e=VO[e]),e&&(e=P(e),e&&HT(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ue.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return R(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;R(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return R(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(WO[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();R(UO,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=b.createCanvas(),h=Ww(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return R(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Uo({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),R(u,function(e){var t=new Fo({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return _O(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return _O(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return _O(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return R(Tc(n,e),function(e,n){n.indexOf(`Models`)>=0&&R(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Tc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?kE(i,t):OE(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;R(PO,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&jE(i,function(e){var t=Xc(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=I({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;R(LO,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),OC(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Ac(this.getDom(),KO,``);var e=this,t=e._api,n=e._model;R(e._componentsViews,function(e){e.dispose(n,t)}),R(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete UO[e.id]},t.prototype.resize=function(e){if(!this[$D]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[tO]&&(r??=this[tO].silent,n=!0,this[tO]=null),this[$D]=!0,jO(this);try{n&&pO(this),gO.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[$D]=!1,e}this[$D]=!1,bO.call(this,r),xO.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(H(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),HO[e]){var n=HO[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=IO[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(H(t)||(t={silent:!!t}),FO[e.type]&&this._model){if(this[$D]){this._pendingActions.push(e);return}var n=t.silent;yO.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),bO.call(this,n),xO.call(this,n)}},t.prototype.updateLabelLayout=function(){ME.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){pO=function(e){Cb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),mO(e,!0),mO(e,!1),t.plan()},mO=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;cCe(t.get(`hoverLayerThreshold`),$w.hoverLayerThreshold)&&!Ue.node&&!Ue.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Pf(e);t.eachRendered(function(e){return If(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Hd(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Hd(e))return;if(e instanceof ko&&mu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}DO=function(e){return new(function(t){p(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){zl(t,n),kO(e)},n.prototype.leaveEmphasis=function(t,n){Bl(t,n),kO(e)},n.prototype.enterBlur=function(t){Vl(t),kO(e)},n.prototype.leaveBlur=function(t){Hl(t),kO(e)},n.prototype.enterSelect=function(t){Ul(t),kO(e)},n.prototype.leaveSelect=function(t){Wl(t),kO(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[eO]},n.prototype.usingTHL=function(){return e._usingTHL},n}(sl))(e)},OO=function(e){function t(e,t){for(var n=0;n=0)){ak.push(n);var o=iE.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function sk(e,t){HO[e]=t}function ck(e,t,n){var r=FE(`registerMap`);r&&r(e,t,n)}var lk=S_;ik(WD,QT),ik(qD,eE),ik(qD,tE),ik(WD,EE),ik(qD,DE),ik(ZD,ND),XO(HT),ZO(LD,UT),sk(`default`,rE),tk({type:hl,event:hl,update:hl},Be),tk({type:gl,event:gl,update:gl},Be),tk({type:_l,event:bl,update:_l,action:Be,refineEvent:uk,publishNonRefinedEvent:!0}),tk({type:vl,event:bl,update:vl,action:Be,refineEvent:uk,publishNonRefinedEvent:!0}),tk({type:yl,event:bl,update:yl,action:Be,refineEvent:uk,publishNonRefinedEvent:!0});function uk(e,t,n,r){return{eventContent:{selected:tu(n),isFromClick:t.isFromClick||!1}}}YO(`default`,{}),YO(`dark`,SE);var dk=[],fk={registerPreprocessor:XO,registerProcessor:ZO,registerPostInit:QO,registerPostUpdate:$O,registerUpdateLifecycle:ek,registerAction:tk,registerCoordinateSystem:nk,registerLayout:rk,registerVisual:ik,registerTransform:lk,registerLoading:sk,registerMap:ck,registerImpl:PE,PRIORITY:QD,ComponentModel:e_,ComponentView:KT,SeriesModel:iv,ChartView:Av,registerComponentModel:function(e){e_.registerClass(e)},registerComponentView:function(e){KT.registerClass(e)},registerSeriesModel:function(e){iv.registerClass(e)},registerChartView:function(e){Av.registerClass(e)},registerCustomSeries:function(e,t){LE(e,t)},registerSubTypeDefaulter:function(e,t){e_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Gw(e,t)}};function pk(e){if(B(e)){R(e,function(e){pk(e)});return}re(dk,e)>=0||(dk.push(e),me(e)&&(e={install:e}),e.install(fk))}var mk=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),hk=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Dc).models[0]},t.type=`cartesian2dAxis`,t}(e_);ae(hk,mk);var gk={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:k_.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:k_.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:k_.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[k_.color.backgroundTint,k_.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:k_.color.neutral00,borderColor:k_.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},_k=F({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},gk),vk=F({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:k_.color.axisMinorSplitLine,width:1}}},gk),yk={category:_k,value:vk,time:F({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},vk),log:L({logBase:10},vk)};function bk(e,t,n,r){R(My,function(i,a){var o=F(F({},yk[a],!0),r,!0),s=function(e){p(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Yg(this),r=n?Zg(e):{};F(e,t.getTheme().get(a+`Axis`)),F(e,this.getDefaultOption()),e.type=xk(e),n&&Xg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Hv.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=_x();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,xk)}function xk(e){return e.type||(e.data?`category`:`value`)}var Sk=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ce(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Ck=[`x`,`y`];function wk(e){return(e.type===`interval`||e.type===`time`)&&!qh(e)}var Tk=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=OS,t.dimensions=Ck,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!wk(e)||!wk(t))){var n=Yv(e,null),r=Yv(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Ct([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new en(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Lt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Lt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new en(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(Sk);function Ek(e,t){var n=e.scale,r=e.model,i=yS(n,r,r.ecModel,e,null),a=ty(n),o=ty(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=ps(l[0].value-l[1].value),g=ps(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=Ds(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Ds(gs(C[0]/E)*E,D),O=Ds(hs(C[1]/E)*E,D);var e=ms((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=hs(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}Jy(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function Dk(e,t){var n=ty(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=sy(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?kk(r,t):Ok(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=iy(d)),i[0]||(s[0]=Ds(hs(s[0]/u)*u,l)),i[1]||(s[1]=Ds(gs(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),Jy(e,i,o,s,a,c)}function Ok(e,t){var n=cy(t.splitNumber,5),r=Xv(e),i=t.minInterval,a=t.maxInterval,o=Bs(r/n,!0);i!=null&&oa&&(o=a);var s=iy(o),c=e.getExtent(),l=[Ds(gs(c[0]/o)*o,s),Ds(hs(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function kk(e,t){var n=cy(t.splitNumber,10),r=e.getExtent(),i=Xv(e),a=fs(Rs(i),1);n/i*a<=.5&&(a*=10);var o=iy(a),s=[Ds(gs(r[0]/a)*a,o),Ds(hs(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function Ak(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;jk(t,n,r,i,null)}function jk(e,t,n,r,i){var a=yS(e,t,r,n,i),o=$v(e)||ey(e);Mk(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&xS(n,e,a,r)}function Mk(e,t){Nk[e.type](e,t)}var Nk={interval:Dk,log:Dk,time:wy,ordinal:Be},Pk=[[3,1],[0,2]],Fk=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ck,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;R(this._axesList,function(e){pS(e,1);var t=e.scale;ny(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=ue(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):Ak(i)}R(n,function(e){Bk(e,e.__alignTo)?Ak(e):Ek(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};R(n.x,function(e){Lk(n,`y`,e,i)}),R(n.y,function(e){Lk(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=qg(e,t),i=this._rect=Gg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Hk(a,i),!n){var c=Kk(i,o,a,s,t),l=void 0;if(s)Wk?(Wk(this._axesList,i),Hk(a,i)):l=Gk(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=Jk(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=Gk(d,f,p,i,a,c,r))}qk(i,a,nb.determine,null,l,r),R(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}H(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];Qv(a.scale)&&Ky(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&R(r,function(e){e.__alignTo=n})}function Bk(e,t){return qh(e.scale)||qh(t.scale)||t.scale.getTicks().length<2}function Vk(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Hk(e,t){R(e.x,function(e){return Uk(e,t.x,t.width)}),R(e.y,function(e){return Uk(e,t.y,t.height)})}function Uk(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),Vk(e,t)}var Wk;function Gk(e,t,n,r,i,a,o){qk(r,i,nb.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=le(s,function(e){return e>0})==null;return wf(r,s,!0,!0,n),Hk(i,r),c;function l(e){R(i[Yd[e]],function(t){if(Gy(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!xe(t)&&t>1e-4&&(e/=t),e}}function Kk(e,t,n,r,i){var a=new Tx(Yk);return R(n,function(n){return R(n,function(n){if(Gy(n.model)){var o=!r;n.axisBuilder=nS(e,t,n.model,i,a,o)}})}),a}function qk(e,t,n,r,i,a){var o=n===nb.determine;R(t,function(t){return R(t,function(t){Gy(t.model)&&(rS(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Yd[1-t]]=e[Xd[t]]<=a.refContainer[Xd[t]]*.5?0:1-t==1?2:1}R(t,function(e,t){return R(e,function(e){Gy(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function Jk(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Gg(e.get(`outerBounds`,!0)||ES,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||re([`all`,`axisLabel`],a)<0?`all`:a,s=[Ts(Ce(e.get(`outerBoundsClampWidth`,!0),DS[0]),t.width),Ts(Ce(e.get(`outerBoundsClampHeight`,!0),DS[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Yk=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;kx(e,t,n,r,i,a),Wy(e.nameLocation)||R(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&jx(e.labelInfoList,e.dirVec,r,i)})};function Xk(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Zk(n,e,t),n.seriesInvolved&&$k(n,e),n}function Zk(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];R(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=oA(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(R(n.getAxes(),pe(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&R(f.baseAxes,pe(p,!d||`cross`,u)),d&&R(f.otherAxes,pe(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!aA(d))){s??=d.get(`triggerTooltip`),d=r?Qk(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=oA(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:aA(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=eA(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Qk(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};R(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&L(l,u.textStyle)}return e.model.getModel(`axisPointer`,new hp(c,n,r))}function $k(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||R(e.coordSysAxesInfo[oA(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function eA(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function nA(e){var t=rA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=aA(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o=0;a--)r[a]??(delete n[t[a]],t.pop())}function EA(e,t){var n=e.visual,r=[];H(n)?bA(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),PA(e,r)}function DA(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:MA([0,1])}}function OA(e){var t=this.option.visual;return t[Math.round(Ss(e,[0,1],[0,t.length-1],!0))]||{}}function kA(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function AA(e){var t=this.option.visual;return t[this.option.loop&&e!==SA?e%t.length:e]}function jA(){return this.option.visual[0]}function MA(e){return{linear:function(t){return Ss(t,e,this.option.visual,!0)},category:AA,piecewise:function(t,n){var r=NA.call(this,n);return r??=Ss(t,e,this.option.visual,!0),r},fixed:jA}}function NA(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[CA.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function PA(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=z(t,function(e){return Gr(e)||[0,0,0,1]})),t}var FA={linear:function(e){return Ss(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=CA.findPieceIndex(e,t,!0);if(n!=null)return Ss(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??SA},fixed:Be};function IA(e,t,n){return e?t<=n:ta&&(t[1-r]=Ms(t[r],d.sign*a)),t}function RA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function zA(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}function BA(e){return Object.keys(e)}function VA(e){return e&&typeof e==`object`&&!Array.isArray(e)}function HA(e,t){let n={...e},r=t;return VA(e)&&VA(t)&&Object.keys(t).forEach(t=>{VA(r[t])&&t in e?n[t]=HA(n[t],r[t]):n[t]=r[t]}),n}function UA(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function WA(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function GA(e){let t=WA(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function KA(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function qA(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?KA(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?KA(n):n}}return r}return n}var W=qA(`rem`,{shouldScale:!0}),JA=qA(`em`);function YA(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function XA(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var ZA=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=ZA()})),G=u(QA(),1);function $A(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==G.Fragment}function ej(e){let t=(0,G.createContext)(null);return[t,()=>{let n=(0,G.use)(t);if(n===null)throw Error(e);return n}]}var tj={app:100,modal:200,popover:300,overlay:400,max:9999};function nj(e){return tj[e]}function rj(e,t=`size`,n=!0){if(e!==void 0)return XA(e)?n?W(e):e:`var(--${t}-${e})`}function ij(e){return rj(e,`mantine-spacing`)}function aj(e){return e===void 0?`var(--mantine-radius-default)`:rj(e,`mantine-radius`)}function oj(e){return rj(e,`mantine-font-size`)}function sj(e){return rj(e,`mantine-line-height`,!1)}function cj(e){if(e)return rj(e,`mantine-shadow`,!1)}function lj(e,t){return n=>{e?.(n),t?.(n)}}function uj(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function dj(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i{t.current=e}),(0,G.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function pj(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=fj(e),s=(0,G.useRef)(0),c=(0,G.useRef)(0),l=(0,G.useRef)(null),u=(0,G.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,G.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}function mj(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function hj(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,G.useState)(n?t:mj(e));return(0,G.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var gj=typeof document<`u`?G.useLayoutEffect:G.useEffect;function _j(e,t){let n=(0,G.useRef)(!1);(0,G.useEffect)(()=>()=>{n.current=!1},[]),(0,G.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function vj(e){let[t,n]=(0,G.useState)(`mantine-${(0,G.useId)().replace(/:/g,``)}`),r=(0,G.useRef)(!1);return gj(()=>{r.current||(r.current=!0,n(uj()))},[]),typeof e==`string`?e:t}function yj(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function bj(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=yj(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():yj(e,null)}),t.clear()}}}function xj(...e){return(0,G.useCallback)(bj(...e),e)}function Sj({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,G.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Cj(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var wj=`dots`;function Tj({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:o=1}){let s=Math.max(Math.trunc(o),1),c=Math.max(Math.trunc(e),s),l=c-s+1,u=i??s,[d,f]=Sj({value:r,onChange:a,defaultValue:u,finalValue:u}),p=(0,G.useCallback)(e=>{f(ec?c:e)},[s,c,f]),m=(0,G.useCallback)(()=>p(d+1),[d,p]),h=(0,G.useCallback)(()=>p(d-1),[d,p]),g=(0,G.useCallback)(()=>p(s),[p,s]),_=(0,G.useCallback)(()=>p(c),[c,p]);return{range:(0,G.useMemo)(()=>{if(t*2+3+n*2>=l)return Cj(s,c);let e=Math.max(d-t,s+n-1),r=Math.min(d+t,c-n),i=e>s+n+1,a=r{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,G.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,G.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function jj(e,t,n){let r=(0,G.useRef)(null);(0,G.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function Mj(){let[e,t]=(0,G.useState)(!1);return(0,G.useEffect)(()=>t(!0),[]),e}var Nj=s((e=>{var t=QA();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Nj()}));function Fj(){return`development`}function Ij(e){return e?.props?.ref}function Lj(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function Rj(e){let t=G.Children.toArray(e);return t.length!==1||!$A(t[0])?null:t[0]}function zj(e){return e}function Bj(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=Vj(t[e],n):t[e]=n})}),t}function Wj({theme:e,classNames:t,props:n,stylesCtx:r}){return Uj((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Hj))}function Gj({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function Kj(e){return e===`auto`||e===`dark`||e===`light`}function qj({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Kj(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Kj(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Jj(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Yj(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Xj(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Zj(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function Qj(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function $j(e){return Yj(e)?Xj(e):e.startsWith(`rgb`)?Zj(e):e.startsWith(`hsl`)?Qj(e):{r:0,g:0,b:0,a:1}}function eM(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function tM(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function nM(e){if(e.startsWith(`oklch(`))return(tM(e)||0)/100;let{r:t,g:n,b:r}=$j(e),i=t/255,a=n/255,o=r/255,s=eM(i),c=eM(a),l=eM(o);return .2126*s+.7152*c+.0722*l}function rM(e,t=.179){return!e.startsWith(`var(`)&&nM(e)>t}function iM({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:rM(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:rM(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:rM(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Jj(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:rM(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:rM(e,t.luminanceThreshold),shade:a,variable:void 0}}function aM(e,t){let n=iM({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function oM(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function sM(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=$j(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function cM(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=aM(n.from,t),i=aM(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function lM(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=$j(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var uM=lM,dM=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=iM({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&oM(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:sM(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:sM(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:lM(e,.1),hover:lM(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:lM(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:lM(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:lM(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:lM(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:sM(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:sM(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:sM(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:cM(r,t),hover:cM(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function fM({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&iM({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function pM(e,t,n){return fM({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function mM(e,t){let n=e.colors[e.primaryColor];return oM(n)?e.autoContrast?pM(n,e,t):`var(--mantine-color-white)`:fM({color:n[Jj(e,t)],theme:e,autoContrast:null})}function hM(e,t){return typeof e==`boolean`?e:t.autoContrast}var gM=(0,G.createContext)(null);function _M(){let e=(0,G.use)(gM);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function vM(){return _M().cssVariablesResolver}function yM(){return _M().classNamesPrefix}function bM(){return _M().getStyleNonce}function xM(){return _M().withStaticClasses}function SM(){return _M().headless}function CM(){return _M().stylesTransform?.sx}function wM(){return _M().stylesTransform?.styles}function TM(){return _M().env||`default`}function EM(){return _M().deduplicateInlineStyles}function DM(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function hee({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,G.useRef)(null),[a,o]=(0,G.useState)(()=>e.get(t)),s=r||a,c=(0,G.useCallback)(t=>{r||(DM(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,G.useCallback)(()=>{o(t),DM(t,n),e.clear()},[e.clear,t]);return(0,G.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),gj(()=>{DM(e.get(t),n)},[]),(0,G.useEffect)(()=>{if(r)return DM(r,n),()=>{};r===void 0&&DM(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&DM(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var gee=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),_ee=s(((e,t)=>{t.exports=gee()})),vee={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},OM=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,kM={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:vee,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:dM,autoContrast:!1,luminanceThreshold:.3,fontFamily:OM,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:OM,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},yee=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,bee=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function AM(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function jM(e){if(!(e.primaryColor in e.colors))throw Error(yee);if(typeof e.primaryShade==`object`&&(!AM(e.primaryShade.dark)||!AM(e.primaryShade.light))||typeof e.primaryShade==`number`&&!AM(e.primaryShade))throw Error(bee)}function xee(e,t){if(!t)return jM(e),e;let n=HA(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),jM(n),n}var K=_ee(),MM=(0,G.createContext)(null),See=()=>(0,G.use)(MM)||kM;function NM(){let e=(0,G.use)(MM);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function PM({theme:e,children:t,inherit:n=!0}){let r=See(),i=(0,G.useMemo)(()=>xee(n?r:kM,e),[e,r,n]);return(0,K.jsx)(MM,{value:i,children:t})}PM.displayName=`@mantine/core/MantineThemeProvider`;function FM(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function IM(e,t){let n=t?[t]:[`:root`,`:host`],r=FM(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=FM(e.dark),o=FM(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function LM({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Jj(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:uM(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Jj(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:sM(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:sM(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:uM(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function RM(e,t,n){BA(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var zM=e=>{let t=Jj(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":mM(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":mM(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};RM(r.variables,e.breakpoints,`breakpoint`),RM(r.variables,e.spacing,`spacing`),RM(r.variables,e.fontSizes,`font-size`),RM(r.variables,e.lineHeights,`line-height`),RM(r.variables,e.shadows,`shadow`),RM(r.variables,e.radius,`radius`),RM(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),BA(e.colors).forEach(t=>{let n=e.colors[t];if(oM(n)){Object.assign(r.light,LM({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,LM({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=pM(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=pM(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,LM({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,LM({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return BA(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function Cee(){let e=NM(),t=bM(),n=BA(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=GA(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:JA(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:JA(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,K.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function wee({theme:e,generator:t}){let n=zM(e),r=t?.(e);return r?HA(n,r):n}var BM=zM(kM);function Tee(e){let t={variables:{},light:{},dark:{}};return BA(e.variables).forEach(n=>{BM.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),BA(e.light).forEach(n=>{BM.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),BA(e.dark).forEach(n=>{BM.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Eee(e){return IM({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function VM({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=NM(),r=bM(),i=wee({theme:n,generator:vM()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=IM(a?Tee(i):i,e);return o?(0,K.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Eee(e)}`}}):null}VM.displayName=`@mantine/CssVariables`;function Dee({respectReducedMotion:e,getRootElement:t}){gj(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function HM({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=qj(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=hee({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return Dee({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,K.jsx)(gM,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,K.jsxs)(PM,{theme:e,children:[o&&(0,K.jsx)(VM,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,K.jsx)(Cee,{}),t]})})}HM.displayName=`@mantine/core/MantineProvider`;function UM(e,t,n){let r=NM(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...YA(n)}}function WM(e){return e}function Oee({classNames:e,styles:t,props:n,stylesCtx:r}){let i=NM();return{resolvedClassNames:e===void 0?void 0:Wj({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:Gj({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var GM={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function KM({theme:e,options:t,unstyled:n}){return Vj(t?.focusable&&!n&&(e.focusClassName||GM[e.focusRing]),t?.active&&!n&&e.activeClassName)}function qM({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Wj({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function JM({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Wj({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function YM({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function XM({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function ZM({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function QM({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function $M({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return Vj(KM({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),QM({options:t,classes:s,selector:r,unstyled:c||m}),a[r],JM({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),qM({selector:r,stylesCtx:f,options:t,props:d,theme:e}),YM({rootSelector:u,selector:r,className:l}),XM({selector:r,classes:s,unstyled:c||m}),p&&!m&&ZM({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function eN({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...eN({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function tN({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&Gj({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...eN({style:n?.style,theme:e})}}function nN(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...YA(t[n])}}),e),{})}function rN({props:e,stylesCtx:t,themeName:n,theme:r}){let i=wM()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function iN({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=NM(),m=yM(),h=xM(),g=SM(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=rN({props:n,stylesCtx:r,themeName:_,theme:p}),b=Wj({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>Wj({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:Gj({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=Gj({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=nN([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=eN({style:a,theme:p});return(e,a)=>({...f?.[e],className:$M({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:tN({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function aN(e){return BA(e).reduce((t,n)=>e[n]===void 0?t:`${t}${UA(n)}:${e[n]};`,``).trim()}function oN({selector:e,styles:t,media:n,container:r}){let i=t?aN(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${aN(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${aN(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function sN(e){let t=5381;for(let n=0;n>>0).toString(36)}function cN({deduplicate:e,...t}){let n=bM(),r=oN(t);return e?(0,K.jsx)(`style`,{href:`mantine-${sN(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,K.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function kee(e){let t=5381;for(let n=0;n>>0).toString(36)}function Aee(e,t){return`__mdi__-${kee(`${e?aN(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${aN(e.styles)}`).join(`|`):``}`)}`}function lN(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H,..._e}=e;return{styleProps:YA({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,bdrs:w,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H}),rest:_e}}var jee={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function uN(e,t){let n=iM({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function dN(e,t){let n=iM({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:uN(e,t)}function fN(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${uN(i.join(` `),t)}`),a.trim()}return e}var pN={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function mN(e){return typeof e==`string`&&e in pN?pN[e]:e}var hN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function gN(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&hN.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function _N(e){return e}var vN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function yN(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&vN.includes(e)?`var(--mantine-${e}-line-height)`:e}function bN(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function xN(e){return typeof e==`number`?W(e):e}function SN(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var CN={color:uN,textColor:dN,fontSize:gN,spacing:SN,radius:bN,identity:_N,size:xN,lineHeight:yN,fontFamily:mN,border:fN};function wN(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function TN({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(wN(e))-Number(wN(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function EN(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function DN(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function ON(e){return typeof e==`object`&&e?BA(e).filter(e=>e!==`base`):[]}function kN(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function AN({styleProps:e,data:t,theme:n}){return TN(BA(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=DN(e[i]);if(!EN(e[i]))return o.forEach(e=>{r.inlineStyles[e]=CN[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=ON(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=CN[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:CN[a.type](kN(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function jN(){return`__m__-${(0,G.useId)().replace(/[:«»]/g,``)}`}function MN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...MN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function NN(e){return e}var PN=NN;function FN(e){return e}function IN(e){let t=e;return t.extend=FN,t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function LN(e){return IN(e)}function RN(e){let t=e;return t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=FN,t}function zN(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function BN(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[zN(n)]=e[n]),t},{})}function VN(e){return e?typeof e==`string`?{[zN(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...VN(t)}),{}):BN(e):null}function HN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...HN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function UN({theme:e,style:t,vars:n,styleProps:r}){let i=HN(t,e),a=HN(n,e);return{...i,...a,...r}}function WN({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=NM(),g=e||`div`,{styleProps:_,rest:v}=lN(m),y=CM()?.()?.(_.sx),b=jN(),x=AN({styleProps:_,theme:h,data:jee}),S=EM(),C=S&&x.hasResponsiveStyles?Aee(x.styles,x.media):b,w={ref:p,style:UN({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:Vj(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":XA(o)?void 0:o||void 0,size:f,...VN(a),...v};return(0,K.jsxs)(K.Fragment,{children:[x.hasResponsiveStyles&&(0,K.jsx)(cN,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,K.jsx)(g,{...w})]})}WN.displayName=`@mantine/core/Box`;var GN=PN(WN),KN=(0,G.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function qN(){return(0,G.use)(KN)}var[JN,YN]=ej(`ScrollArea.Root component was not found in tree`);function XN(e,t){let n=(0,G.useEffectEvent)(t);gj(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function ZN(e){let{style:t,...n}=e,r=YN(),[i,a]=(0,G.useState)(0),[o,s]=(0,G.useState)(0),c=!!(i&&o);return XN(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),XN(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,K.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function QN(e){let t=YN(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,K.jsx)(ZN,{...e}):null}var $N={scrollHideDelay:1e3,type:`hover`};function eP(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=UM(`ScrollAreaRoot`,$N,e),[s,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(null),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(0),[y,b]=(0,G.useState)(0),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(!1),T=xj(a,c);return(0,K.jsx)(JN,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,K.jsx)(GN,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}eP.displayName=`@mantine/core/ScrollAreaRoot`;function tP(e,t){let n=e/t;return Number.isNaN(n)?0:n}function nP(e){let t=tP(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function rP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function iP(e,[t,n]){return Math.min(n,Math.max(t,e))}function aP(e,t,n=`ltr`){let r=nP(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=iP(e,n===`ltr`?[0,o]:[o*-1,0]);return rP([0,o],[0,s])(c)}function oP(e,t,n,r=`ltr`){let i=nP(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return rP([c,l],d)(e)}function sP(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[uP,dP]=ej(`ScrollAreaScrollbar was not found in tree`);function fP(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=YN(),[p,m]=(0,G.useState)(null),h=xj(u,m),g=(0,G.useRef)(null),_=(0,G.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,G.useEffectEvent)(c),x=fj(o),S=pj(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,G.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,G.useEffect)(x,[t,x]),XN(p,S),XN(f.content,S),(0,K.jsx)(uP,{value:{scrollbar:p,hasThumb:n,onThumbChange:fj(r),onThumbPointerUp:fj(i),onThumbPositionChange:x,onThumbPointerDown:fj(a)},children:(0,K.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:lP(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:lP(e.onPointerMove,C),onPointerUp:lP(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var pP=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=YN(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=xj(i,l,o.onScrollbarXChange);return(0,G.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,K.jsx)(fP,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${nP(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),sP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:cP(s.paddingLeft),paddingEnd:cP(s.paddingRight)}})}})};pP.displayName=`@mantine/core/ScrollAreaScrollbarX`;function mP(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=YN(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=xj(i,l,o.onScrollbarYChange);return(0,G.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,K.jsx)(fP,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${nP(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),sP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:cP(s.paddingTop),paddingEnd:cP(s.paddingBottom)}})}})}mP.displayName=`@mantine/core/ScrollAreaScrollbarY`;function hP(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=qN(),i=YN(),a=(0,G.useRef)(null),o=(0,G.useRef)(0),[s,c]=(0,G.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=tP(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>oP(e,o.current,s,t);return t===`horizontal`?(0,K.jsx)(pP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=aP(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,K.jsx)(mP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=aP(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}hP.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function gP(e){let t=YN(),{forceMount:n,...r}=e,[i,a]=(0,G.useState)(!1),o=e.orientation===`horizontal`,s=pj(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,K.jsx)(gP,{"data-state":i?`visible`:`hidden`,...n}):null}_P.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function vP(e){let{forceMount:t,...n}=e,r=YN(),i=e.orientation===`horizontal`,[a,o]=(0,G.useState)(`hidden`),s=pj(()=>o(`idle`),100);return(0,G.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,G.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,K.jsx)(hP,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:lP(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:lP(e.onPointerLeave,()=>o(`idle`))}):null}function yP(e){let{forceMount:t,...n}=e,r=YN(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,G.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,K.jsx)(_P,{...n,forceMount:t}):r.type===`scroll`?(0,K.jsx)(vP,{...n,forceMount:t}):r.type===`auto`?(0,K.jsx)(gP,{...n,forceMount:t}):r.type===`always`?(0,K.jsx)(hP,{...n}):null}yP.displayName=`@mantine/core/ScrollAreaScrollbar`;function bP(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function xP(e){let{style:t,ref:n,...r}=e,i=YN(),a=dP(),{onThumbPositionChange:o}=a,s=xj(n,a.onThumbChange),c=(0,G.useRef)(void 0),l=pj(()=>{c.current&&=(c.current(),void 0)},100);return(0,G.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=bP(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,K.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:lP(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:lP(e.onPointerUp,a.onThumbPointerUp)})}xP.displayName=`@mantine/core/ScrollAreaThumb`;function SP(e){let{forceMount:t,...n}=e,r=dP();return t||r.hasThumb?(0,K.jsx)(xP,{...n}):null}SP.displayName=`@mantine/core/ScrollAreaThumb`;function CP({children:e,style:t,ref:n,onWheel:r,...i}){let a=YN(),o=xj(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,K.jsx)(GN,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,K.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}CP.displayName=`@mantine/core/ScrollAreaViewport`;var wP={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function TP(){return typeof window<`u`}function EP(e){return kP(e)?(e.nodeName||``).toLowerCase():`#document`}function DP(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function OP(e){return((kP(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function kP(e){return TP()?e instanceof Node||e instanceof DP(e).Node:!1}function AP(e){return TP()?e instanceof Element||e instanceof DP(e).Element:!1}function jP(e){return TP()?e instanceof HTMLElement||e instanceof DP(e).HTMLElement:!1}function MP(e){return!TP()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof DP(e).ShadowRoot}function NP(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=WP(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function PP(e){return/^(table|td|th)$/.test(EP(e))}function FP(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var IP=/transform|translate|scale|rotate|perspective|filter/,LP=/paint|layout|strict|content/,RP=e=>!!e&&e!==`none`,zP;function BP(e){let t=AP(e)?WP(e):e;return RP(t.transform)||RP(t.translate)||RP(t.scale)||RP(t.rotate)||RP(t.perspective)||!HP()&&(RP(t.backdropFilter)||RP(t.filter))||IP.test(t.willChange||``)||LP.test(t.contain||``)}function VP(e){let t=KP(e);for(;jP(t)&&!UP(t);){if(BP(t))return t;if(FP(t))return null;t=KP(t)}return null}function HP(){return zP??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),zP}function UP(e){return/^(html|body|#document)$/.test(EP(e))}function WP(e){return DP(e).getComputedStyle(e)}function GP(e){return AP(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function KP(e){if(EP(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||MP(e)&&e.host||OP(e);return MP(t)?t.host:t}function qP(e){let t=KP(e);return UP(t)?(e.ownerDocument||e).body:jP(t)&&NP(t)?t:qP(t)}function JP(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=qP(e),i=r===e.ownerDocument?.body,a=DP(r);if(i){let e=YP(a);return t.concat(a,a.visualViewport||[],NP(r)?r:[],e&&n?JP(e):[])}return t.concat(r,JP(r,[],n))}function YP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var XP=Math.min,ZP=Math.max,QP=Math.round,$P=Math.floor,eF=e=>({x:e,y:e}),tF={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function nF(e,t,n){return ZP(e,XP(t,n))}function rF(e,t){return typeof e==`function`?e(t):e}function iF(e){return e.split(`-`)[0]}function aF(e){return e.split(`-`)[1]}function oF(e){return e===`x`?`y`:`x`}function sF(e){return e===`y`?`height`:`width`}function cF(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function lF(e){return oF(cF(e))}function uF(e,t,n){n===void 0&&(n=!1);let r=aF(e),i=lF(e),a=sF(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=yF(o)),[o,yF(o)]}function dF(e){let t=yF(e);return[fF(e),t,fF(t)]}function fF(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var pF=[`left`,`right`],mF=[`right`,`left`],hF=[`top`,`bottom`],gF=[`bottom`,`top`];function _F(e,t,n){switch(e){case`top`:case`bottom`:return n?t?mF:pF:t?pF:mF;case`left`:case`right`:return t?hF:gF;default:return[]}}function vF(e,t,n,r){let i=aF(e),a=_F(iF(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(fF)))),a}function yF(e){let t=iF(e);return tF[t]+e.slice(t.length)}function bF(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function xF(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:bF(e)}function SF(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function CF(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function wF(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function TF(){return/apple/i.test(navigator.vendor)}function EF(){return CF().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function DF(){return wF().includes(`jsdom/`)}var OF=`data-floating-ui-focusable`,kF=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function AF(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function jF(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&MP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function MF(e){return`composedPath`in e?e.composedPath()[0]:e.target}function NF(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function PF(e){return e.matches(`html,body`)}function FF(e){return e?.ownerDocument||document}function IF(e){return jP(e)&&e.matches(kF)}function LF(e){if(!e||DF())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function RF(e){return e?e.hasAttribute(OF)?e:e.querySelector(`[`+OF+`]`)||e:null}function zF(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...zF(e,t.id,n)])}function BF(e){return`nativeEvent`in e}function VF(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var HF=typeof document<`u`?G.useLayoutEffect:function(){},UF={...G};function WF(e){let t=G.useRef(e);return HF(()=>{t.current=e}),t}var GF=UF.useInsertionEffect||(e=>e());function KF(e){let t=G.useRef(()=>{});return GF(()=>{t.current=e}),G.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function qF(e,t,n){let{reference:r,floating:i}=e,a=cF(t),o=lF(t),s=sF(o),c=iF(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=aF(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function JF(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=rF(t,e),p=xF(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=SF(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=SF(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var YF=50,XF=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:JF},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=qF(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=rF(e,t)||{};if(l==null)return{};let d=xF(u),f={x:n,y:r},p=lF(i),m=sF(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=XP(d[_],T),D=XP(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=nF(E,k,O),j=!c.arrow&&aF(i)!=null&&k!==A&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===cF(t)||T.every(e=>cF(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=cF(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function $F(e){let t=XP(...e.map(e=>e.left)),n=XP(...e.map(e=>e.top)),r=ZP(...e.map(e=>e.right)),i=ZP(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function eI(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>SF($F(e)))}var tI=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=rF(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=eI(u),f=SF($F(u)),p=xF(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(cF(n)===`y`){let e=d[0],t=d[d.length-1],r=iF(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return SF({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=iF(n)===`left`,t=ZP(...d.map(e=>e.right)),r=XP(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return SF({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},nI=new Set([`left`,`top`]);async function rI(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=iF(n),s=aF(n),c=cF(n)===`y`,l=nI.has(o)?-1:1,u=a&&c?-1:1,d=rF(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var iI=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await rI(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},aI=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=rF(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=cF(i),p=oF(f),m=u[p],h=u[f],g=(e,t)=>nF(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}};function oI(e){let t=WP(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=jP(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=QP(n)!==a||QP(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function sI(e){return AP(e)?e:e.contextElement}function cI(e){let t=sI(e);if(!jP(t))return eF(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=oI(t),o=(a?QP(n.width):n.width)/r,s=(a?QP(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var lI=eF(0);function uI(e){let t=DP(e);return!HP()||!t.visualViewport?lI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dI(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===DP(e)}function fI(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=sI(e),o=eF(1);t&&(r?AP(r)&&(o=cI(r)):o=cI(e));let s=dI(a,n,r)?uI(a):eF(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=DP(a),t=AP(r)?DP(r):r,n=e,i=YP(n);for(;i&&t!==n;){let e=cI(i),t=i.getBoundingClientRect(),r=WP(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=DP(i),i=YP(n)}}return SF({width:u,height:d,x:c,y:l})}function pI(e,t){let n=GP(e).scrollLeft;return t?t.left+n:fI(OP(e)).left+n}function mI(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-pI(e,n),y:n.top+t.scrollTop}}function hI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=OP(r),s=t?FP(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=eF(1),u=eF(0),d=jP(r);if((d||!a)&&((EP(r)!==`body`||NP(o))&&(c=GP(r)),d)){let e=fI(r);l=cI(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?mI(o,c):eF(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function gI(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function _I(e){let t=GP(e),n=e.ownerDocument.body,r=ZP(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ZP(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+pI(e),o=-t.scrollTop;return WP(n).direction===`rtl`&&(a+=ZP(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var vI=25;function yI(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=DP(e),a=OP(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!HP()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(pI(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=vI&&(s-=o)}return{width:s,height:c,x:l,y:u}}function bI(e,t){let n=fI(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=cI(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function xI(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=yI(e,n,t);else if(t===`document`)r=_I(OP(e));else if(AP(t))r=bI(t,n);else{let n=uI(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return SF(r)}function SI(e,t){let n=t.get(e);if(n)return n;let r=JP(e,[],!1).filter(e=>AP(e)&&EP(e)!==`body`),i=null,a=WP(e).position===`fixed`,o=a?KP(e):e;for(;AP(o)&&!UP(o);){let e=WP(o),t=BP(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=KP(o)}return t.set(e,r),r}function CI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?FP(t)?[]:SI(t,this._c):[].concat(n),r],o=xI(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=DP(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function PI(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=sI(e),u=i||a?[...l?JP(l):[],...t?JP(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?NI(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?fI(e):null;c&&g();function g(){let t=fI(e);h&&!MI(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var FI=iI,II=aI,LI=QF,RI=ZF,zI=tI,BI=(e,t,n)=>{let r=new Map,i=n??{},a={...jI,...i.platform,_c:r};return XF(e,t,{...i,platform:a})},VI=u(Pj(),1),HI=typeof document<`u`?G.useLayoutEffect:function(){};function UI(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!UI(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!UI(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function WI(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function GI(e,t){let n=WI(e);return Math.round(t*n)/n}function KI(e){let t=G.useRef(e);return HI(()=>{t.current=e}),t}function qI(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=G.useState(r);UI(f,r)||p(r);let[m,h]=G.useState(null),[g,_]=G.useState(null),v=G.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=G.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=G.useRef(null),C=G.useRef(null),w=G.useRef(u),T=c!=null,E=KI(c),D=KI(i),O=KI(l),k=G.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),BI(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!UI(w.current,t)&&(w.current=t,VI.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);HI(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=G.useRef(!1);HI(()=>(A.current=!0,()=>{A.current=!1}),[]),HI(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=G.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ee=G.useMemo(()=>({reference:b,floating:x}),[b,x]),M=G.useMemo(()=>{let e={position:n,left:0,top:0};if(!ee.floating)return e;let t=GI(ee.floating,u.x),r=GI(ee.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...WI(ee.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ee.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:k,refs:j,elements:ee,floatingStyles:M}),[u,k,j,ee,M])}var JI=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:RI({element:r.current,padding:i}).fn(n):r?RI({element:r,padding:i}).fn(n):{}}}},YI=(e,t)=>{let n=FI(e);return{name:n.name,fn:n.fn,options:[e,t]}},XI=(e,t)=>{let n=II(e);return{name:n.name,fn:n.fn,options:[e,t]}},ZI=(e,t)=>{let n=LI(e);return{name:n.name,fn:n.fn,options:[e,t]}},QI=(e,t)=>{let n=zI(e);return{name:n.name,fn:n.fn,options:[e,t]}},$I=(e,t)=>{let n=JI(e);return{name:n.name,fn:n.fn,options:[e,t]}};function eL(e){let t=G.useRef(void 0),n=G.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return G.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var tL=`data-floating-ui-focusable`,nL=`active`,rL=`selected`,iL=`ArrowLeft`,aL=`ArrowRight`,oL=`ArrowUp`,sL=`ArrowDown`,cL=[iL,aL],lL=[oL,sL];[...cL,...lL];var uL={...G},dL=!1,fL=0,pL=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+fL++;function mL(){let[e,t]=G.useState(()=>dL?pL():void 0);return HF(()=>{e??t(pL())},[]),G.useEffect(()=>{dL=!0},[]),e}var hL=uL.useId||mL;function gL(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var _L=G.createContext(null),vL=G.createContext(null),yL=()=>G.useContext(_L)?.id||null,bL=()=>G.useContext(vL);function xL(e){return`data-floating-ui-`+e}function SL(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var CL=xL(`safe-polygon`);function wL(e,t,n){if(n&&!VF(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function TL(e){return typeof e==`function`?e():e}function EL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=bL(),m=yL(),h=WF(l),g=WF(c),_=WF(n),v=WF(d),y=G.useRef(),b=G.useRef(-1),x=G.useRef(),S=G.useRef(-1),C=G.useRef(!0),w=G.useRef(!1),T=G.useRef(()=>{}),E=G.useRef(!1),D=KF(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});G.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(SL(b),SL(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),G.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=FF(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=G.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=wL(g.current,`close`,y.current);i&&!x.current?(SL(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(SL(b),r(!1,e,n))},[g,r]),k=KF(()=>{T.current(),x.current=void 0}),A=KF(()=>{if(w.current){let e=FF(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(CL),w.current=!1}}),j=KF(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);G.useEffect(()=>{if(!s)return;function e(e){if(SL(b),C.current=!1,u&&!VF(y.current)||TL(v.current)>0&&!wL(g.current,`open`))return;let t=wL(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(j()){A();return}T.current();let t=FF(o.floating);if(SL(S),E.current=!1,h.current&&i.current.floatingContext){n||SL(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)};return}(y.current!==`touch`||!jF(o.floating,e.relatedTarget))&&O(e)}function a(e){j()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e)}})(e))}function c(){SL(b)}function l(e){j()||O(e,!1)}if(AP(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,A,r,n,_,p,g,h,i,j,v]),HF(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(AP(o.domReference)&&e){var t;let n=FF(o.floating).body;n.setAttribute(CL,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),HF(()=>{n||(y.current=void 0,E.current=!1,k(),A())},[n,k,A]),G.useEffect(()=>()=>{k(),SL(b),SL(S),A()},[s,o.domReference,k,A]);let ee=G.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}u&&!VF(y.current)||n||TL(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(SL(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,TL(v.current))))}}},[u,r,n,_,v]);return G.useMemo(()=>s?{reference:ee}:{},[s,ee])}var DL=()=>{},OL=G.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:DL,setState:DL,isInstantPhase:!1}),kL=()=>G.useContext(OL);function AL(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=G.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=G.useRef(null),s=G.useCallback(e=>{a({currentId:e})},[]);return HF(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,K.jsx)(OL.Provider,{value:G.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function jL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=kL(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return HF(()=>{o&&l&&(f({delay:{open:1,close:wL(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),HF(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),HF(()=>{o&&(u===DL||!n||u(s))},[o,n,u,s]),c}function ML(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&MP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function NL(e){return`composedPath`in e?e.composedPath()[0]:e.target}var PL={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},FL={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},IL=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Mee(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=bL(),g=KF(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=G.useRef(!1),{escapeKey:y,outsidePress:b}=IL(p),{escapeKey:x,outsidePress:S}=IL(m),C=G.useRef(!1),w=KF(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?zF(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,BF(e)?e.nativeEvent:e,`escape-key`)}),T=KF(e=>{var t;let n=()=>{var t;w(e),(t=MF(e))==null||t.removeEventListener(`keydown`,n)};(t=MF(e))==null||t.addEventListener(`keydown`,n)}),E=KF(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=MF(e),s=`[`+xL(`inert`)+`]`,c=FF(i.floating).querySelectorAll(s),u=AP(o)?o:null;for(;u&&!UP(u);){let e=KP(u);if(UP(e)||!AP(e))break;u=e}if(c.length&&AP(o)&&!PF(o)&&!jF(o,i.floating)&&Array.from(c).every(e=>!jF(u,e)))return;if(jP(o)&&k){let t=UP(o),n=WP(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&zF(h.nodesRef.current,d).some(t=>NF(e,t.context?.elements.floating));if(NF(e,i.floating)||NF(e,i.domReference)||f)return;let p=h?zF(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=KF(e=>{var t;let n=()=>{var t;E(e),(t=MF(e))==null||t.removeEventListener(l,n)};(t=MF(e))==null||t.addEventListener(l,n)});G.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},HP()?5:0)}let d=FF(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(AP(i.domReference)&&(p=JP(i.domReference)),AP(i.floating)&&(p=p.concat(JP(i.floating))),!AP(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(JP(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),G.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=G.useMemo(()=>({onKeyDown:w,...u&&{[PL[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=G.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[FL[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return G.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function Nee(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=hL(),a=G.useRef({}),[o]=G.useState(()=>gL()),s=yL()!=null,[c,l]=G.useState(r.reference),u=KF((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=G.useMemo(()=>({setPositionReference:l}),[]),f=G.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return G.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function LL(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=Nee({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=G.useState(null),[l,u]=G.useState(null),d=o?.domReference||s,f=G.useRef(null),p=bL();HF(()=>{d&&(f.current=d)},[d]);let m=qI({...n,elements:{...o,...l&&{reference:l}}}),h=G.useCallback(e=>{let t=AP(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=G.useCallback(e=>{(AP(e)||e===null)&&(f.current=e,c(e)),(AP(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!AP(e))&&m.refs.setReference(e)},[m.refs]),_=G.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=G.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=G.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return HF(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),G.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function RL(){return EF()&&TF()}function Pee(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=G.useRef(!1),u=G.useRef(-1),d=G.useRef(!0);G.useEffect(()=>{if(!s)return;let e=DP(o.domReference);function t(){!n&&jP(o.domReference)&&o.domReference===AF(FF(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),RL()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),RL()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),G.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),G.useEffect(()=>()=>{SL(u)},[]);let f=G.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=MF(e.nativeEvent);if(c&&AP(t)){if(RL()&&!e.relatedTarget){if(!d.current&&!IF(t))return}else if(!LF(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=AP(t)&&t.hasAttribute(xL(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=AF(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||jF(a.current.floatingContext?.refs.floating.current,e)||jF(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return G.useMemo(()=>s?{reference:f}:{},[s,f])}function zL(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[nL]:t,[rL]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[tL]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[nL,rL].includes(n))){if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}}),e),{})}}function Fee(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=G.useCallback(t=>zL(t,e,`reference`),t),a=G.useCallback(t=>zL(t,e,`floating`),n),o=G.useCallback(t=>zL(t,e,`item`),r);return G.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Iee=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Lee(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=hL(),c=r.domReference?.id||s,l=G.useMemo(()=>RF(r.floating)?.id||i,[r.floating,i]),u=Iee.get(o)??o,d=yL()!=null,f=G.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=G.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=G.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return G.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function BL(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...BL(e,t.id,n)])}function VL(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Ree(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function zee(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){SL(i),u()}if(SL(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=NL(e),v=e.type===`mouseleave`,y=ML(c.floating,_),b=ML(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=Ree(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,ee=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&AP(e.relatedTarget)&&ML(c.floating,e.relatedTarget)||f&&BL(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let M=[];switch(C){case`top`:M=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:M=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:M=[[S.right-1,ee],[S.right-1,j],[x.left+1,j],[x.left+1,ee]];break;case`right`:M=[[x.right-1,ee],[x.right-1,j],[S.left+1,j],[S.left+1,ee]]}function N(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!VL([m,h],M)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}VL([m,h],N([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var HL={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},UL=zj((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),WL=IN(e=>{let t=UM(`ScrollArea`,HL,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...T}=t,[E,D]=(0,G.useState)(!1),[O,k]=(0,G.useState)(!1),[A,j]=(0,G.useState)(!1),ee=(0,G.useRef)(!0),M=(0,G.useRef)(!1),N=(0,G.useRef)(!0),te=(0,G.useRef)(!1),P=iN({name:`ScrollArea`,props:t,classes:wP,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:UL}),F=(0,G.useRef)(null),[I,ne]=(0,G.useState)(null),L=eL([f,F,(0,G.useCallback)(e=>{ne(t=>t===e?t:e)},[])]);return XN(h===`present`?I:null,()=>{let e=F.current;e&&(k(e.scrollHeight>e.clientHeight),j(e.scrollWidth>e.clientWidth))}),gj(()=>{S&&F.current&&F.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,K.jsxs)(eP,{getStyles:P,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...P(`root`),...T,children:[(0,K.jsx)(CP,{...d,...P(`viewport`,{style:d?.style}),ref:L,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!A?`true`:void 0,"data-vertical-hidden":h===`present`&&!O?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!M.current&&_?.(),c&&!ee.current&&v?.(),M.current=s,ee.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!te.current&&b?.(),u&&!N.current&&y?.(),te.current=l,N.current=u},children:m}),(g===`xy`||g===`x`)&&(0,K.jsx)(yP,{...P(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(SP,{...P(`thumb`)})}),(g===`xy`||g===`y`)&&(0,K.jsx)(yP,{...P(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!O||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(SP,{...P(`thumb`)})}),(0,K.jsx)(QN,{...P(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":E||void 0,"data-hidden":l===`never`||void 0})]})});WL.displayName=`@mantine/core/ScrollArea`;var GL=IN(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=UM(`ScrollAreaAutosize`,HL,e),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(null),D=eL([u,w,(0,G.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,G.useRef)(!1),k=(0,G.useRef)(!1),A=(0,G.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return XN(S?T:null,A),(0,K.jsx)(GN,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,K.jsx)(GN,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,K.jsx)(WL,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});WL.classes=wP,WL.varsResolver=UL,GL.displayName=`@mantine/core/ScrollAreaAutosize`,GL.classes=wP,WL.Autosize=GL;var KL={root:`m_87cf2631`},qL={__staticSelector:`UnstyledButton`},JL=RN(e=>{let t=UM(`UnstyledButton`,qL,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t;return(0,K.jsx)(GN,{...iN({name:i,props:t,classes:KL,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});JL.classes=KL,JL.displayName=`@mantine/core/UnstyledButton`;var YL={root:`m_1b7284a3`},XL=zj((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:aj(t),"--paper-shadow":cj(n)}})),ZL=RN(e=>{let t=UM(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=iN({name:`Paper`,props:t,classes:YL,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:XL});return(0,K.jsx)(GN,{mod:[{"data-with-border":s},f],...h(`root`),variant:d,...m})});ZL.classes=YL,ZL.varsResolver=XL,ZL.displayName=`@mantine/core/Paper`;function QL(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function $L(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var eR={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function tR({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function nR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=tR({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[eR[c]]:r},d=-t/2;return c===`left`?{...u,...QL(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...QL(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...$L(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...$L(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function rR({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function iR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=qN();return a?(0,K.jsx)(`div`,{role:`presentation`,...l,style:{...c,...nR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}iR.displayName=`@mantine/core/FloatingArrow`;function aR(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function oR(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function sR({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||oR(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=oR(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return oR(n)}var cR={reuseTargetNode:!0},lR=IN(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=UM(`Portal`,cR,e),[o,s]=(0,G.useState)(!1),c=(0,G.useRef)(null);return gj(()=>(s(!0),c.current=sR({target:n,reuseTargetNode:r,...a}),yj(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,VI.createPortal)((0,K.jsx)(K.Fragment,{children:t}),c.current)});lR.displayName=`@mantine/core/Portal`;var uR=IN(({withinPortal:e=!0,children:t,...n})=>TM()===`test`||!e?(0,K.jsx)(K.Fragment,{children:t}):(0,K.jsx)(lR,{...n,children:t}));uR.displayName=`@mantine/core/OptionalPortal`;var dR=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),fR={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...dR(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...dR(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...dR(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...dR(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...dR(`top`),common:{transformOrigin:`top right`}}},pR={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function mR({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in fR?{transitionProperty:fR[e].transitionProperty,...i,...fR[e].common,...fR[e][pR[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[pR[t]]}}function hR({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=NM(),d=Ej(),f=u.respectReducedMotion?d:!1,[p,m]=(0,G.useState)(f?0:e),[h,g]=(0,G.useState)(r?`entered`:`exited`),_=(0,G.useRef)(-1),v=(0,G.useRef)(-1),y=(0,G.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{VI.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{if(b(),typeof(e?c:l)!=`number`){x(e);return}v.current=window.setTimeout(()=>{x(e)},e?c:l)};return _j(()=>{S(r)},[r]),(0,G.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function gR({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=TM(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=hR({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,K.jsx)(K.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,K.jsx)(K.Fragment,{children:o({})}):o({display:`none`}):(0,K.jsx)(G.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,K.jsx)(K.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:mR({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,K.jsx)(G.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,K.jsx)(K.Fragment,{children:o(mR({transition:n,duration:h,state:g,timingFunction:_}))})}gR.displayName=`@mantine/core/Transition`;var _R={duration:100,transition:`fade`};function vR(e,t){return{..._R,...t,...e}}var yR={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},bR=({className:e,...t})=>(0,K.jsxs)(GN,{component:`span`,className:Vj(yR.barsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:yR.bar}),(0,K.jsx)(`span`,{className:yR.bar}),(0,K.jsx)(`span`,{className:yR.bar})]});bR.displayName=`@mantine/core/Bars`;var xR=({className:e,...t})=>(0,K.jsxs)(GN,{component:`span`,className:Vj(yR.dotsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:yR.dot}),(0,K.jsx)(`span`,{className:yR.dot}),(0,K.jsx)(`span`,{className:yR.dot})]});xR.displayName=`@mantine/core/Dots`;var SR=({className:e,...t})=>(0,K.jsx)(GN,{component:`span`,className:Vj(yR.ovalLoader,e),...t});SR.displayName=`@mantine/core/Oval`;var CR={bars:bR,oval:SR,dots:xR},wR={loaders:CR,type:`oval`},TR=zj((e,{size:t,color:n})=>({root:{"--loader-size":rj(t,`loader-size`),"--loader-color":n?aM(n,e):void 0}})),ER=IN(e=>{let t=UM(`Loader`,wR,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=iN({name:`Loader`,props:t,classes:yR,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:TR});return p?(0,K.jsx)(GN,{...g(`root`),...h,children:p}):(0,K.jsx)(GN,{...g(`root`),component:d[i],variant:f,size:n,...h})});ER.defaultLoaders=CR,ER.classes=yR,ER.varsResolver=TR,ER.displayName=`@mantine/core/Loader`;var DR={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},OR={orientation:`horizontal`},kR=zj((e,{borderWidth:t})=>({group:{"--ai-border-width":W(t)}})),AR=IN(e=>{let t=UM(`ActionIconGroup`,OR,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t;return(0,K.jsx)(GN,{...iN({name:`ActionIconGroup`,props:t,classes:DR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:kR,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});AR.classes=DR,AR.varsResolver=kR,AR.displayName=`@mantine/core/ActionIconGroup`;var jR=zj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":rj(o,`section-height`),"--section-padding-x":rj(o,`section-padding-x`),"--section-fz":oj(o),"--section-radius":t===void 0?void 0:aj(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),MR=IN(e=>{let t=UM(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,K.jsx)(GN,{...iN({name:`ActionIconGroupSection`,props:t,classes:DR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:jR,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});MR.classes=DR,MR.varsResolver=jR,MR.displayName=`@mantine/core/ActionIconGroupSection`;var NR=zj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":rj(t,`ai-size`),"--ai-radius":n===void 0?void 0:aj(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),PR=RN(e=>{let t=UM(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=iN({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:DR,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:NR});return(0,K.jsxs)(JL,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,K.jsx)(gR,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,K.jsx)(GN,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(ER,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,K.jsx)(GN,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});PR.classes=DR,PR.varsResolver=NR,PR.displayName=`@mantine/core/ActionIcon`,PR.Group=AR,PR.GroupSection=MR;function FR({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,K.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}FR.displayName=`@mantine/core/CloseIcon`;var IR={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},LR={variant:`subtle`},RR=zj((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":rj(t,`cb-size`),"--cb-radius":n===void 0?void 0:aj(n),"--cb-icon-size":W(r)}})),zR=RN(e=>{let t=UM(`CloseButton`,LR,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=iN({name:_||`CloseButton`,props:t,className:o,style:c,classes:IR,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:RR});return(0,K.jsxs)(JL,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,K.jsx)(FR,{}),r]})});zR.classes=IR,zR.varsResolver=RR,zR.displayName=`@mantine/core/CloseButton`;function BR(e){return G.Children.toArray(e).filter(Boolean)}var VR={root:`m_4081bf90`},HR={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},UR=zj((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":ij(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),WR=IN(e=>{let t=UM(`Group`,HR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=BR(s),x=b.length,S=ij(c??`md`);return(0,K.jsx)(GN,{...iN({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:VR,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:UR})(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});WR.classes=VR,WR.varsResolver=UR,WR.displayName=`@mantine/core/Group`;var GR=(0,G.createContext)({size:`sm`}),KR=IN(e=>{let t=UM(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,G.use)(GR),{resolvedClassNames:l,resolvedStyles:u}=Oee({classNames:a,styles:o,props:t});return(0,K.jsx)(zR,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});KR.displayName=`@mantine/core/InputClearButton`;var qR={xs:7,sm:8,md:10,lg:12,xl:15};function JR({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,K.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:qR[i]},children:[o,n||r]}):n===null?null:n||o||r}var YR=(0,G.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),XR={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},ZR=zj((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${oj(t)} - ${W(2)})`}})),QR=IN(e=>{let t=UM(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=UM(`InputDescription`,null,t),f=(0,G.use)(YR),p=iN({name:[`InputWrapper`,c],props:t,classes:XR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:ZR});return(0,K.jsx)(GN,{component:`p`,...(l&&f?.getStyles||p)(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});QR.classes=XR,QR.varsResolver=ZR,QR.displayName=`@mantine/core/InputDescription`;var $R=zj((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${oj(t)} - ${W(2)})`}})),ez=IN(e=>{let t=UM(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=iN({name:[`InputWrapper`,l],props:t,classes:XR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:$R}),p=(0,G.use)(YR);return(0,K.jsx)(GN,{component:`p`,...(u&&p?.getStyles||f)(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});ez.classes=XR,ez.varsResolver=$R,ez.displayName=`@mantine/core/InputError`;var tz={labelElement:`label`},nz=zj((e,{size:t})=>({label:{"--input-label-size":oj(t),"--input-asterisk-color":void 0}})),rz=IN(e=>{let t=UM(`InputLabel`,tz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=iN({name:[`InputWrapper`,p],props:t,classes:XR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:nz}),v=(0,G.use)(YR),y=v?.getStyles||_,b=g.component||c,x=typeof b!=`string`||b===`label`;return(0,K.jsxs)(GN,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:x?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,K.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});rz.classes=XR,rz.varsResolver=nz,rz.displayName=`@mantine/core/InputLabel`;var iz=IN(e=>{let t=UM(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t;return(0,K.jsx)(GN,{...iN({name:[`InputPlaceholder`,c],props:t,classes:XR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});iz.classes=XR,iz.displayName=`@mantine/core/InputPlaceholder`;var az=zj((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${oj(t)} - ${W(2)})`}})),oz=IN(e=>{let t=UM(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=iN({name:[`InputWrapper`,l],props:t,classes:XR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:az}),p=(0,G.use)(YR);return(0,K.jsx)(GN,{component:`p`,...(u&&p?.getStyles||f)(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});oz.classes=XR,oz.varsResolver=az,oz.displayName=`@mantine/core/InputSuccess`;function sz(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var cz={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},lz=zj((e,{size:t})=>({label:{"--input-label-size":oj(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${oj(t)} - ${W(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${oj(t)} - ${W(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${oj(t)} - ${W(2)})`}})),uz=IN(e=>{let t=UM(`InputWrapper`,cz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:g,labelProps:_,descriptionProps:v,errorProps:y,successProps:b,labelElement:x,children:S,withAsterisk:C,id:w,required:T,__stylesApiProps:E,mod:D,attributes:O,...k}=t,A=iN({name:[`InputWrapper`,u],props:E||t,classes:XR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:lz}),j={size:c,variant:l,__staticSelector:u},ee=vj(w),M=typeof C==`boolean`?C:T,N=y?.id||`${ee}-error`,te=b?.id||`${ee}-success`,P=v?.id||`${ee}-description`,F=ee,I=!!m&&typeof m!=`boolean`,ne=!!h&&typeof h!=`boolean`&&!m,L=!!g,re=I&&f.includes(`error`),ie=ne&&f.includes(`error`),ae=L&&f.includes(`description`),oe=`${re?N:``} ${ie?te:``} ${ae?P:``}`,R=oe.trim().length>0?oe.trim():void 0,z=_?.id||`${ee}-label`,se=p&&(0,K.jsx)(rz,{labelElement:x,id:z,htmlFor:F,required:M,...j,..._,children:p},`label`),ce=L&&(0,K.jsx)(QR,{...v,...j,size:v?.size||j.size,id:v?.id||P,children:g},`description`),le=(0,K.jsx)(G.Fragment,{children:d(S)},`input`),ue=I&&(0,G.createElement)(ez,{...y,...j,size:y?.size||j.size,key:`error`,id:y?.id||N},m),de=ne&&(0,G.createElement)(oz,{...b,...j,size:b?.size||j.size,key:`success`,id:b?.id||te},h),fe=f.map(e=>{switch(e){case`label`:return se;case`input`:return le;case`description`:return ce;case`error`:return ue||de;default:return null}});return(0,K.jsx)(YR,{value:{getStyles:A,describedBy:R,inputId:F,labelId:z,...sz(f,{hasDescription:L,hasError:I||ne})},children:(0,K.jsx)(GN,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},D],id:x===`label`?void 0:w,...A(`root`),...k,children:fe})})});uz.classes=XR,uz.varsResolver=lz,uz.displayName=`@mantine/core/InputWrapper`;var dz={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},fz=zj((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":rj(t.size,`input-height`),"--input-fz":oj(t.size),"--input-radius":t.radius===void 0?void 0:aj(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:W(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:W(t.rightSectionWidth),"--input-padding-y":t.multiline?rj(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),pz=RN(e=>{let t=UM(`Input`,dz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:g,leftSectionWidth:_,rightSection:v,rightSectionProps:y,rightSectionWidth:b,rightSectionPointerEvents:x,leftSectionPointerEvents:S,variant:C,vars:w,pointer:T,multiline:E,radius:D,id:O,withAria:k,withErrorStyles:A,withSuccessStyles:j,mod:ee,inputSize:M,attributes:N,__clearSection:te,__clearable:P,__clearSectionMode:F,__defaultRightSection:I,loading:ne,loadingPosition:L,__bottomSection:re,__bottomSectionProps:ie,rootRef:ae,dir:oe,...R}=t,{styleProps:z,rest:se}=lN(R),ce=(0,G.use)(YR),le={offsetBottom:ce?.offsetBottom,offsetTop:ce?.offsetTop},ue=iN({name:[`Input`,c],props:l||t,classes:XR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:N,stylesCtx:le,rootSelector:`wrapper`,vars:w,varsResolver:fz}),de=k?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":ce?.describedBy,id:ce?.inputId||O}:{},fe=ne?(0,K.jsx)(ER,{size:L===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=ne&&L===`left`?fe:h,B=JR({__clearable:P,__clearSection:te,rightSection:ne&&L===`right`?fe:v,__defaultRightSection:I,size:u,__clearSectionMode:F});return(0,K.jsx)(GR,{value:{size:u||`sm`},children:(0,K.jsxs)(GN,{ref:ae,dir:oe,...ue(`wrapper`),...z,...d,mod:[{error:!!f&&A,success:!!p&&!f&&j,pointer:T,disabled:m,multiline:E,"data-with-right-section":!!B,"data-with-left-section":!!pe,"data-with-bottom-section":!!re},ee],variant:C,size:u,children:[pe&&(0,K.jsx)(`div`,{...g,"data-position":`left`,...ue(`section`,{className:g?.className,style:g?.style}),children:pe}),(0,K.jsx)(GN,{component:`input`,...se,...de,required:s,mod:{disabled:m,error:!!f&&A,success:!!p&&!f&&j},variant:C,__size:M,...ue(`input`)}),re&&(0,K.jsx)(`div`,{...ie,...ue(`bottomSection`,{className:ie?.className,style:ie?.style}),children:re}),B&&(0,K.jsx)(`div`,{...y,"data-position":`right`,...ue(`section`,{className:y?.className,style:y?.style}),children:B})]})})});pz.classes=XR,pz.varsResolver=fz,pz.Wrapper=uz,pz.Label=rz,pz.Error=ez,pz.Success=oz,pz.Description=QR,pz.Placeholder=iz,pz.ClearButton=KR,pz.displayName=`@mantine/core/Input`;function mz(e,t,n){let r=UM([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:ee}=lN(A),M={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...ee,classNames:l,styles:u,unstyled:f,wrapperProps:{...M,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var hz={__staticSelector:`InputBase`,withAria:!0,size:`sm`},gz=RN(e=>{let{inputProps:t,wrapperProps:n,...r}=mz(`InputBase`,hz,e);return(0,K.jsx)(pz.Wrapper,{...n,children:(0,K.jsx)(pz,{...t,...r})})});gz.classes={...pz.classes,...pz.Wrapper.classes},gz.displayName=`@mantine/core/InputBase`;function _z(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function vz({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,G.useRef)(-1),s=(0,G.useRef)(e),[c,l]=(0,G.useState)(!1),[u,d]=(0,G.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=cP(s.borderTopWidth)+cP(c.borderTopWidth),u=cP(s.borderLeftWidth)+cP(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,G.useRef)(null),h=(0,G.useRef)(null);return(0,G.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,G.useEffect)(()=>{if(t){let e=e=>{_z(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,G.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),Aj(()=>{Fj()!==`test`&&l(!0)},20,{autoInvoke:!0}),jj(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var yz={root:`m_96b553a6`},bz=zj((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),xz=IN(e=>{let t=UM(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=iN({name:`FloatingIndicator`,classes:yz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:bz,stylesCtx:{shouldReduceMotion:Ej()}}),y=(0,G.useRef)(null),{initialized:b,hidden:x}=vz({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=xj(g,y);return!c||!l?null:(0,K.jsx)(GN,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});xz.displayName=`@mantine/core/FloatingIndicator`,xz.classes=yz,xz.varsResolver=bz;var Sz={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Cz=zj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:aj(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),wz=IN(e=>{let t=UM(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=iN({name:`Alert`,classes:Sz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Cz}),C=vj(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,K.jsx)(GN,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,K.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,K.jsx)(`div`,{...S(`icon`),children:p}),(0,K.jsxs)(`div`,{...S(`body`),children:[u&&(0,K.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,K.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,K.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,K.jsx)(zR,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});wz.classes=Sz,wz.varsResolver=Cz,wz.displayName=`@mantine/core/Alert`;var Tz={root:`m_b6d8b162`};function Ez(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Dz={inherit:!1},Oz=zj((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":oj(i),"--text-lh":sj(i),"--text-gradient":t===`gradient`?cM(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),kz=RN(e=>{let t=UM(`Text`,Dz,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t;return(0,K.jsx)(GN,{...iN({name:[`Text`,l],props:t,classes:Tz,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Oz})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{"data-truncate":Ez(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},_],size:v,...b})});kz.classes=Tz,kz.varsResolver=Oz,kz.displayName=`@mantine/core/Text`;var Az={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},jz=zj((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":rj(a,`badge-height`),"--badge-padding-x":rj(a,`badge-padding-x`),"--badge-fz":rj(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:aj(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?aM(n,e):void 0}}}),Mz=RN(e=>{let t=UM(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=iN({name:`Badge`,props:t,classes:Az,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:jz});return(0,K.jsxs)(GN,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,K.jsx)(`span`,{...x(`label`),children:p}),f&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Mz.classes=Az,Mz.varsResolver=jz,Mz.displayName=`@mantine/core/Badge`;var Nz={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Pz={orientation:`horizontal`},Fz=zj((e,{borderWidth:t})=>({group:{"--button-border-width":W(t)}})),Iz=IN(e=>{let t=UM(`ButtonGroup`,Pz,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=UM(`ButtonGroup`,Pz,e);return(0,K.jsx)(GN,{...iN({name:`ButtonGroup`,props:t,classes:Nz,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Fz,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});Iz.classes=Nz,Iz.varsResolver=Fz,Iz.displayName=`@mantine/core/ButtonGroup`;var Lz=zj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":rj(o,`section-height`),"--section-padding-x":rj(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?oj(o.replace(`compact-`,``)):oj(o),"--section-radius":t===void 0?void 0:aj(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Rz=IN(e=>{let t=UM(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,K.jsx)(GN,{...iN({name:`ButtonGroupSection`,props:t,classes:Nz,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Lz,rootSelector:`groupSection`})(`groupSection`),...f})});Rz.classes=Nz,Rz.varsResolver=Lz,Rz.displayName=`@mantine/core/ButtonGroupSection`;var zz={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${W(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Bz=zj((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":rj(a,`button-height`),"--button-padding-x":rj(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?oj(a.replace(`compact-`,``)):oj(a),"--button-radius":t===void 0?void 0:aj(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Vz=RN(e=>{let t=UM(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=iN({name:`Button`,props:t,classes:Nz,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Bz}),T=!!c,E=!!l;return(0,K.jsxs)(JL,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,K.jsx)(gR,{mounted:p,transition:zz,duration:150,children:e=>(0,K.jsx)(GN,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(ER,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,K.jsxs)(`span`,{...w(`inner`),children:[c&&(0,K.jsx)(GN,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,K.jsx)(GN,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,K.jsx)(GN,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});Vz.classes=Nz,Vz.varsResolver=Bz,Vz.displayName=`@mantine/core/Button`,Vz.Group=Iz,Vz.GroupSection=Rz;var Hz={root:`m_4451eb3a`},Uz=RN(e=>{let t=UM(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=iN({name:`Center`,props:t,classes:Hz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,K.jsx)(GN,{mod:[{inline:c},l],...f(`root`),...d})});Uz.classes=Hz,Uz.displayName=`@mantine/core/Center`;var[Wz,Gz]=ej(`Pagination.Root component was not found in tree`),Kz={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`,items:`m_105fdbed`,label:`m_10817321`},qz={withPadding:!0},Jz=IN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=UM(`PaginationControl`,qz,e),d=Gz(),f=s||d.disabled;return(0,K.jsx)(JL,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});Jz.classes=Kz,Jz.displayName=`@mantine/core/PaginationControl`;function Yz({style:e,children:t,path:n,...r}){return(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,K.jsx)(`path`,{d:n,fill:`currentColor`})})}var Xz=e=>(0,K.jsx)(Yz,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),Zz=e=>(0,K.jsx)(Yz,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),Qz=e=>(0,K.jsx)(Yz,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),$z=e=>(0,K.jsx)(Yz,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),eB={icon:e=>(0,K.jsx)(Yz,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},tB=IN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=UM(`PaginationDots`,eB,e);return(0,K.jsx)(GN,{...Gz().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,K.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});tB.classes=Kz,tB.displayName=`@mantine/core/PaginationDots`;function nB({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=UM(t,i,e),s=Gz(),c=r===`next`?s.active===s.total:s.active===1;return(0,K.jsx)(Jz,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,K.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,PN(a)}var rB=nB({icon:Xz,name:`PaginationNext`,action:`onNext`,type:`next`}),iB=nB({icon:Zz,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),aB=nB({icon:Qz,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),oB=nB({icon:$z,name:`PaginationLast`,action:`onLast`,type:`next`});function sB({dotsIcon:e}){let t=Gz();return(0,K.jsx)(K.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,K.jsx)(tB,{icon:e},r):(0,K.jsx)(Jz,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}sB.displayName=`@mantine/core/PaginationItems`;var cB={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},lB=IN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=UM(`PaginationLabel`,cB,e),c=Gz();return(0,K.jsx)(GN,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});lB.classes=Kz,lB.displayName=`@mantine/core/PaginationLabel`;var uB={siblings:1,boundaries:1},dB=zj((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:aj(n),"--pagination-control-size":rj(t,`pagination-control-size`),"--pagination-control-fz":oj(t),"--pagination-active-bg":r?aM(r,e):void 0,"--pagination-active-color":hM(i,e)?fM({color:r,theme:e,autoContrast:i}):void 0}})),fB=IN(e=>{let t=UM(`PaginationRoot`,uB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=iN({name:`Pagination`,classes:Kz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:dB}),{range:k,setPage:A,next:j,previous:ee,active:M,first:N,last:te}=Tj({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,K.jsx)(Wz,{value:{total:c,range:k,active:M,disabled:f,layout:w,getItemProps:x,onChange:A,onNext:lj(_,j),onPrevious:lj(v,ee),onFirst:lj(y,N),onLast:lj(b,te),getStyles:O},children:(0,K.jsx)(GN,{...O(`root`),mod:[{layout:w},T],...D})})});fB.classes=Kz,fB.varsResolver=dB,fB.displayName=`@mantine/core/PaginationRoot`;var pB={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function mB({children:e}){return(0,K.jsx)(GN,{...Gz().getStyles(`items`),children:e})}var hB=IN(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=UM(`Pagination`,pB,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(mB,{children:(0,K.jsx)(sB,{dotsIcon:c})}),(0,K.jsx)(lB,{formatLabel:m})]}):(0,K.jsx)(sB,{dotsIcon:c}):null;return(0,K.jsx)(fB,{total:l,layout:p,...h,children:(0,K.jsxs)(WR,{gap:u,children:[t&&(0,K.jsx)(aB,{icon:s,...r?.(`first`)}),n&&(0,K.jsx)(iB,{icon:a,...r?.(`previous`)}),g,n&&(0,K.jsx)(rB,{icon:i,...r?.(`next`)}),t&&(0,K.jsx)(oB,{icon:o,...r?.(`last`)})]})})});hB.classes=Kz,hB.displayName=`@mantine/core/Pagination`,hB.Root=fB,hB.Control=Jz,hB.Dots=tB,hB.First=aB,hB.Last=oB,hB.Next=rB,hB.Previous=iB,hB.Items=sB,hB.Label=lB;function gB({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,G.useState)(n),a=(0,G.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=LL({placement:t,middleware:[XI({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,G.useCallback)(({clientX:e,clientY:t})=>{!Number.isFinite(e)||!Number.isFinite(t)||l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,G.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=JP(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var _B={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},vB={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:nj(`popover`)},yB=zj((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:aj(t),"--tooltip-bg":n?aM(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),bB=IN(e=>{let t=UM(`TooltipFloating`,vB,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=NM(),E=iN({name:`TooltipFloating`,props:t,classes:_B,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:yB}),{handleMouseMove:D,x:O,y:k,opened:A,boundaryRef:j,floating:ee,setOpened:M}=gB({offset:p,position:m,defaultOpened:v}),N=Rj(n);if(!N)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let te=xj(j,Ij(N),C),P=N.props,F=e=>{P.onMouseEnter?.(e),D(e),M(!0)},I=e=>{P.onMouseLeave?.(e),M(!1)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(uR,{...x,withinPortal:i,children:(0,K.jsx)(GN,{...w,...E(`tooltip`,{style:{...MN(a,T),zIndex:g,display:!_&&A?`block`:`none`,top:Number.isFinite(k)?Math.round(k):``,left:Number.isFinite(O)?Math.round(O):``}}),variant:y,ref:ee,mod:{multiline:h},children:f})}),(0,G.cloneElement)(N,{...P,[r]:te,onMouseEnter:F,onMouseLeave:I})]})});bB.classes=_B,bB.varsResolver=yB,bB.displayName=`@mantine/core/TooltipFloating`;var xB=(0,G.createContext)({withinGroup:!1}),SB={openDelay:0,closeDelay:0};function CB(e){let{openDelay:t,closeDelay:n,children:r}=UM(`TooltipGroup`,SB,e);return(0,K.jsx)(xB,{value:{withinGroup:!0},children:(0,K.jsx)(AL,{delay:{open:t,close:n},children:r})})}CB.displayName=`@mantine/core/TooltipGroup`,CB.extend=e=>e;function wB(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function TB(e){let t=wB(e.middlewares),n=[YI(e.offset)];return t.shift&&n.push(XI(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?ZI():ZI(t.flip)),n.push($I({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?QI():QI(t.inline)):e.inline&&n.push(QI()),n}function EB(e){let[t,n]=(0,G.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,G.use)(xB).withinGroup,a=vj(),o=(0,G.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=LL({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:TB(e),whileElementsMounted:PI}),{delay:m,currentId:h,setCurrentId:g}=jL(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=Fee([EL(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?zee():null}),Pee(l,{enabled:e.events?.focus,visibleOnly:!0}),Lee(l,{role:`tooltip`}),Mee(l,{enabled:e.opened===void 0})]),y=(0,G.useRef)(d);gj(()=>{y.current!==d&&(y.current=d,e.onPositionChange?.(d))},[d]);let b=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:b,opened:r,placement:d}}var DB={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:nj(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},OB=zj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:aj(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),kB=IN(e=>{let t=UM(`Tooltip`,DB,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,interactive:O,zIndex:k,disabled:A,onClick:j,onMouseEnter:ee,onMouseLeave:M,inline:N,variant:te,keepMounted:P,vars:F,portalProps:I,mod:ne,floatingStrategy:L,middlewares:re,autoContrast:ie,attributes:ae,target:oe,ref:R,...z}=t,{dir:se}=qN(),ce=(0,G.useRef)(null),le=EB({position:aR(se,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,interactive:O,arrowRef:ce,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:N,strategy:L,middlewares:re});(0,G.useEffect)(()=>{let e=oe instanceof HTMLElement?oe:typeof oe==`string`?document.querySelector(oe):oe?.current||null;e&&le.reference(e)},[oe,le]);let ue=iN({name:`Tooltip`,props:t,classes:_B,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:ae,rootSelector:`tooltip`,vars:F,varsResolver:OB}),de=Rj(n);if(!oe&&!de)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let fe=ue(`tooltip`),pe=O&&!A&&!!le.opened,B=C===`merge`&&y?rR({position:le.placement,dir:se}):void 0;if(oe){let e=vR(T,{duration:100,transition:`fade`});return(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(uR,{...I,withinPortal:d,children:(0,K.jsx)(gR,{...e,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:e.duration,children:e=>(0,K.jsxs)(GN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...fe,...le.getFloatingProps({ref:le.floating,className:fe.className,style:{...fe.style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(iR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})})})}let me=de.props,V=xj(le.reference,Ij(de),R),he=vR(T,{duration:100,transition:`fade`});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(uR,{...I,withinPortal:d,children:(0,K.jsx)(gR,{...he,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:he.duration,children:e=>(0,K.jsxs)(GN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...le.getFloatingProps({ref:le.floating,className:ue(`tooltip`).className,style:{...ue(`tooltip`).style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(iR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})}),(0,G.cloneElement)(de,le.getReferenceProps({onClick:j,onMouseEnter:ee,onMouseLeave:M,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...me,className:Vj(v,me.className),[i]:V}))]})});kB.classes=_B,kB.varsResolver=OB,kB.displayName=`@mantine/core/Tooltip`,kB.Floating=bB,kB.Group=CB;var AB={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},jB={withItemsBorders:!0},MB=zj((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:aj(t),"--sc-color":n?aM(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":rj(i,`sc-padding`),"--sc-font-size":oj(i)}})),NB=LN(e=>{let t=UM(`SegmentedControl`,jB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:w,mod:T,attributes:E,ref:D,...O}=t,k=iN({name:`SegmentedControl`,props:t,classes:AB,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:MB}),A=NM(),j=c.map(e=>Lj(e)?{label:`${e}`,value:e}:e),ee=Mj(),[M,N]=(0,G.useState)(uj()),[te,P]=(0,G.useState)(null),[F,I]=(0,G.useState)({}),ne=(e,t)=>{F[t]=e,I(F)},[L,re]=Sj({value:l,defaultValue:u,finalValue:Array.isArray(c)?j.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),ie=vj(p),ae=j.map(e=>(0,G.createElement)(GN,{...k(`control`),mod:{active:L===e.value,orientation:_},key:`${e.value}`},(0,G.createElement)(`input`,{...k(`input`),disabled:m||e.disabled,type:`radio`,name:ie,value:`${e.value}`,id:`${ie}-${e.value}`,checked:L===e.value,onChange:()=>!h&&re(e.value),"data-focus-ring":A.focusRing,key:`${e.value}-input`}),(0,G.createElement)(GN,{component:`label`,...k(`label`),mod:{active:L===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${ie}-${e.value}`,ref:t=>ne(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:fM({color:y,theme:A,autoContrast:C})},key:`${e.value}-label`},(0,K.jsx)(`span`,{...k(`innerLabel`),children:e.label})))),oe=xj(D,P);return kj(()=>{N(uj())},[c.length]),c.length===0?null:(0,K.jsxs)(GN,{...k(`root`),variant:S,size:f,ref:oe,mod:[{"full-width":g,orientation:_,initialized:ee,"with-items-borders":w},T],...O,role:`radiogroup`,"data-disabled":m,children:[L!==void 0&&(0,K.jsx)(xz,{target:F[`${L}`],parent:te,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...k(`indicator`)},M),ae]})});NB.classes=AB,NB.varsResolver=MB,NB.displayName=`@mantine/core/SegmentedControl`;var[PB,FB]=ej(`Table component was not found in the tree`),IB={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function LB(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function RB(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=IN(r=>{let i=UM(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=FB();return(0,K.jsx)(GN,{component:e,...LB(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=IB,r}var zB=RB(`th`,{columnBorder:!0}),BB=RB(`td`,{columnBorder:!0}),VB=RB(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),HB=RB(`thead`,{stickyHeader:!0}),UB=RB(`tbody`),WB=RB(`tfoot`),GB=RB(`caption`,{captionSide:!0}),KB={type:`scrollarea`},qB=zj((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),JB=IN(e=>{let t=UM(`TableScrollContainer`,KB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=iN({name:`TableScrollContainer`,classes:IB,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:qB,rootSelector:`scrollContainer`});return(0,K.jsx)(GN,{component:d===`scrollarea`?WL:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,K.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});JB.classes=IB,JB.varsResolver=qB,JB.displayName=`@mantine/core/TableScrollContainer`;function YB({data:e}){return(0,K.jsxs)(K.Fragment,{children:[e.caption&&(0,K.jsx)(GB,{children:e.caption}),e.head&&(0,K.jsx)(HB,{children:(0,K.jsx)(VB,{children:e.head.map((e,t)=>(0,K.jsx)(zB,{children:e},t))})}),e.body&&(0,K.jsx)(UB,{children:e.body.map((e,t)=>(0,K.jsx)(VB,{children:e.map((e,t)=>(0,K.jsx)(BB,{children:e},t))},t))}),e.foot&&(0,K.jsx)(WB,{children:(0,K.jsx)(VB,{children:e.foot.map((e,t)=>(0,K.jsx)(zB,{children:e},t))})})]})}YB.displayName=`@mantine/core/TableDataRenderer`;var XB={withRowBorders:!0,verticalSpacing:7},ZB=zj((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":ij(r),"--table-vertical-spacing":ij(i),"--table-border-color":a?aM(a,e):void 0,"--table-striped-color":c&&o?aM(o,e):void 0,"--table-highlight-on-hover-color":l&&s?aM(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),QB=IN(e=>{let t=UM(`Table`,XB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=iN({name:`Table`,props:t,className:r,style:i,classes:IB,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:ZB});return(0,K.jsx)(PB,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,K.jsx)(GN,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,K.jsx)(YB,{data:b})})})});QB.classes=IB,QB.varsResolver=ZB,QB.displayName=`@mantine/core/Table`,QB.Td=BB,QB.Th=zB,QB.Tr=VB,QB.Thead=HB,QB.Tbody=UB,QB.Tfoot=WB,QB.Caption=GB,QB.ScrollContainer=JB,QB.DataRenderer=YB;var $B=IN(e=>(0,K.jsx)(gz,{component:`input`,...UM([`Input`,`InputWrapper`,`TextInput`],null,e),__staticSelector:`TextInput`}));$B.classes=gz.classes,$B.displayName=`@mantine/core/TextInput`;var eV={root:`m_7341320d`},tV=zj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":rj(t,`ti-size`),"--ti-radius":n===void 0?void 0:aj(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),nV=IN(e=>{let t=UM(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,K.jsx)(GN,{...iN({name:`ThemeIcon`,classes:eV,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:tV})(`root`),...u})});nV.classes=eV,nV.varsResolver=tV,nV.displayName=`@mantine/core/ThemeIcon`;var rV=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],iV=[`xs`,`sm`,`md`,`lg`,`xl`];function aV(e,t){let n=t===void 0?`h${e}`:t;return rV.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:iV.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var oV={root:`m_8a5d1357`},sV={order:1},cV=zj((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=aV(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),lV=IN(e=>{let t=UM(`Title`,sV,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=iN({name:`Title`,props:t,classes:oV,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:cV});return[1,2,3,4,5,6].includes(s)?(0,K.jsx)(GN,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});lV.classes=oV,lV.varsResolver=cV,lV.displayName=`@mantine/core/Title`;var uV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),dV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z`}))]]),fV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),pV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),mV=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),hV=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(mV);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});hV.displayName=`IconBase`;var gV=G.forwardRef((e,t)=>G.createElement(hV,{ref:t,...e,weights:uV}));gV.displayName=`ArrowClockwiseIcon`;var _V=gV,vV=G.forwardRef((e,t)=>G.createElement(hV,{ref:t,...e,weights:dV}));vV.displayName=`ArrowSquareOutIcon`;var yV=vV,bV=G.forwardRef((e,t)=>G.createElement(hV,{ref:t,...e,weights:fV}));bV.displayName=`ListMagnifyingGlassIcon`;var xV=bV,SV=G.forwardRef((e,t)=>G.createElement(hV,{ref:t,...e,weights:pV}));SV.displayName=`MagnifyingGlassIcon`;var CV=SV,wV=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),TV=s(((e,t)=>{t.exports=wV()})),EV=s((e=>{var t=TV(),n=QA(),r=Pj();function i(e){var t=`https://react.dev/errors/`+e;if(1F||(e.current=P[F],P[F]=null,F--)}function L(e,t){F++,P[F]=e.current,e.current=t}var re=I(null),ie=I(null),ae=I(null),oe=I(null);function R(e,t){switch(L(ae,t),L(ie,e),L(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ne(re),L(re,e)}function z(){ne(re),ne(ie),ne(ae)}function se(e){e.memoizedState!==null&&L(oe,e);var t=re.current,n=Xd(t,e.type);t!==n&&(L(ie,e),L(re,n))}function ce(e){ie.current===e&&(ne(re),ne(ie)),oe.current===e&&(ne(oe),op._currentValue=te)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``,ue=-1)`:-1`)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?de(n):``}function B(e,t){switch(e.tag){case 26:case 27:case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return e.child!==t&&t!==null?de(`Suspense Fallback`):de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return de(`Activity`);default:return``}}function me(e){try{var t=``,n=null;do t+=B(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var V=Object.prototype.hasOwnProperty,he=t.unstable_scheduleCallback,ge=t.unstable_cancelCallback,H=t.unstable_shouldYield,_e=t.unstable_requestPaint,ve=t.unstable_now,ye=t.unstable_getCurrentPriorityLevel,be=t.unstable_ImmediatePriority,xe=t.unstable_UserBlockingPriority,Se=t.unstable_NormalPriority,Ce=t.unstable_LowPriority,we=t.unstable_IdlePriority,Te=t.log,Ee=t.unstable_setDisableYieldValue,De=null,Oe=null;function ke(e){if(typeof Te==`function`&&Ee(e),Oe&&typeof Oe.setStrictMode==`function`)try{Oe.setStrictMode(De,e)}catch{}}var Ae=Math.clz32?Math.clz32:Ne,je=Math.log,Me=Math.LN2;function Ne(e){return e>>>=0,e===0?32:31-(je(e)/Me|0)|0}var Pe=256,Fe=262144,Ie=4194304;function Le(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Re(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Le(n))):i=Le(o):i=Le(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Le(n))):i=Le(o)):i=Le(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ve(){var e=Ie;return Ie<<=1,!(Ie&62914560)&&(Ie=4194304),e}function He(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ue(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function We(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),nn=!1;if(tn)try{var rn={};Object.defineProperty(rn,"passive",{get:function(){nn=!0}}),window.addEventListener(`test`,rn,rn),window.removeEventListener(`test`,rn,rn)}catch{nn=!1}var an=null,on=null,sn=null;function cn(){if(sn)return sn;var e,t=on,n=t.length,r,i=`value`in an?an.value:an.textContent,a=i.length;for(e=0;e=Bn),Un=` `,Wn=!1;function Gn(e,t){switch(e){case`keyup`:return Rn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Kn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var qn=!1;function Jn(e,t){switch(e){case`compositionend`:return Kn(t);case`keypress`:return t.which===32?(Wn=!0,Un):null;case`textInput`:return e=t.data,e===Un&&Wn?null:e;default:return null}}function Yn(e,t){if(qn)return e===`compositionend`||!zn&&Gn(e,t)?(e=cn(),sn=on=an=null,qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=_r(n)}}function yr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function br(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=kt(e.document)}return t}function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Sr=tn&&`documentMode`in document&&11>=document.documentMode,Cr=null,wr=null,Tr=null,Er=!1;function Dr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Er||Cr==null||Cr!==kt(r)||(r=Cr,`selectionStart`in r&&xr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tr&&gr(Tr,r)||(Tr=r,r=Nd(wr,`onSelect`),0>=o,i-=o,yi=1<<32-Ae(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Oi&&xi(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Oi&&xi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Oi&&xi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Oi&&xi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=oi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ai(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=li(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Sa(o),x(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Oa(o),c);if(o.$$typeof===b)return x(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=x(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Qr(e),Zr(e,null,n),t}return Jr(e,r,t,n),Qr(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hl&p)===p:(r&p)===p){p!==0&&p===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Pa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=M.T,s={};M.T=s,Ms(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,ua(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,te,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Yi(op)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=La(n);var r=Ra(t,e,n);r!==null&&(bu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Yr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hr(s,o))return Jr(e,t,i,0),Bl===null&&qr(),!1}catch{}if(n=Yr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Yr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}var Is={readContext:Yi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Yi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){ke(!0);try{e()}finally{ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){ke(!0);try{n(t)}finally{ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,a=Do();if(Oi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Bl.identifierPrefix;if(Oi){var n=bi,r=yi;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ei,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Mi(t,!0)}else e=Jd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[$e]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[$e]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return z(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Ui(t.type),Ic(t),null;case 19:if(ne(io),r=t.memoizedState,r===null)return Ic(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ii(n,e),n=n.sibling;return L(io,io.current&1|2),Oi&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ve()>ou&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Oi)return Ic(t),null}else 2*ve()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ve(),e.sibling=null,n=io.current,L(io,a?n&1|2:n&1),Oi&&xi(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ne(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),z(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ce(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(io),null;case 4:return z(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ne(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function zc(e,t){switch(wi(t),t.tag){case 3:Ui(ta),z();break;case 26:case 27:case 5:ce(t);break;case 4:z();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ne(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ne(fa);break;case 24:Ui(ta)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[et]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[$e]=e,t[et]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=hp,e=br(e),xr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},hp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Hd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=vr(s,h),v=vr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,M.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot==`function`)try{Oe.onPostCommitFiberRoot(De,o)}catch{}return!0}finally{N.p=a,M.T=r,Ku(e,t)}}function Yu(e,t,n){t=di(n,t),t=Xs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ue(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=di(n,e),n=Zs(2),r=Ra(t,n,2),r!==null&&(Qs(n,r,t,e),Ue(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>ve()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=Ve()),e=Xr(e,t),e!==null&&(Ue(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return he(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ae(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=Re(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ze(r,a)||(n=!0,hd(r,a))}r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=ve(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=dt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);ft(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=ae.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+jt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),ft(t),e.head.appendChild(t))}function Hf(e){return`[src="`+jt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Hd(r,`style`,a),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Bf(n),(a=Sf.get(a))&&Kf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(Uf(o)))?(t.instance=a,ft(a),a):(r=n,(a=Sf.get(o))&&(r=f({},n),qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=np.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=np.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&ip(e,e.stylesheets),0ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rp=null;function ip(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rp=new Map,t.forEach(ap,e),rp=null,np.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=rp.get(e);if(n)var r=n.get(null);else{n=new Map,rp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=CV()}))(),TV=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],EV=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],DV=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],OV=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],kV=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],AV=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],jV={dark:{text:`#bfbdb6`,muted:`#8b8e99`,grid:`#1d2433`,surface:`#131721`,border:`#565b69`},light:{text:`#4a5058`,muted:`#6b7280`,grid:`#eceef0`,surface:`#fcfcfc`,border:`#a4abb4`}},MV={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},NV={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:TV,brand:EV,ok:DV,warn:OV,bad:kV,info:AV},defaultRadius:`md`,fontFamily:MV.body,fontFamilyMonospace:MV.display,headings:{fontFamily:MV.display,fontWeight:`500`},cursorType:`pointer`},PV=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),FV=FM(NV);function IV({dark:e,children:t}){return(0,K.jsx)(NM,{theme:FV,cssVariablesResolver:PV,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)(YL,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function LV({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(VR,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(RN,{miw:0,children:[(0,K.jsx)(Ez,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(oV,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(Ez,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(Rz,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(mV,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function RV({error:e,loading:t}){return e?(0,K.jsx)(xz,{color:`bad`,m:`md`,children:e}):t?(0,K.jsxs)(Bz,{mih:160,p:`xl`,children:[(0,K.jsx)(CR,{size:`sm`}),(0,K.jsx)(Ez,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function zV({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(Bz,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(VR,{wrap:`nowrap`,children:[(0,K.jsx)($B,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(RN,{children:[(0,K.jsx)(Ez,{fw:700,size:`sm`,children:t}),(0,K.jsx)(Ez,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function BV({left:e,right:t}){return(0,K.jsxs)(VR,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(Ez,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(Ez,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function VV(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function HV({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(VR,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(Ez,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(fB,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function UV(e){return jV[e?`dark`:`light`]}function WV(e){let t=e?5:7;return{ok:DV[t],warn:OV[t],bad:kV[t],info:AV[t]}}var GV=Cc(),KV=P,qV=fe,JV=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Lu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=pe(YV,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}$V(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Jb(r).w>o)return!0;if(a){var s=Vk(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=GV(e).pointerEl=new qd[i.type](KV(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=GV(e).labelEl=new Jo(KV(t.label));e.add(i),ZV(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=GV(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=GV(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ZV(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=yf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){FC(e.event)},onmousedown:qV(this._onHandleDragMove,this,0,0),drift:qV(this._onHandleDragMove,this),ondragend:qV(this._onHandleDragEnd,this)}),n.add(r)),$V(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,US(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){YV(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QV(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(QV(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(QV(r)),GV(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),WS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function YV(e,t,n,r){XV(GV(n).lastProp,r)||(GV(n).lastProp=r,t?Bd(n,r,e):(n.stopAnimation(),n.attr(r)))}function XV(e,t){if(H(e)&&H(t)){var n=!0;return R(t,function(t,r){n&&=XV(e[r],t)}),!!n}return e===t}function ZV(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function QV(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $V(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function eH(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function tH(e,t,n,r,i){var a=rH(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=jg(o.get(`padding`)||0),c=o.getFont(),l=vn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),nH(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:qf(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function nH(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function rH(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:By(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),V(o)?a=o.replace(`{value}`,a):me(o)&&(a=o(s))}return a}function iH(e,t,n){var r=gt();return xt(r,r,n.rotation),bt(r,r,n.position),ff([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function aH(e,t,n,r,i,a){var o=Nx.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),tH(t,r,i,a,{position:iH(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function oH(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function sH(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function cH(e,t,n){return Jb(e,{fromStat:{sers:z(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function lH(e,t,n){return[fs(ds(t[0],t[1]),e-n/2),ds(e+n/2,fs(t[0],t[1]))]}var uH=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=dH(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=eH(r),f=fH[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}aH(t,e,eS(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=eS(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=iH(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=dH(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ds(o[1],l[c]),l[c]=fs(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(JV);function dH(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var fH={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:oH([t,r[0]],[t,r[1]],pH(e))}},shadow:function(e,t,n,r,i,a){var o=cH(e,i,a),s=r[1]-r[0],c=lH(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:sH([l,r[0]],[u-l,s],pH(e))}}};function pH(e){return e.dim===`x`?0:1}var mH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:w_.color.border,width:1,type:`dashed`},shadowStyle:{color:w_.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:w_.color.neutral00,padding:[5,7,5,7],backgroundColor:w_.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:w_.color.accent40,throttle:40}},t}($g),hH=Cc(),gH=R;function _H(e,t,n){if(!Ue.node){var r=t.getZr();hH(r).records||(hH(r).records={}),vH(r,t);var i=hH(r).records[e]||(hH(r).records[e]={});i.handler=n}}function vH(e,t){if(hH(e).initialized)return;hH(e).initialized=!0,n(`click`,pe(xH,`click`)),n(`mousemove`,pe(xH,`mousemove`)),n(`mousewheel`,pe(xH,`mousewheel`)),n(`globalout`,bH);function n(n,r){e.on(n,function(n){var i=SH(t);gH(hH(e).records,function(e){e&&r(e,n,i.dispatchAction)}),yH(i.pendings,t)})}}function yH(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function bH(e,t,n){e.handler(`leave`,null,n)}function xH(e,t,n,r){t.handler(e,n,r)}function SH(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function CH(e,t){if(!Ue.node){var n=t.getZr();(hH(n).records||{})[e]&&(hH(n).records[e]=null)}}var wH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;_H(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){CH(`axisPointer`,t)},t.prototype.dispose=function(e,t){CH(`axisPointer`,t)},t.type=`axisPointer`,t}(NT);function TH(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Sc(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(z(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var EH=Cc();function DH(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||fe(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){LH(i)&&(i=TH({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=LH(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||LH(i),f={},p={},m={list:[],map:{}},h={showPointer:pe(AH,p),showTooltip:pe(jH,m)};R(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);R(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=FH(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&OH(e,o,h,!1,f)}})});var g={};return R(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&R(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,IH(t),IH(e)))),g[e.key]=a}})}),R(g,function(e,t){OH(u[t],e,h,!0,f)}),MH(p,u,f),NH(m,i,e,o),PH(u,o,n),f}}function OH(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=kH(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function kH(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(qs(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),R(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function AH(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function jH(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=Wk(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function MH(e,t,n){var r=n.axesInfo=[];R(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function NH(e,t,n,r){if(LH(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function PH(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=EH(r)[i]||{},o=EH(r)[i]={};R(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&R(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}R(a,function(e,t){!o[t]&&c.push(l(e))}),R(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function FH(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function IH(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function LH(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function RH(e){Kk.registerAxisPointerClass(`CartesianAxisPointer`,uH),e.registerComponentModel(mH),e.registerComponentView(wH),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Pk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},DH)}function zH(e){ZO(rA),ZO(RH)}function BH(e,t){var n=jg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Uo({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var VH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:w_.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:w_.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:w_.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:w_.color.tertiary,fontSize:14}},t}($g);function HH(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function UH(e){if(Ue.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function $H(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Ue.transformSupported?``+YH+i:`,left`+i+`,top`+i)),JH+`:`+a}function eU(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ue.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ue.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+YH+`:`+o+`;`:[[`top`,0],[`left`,0],[WH,o]]}function tU(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=Ce(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),R([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function nU(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=q_(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push($H(a,n,r)),o&&i.push(`background-color:`+o),R([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Ag(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(tU(d)),f!=null&&i.push(`padding:`+jg(f).join(`px `)+`px`),i.join(`;`)+`;`}function rU(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&xh(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var iU=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(V(i)?document.querySelector(i):ye(i)?i:me(i)&&i(e.getDom()));rU(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;jC(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=qH(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=XH+nU(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+eU(i[0],i[1],!0)+(`border-color:`+Lg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(V(i)&&n.get(`trigger`)===`item`&&!HH(n)&&(o=QH(n,r,i)),V(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||Ue.node||!n.getDom())){var i=fU(r,n);this._ticket=``;var a=r.dataByCoordSys,o=_U(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=lU;c.x=r.x,c.y=r.y,c.update(),Xc(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=TH(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(fU(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&dU([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Xc(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;vE(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Xc(e).dataIndex==null?Xc(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=fe(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=dU([t.tooltipOption],r),o=this._renderMode,s=[],c=N_(`section`,{blocks:[],noHeader:!0}),l=[],u=new J_;R(e,function(e){R(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=rH(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=N_(`section`,{header:f,noHeader:!Oe(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),R(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=By(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Lg(m.color),o);var h=u_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=dU([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=z_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` - -`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Xc(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=dU([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new J_;h.marker=g.makeTooltipMarker(`item`,Lg(h.color),d);var _=u_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?z_(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Xc(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(V(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=kh(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=dU(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new J_;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(V(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=dg(m.axisValue,d,p)),d=Fg(d,n,!0)}else if(me(u)){var g=fe(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),me(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=Cs(t[0],s),r=Cs(t[1],c);else if(H(t)){var p=t;p.width=l[0],p.height=l[1];var m=Wg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(V(t)&&o){var h=hU(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=pU(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=gU(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=gU(d)?l[1]/2:d===`bottom`?l[1]:0),HH(e)){var h=mU(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&R(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&R(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&R(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&R(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){Ue.node||!t.getDom()||(WS(this,`_updatePosition`),this._tooltipContent.dispose(),CH(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(NT);function dU(e,t,n){var r=t.ecModel,i;n?(i=new hp(n,r,r),i=new hp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof hp&&(o=o.get(`tooltip`,!0)),V(o)&&(o={formatter:o}),o&&(i=new hp(o,i,r)))}return i}function fU(e,t){return e.dispatchAction||fe(t.dispatchAction,t)}function pU(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function mU(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function hU(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function gU(e){return e===`center`||e===`middle`}function _U(e,t,n){var r=Ec(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Oc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Xc(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function vU(e){ZO(RH),e.registerComponentModel(VH),e.registerComponentView(uU),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Be),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Be)}var yU=R;function bU(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function xU(e,t,n){var r={};return yU(t,function(t){var a=r[t]=i();yU(e[t],function(e,r){if(sA.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new sA(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new sA(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function SU(e,t,n){var r;R(n,function(e){t.hasOwnProperty(e)&&bU(t[e])&&(r=!0)}),r&&R(n,function(n){t.hasOwnProperty(n)&&bU(t[n])?e[n]=P(t[n]):delete e[n]})}function CU(e,t,n,r){var i={};return R(e,function(e){i[e]=sA.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return hE(a,l,e)}function c(e,t){_E(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var wU=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},TU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&R(t,function(e,r){V(e)&&(e={type:e}),t[r]=F(e,wU(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:w_.size.m,align:`auto`,backgroundColor:w_.color.transparent,borderColor:w_.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:w_.color.disabled,inactiveBorderColor:w_.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:w_.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:w_.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:w_.color.tertiary,borderWidth:1,borderColor:w_.color.border},emphasis:{selectorLabel:{show:!0,color:w_.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}($g),EU=pe,DU=R,OU=Lu,kU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new OU),this.group.add(this._selectorGroup=new OU),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Kg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Wg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Wg(L({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=BH(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Ie(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),DU(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` -`)){var p=new OU;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,EU(MU,f,null,r,d)).on(`mouseover`,EU(NU,m.name,null,r,d)).on(`mouseout`,EU(PU,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Xc(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Gr(h.fill);_&&_[3]===0&&(_[3]=.2,h=I(I({},h),{fill:Qr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,EU(MU,null,f,r,d)).on(`mouseover`,EU(NU,null,f,r,d)).on(`mouseout`,EU(PU,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Xc(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Xc(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();DU(e,function(e){var r=e.type,i=new Jo({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Gf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),nu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=AU(c,r,o,s,d,m,u),y=new OU,b=r.getModel(`textStyle`);if(me(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(jU({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;V(w)&&w?T=w.replace(`{name}`,t??``):me(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Jo({style:qf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Uo({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Df({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),nu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Hg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Hg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(NT);function AU(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),DU(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:dD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function jU(e){var t=e.icon||`roundRect`,n=mv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=w_.color.neutral00,n.style.lineWidth=2),n}function MU(e,t,n,r){PU(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),NU(e,t,n,r)}function NU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function PU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function FU(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),IU(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),IU(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function IU(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(r!==` -`&&r!==``){var i=e.isSelected(r);n[r]=ze(n,r)?n[r]&&i:i}}),n}function LU(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,pe(FU,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,pe(FU,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,pe(FU,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,pe(FU,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,pe(FU,`unSelect`))}var RU=Yc(zU);function zU(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=Ce(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Uo({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Bd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,V(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=WU[i],o=GU[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(kU);function qU(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function JU(e){ZO(BU),e.registerComponentModel(VU),e.registerComponentView(KU),qU(e)}function YU(e){ZO(BU),ZO(JU)}var XU={get:function(e,t,n){var r=P((ZU[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},ZU={color:{active:[`#006edd`,`#e0ffff`],inactive:[w_.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},QU=sA.mapVisual,$U=sA.eachVisual,eW=B,tW=R,nW=Os,rW=Ss,iW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&SU(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=fe(e,this),this.controllerVisuals=xU(this.option.controller,t,e),this.targetVisuals=xU(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return tW(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Oc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return z(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){R(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(V(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(me(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=nW([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=le(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};F(r,n),F(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){eW(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},tW(r,function(e,t){if(sA.isValidType(t)){var n=XU.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;tW(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&P(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&P(n)||(a?s[0]:[s[0],s[0]])),c.symbol=QU(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;$U(l,function(e){e>u&&(u=e)}),c.symbolSize=QU(l,function(e){return rW(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:w_.color.transparent,borderColor:w_.color.borderTint,contentColor:w_.color.theme[0],inactiveColor:w_.color.disabled,borderWidth:0,padding:w_.size.m,textGap:10,precision:0,textStyle:{color:w_.color.secondary}},t}($g),aW=[20,140],oW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=aW[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=aW[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Os((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=sW(this,`outOfRange`,this.getExtent()),n=sW(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Lu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);pW([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=fW(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=ff(n.handleLabelPoints[l],df(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=fW(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=ff(c.indicatorLabelPoint,df(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||xW(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=xc(u,d);this._dispatchHighDown(`downplay`,dW(f[0],n)),this._dispatchHighDown(`highlight`,dW(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(vE(e.target,function(e){var n=Xc(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function EW(e,t,n,r){for(var i=t.targetVisuals[r],a=sA.prepareVisualTypes(i),o={color:gE(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(CW,wW),R(TW,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(OW))}function MW(e){e.registerComponentModel(oW),e.registerComponentView(vW),jW(e)}var NW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],PW[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=z(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=sA.listVisualTypes(),i=this.isCategory();R(t.pieces,function(e){R(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),R(n,function(e,n){var r=!1;R(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&R(this.stateList,function(e){(t[e]||(t[e]={}))[n]=XU.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,R(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;R(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=sA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){sA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return R(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=hh(iW.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(iW),PW={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function FW(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var IW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Se(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),R(o.viewPieceList,function(o){var s=o.piece,u=new Lu;u.onclick=fe(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Jo({style:qf(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:Ce(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Hg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:dW(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return uW(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Lu,o=this.visualMapModel.textStyleModel;a.add(new Jo({style:qf(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=z(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=mv(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,R(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(cW);function LW(e){e.registerComponentModel(NW),e.registerComponentView(IW),jW(e)}function RW(e){ZO(MW),ZO(LW)}var zW={label:{enabled:!0},decal:{show:!1}},BW=Cc(),VW=Cc(),HW=Yc(UW);function UW(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=VW(e).scope||(VW(e).scope={}),i=P(zW);F(i.label,e.getLocaleModel().get(`aria`),!1),F(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Ie();e.eachSeries(function(e){e.isColorBySeries()||(BW(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(me(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=i_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=BW(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=i_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?I(I({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=L(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=YW:-c>=YW),f=c>0?c%YW:c%YW+YW,p=!1;p=d?!0:!ai(u)&&f>=JW==!!l;var m=e+n*qW(a),h=t+r*KW(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*XW);if(d){var _=1/this._p,v=(l?1:-1)*(YW-_);this._add(`A`,n,r,g,1,+l,e+n*qW(a+v),t+r*KW(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*qW(o),b=t+r*KW(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function pG(e){return``}function mG(e,t){t||={};var n=t.newline?` -`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return fG(i,a)+(i===`style`?o||``:kh(o))+(t?``+n+z(t,function(e){return r(e)}).join(n)+n:``)+pG(i)}return r(e)}function hG(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=z(ue(e),function(t){return t+i+z(ue(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(ue(t),function(e){return`@keyframes `+e+i+z(ue(t[e]),function(n){return n+i+z(ue(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function gG(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _G(e,t,n,r){return dG(`svg`,`root`,{width:e,height:t,xmlns:aG,"xmlns:xlink":oG,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var vG=0;function yG(){return vG++}var bG={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},xG=`transform-origin`;function SG(e,t,n){var r=I({},e.shape);I(r,t),e.buildPath(n,r);var i=new ZW;return i.reset(bi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function CG(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[xG]=n+`px `+r+`px`)}var wG={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function TG(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function EG(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=gG(n.zrId);t.animation=!0,OG(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=ue(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=TG(i,n);return a.replace(o,s)}}function DG(e){return V(e)?bG[e]?`cubic-bezier(`+bG[e]+`)`:Ar(e)?e:``:``}function OG(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Sd){var s=EG(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return TG(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+yG();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function kG(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};AG(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ti(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),AG(r,t,n,!0)}}}function AG(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+yG(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var jG=Math.round;function MG(e){return e&&V(e.src)}function NG(e){return e&&me(e.toDataURL)}function PG(e,t,n,r){iG(function(i,a){var o=i===`fill`||i===`stroke`;o&&vi(a)?UG(t,e,i,r):o&&hi(a)?WG(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Jee(n,e,r)}function FG(e,t){var n=Lw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[lG+`silent`]=`true`))}function IG(e){return ai(e[0]-1)&&ai(e[1])&&ai(e[2])&&ai(e[3]-1)}function LG(e){return ai(e[4])&&ai(e[5])}function RG(e,t,n){if(t&&!(LG(t)&&IG(t))){var r=n?10:1e4;e.transform=IG(t)?`translate(`+jG(t[4]*r)/r+` `+jG(t[5]*r)/r+`)`:ci(t)}}function zG(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;De(f,g),De(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=pt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=dG(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=P(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=xi(i);x&&(o.patternTransform=x);var S=dG(`pattern`,``,o,[d]),C=mG(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=dG(`pattern`,T,o,[d])),t[n]=yi(T)}}function Yee(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=dG(`clipPath`,a,o,[VG(e,n)])}t[`clip-path`]=yi(a)}function GG(e){return document.createTextNode(e)}function KG(e,t,n){e.insertBefore(t,n)}function qG(e,t){e.removeChild(t)}function JG(e,t){e.appendChild(t)}function YG(e){return e.parentNode}function XG(e){return e.nextSibling}function ZG(e,t){e.textContent=t}var QG=58,Xee=120,Zee=dG(``,``);function $G(e){return e===void 0}function eK(e){return e!==void 0}function Qee(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function tK(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function nK(e){var t,n=e.children,r=e.tag;if(eK(r)){var i=e.elm=uG(r);if(aK(Zee,e),B(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,rK(e,m,n,i,c)):iK(e,t,r,a))}function sK(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(aK(e,t),$G(t.text)?eK(r)&&eK(i)?r!==i&&oK(n,r,i):eK(i)?(eK(e.text)&&ZG(n,``),rK(n,null,i,0,i.length-1)):eK(r)?iK(n,r,0,r.length-1):eK(e.text)&&ZG(n,``):e.text!==t.text&&(eK(r)&&iK(n,r,0,r.length-1),ZG(n,t.text)))}function cK(e,t){if(tK(e,t))sK(e,t);else{var n=e.elm,r=YG(n);nK(t),r!==null&&(KG(r,t.elm,XG(n)),iK(r,[e],0,0))}return t}var lK=0,uK=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=dK(`configLayer`),this.storage=t,this._opts=n=I({},n),this.root=e,this._id=`zr`+lK++,this._oldVNode=_G(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=uG(`svg`);aK(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,cK(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return HG(e,gG(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=gG(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=fK(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=dG(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(ue(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(dG(`defs`,`defs`,{},c)),e.animation){var l=hG(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=dG(`style`,`stl`,{},[],l);a.push(u)}}return _G(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},mG(this.renderToVNode({animation:Ce(e.cssAnimation,!0),emphasis:Ce(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ce(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=jO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function hK(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function gK(e){return e&&Object.assign(SK,e),SK}var _K,vK,yK,bK,xK,SK,CK=o((()=>{vK=Object.freeze({status:`aborted`}),yK=Symbol(`zod_brand`),bK=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},xK=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(_K=globalThis).__zod_globalConfig??(_K.__zod_globalConfig={}),SK=globalThis.__zod_globalConfig})),wK=c({BIGINT_FORMAT_RANGES:()=>jq,Class:()=>Mq,NUMBER_FORMAT_RANGES:()=>Aq,aborted:()=>cq,allowsEval:()=>Eq,assert:()=>kK,assertEqual:()=>TK,assertIs:()=>DK,assertNever:()=>OK,assertNotEqual:()=>EK,assignProp:()=>RK,base64ToUint8Array:()=>vq,base64urlToUint8Array:()=>bq,cached:()=>MK,captureStackTrace:()=>Tq,cleanEnum:()=>_q,cleanRegex:()=>PK,clone:()=>ZK,cloneDef:()=>BK,createTransparentProxy:()=>QK,defineLazy:()=>IK,esc:()=>WK,escapeRegex:()=>XK,explicitlyAborted:()=>lq,extend:()=>rq,finalizeIssue:()=>fq,floatSafeRemainder:()=>FK,getElementAtPath:()=>VK,getEnumValues:()=>AK,getLengthableOrigin:()=>mq,getParsedType:()=>Dq,getSizableOrigin:()=>pq,hexToUint8Array:()=>Sq,isObject:()=>KK,isPlainObject:()=>qK,issue:()=>gq,joinValues:()=>J,jsonStringifyReplacer:()=>jK,merge:()=>aq,mergeDefs:()=>zK,normalizeParams:()=>Y,nullish:()=>NK,numKeys:()=>YK,objectClone:()=>LK,omit:()=>nq,optionalKeys:()=>eq,parsedType:()=>hq,partial:()=>oq,pick:()=>tq,prefixIssues:()=>uq,primitiveTypes:()=>kq,promiseAllObject:()=>HK,propertyKeyTypes:()=>Oq,randomString:()=>UK,required:()=>sq,safeExtend:()=>iq,shallowClone:()=>JK,slugify:()=>GK,stringifyPrimitive:()=>$K,uint8ArrayToBase64:()=>yq,uint8ArrayToBase64url:()=>xq,uint8ArrayToHex:()=>Cq,unwrapMessage:()=>dq});function TK(e){return e}function EK(e){return e}function DK(e){}function OK(e){throw Error(`Unexpected value in exhaustive check`)}function kK(e){}function AK(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>$K(e)).join(t)}function jK(e,t){return typeof t==`bigint`?t.toString():t}function MK(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function NK(e){return e==null}function PK(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function FK(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function HK(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function QK(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function $K(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function eq(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function tq(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ZK(e,zK(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return RK(this,`shape`,e),e},checks:[]}))}function nq(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ZK(e,zK(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return RK(this,`shape`,r),r},checks:[]}))}function rq(e,t){if(!qK(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ZK(e,zK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return RK(this,`shape`,n),n}}))}function iq(e,t){if(!qK(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ZK(e,zK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return RK(this,`shape`,n),n}}))}function aq(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return ZK(e,zK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return RK(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function oq(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ZK(t,zK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return RK(this,`shape`,i),i},checks:[]}))}function sq(e,t,n){return ZK(t,zK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return RK(this,`shape`,i),i}}))}function cq(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function dq(e){return typeof e==`string`?e:e?.message}function fq(e,t,n){let r=e.message?e.message:dq(e.inst?._zod.def?.error?.(e))??dq(t?.error?.(e))??dq(n.customError?.(e))??dq(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function pq(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function mq(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function hq(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function gq(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function _q(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function vq(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq=o((()=>{CK(),wq=Symbol(`evaluating`),Tq=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Eq=MK(()=>{if(SK.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Dq=e=>{let t=typeof e;switch(t){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: ${t}`)}},Oq=new Set([`string`,`number`,`symbol`]),kq=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Aq={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},jq={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Mq=class{constructor(...e){}}}));function Pq(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Fq(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function Rq(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${Lq(e.path)}`);return t.join(` -`)}var zq,Bq,Vq,Hq=o((()=>{CK(),Nq(),zq=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,jK,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Bq=q(`$ZodError`,zq),Vq=q(`$ZodError`,zq,{Parent:Error})})),Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ=o((()=>{CK(),Hq(),Nq(),Uq=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new bK;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>fq(e,a,gK())));throw Tq(t,i?.callee),t}return o.value},Wq=Uq(Vq),Gq=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>fq(e,a,gK())));throw Tq(t,i?.callee),t}return o.value},Kq=Gq(Vq),qq=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new bK;return a.issues.length?{success:!1,error:new(e??Bq)(a.issues.map(e=>fq(e,i,gK())))}:{success:!0,data:a.value}},Jq=qq(Vq),Yq=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>fq(e,i,gK())))}:{success:!0,data:a.value}},Xq=Yq(Vq),Zq=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Uq(e)(t,n,i)},Qq=Zq(Vq),$q=e=>(t,n,r)=>Uq(e)(t,n,r),eJ=$q(Vq),tJ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Gq(e)(t,n,i)},nJ=tJ(Vq),rJ=e=>async(t,n,r)=>Gq(e)(t,n,r),iJ=rJ(Vq),aJ=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return qq(e)(t,n,i)},oJ=aJ(Vq),sJ=e=>(t,n,r)=>qq(e)(t,n,r),cJ=sJ(Vq),lJ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Yq(e)(t,n,i)},uJ=lJ(Vq),dJ=e=>async(t,n,r)=>Yq(e)(t,n,r),fJ=dJ(Vq)})),mJ=c({base64:()=>KJ,base64url:()=>qJ,bigint:()=>tY,boolean:()=>iY,browserEmail:()=>zJ,cidrv4:()=>WJ,cidrv6:()=>GJ,cuid:()=>xJ,cuid2:()=>SJ,date:()=>$J,datetime:()=>vJ,domain:()=>YJ,duration:()=>DJ,e164:()=>ZJ,email:()=>PJ,emoji:()=>hJ,extendedDuration:()=>OJ,guid:()=>kJ,hex:()=>lY,hostname:()=>JJ,html5Email:()=>FJ,httpProtocol:()=>XJ,idnEmail:()=>RJ,integer:()=>nY,ipv4:()=>VJ,ipv6:()=>HJ,ksuid:()=>TJ,lowercase:()=>sY,mac:()=>UJ,md5_base64:()=>dY,md5_base64url:()=>fY,md5_hex:()=>uY,nanoid:()=>EJ,null:()=>aY,number:()=>rY,rfc5322Email:()=>IJ,sha1_base64:()=>mY,sha1_base64url:()=>hY,sha1_hex:()=>pY,sha256_base64:()=>_Y,sha256_base64url:()=>vY,sha256_hex:()=>gY,sha384_base64:()=>bY,sha384_base64url:()=>xY,sha384_hex:()=>yY,sha512_base64:()=>CY,sha512_base64url:()=>wY,sha512_hex:()=>SY,string:()=>eY,time:()=>_J,ulid:()=>CJ,undefined:()=>oY,unicodeEmail:()=>LJ,uppercase:()=>cY,uuid:()=>AJ,uuid4:()=>jJ,uuid6:()=>MJ,uuid7:()=>NJ,xid:()=>wJ});function hJ(){return new RegExp(BJ,`u`)}function gJ(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _J(e){return RegExp(`^${gJ(e)}$`)}function vJ(e){let t=gJ({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${QJ}T(?:${r})$`)}function yJ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function bJ(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY=o((()=>{Nq(),xJ=/^[cC][0-9a-z]{6,}$/,SJ=/^[0-9a-z]+$/,CJ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wJ=/^[0-9a-vA-V]{20}$/,TJ=/^[A-Za-z0-9]{27}$/,EJ=/^[a-zA-Z0-9_-]{21}$/,DJ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,OJ=/^[-+]?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)?)??$/,kJ=/^([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})$/,AJ=e=>e?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)$/,jJ=AJ(4),MJ=AJ(6),NJ=AJ(7),PJ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,FJ=/^[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])?)*$/,IJ=/^(([^<>()\[\]\\.,;:\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,}))$/,LJ=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,RJ=LJ,zJ=/^[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])?)*$/,BJ=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,VJ=/^(?:(?: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])$/,HJ=/^(([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}|:))$/,UJ=e=>{let t=XK(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},WJ=/^((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])$/,GJ=/^(([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])$/,KJ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qJ=/^[A-Za-z0-9_-]*$/,JJ=/^(?=.{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])?)*\.?$/,YJ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,XJ=/^https?$/,ZJ=/^\+[1-9]\d{6,14}$/,QJ=`(?:(?:\\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])))`,$J=RegExp(`^${QJ}$`),eY=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},tY=/^-?\d+n?$/,nY=/^-?\d+$/,rY=/^-?\d+(?:\.\d+)?$/,iY=/^(?:true|false)$/i,aY=/^null$/i,oY=/^undefined$/i,sY=/^[^A-Z]*$/,cY=/^[^a-z]*$/,lY=/^[0-9a-fA-F]*$/,uY=/^[0-9a-fA-F]{32}$/,dY=yJ(22,`==`),fY=bJ(22),pY=/^[0-9a-fA-F]{40}$/,mY=yJ(27,`=`),hY=bJ(27),gY=/^[0-9a-fA-F]{64}$/,_Y=yJ(43,`=`),vY=bJ(43),yY=/^[0-9a-fA-F]{96}$/,bY=yJ(64,``),xY=bJ(64),SY=/^[0-9a-fA-F]{128}$/,CY=yJ(86,`==`),wY=bJ(86)}));function EY(e,t,n){e.issues.length&&t.issues.push(...uq(n,e.issues))}var DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY=o((()=>{CK(),TY(),Nq(),DY=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),OY={number:`number`,bigint:`bigint`,object:`date`},kY=q(`$ZodCheckLessThan`,(e,t)=>{DY.init(e,t);let n=OY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{DY.init(e,t);let n=OY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jY=q(`$ZodCheckMultipleOf`,(e,t)=>{DY.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):FK(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),MY=q(`$ZodCheckNumberFormat`,(e,t)=>{DY.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Aq[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=nY)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.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:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),NY=q(`$ZodCheckBigIntFormat`,(e,t)=>{DY.init(e,t);let[n,r]=jq[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),PY=q(`$ZodCheckMaxSize`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:pq(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),FY=q(`$ZodCheckMinSize`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:pq(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),IY=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:pq(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),LY=q(`$ZodCheckMaxLength`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=mq(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),RY=q(`$ZodCheckMinLength`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=mq(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),zY=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=mq(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),BY=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;DY.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),VY=q(`$ZodCheckRegex`,(e,t)=>{BY.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),HY=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=sY,BY.init(e,t)}),UY=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=cY,BY.init(e,t)}),WY=q(`$ZodCheckIncludes`,(e,t)=>{DY.init(e,t);let n=XK(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),GY=q(`$ZodCheckStartsWith`,(e,t)=>{DY.init(e,t);let n=RegExp(`^${XK(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),KY=q(`$ZodCheckEndsWith`,(e,t)=>{DY.init(e,t);let n=RegExp(`.*${XK(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),qY=q(`$ZodCheckProperty`,(e,t)=>{DY.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>EY(n,e,t.property));EY(n,e,t.property)}}),JY=q(`$ZodCheckMimeType`,(e,t)=>{DY.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),YY=q(`$ZodCheckOverwrite`,(e,t)=>{DY.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),ZY,QY=o((()=>{ZY=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Rt(e,``+r);break;case`className`:St(e,`class`,r);break;case`tabIndex`:St(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:St(e,n,r);break;case`style`:Vt(e,r,o);break;case`data`:if(t!==`object`){St(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Gt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Gt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Kt);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Gt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),xt(e,`popover`,r);break;case`xlinkActuate`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:xt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=dt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);ft(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=ae.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+jt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),ft(t),e.head.appendChild(t))}function Hf(e){return`[src="`+jt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Hd(r,`style`,a),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Bf(n),(a=Sf.get(a))&&Kf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(Uf(o)))?(t.instance=a,ft(a),a):(r=n,(a=Sf.get(o))&&(r=f({},n),qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=np.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=np.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&ip(e,e.stylesheets),0ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rp=null;function ip(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rp=new Map,t.forEach(ap,e),rp=null,np.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=rp.get(e);if(n)var r=n.get(null);else{n=new Map,rp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=EV()}))(),OV=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],kV=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],AV=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],jV=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],MV=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],NV=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],PV={dark:{text:`#bfbdb6`,muted:`#8b8e99`,grid:`#1d2433`,surface:`#131721`,border:`#565b69`},light:{text:`#4a5058`,muted:`#6b7280`,grid:`#eceef0`,surface:`#fcfcfc`,border:`#a4abb4`}},FV={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},IV={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:OV,brand:kV,ok:AV,warn:jV,bad:MV,info:NV},defaultRadius:`md`,fontFamily:FV.body,fontFamilyMonospace:FV.display,headings:{fontFamily:FV.display,fontWeight:`500`},cursorType:`pointer`},LV=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),RV=WM(IV);function zV({dark:e,children:t}){return(0,K.jsx)(HM,{theme:RV,cssVariablesResolver:LV,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)(ZL,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function BV({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(WR,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(GN,{miw:0,children:[(0,K.jsx)(kz,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(lV,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(kz,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(Vz,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(_V,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function VV({error:e,loading:t}){return e?(0,K.jsx)(wz,{color:`bad`,m:`md`,children:e}):t?(0,K.jsxs)(Uz,{mih:160,p:`xl`,children:[(0,K.jsx)(ER,{size:`sm`}),(0,K.jsx)(kz,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function HV({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(Uz,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(WR,{wrap:`nowrap`,children:[(0,K.jsx)(nV,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(GN,{children:[(0,K.jsx)(kz,{fw:700,size:`sm`,children:t}),(0,K.jsx)(kz,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function UV({left:e,right:t}){return(0,K.jsxs)(WR,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(kz,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(kz,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function WV(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function GV({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(WR,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(kz,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(hB,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function KV(e){return PV[e?`dark`:`light`]}function qV(e){let t=e?5:7;return{ok:AV[t],warn:jV[t],bad:MV[t],info:NV[t]}}var JV=Cc(),YV=P,XV=fe,ZV=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Lu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=pe(QV,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}nH(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&qb(r).w>o)return!0;if(a){var s=rA(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=JV(e).pointerEl=new qd[i.type](YV(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=JV(e).labelEl=new Jo(YV(t.label));e.add(i),eH(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=JV(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=JV(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),eH(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=yf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){VC(e.event)},onmousedown:XV(this._onHandleDragMove,this,0,0),drift:XV(this._onHandleDragMove,this),ondragend:XV(this._onHandleDragEnd,this)}),n.add(r)),nH(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,KS(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){QV(this._axisPointerModel,!t&&this._moveAnimation,this._handle,tH(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(tH(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(tH(r)),JV(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),qS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function QV(e,t,n,r){$V(JV(n).lastProp,r)||(JV(n).lastProp=r,t?Bd(n,r,e):(n.stopAnimation(),n.attr(r)))}function $V(e,t){if(H(e)&&H(t)){var n=!0;return R(t,function(t,r){n&&=$V(e[r],t)}),!!n}return e===t}function eH(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function tH(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function nH(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function rH(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function iH(e,t,n,r,i){var a=oH(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Mg(o.get(`padding`)||0),c=o.getFont(),l=vn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),aH(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:qf(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function aH(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function oH(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:By(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),V(o)?a=o.replace(`{value}`,a):me(o)&&(a=o(s))}return a}function sH(e,t,n){var r=gt();return xt(r,r,n.rotation),bt(r,r,n.position),ff([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function cH(e,t,n,r,i,a){var o=Mx.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),iH(t,r,i,a,{position:sH(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function lH(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function uH(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function dH(e,t,n){return qb(e,{fromStat:{sers:z(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function fH(e,t,n){return[fs(ds(t[0],t[1]),e-n/2),ds(e+n/2,fs(t[0],t[1]))]}var pH=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=mH(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=rH(r),f=hH[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}cH(t,e,$x(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=$x(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=sH(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=mH(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ds(o[1],l[c]),l[c]=fs(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(ZV);function mH(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var hH={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:lH([t,r[0]],[t,r[1]],gH(e))}},shadow:function(e,t,n,r,i,a){var o=dH(e,i,a),s=r[1]-r[0],c=fH(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:uH([l,r[0]],[u-l,s],gH(e))}}};function gH(e){return e.dim===`x`?0:1}var _H=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:k_.color.border,width:1,type:`dashed`},shadowStyle:{color:k_.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:k_.color.neutral00,padding:[5,7,5,7],backgroundColor:k_.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:k_.color.accent40,throttle:40}},t}(e_),vH=Cc(),yH=R;function bH(e,t,n){if(!Ue.node){var r=t.getZr();vH(r).records||(vH(r).records={}),xH(r,t);var i=vH(r).records[e]||(vH(r).records[e]={});i.handler=n}}function xH(e,t){if(vH(e).initialized)return;vH(e).initialized=!0,n(`click`,pe(wH,`click`)),n(`mousemove`,pe(wH,`mousemove`)),n(`mousewheel`,pe(wH,`mousewheel`)),n(`globalout`,CH);function n(n,r){e.on(n,function(n){var i=TH(t);yH(vH(e).records,function(e){e&&r(e,n,i.dispatchAction)}),SH(i.pendings,t)})}}function SH(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function CH(e,t,n){e.handler(`leave`,null,n)}function wH(e,t,n,r){t.handler(e,n,r)}function TH(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function EH(e,t){if(!Ue.node){var n=t.getZr();(vH(n).records||{})[e]&&(vH(n).records[e]=null)}}var DH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;bH(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){EH(`axisPointer`,t)},t.prototype.dispose=function(e,t){EH(`axisPointer`,t)},t.type=`axisPointer`,t}(KT);function OH(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Sc(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(z(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var kH=Cc();function AH(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||fe(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){BH(i)&&(i=OH({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=BH(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||BH(i),f={},p={},m={list:[],map:{}},h={showPointer:pe(NH,p),showTooltip:pe(PH,m)};R(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);R(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=RH(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&jH(e,o,h,!1,f)}})});var g={};return R(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&R(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,zH(t),zH(e)))),g[e.key]=a}})}),R(g,function(e,t){jH(u[t],e,h,!0,f)}),FH(p,u,f),IH(m,i,e,o),LH(u,o,n),f}}function jH(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=MH(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function MH(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(qs(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),R(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function NH(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function PH(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=oA(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function FH(e,t,n){var r=n.axesInfo=[];R(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function IH(e,t,n,r){if(BH(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function LH(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=kH(r)[i]||{},o=kH(r)[i]={};R(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&R(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}R(a,function(e,t){!o[t]&&c.push(l(e))}),R(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function RH(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function zH(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function BH(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function VH(e){cA.registerAxisPointerClass(`CartesianAxisPointer`,pH),e.registerComponentModel(_H),e.registerComponentView(DH),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Xk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},AH)}function HH(e){pk(yA),pk(VH)}function UH(e,t){var n=Mg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Uo({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var WH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:k_.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:k_.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:k_.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:k_.color.tertiary,fontSize:14}},t}(e_);function GH(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function KH(e){if(Ue.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function nU(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Ue.transformSupported?``+QH+i:`,left`+i+`,top`+i)),ZH+`:`+a}function rU(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ue.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ue.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+QH+`:`+o+`;`:[[`top`,0],[`left`,0],[qH,o]]}function iU(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=Ce(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),R([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function aU(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=Q_(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(nU(a,n,r)),o&&i.push(`background-color:`+o),R([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=jg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(iU(d)),f!=null&&i.push(`padding:`+Mg(f).join(`px `)+`px`),i.join(`;`)+`;`}function oU(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&wh(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var sU=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(V(i)?document.querySelector(i):ye(i)?i:me(i)&&i(e.getDom()));oU(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;LC(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=XH(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=$H+aU(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+rU(i[0],i[1],!0)+(`border-color:`+Rg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(V(i)&&n.get(`trigger`)===`item`&&!GH(n)&&(o=tU(n,r,i)),V(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||Ue.node||!n.getDom())){var i=hU(r,n);this._ticket=``;var a=r.dataByCoordSys,o=bU(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=fU;c.x=r.x,c.y=r.y,c.update(),Xc(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=OH(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(hU(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&mU([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Xc(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;jE(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Xc(e).dataIndex==null?Xc(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=fe(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=mU([t.tooltipOption],r),o=this._renderMode,s=[],c=R_(`section`,{blocks:[],noHeader:!0}),l=[],u=new $_;R(e,function(e){R(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=oH(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=R_(`section`,{header:f,noHeader:!Oe(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),R(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=By(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Rg(m.color),o);var h=d_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=mU([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=W_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` + +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Xc(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=mU([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new $_;h.marker=g.makeTooltipMarker(`item`,Rg(h.color),d);var _=d_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?W_(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Xc(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(V(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=Mh(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=mU(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new $_;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(V(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=fg(m.axisValue,d,p)),d=Ig(d,n,!0)}else if(me(u)){var g=fe(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),me(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=Cs(t[0],s),r=Cs(t[1],c);else if(H(t)){var p=t;p.width=l[0],p.height=l[1];var m=Gg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(V(t)&&o){var h=vU(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=gU(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=yU(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=yU(d)?l[1]/2:d===`bottom`?l[1]:0),GH(e)){var h=_U(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&R(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&R(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&R(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&R(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){Ue.node||!t.getDom()||(qS(this,`_updatePosition`),this._tooltipContent.dispose(),EH(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(KT);function mU(e,t,n){var r=t.ecModel,i;n?(i=new hp(n,r,r),i=new hp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof hp&&(o=o.get(`tooltip`,!0)),V(o)&&(o={formatter:o}),o&&(i=new hp(o,i,r)))}return i}function hU(e,t){return e.dispatchAction||fe(t.dispatchAction,t)}function gU(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function _U(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function vU(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function yU(e){return e===`center`||e===`middle`}function bU(e,t,n){var r=Ec(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Oc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Xc(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function xU(e){pk(VH),e.registerComponentModel(WH),e.registerComponentView(pU),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Be),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Be)}var SU=R;function CU(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function wU(e,t,n){var r={};return SU(t,function(t){var a=r[t]=i();SU(e[t],function(e,r){if(CA.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new CA(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new CA(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function Bee(e,t,n){var r;R(n,function(e){t.hasOwnProperty(e)&&CU(t[e])&&(r=!0)}),r&&R(n,function(n){t.hasOwnProperty(n)&&CU(t[n])?e[n]=P(t[n]):delete e[n]})}function TU(e,t,n,r){var i={};return R(e,function(e){i[e]=CA.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return OE(a,l,e)}function c(e,t){AE(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var EU=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},DU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&R(t,function(e,r){V(e)&&(e={type:e}),t[r]=F(e,EU(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:k_.size.m,align:`auto`,backgroundColor:k_.color.transparent,borderColor:k_.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:k_.color.disabled,inactiveBorderColor:k_.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:k_.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:k_.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:k_.color.tertiary,borderWidth:1,borderColor:k_.color.border},emphasis:{selectorLabel:{show:!0,color:k_.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(e_),OU=pe,kU=R,AU=Lu,jU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new AU),this.group.add(this._selectorGroup=new AU),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=qg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Gg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Gg(L({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UH(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Ie(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),kU(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new AU;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,OU(PU,f,null,r,d)).on(`mouseover`,OU(FU,m.name,null,r,d)).on(`mouseout`,OU(IU,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Xc(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Gr(h.fill);_&&_[3]===0&&(_[3]=.2,h=I(I({},h),{fill:Qr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,OU(PU,null,f,r,d)).on(`mouseover`,OU(FU,null,f,r,d)).on(`mouseout`,OU(IU,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Xc(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Xc(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();kU(e,function(e){var r=e.type,i=new Jo({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Gf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),nu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=MU(c,r,o,s,d,m,u),y=new AU,b=r.getModel(`textStyle`);if(me(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(NU({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;V(w)&&w?T=w.replace(`{name}`,t??``):me(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Jo({style:qf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Uo({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Df({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),nu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Ug(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Ug(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(KT);function MU(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),kU(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:DD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function NU(e){var t=e.icon||`roundRect`,n=yv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=k_.color.neutral00,n.style.lineWidth=2),n}function PU(e,t,n,r){IU(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),FU(e,t,n,r)}function FU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function IU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function LU(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),RU(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),RU(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function RU(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(r!==` +`&&r!==``){var i=e.isSelected(r);n[r]=ze(n,r)?n[r]&&i:i}}),n}function zU(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,pe(LU,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,pe(LU,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,pe(LU,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,pe(LU,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,pe(LU,`unSelect`))}var BU=Yc(VU);function VU(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=Ce(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Uo({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Bd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,V(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=KU[i],o=qU[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(jU);function YU(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function XU(e){pk(HU),e.registerComponentModel(UU),e.registerComponentView(JU),YU(e)}function ZU(e){pk(HU),pk(XU)}var QU={get:function(e,t,n){var r=P(($U[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},$U={color:{active:[`#006edd`,`#e0ffff`],inactive:[k_.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},eW=CA.mapVisual,tW=CA.eachVisual,nW=B,rW=R,iW=Os,aW=Ss,oW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Bee(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=fe(e,this),this.controllerVisuals=wU(this.option.controller,t,e),this.targetVisuals=wU(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return rW(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Oc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return z(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){R(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(V(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(me(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=iW([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=le(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};F(r,n),F(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){nW(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},rW(r,function(e,t){if(CA.isValidType(t)){var n=QU.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;rW(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&P(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&P(n)||(a?s[0]:[s[0],s[0]])),c.symbol=eW(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;tW(l,function(e){e>u&&(u=e)}),c.symbolSize=eW(l,function(e){return aW(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:k_.color.transparent,borderColor:k_.color.borderTint,contentColor:k_.color.theme[0],inactiveColor:k_.color.disabled,borderWidth:0,padding:k_.size.m,textGap:10,precision:0,textStyle:{color:k_.color.secondary}},t}(e_),sW=[20,140],cW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=sW[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=sW[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Os((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=lW(this,`outOfRange`,this.getExtent()),n=lW(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Lu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);hW([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=mW(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=ff(n.handleLabelPoints[l],df(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=mW(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=ff(c.indicatorLabelPoint,df(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||CW(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=xc(u,d);this._dispatchHighDown(`downplay`,pW(f[0],n)),this._dispatchHighDown(`highlight`,pW(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(jE(e.target,function(e){var n=Xc(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function OW(e,t,n,r){for(var i=t.targetVisuals[r],a=CA.prepareVisualTypes(i),o={color:kE(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(TW,EW),R(DW,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(AW))}function PW(e){e.registerComponentModel(cW),e.registerComponentView(bW),NW(e)}var FW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],IW[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=z(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=CA.listVisualTypes(),i=this.isCategory();R(t.pieces,function(e){R(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),R(n,function(e,n){var r=!1;R(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&R(this.stateList,function(e){(t[e]||(t[e]={}))[n]=QU.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,R(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;R(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=CA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){CA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return R(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=vh(oW.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(oW),IW={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function LW(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var RW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Se(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),R(o.viewPieceList,function(o){var s=o.piece,u=new Lu;u.onclick=fe(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Jo({style:qf(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:Ce(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Ug(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:pW(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return fW(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Lu,o=this.visualMapModel.textStyleModel;a.add(new Jo({style:qf(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=z(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=yv(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,R(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(uW);function zW(e){e.registerComponentModel(FW),e.registerComponentView(RW),NW(e)}function BW(e){pk(PW),pk(zW)}var VW={label:{enabled:!0},decal:{show:!1}},HW=Cc(),UW=Cc(),WW=Yc(GW);function GW(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=UW(e).scope||(UW(e).scope={}),i=P(VW);F(i.label,e.getLocaleModel().get(`aria`),!1),F(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Ie();e.eachSeries(function(e){e.isColorBySeries()||(HW(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(me(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=a_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=HW(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=a_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?I(I({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=L(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=ZW:-c>=ZW),f=c>0?c%ZW:c%ZW+ZW,p=!1;p=d?!0:!ai(u)&&f>=XW==!!l;var m=e+n*YW(a),h=t+r*JW(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*QW);if(d){var _=1/this._p,v=(l?1:-1)*(ZW-_);this._add(`A`,n,r,g,1,+l,e+n*YW(a+v),t+r*JW(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*YW(o),b=t+r*JW(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function hG(e){return``}function gG(e,t){t||={};var n=t.newline?` +`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return mG(i,a)+(i===`style`?o||``:Mh(o))+(t?``+n+z(t,function(e){return r(e)}).join(n)+n:``)+hG(i)}return r(e)}function _G(e,t,n){n||={};var r=n.newline?` +`:``,i=` {`+r,a=r+`}`,o=z(ue(e),function(t){return t+i+z(ue(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(ue(t),function(e){return`@keyframes `+e+i+z(ue(t[e]),function(n){return n+i+z(ue(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function vG(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function yG(e,t,n,r){return pG(`svg`,`root`,{width:e,height:t,xmlns:sG,"xmlns:xlink":cG,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var bG=0;function xG(){return bG++}var SG={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},CG=`transform-origin`;function wG(e,t,n){var r=I({},e.shape);I(r,t),e.buildPath(n,r);var i=new $W;return i.reset(bi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function TG(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[CG]=n+`px `+r+`px`)}var EG={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function DG(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function OG(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=vG(n.zrId);t.animation=!0,AG(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=ue(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=DG(i,n);return a.replace(o,s)}}function kG(e){return V(e)?SG[e]?`cubic-bezier(`+SG[e]+`)`:Ar(e)?e:``:``}function AG(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Sd){var s=OG(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return DG(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+xG();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function jG(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};MG(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ti(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),MG(r,t,n,!0)}}}function MG(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+xG(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var NG=Math.round;function PG(e){return e&&V(e.src)}function FG(e){return e&&me(e.toDataURL)}function IG(e,t,n,r){oG(function(i,a){var o=i===`fill`||i===`stroke`;o&&vi(a)?GG(t,e,i,r):o&&hi(a)?KG(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Kee(n,e,r)}function LG(e,t){var n=qw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[dG+`silent`]=`true`))}function RG(e){return ai(e[0]-1)&&ai(e[1])&&ai(e[2])&&ai(e[3]-1)}function zG(e){return ai(e[4])&&ai(e[5])}function BG(e,t,n){if(t&&!(zG(t)&&RG(t))){var r=n?10:1e4;e.transform=RG(t)?`translate(`+NG(t[4]*r)/r+` `+NG(t[5]*r)/r+`)`:ci(t)}}function VG(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;De(f,g),De(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=pt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=pG(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=P(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=xi(i);x&&(o.patternTransform=x);var S=pG(`pattern`,``,o,[d]),C=gG(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=pG(`pattern`,T,o,[d])),t[n]=yi(T)}}function qee(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=pG(`clipPath`,a,o,[UG(e,n)])}t[`clip-path`]=yi(a)}function qG(e){return document.createTextNode(e)}function JG(e,t,n){e.insertBefore(t,n)}function YG(e,t){e.removeChild(t)}function XG(e,t){e.appendChild(t)}function ZG(e){return e.parentNode}function QG(e){return e.nextSibling}function $G(e,t){e.textContent=t}var eK=58,Jee=120,Yee=pG(``,``);function tK(e){return e===void 0}function nK(e){return e!==void 0}function Xee(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function rK(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function iK(e){var t,n=e.children,r=e.tag;if(nK(r)){var i=e.elm=fG(r);if(sK(Yee,e),B(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,aK(e,m,n,i,c)):oK(e,t,r,a))}function cK(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(sK(e,t),tK(t.text)?nK(r)&&nK(i)?r!==i&&Zee(n,r,i):nK(i)?(nK(e.text)&&$G(n,``),aK(n,null,i,0,i.length-1)):nK(r)?oK(n,r,0,r.length-1):nK(e.text)&&$G(n,``):e.text!==t.text&&(nK(r)&&oK(n,r,0,r.length-1),$G(n,t.text)))}function lK(e,t){if(rK(e,t))cK(e,t);else{var n=e.elm,r=ZG(n);iK(t),r!==null&&(JG(r,t.elm,QG(n)),oK(r,[e],0,0))}return t}var uK=0,dK=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=fK(`configLayer`),this.storage=t,this._opts=n=I({},n),this.root=e,this._id=`zr`+uK++,this._oldVNode=yG(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=fG(`svg`);sK(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,lK(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return WG(e,vG(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=vG(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=pK(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=pG(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(ue(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(pG(`defs`,`defs`,{},c)),e.animation){var l=_G(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=pG(`style`,`stl`,{},[],l);a.push(u)}}return yG(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},gG(this.renderToVNode({animation:Ce(e.cssAnimation,!0),emphasis:Ce(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ce(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=qO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function gK(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function _K(e,t,n=!1){let r=new Date(e);if(Number.isNaN(r.valueOf()))return e;let[i,a]=t.split(`/`),o=new Date(i),s=new Date(a),c=!Number.isNaN(o.valueOf())&&!Number.isNaN(s.valueOf())&&s.valueOf()-o.valueOf()>864e5;return r.toLocaleString([],{...c?{month:`short`,day:`numeric`}:{},hour:`numeric`,minute:`2-digit`,...n?{second:`2-digit`}:{}})}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function vK(e){return e&&Object.assign(wK,e),wK}var yK,bK,xK,SK,CK,wK,TK=o((()=>{bK=Object.freeze({status:`aborted`}),xK=Symbol(`zod_brand`),SK=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},CK=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(yK=globalThis).__zod_globalConfig??(yK.__zod_globalConfig={}),wK=globalThis.__zod_globalConfig})),EK=c({BIGINT_FORMAT_RANGES:()=>Nq,Class:()=>Pq,NUMBER_FORMAT_RANGES:()=>Mq,aborted:()=>uq,allowsEval:()=>Oq,assert:()=>jK,assertEqual:()=>DK,assertIs:()=>kK,assertNever:()=>AK,assertNotEqual:()=>OK,assignProp:()=>BK,base64ToUint8Array:()=>bq,base64urlToUint8Array:()=>Sq,cached:()=>PK,captureStackTrace:()=>Dq,cleanEnum:()=>yq,cleanRegex:()=>IK,clone:()=>$K,cloneDef:()=>HK,createTransparentProxy:()=>eq,defineLazy:()=>RK,esc:()=>KK,escapeRegex:()=>QK,explicitlyAborted:()=>dq,extend:()=>aq,finalizeIssue:()=>mq,floatSafeRemainder:()=>LK,getElementAtPath:()=>UK,getEnumValues:()=>MK,getLengthableOrigin:()=>gq,getParsedType:()=>kq,getSizableOrigin:()=>hq,hexToUint8Array:()=>wq,isObject:()=>JK,isPlainObject:()=>YK,issue:()=>vq,joinValues:()=>J,jsonStringifyReplacer:()=>NK,merge:()=>sq,mergeDefs:()=>VK,normalizeParams:()=>Y,nullish:()=>FK,numKeys:()=>ZK,objectClone:()=>zK,omit:()=>iq,optionalKeys:()=>nq,parsedType:()=>_q,partial:()=>cq,pick:()=>rq,prefixIssues:()=>fq,primitiveTypes:()=>jq,promiseAllObject:()=>WK,propertyKeyTypes:()=>Aq,randomString:()=>GK,required:()=>lq,safeExtend:()=>oq,shallowClone:()=>XK,slugify:()=>qK,stringifyPrimitive:()=>tq,uint8ArrayToBase64:()=>xq,uint8ArrayToBase64url:()=>Cq,uint8ArrayToHex:()=>Tq,unwrapMessage:()=>pq});function DK(e){return e}function OK(e){return e}function kK(e){}function AK(e){throw Error(`Unexpected value in exhaustive check`)}function jK(e){}function MK(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>tq(e)).join(t)}function NK(e,t){return typeof t==`bigint`?t.toString():t}function PK(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function FK(e){return e==null}function IK(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function LK(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function WK(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function eq(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function tq(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function nq(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function rq(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return $K(e,VK(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return BK(this,`shape`,e),e},checks:[]}))}function iq(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return $K(e,VK(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return BK(this,`shape`,r),r},checks:[]}))}function aq(e,t){if(!YK(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return $K(e,VK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return BK(this,`shape`,n),n}}))}function oq(e,t){if(!YK(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return $K(e,VK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return BK(this,`shape`,n),n}}))}function sq(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return $K(e,VK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return BK(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function cq(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return $K(t,VK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return BK(this,`shape`,i),i},checks:[]}))}function lq(e,t,n){return $K(t,VK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return BK(this,`shape`,i),i}}))}function uq(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function pq(e){return typeof e==`string`?e:e?.message}function mq(e,t,n){let r=e.message?e.message:pq(e.inst?._zod.def?.error?.(e))??pq(t?.error?.(e))??pq(n.customError?.(e))??pq(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function hq(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function gq(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function _q(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function vq(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function yq(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function bq(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq=o((()=>{TK(),Eq=Symbol(`evaluating`),Dq=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Oq=PK(()=>{if(wK.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),kq=e=>{let t=typeof e;switch(t){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: ${t}`)}},Aq=new Set([`string`,`number`,`symbol`]),jq=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Mq={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Nq={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Pq=class{constructor(...e){}}}));function Iq(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Lq(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function Bq(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${zq(e.path)}`);return t.join(` +`)}var Vq,Hq,Uq,Wq=o((()=>{TK(),Fq(),Vq=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,NK,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Hq=q(`$ZodError`,Vq),Uq=q(`$ZodError`,Vq,{Parent:Error})})),Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ=o((()=>{TK(),Wq(),Fq(),Gq=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new SK;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>mq(e,a,vK())));throw Dq(t,i?.callee),t}return o.value},Kq=Gq(Uq),qq=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>mq(e,a,vK())));throw Dq(t,i?.callee),t}return o.value},Jq=qq(Uq),Yq=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new SK;return a.issues.length?{success:!1,error:new(e??Hq)(a.issues.map(e=>mq(e,i,vK())))}:{success:!0,data:a.value}},Xq=Yq(Uq),Zq=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>mq(e,i,vK())))}:{success:!0,data:a.value}},Qq=Zq(Uq),$q=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Gq(e)(t,n,i)},eJ=$q(Uq),tJ=e=>(t,n,r)=>Gq(e)(t,n,r),nJ=tJ(Uq),rJ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return qq(e)(t,n,i)},iJ=rJ(Uq),aJ=e=>async(t,n,r)=>qq(e)(t,n,r),oJ=aJ(Uq),sJ=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Yq(e)(t,n,i)},cJ=sJ(Uq),lJ=e=>(t,n,r)=>Yq(e)(t,n,r),uJ=lJ(Uq),dJ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Zq(e)(t,n,i)},fJ=dJ(Uq),pJ=e=>async(t,n,r)=>Zq(e)(t,n,r),mJ=pJ(Uq)})),gJ=c({base64:()=>JJ,base64url:()=>YJ,bigint:()=>rY,boolean:()=>oY,browserEmail:()=>VJ,cidrv4:()=>KJ,cidrv6:()=>qJ,cuid:()=>CJ,cuid2:()=>wJ,date:()=>tY,datetime:()=>bJ,domain:()=>ZJ,duration:()=>kJ,e164:()=>$J,email:()=>IJ,emoji:()=>_J,extendedDuration:()=>AJ,guid:()=>jJ,hex:()=>dY,hostname:()=>XJ,html5Email:()=>LJ,httpProtocol:()=>QJ,idnEmail:()=>BJ,integer:()=>iY,ipv4:()=>UJ,ipv6:()=>WJ,ksuid:()=>DJ,lowercase:()=>lY,mac:()=>GJ,md5_base64:()=>pY,md5_base64url:()=>mY,md5_hex:()=>fY,nanoid:()=>OJ,null:()=>sY,number:()=>aY,rfc5322Email:()=>RJ,sha1_base64:()=>gY,sha1_base64url:()=>_Y,sha1_hex:()=>hY,sha256_base64:()=>yY,sha256_base64url:()=>bY,sha256_hex:()=>vY,sha384_base64:()=>SY,sha384_base64url:()=>CY,sha384_hex:()=>xY,sha512_base64:()=>TY,sha512_base64url:()=>EY,sha512_hex:()=>wY,string:()=>nY,time:()=>yJ,ulid:()=>TJ,undefined:()=>cY,unicodeEmail:()=>zJ,uppercase:()=>uY,uuid:()=>MJ,uuid4:()=>NJ,uuid6:()=>PJ,uuid7:()=>FJ,xid:()=>EJ});function _J(){return new RegExp(HJ,`u`)}function vJ(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function yJ(e){return RegExp(`^${vJ(e)}$`)}function bJ(e){let t=vJ({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${eY}T(?:${r})$`)}function xJ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function SJ(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY,EY,DY=o((()=>{Fq(),CJ=/^[cC][0-9a-z]{6,}$/,wJ=/^[0-9a-z]+$/,TJ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,EJ=/^[0-9a-vA-V]{20}$/,DJ=/^[A-Za-z0-9]{27}$/,OJ=/^[a-zA-Z0-9_-]{21}$/,kJ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,AJ=/^[-+]?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)?)??$/,jJ=/^([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})$/,MJ=e=>e?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)$/,NJ=MJ(4),PJ=MJ(6),FJ=MJ(7),IJ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,LJ=/^[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])?)*$/,RJ=/^(([^<>()\[\]\\.,;:\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,}))$/,zJ=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,BJ=zJ,VJ=/^[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])?)*$/,HJ=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,UJ=/^(?:(?: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])$/,WJ=/^(([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}|:))$/,GJ=e=>{let t=QK(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},KJ=/^((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])$/,qJ=/^(([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])$/,JJ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,YJ=/^[A-Za-z0-9_-]*$/,XJ=/^(?=.{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])?)*\.?$/,ZJ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,QJ=/^https?$/,$J=/^\+[1-9]\d{6,14}$/,eY=`(?:(?:\\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])))`,tY=RegExp(`^${eY}$`),nY=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},rY=/^-?\d+n?$/,iY=/^-?\d+$/,aY=/^-?\d+(?:\.\d+)?$/,oY=/^(?:true|false)$/i,sY=/^null$/i,cY=/^undefined$/i,lY=/^[^A-Z]*$/,uY=/^[^a-z]*$/,dY=/^[0-9a-fA-F]*$/,fY=/^[0-9a-fA-F]{32}$/,pY=xJ(22,`==`),mY=SJ(22),hY=/^[0-9a-fA-F]{40}$/,gY=xJ(27,`=`),_Y=SJ(27),vY=/^[0-9a-fA-F]{64}$/,yY=xJ(43,`=`),bY=SJ(43),xY=/^[0-9a-fA-F]{96}$/,SY=xJ(64,``),CY=SJ(64),wY=/^[0-9a-fA-F]{128}$/,TY=xJ(86,`==`),EY=SJ(86)}));function OY(e,t,n){e.issues.length&&t.issues.push(...fq(n,e.issues))}var kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY=o((()=>{TK(),DY(),Fq(),kY=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),AY={number:`number`,bigint:`bigint`,object:`date`},jY=q(`$ZodCheckLessThan`,(e,t)=>{kY.init(e,t);let n=AY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{kY.init(e,t);let n=AY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),NY=q(`$ZodCheckMultipleOf`,(e,t)=>{kY.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):LK(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),PY=q(`$ZodCheckNumberFormat`,(e,t)=>{kY.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Mq[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=iY)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.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:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),FY=q(`$ZodCheckBigIntFormat`,(e,t)=>{kY.init(e,t);let[n,r]=Nq[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),IY=q(`$ZodCheckMaxSize`,(e,t)=>{var n;kY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!FK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:hq(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),LY=q(`$ZodCheckMinSize`,(e,t)=>{var n;kY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!FK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:hq(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),RY=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;kY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!FK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:hq(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),zY=q(`$ZodCheckMaxLength`,(e,t)=>{var n;kY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!FK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=gq(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),BY=q(`$ZodCheckMinLength`,(e,t)=>{var n;kY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!FK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=gq(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),VY=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;kY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!FK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=gq(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),HY=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;kY.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),UY=q(`$ZodCheckRegex`,(e,t)=>{HY.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),WY=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=lY,HY.init(e,t)}),GY=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=uY,HY.init(e,t)}),KY=q(`$ZodCheckIncludes`,(e,t)=>{kY.init(e,t);let n=QK(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),qY=q(`$ZodCheckStartsWith`,(e,t)=>{kY.init(e,t);let n=RegExp(`^${QK(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),JY=q(`$ZodCheckEndsWith`,(e,t)=>{kY.init(e,t);let n=RegExp(`.*${QK(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),YY=q(`$ZodCheckProperty`,(e,t)=>{kY.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>OY(n,e,t.property));OY(n,e,t.property)}}),XY=q(`$ZodCheckMimeType`,(e,t)=>{kY.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),ZY=q(`$ZodCheckOverwrite`,(e,t)=>{kY.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),$Y,eX=o((()=>{$Y=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}}})),$Y,eX=o((()=>{$Y={major:4,minor:4,patch:3}}));function tX(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function nX(e){if(!qJ.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return tX(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function rX(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function iX(e,t,n){e.issues.length&&t.issues.push(...uq(n,e.issues)),t.value[n]=e.value}function aX(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...uq(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function oX(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=eq(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function sX(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>aX(e,n,i,t,u,d))):aX(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function cX(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!cq(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>fq(e,r,gK())))}),t)}function lX(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>fq(e,r,gK())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function uX(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(qK(e)&&qK(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=uX(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),cq(e))return e;let o=uX(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function fX(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function pX(e,t,n){e.issues.length&&t.issues.push(...uq(n,e.issues)),t.value[n]=e.value}function mX(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...uq(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function hX(e,t,n,r,i,a,o){e.issues.length&&(Oq.has(typeof r)?n.issues.push(...uq(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>fq(e,o,gK()))})),t.issues.length&&(Oq.has(typeof r)?n.issues.push(...uq(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>fq(e,o,gK()))})),n.value.set(e.value,t.value)}function gX(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function _X(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function vX(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function yX(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function bX(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function xX(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>SX(e,r,t.out,n)):SX(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>SX(e,r,t.in,n)):SX(e,r,t.in,n)}}function SX(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function CX(e){return e.value=Object.freeze(e.value),e}function wX(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(gq(e))}}var TX,EX,DX,OX,kX,AX,jX,MX,NX,PX,FX,IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,cZ,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ=o((()=>{XY(),CK(),QY(),pJ(),TY(),Nq(),eX(),TX=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=$Y;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=cq(e),i;for(let a of t){if(a._zod.def.when){if(lq(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new bK;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=cq(e,t))});else{if(e.issues.length===t)continue;r||=cq(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(cq(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new bK;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new bK;return o.then(e=>t(e,r,a))}return t(o,r,a)}}IK(e,`~standard`,()=>({validate:t=>{try{let n=Jq(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Xq(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),EX=q(`$ZodString`,(e,t)=>{TX.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??eY(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),DX=q(`$ZodStringFormat`,(e,t)=>{BY.init(e,t),EX.init(e,t)}),OX=q(`$ZodGUID`,(e,t)=>{t.pattern??=kJ,DX.init(e,t)}),kX=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=AJ(e)}else t.pattern??=AJ();DX.init(e,t)}),AX=q(`$ZodEmail`,(e,t)=>{t.pattern??=PJ,DX.init(e,t)}),jX=q(`$ZodURL`,(e,t)=>{DX.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===XJ.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),MX=q(`$ZodEmoji`,(e,t)=>{t.pattern??=hJ(),DX.init(e,t)}),NX=q(`$ZodNanoID`,(e,t)=>{t.pattern??=EJ,DX.init(e,t)}),PX=q(`$ZodCUID`,(e,t)=>{t.pattern??=xJ,DX.init(e,t)}),FX=q(`$ZodCUID2`,(e,t)=>{t.pattern??=SJ,DX.init(e,t)}),IX=q(`$ZodULID`,(e,t)=>{t.pattern??=CJ,DX.init(e,t)}),LX=q(`$ZodXID`,(e,t)=>{t.pattern??=wJ,DX.init(e,t)}),RX=q(`$ZodKSUID`,(e,t)=>{t.pattern??=TJ,DX.init(e,t)}),zX=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=vJ(t),DX.init(e,t)}),BX=q(`$ZodISODate`,(e,t)=>{t.pattern??=$J,DX.init(e,t)}),VX=q(`$ZodISOTime`,(e,t)=>{t.pattern??=_J(t),DX.init(e,t)}),HX=q(`$ZodISODuration`,(e,t)=>{t.pattern??=DJ,DX.init(e,t)}),UX=q(`$ZodIPv4`,(e,t)=>{t.pattern??=VJ,DX.init(e,t),e._zod.bag.format=`ipv4`}),WX=q(`$ZodIPv6`,(e,t)=>{t.pattern??=HJ,DX.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),GX=q(`$ZodMAC`,(e,t)=>{t.pattern??=UJ(t.delimiter),DX.init(e,t),e._zod.bag.format=`mac`}),KX=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=WJ,DX.init(e,t)}),qX=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=GJ,DX.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),JX=q(`$ZodBase64`,(e,t)=>{t.pattern??=KJ,DX.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{tX(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),YX=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=qJ,DX.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{nX(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),XX=q(`$ZodE164`,(e,t)=>{t.pattern??=ZJ,DX.init(e,t)}),ZX=q(`$ZodJWT`,(e,t)=>{DX.init(e,t),e._zod.check=n=>{rX(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),QX=q(`$ZodCustomStringFormat`,(e,t)=>{DX.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),$X=q(`$ZodNumber`,(e,t)=>{TX.init(e,t),e._zod.pattern=e._zod.bag.pattern??rY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),eZ=q(`$ZodNumberFormat`,(e,t)=>{MY.init(e,t),$X.init(e,t)}),tZ=q(`$ZodBoolean`,(e,t)=>{TX.init(e,t),e._zod.pattern=iY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),nZ=q(`$ZodBigInt`,(e,t)=>{TX.init(e,t),e._zod.pattern=tY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),rZ=q(`$ZodBigIntFormat`,(e,t)=>{NY.init(e,t),nZ.init(e,t)}),iZ=q(`$ZodSymbol`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),aZ=q(`$ZodUndefined`,(e,t)=>{TX.init(e,t),e._zod.pattern=oY,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),oZ=q(`$ZodNull`,(e,t)=>{TX.init(e,t),e._zod.pattern=aY,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),sZ=q(`$ZodAny`,(e,t)=>{TX.init(e,t),e._zod.parse=e=>e}),cZ=q(`$ZodUnknown`,(e,t)=>{TX.init(e,t),e._zod.parse=e=>e}),lZ=q(`$ZodNever`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),uZ=q(`$ZodVoid`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),dZ=q(`$ZodDate`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),fZ=q(`$ZodArray`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eiX(t,n,e))):iX(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),pZ=q(`$ZodObject`,(e,t)=>{if(TX.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=MK(()=>oX(t));IK(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=KK,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>aX(n,t,e,s,r,i))):aX(a,t,e,s,r,i)}return i?sX(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),mZ=q(`$ZodObjectJIT`,(e,t)=>{pZ.init(e,t);let n=e._zod.parse,r=MK(()=>oX(t)),i=e=>{let t=new ZY([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=WK(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=WK(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}}})),tX,nX=o((()=>{tX={major:4,minor:4,patch:3}}));function rX(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function iX(e){if(!YJ.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return rX(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function aX(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function oX(e,t,n){e.issues.length&&t.issues.push(...fq(n,e.issues)),t.value[n]=e.value}function sX(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...fq(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function cX(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=nq(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function lX(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>sX(e,n,i,t,u,d))):sX(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function uX(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!uq(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>mq(e,r,vK())))}),t)}function dX(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>mq(e,r,vK())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function fX(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(YK(e)&&YK(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=fX(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),uq(e))return e;let o=fX(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function mX(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function hX(e,t,n){e.issues.length&&t.issues.push(...fq(n,e.issues)),t.value[n]=e.value}function gX(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...fq(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function _X(e,t,n,r,i,a,o){e.issues.length&&(Aq.has(typeof r)?n.issues.push(...fq(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>mq(e,o,vK()))})),t.issues.length&&(Aq.has(typeof r)?n.issues.push(...fq(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>mq(e,o,vK()))})),n.value.set(e.value,t.value)}function vX(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function yX(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function bX(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function xX(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function SX(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function CX(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>wX(e,r,t.out,n)):wX(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>wX(e,r,t.in,n)):wX(e,r,t.in,n)}}function wX(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function TX(e){return e.value=Object.freeze(e.value),e}function EX(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(vq(e))}}var DX,OX,kX,AX,jX,MX,NX,PX,FX,IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,cZ,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ,KZ,qZ=o((()=>{QY(),TK(),eX(),hJ(),DY(),Fq(),nX(),DX=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tX;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=uq(e),i;for(let a of t){if(a._zod.def.when){if(dq(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new SK;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=uq(e,t))});else{if(e.issues.length===t)continue;r||=uq(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(uq(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new SK;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new SK;return o.then(e=>t(e,r,a))}return t(o,r,a)}}RK(e,`~standard`,()=>({validate:t=>{try{let n=Xq(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Qq(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),OX=q(`$ZodString`,(e,t)=>{DX.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??nY(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),kX=q(`$ZodStringFormat`,(e,t)=>{HY.init(e,t),OX.init(e,t)}),AX=q(`$ZodGUID`,(e,t)=>{t.pattern??=jJ,kX.init(e,t)}),jX=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=MJ(e)}else t.pattern??=MJ();kX.init(e,t)}),MX=q(`$ZodEmail`,(e,t)=>{t.pattern??=IJ,kX.init(e,t)}),NX=q(`$ZodURL`,(e,t)=>{kX.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===QJ.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),PX=q(`$ZodEmoji`,(e,t)=>{t.pattern??=_J(),kX.init(e,t)}),FX=q(`$ZodNanoID`,(e,t)=>{t.pattern??=OJ,kX.init(e,t)}),IX=q(`$ZodCUID`,(e,t)=>{t.pattern??=CJ,kX.init(e,t)}),LX=q(`$ZodCUID2`,(e,t)=>{t.pattern??=wJ,kX.init(e,t)}),RX=q(`$ZodULID`,(e,t)=>{t.pattern??=TJ,kX.init(e,t)}),zX=q(`$ZodXID`,(e,t)=>{t.pattern??=EJ,kX.init(e,t)}),BX=q(`$ZodKSUID`,(e,t)=>{t.pattern??=DJ,kX.init(e,t)}),VX=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=bJ(t),kX.init(e,t)}),HX=q(`$ZodISODate`,(e,t)=>{t.pattern??=tY,kX.init(e,t)}),UX=q(`$ZodISOTime`,(e,t)=>{t.pattern??=yJ(t),kX.init(e,t)}),WX=q(`$ZodISODuration`,(e,t)=>{t.pattern??=kJ,kX.init(e,t)}),GX=q(`$ZodIPv4`,(e,t)=>{t.pattern??=UJ,kX.init(e,t),e._zod.bag.format=`ipv4`}),KX=q(`$ZodIPv6`,(e,t)=>{t.pattern??=WJ,kX.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),qX=q(`$ZodMAC`,(e,t)=>{t.pattern??=GJ(t.delimiter),kX.init(e,t),e._zod.bag.format=`mac`}),JX=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=KJ,kX.init(e,t)}),YX=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=qJ,kX.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),XX=q(`$ZodBase64`,(e,t)=>{t.pattern??=JJ,kX.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{rX(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),ZX=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=YJ,kX.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{iX(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),QX=q(`$ZodE164`,(e,t)=>{t.pattern??=$J,kX.init(e,t)}),$X=q(`$ZodJWT`,(e,t)=>{kX.init(e,t),e._zod.check=n=>{aX(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),eZ=q(`$ZodCustomStringFormat`,(e,t)=>{kX.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),tZ=q(`$ZodNumber`,(e,t)=>{DX.init(e,t),e._zod.pattern=e._zod.bag.pattern??aY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),nZ=q(`$ZodNumberFormat`,(e,t)=>{PY.init(e,t),tZ.init(e,t)}),rZ=q(`$ZodBoolean`,(e,t)=>{DX.init(e,t),e._zod.pattern=oY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),iZ=q(`$ZodBigInt`,(e,t)=>{DX.init(e,t),e._zod.pattern=rY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),aZ=q(`$ZodBigIntFormat`,(e,t)=>{FY.init(e,t),iZ.init(e,t)}),oZ=q(`$ZodSymbol`,(e,t)=>{DX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),sZ=q(`$ZodUndefined`,(e,t)=>{DX.init(e,t),e._zod.pattern=cY,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),cZ=q(`$ZodNull`,(e,t)=>{DX.init(e,t),e._zod.pattern=sY,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),lZ=q(`$ZodAny`,(e,t)=>{DX.init(e,t),e._zod.parse=e=>e}),uZ=q(`$ZodUnknown`,(e,t)=>{DX.init(e,t),e._zod.parse=e=>e}),dZ=q(`$ZodNever`,(e,t)=>{DX.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),fZ=q(`$ZodVoid`,(e,t)=>{DX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),pZ=q(`$ZodDate`,(e,t)=>{DX.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),mZ=q(`$ZodArray`,(e,t)=>{DX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eoX(t,n,e))):oX(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),hZ=q(`$ZodObject`,(e,t)=>{if(DX.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=PK(()=>cX(t));RK(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=JK,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>sX(n,t,e,s,r,i))):sX(a,t,e,s,r,i)}return i?lX(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),gZ=q(`$ZodObjectJIT`,(e,t)=>{hZ.init(e,t);let n=e._zod.parse,r=PK(()=>cX(t)),i=e=>{let t=new $Y([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=KK(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=KK(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -87,15 +87,15 @@ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=KK,s=!SK.jitless,c=s&&Eq.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?sX([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),hZ=q(`$ZodUnion`,(e,t)=>{TX.init(e,t),IK(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),IK(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),IK(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),IK(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>PK(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>cX(t,r,e,i)):cX(o,r,e,i)}}),gZ=q(`$ZodXor`,(e,t)=>{hZ.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>lX(t,r,e,i)):lX(o,r,e,i)}}),_Z=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,hZ.init(e,t);let n=e._zod.parse;IK(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=MK(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!KK(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),vZ=q(`$ZodIntersection`,(e,t)=>{TX.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>dX(e,t,n)):dX(e,i,a)}}),yZ=q(`$ZodTuple`,(e,t)=>{TX.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=fX(n,`optin`),c=fX(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>pX(t,r,e))):pX(a,r,e)}}return o.length?Promise.all(o).then(()=>mX(l,r,n,a,c)):mX(l,r,n,a,c)}}),bZ=q(`$ZodRecord`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!qK(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>fq(e,r,gK())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...uq(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...uq(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&rY.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>fq(e,r,gK())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...uq(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...uq(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),xZ=q(`$ZodMap`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{hX(t,a,n,o,i,e,r)})):hX(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),SZ=q(`$ZodSet`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>gX(e,n))):gX(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),CZ=q(`$ZodEnum`,(e,t)=>{TX.init(e,t);let n=AK(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Oq.has(typeof e)).map(e=>typeof e==`string`?XK(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),wZ=q(`$ZodLiteral`,(e,t)=>{if(TX.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?XK(e):e?XK(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),TZ=q(`$ZodFile`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),EZ=q(`$ZodTransform`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new xK(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new bK;return n.value=i,n.fallback=!0,n}}),DZ=q(`$ZodOptional`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,IK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),IK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${PK(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>_X(e,r)):_X(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),OZ=q(`$ZodExactOptional`,(e,t)=>{DZ.init(e,t),IK(e._zod,`values`,()=>t.innerType._zod.values),IK(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),kZ=q(`$ZodNullable`,(e,t)=>{TX.init(e,t),IK(e._zod,`optin`,()=>t.innerType._zod.optin),IK(e._zod,`optout`,()=>t.innerType._zod.optout),IK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${PK(e.source)}|null)$`):void 0}),IK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),AZ=q(`$ZodDefault`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,IK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>vX(e,t)):vX(r,t)}}),jZ=q(`$ZodPrefault`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,IK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),MZ=q(`$ZodNonOptional`,(e,t)=>{TX.init(e,t),IK(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>yX(t,e)):yX(i,e)}}),NZ=q(`$ZodSuccess`,(e,t)=>{TX.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new xK(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),PZ=q(`$ZodCatch`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,IK(e._zod,`optout`,()=>t.innerType._zod.optout),IK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>fq(e,n,gK()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>fq(e,n,gK()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),FZ=q(`$ZodNaN`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),IZ=q(`$ZodPipe`,(e,t)=>{TX.init(e,t),IK(e._zod,`values`,()=>t.in._zod.values),IK(e._zod,`optin`,()=>t.in._zod.optin),IK(e._zod,`optout`,()=>t.out._zod.optout),IK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>bX(e,t.in,n)):bX(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>bX(e,t.out,n)):bX(r,t.out,n)}}),LZ=q(`$ZodCodec`,(e,t)=>{TX.init(e,t),IK(e._zod,`values`,()=>t.in._zod.values),IK(e._zod,`optin`,()=>t.in._zod.optin),IK(e._zod,`optout`,()=>t.out._zod.optout),IK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>xX(e,t,n)):xX(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>xX(e,t,n)):xX(r,t,n)}}}),RZ=q(`$ZodPreprocess`,(e,t)=>{IZ.init(e,t)}),zZ=q(`$ZodReadonly`,(e,t)=>{TX.init(e,t),IK(e._zod,`propValues`,()=>t.innerType._zod.propValues),IK(e._zod,`values`,()=>t.innerType._zod.values),IK(e._zod,`optin`,()=>t.innerType?._zod?.optin),IK(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(CX):CX(r)}}),BZ=q(`$ZodTemplateLiteral`,(e,t)=>{TX.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||kq.has(typeof e))n.push(XK(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),VZ=q(`$ZodFunction`,(e,t)=>(TX.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Wq(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Wq(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await Kq(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Kq(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new yZ({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),HZ=q(`$ZodPromise`,(e,t)=>{TX.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),UZ=q(`$ZodLazy`,(e,t)=>{TX.init(e,t),IK(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),IK(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),IK(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),IK(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),IK(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),WZ=q(`$ZodCustom`,(e,t)=>{DY.init(e,t),TX.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>wX(t,n,r,e));wX(i,n,r,e)}})}));function KZ(){return{localeError:qZ()}}var qZ,JZ=o((()=>{Nq(),qZ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${$K(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function YZ(){return{localeError:XZ()}}var XZ,ZZ=o((()=>{Nq(),XZ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${$K(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function QZ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function $Z(){return{localeError:eQ()}}var eQ,tQ=o((()=>{Nq(),eQ=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${$K(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=QZ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=QZ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function nQ(){return{localeError:rQ()}}var rQ,iQ=o((()=>{Nq(),rQ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${$K(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function aQ(){return{localeError:oQ()}}var oQ,sQ=o((()=>{Nq(),oQ=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,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ça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${$K(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function cQ(){return{localeError:lQ()}}var lQ,uQ=o((()=>{Nq(),lQ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová 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 čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${$K(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function dQ(){return{localeError:fQ()}}var fQ,pQ=o((()=>{Nq(),fQ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={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æt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${$K(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function mQ(){return{localeError:hQ()}}var hQ,gQ=o((()=>{Nq(),hQ=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${$K(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function _Q(){return{localeError:vQ()}}var vQ,yQ=o((()=>{Nq(),vQ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση 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:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${$K(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function bQ(){return{localeError:xQ()}}var xQ,SQ=o((()=>{Nq(),xQ=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${$K(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function CQ(){return{localeError:wQ()}}var wQ,TQ=o((()=>{Nq(),wQ=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,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ŭro`,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`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${$K(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function EQ(){return{localeError:DQ()}}var DQ,OQ=o((()=>{Nq(),DQ=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,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ón ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${$K(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function kQ(){return{localeError:AQ()}}var AQ,jQ=o((()=>{Nq(),AQ=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${$K(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function MQ(){return{localeError:NQ()}}var NQ,PQ=o((()=>{Nq(),NQ=()=>{let e={string:{unit:`merkkiä`,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äivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,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äivämäärä`,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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${$K(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.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öte`}}}}));function FQ(){return{localeError:IQ()}}var IQ,LQ=o((()=>{Nq(),IQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${$K(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function RQ(){return{localeError:zQ()}}var zQ,BQ=o((()=>{Nq(),zQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${$K(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function VQ(){return{localeError:HQ()}}var HQ,UQ=o((()=>{Nq(),HQ=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,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:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=hq(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${$K(t.values[0])}`;let e=t.values.map(e=>$K(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function WQ(){return{localeError:GQ()}}var GQ,KQ=o((()=>{Nq(),GQ=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email 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:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${$K(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function qQ(){return{localeError:JQ()}}var JQ,YQ=o((()=>{Nq(),JQ=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,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őbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${$K(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function XQ(e,t,n){return Math.abs(e)===1?t:n}function ZQ(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function QQ(){return{localeError:$Q()}}var $Q,e$=o((()=>{Nq(),$Q=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${$K(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=XQ(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ZQ(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ZQ(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=XQ(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ZQ(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ZQ(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${ZQ(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${ZQ(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function t$(){return{localeError:n$()}}var n$,r$=o((()=>{Nq(),n$=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${$K(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function i$(){return{localeError:a$()}}var a$,o$=o((()=>{Nq(),a$=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,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ími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,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ölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${$K(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function s$(){return{localeError:c$()}}var c$,l$=o((()=>{Nq(),c$=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${$K(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function u$(){return{localeError:d$()}}var d$,f$=o((()=>{Nq(),d$=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${$K(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function p$(){return{localeError:m$()}}var m$,h$=o((()=>{Nq(),m$=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${$K(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function g$(){return{localeError:_$()}}var _$,v$=o((()=>{Nq(),_$=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${$K(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function y$(){return g$()}var b$=o((()=>{v$()}));function x$(){return{localeError:S$()}}var S$,C$=o((()=>{Nq(),S$=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${$K(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function w$(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function T$(){return{localeError:D$()}}var E$,D$,O$=o((()=>{Nq(),E$=e=>e.charAt(0).toUpperCase()+e.slice(1),D$=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto 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ė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${$K(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,w$(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${E$(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${E$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,w$(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${E$(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${E$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${E$(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function k$(){return{localeError:A$()}}var A$,j$=o((()=>{Nq(),A$=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${$K(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function M$(){return{localeError:N$()}}var N$,P$=o((()=>{Nq(),N$=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${$K(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function F$(){return{localeError:I$()}}var I$,L$=o((()=>{Nq(),I$=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${$K(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function R$(){return{localeError:z$()}}var z$,B$=o((()=>{Nq(),z$=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={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åde`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${$K(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function V$(){return{localeError:H$()}}var H$,U$=o((()=>{Nq(),H$=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,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âmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${$K(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function W$(){return{localeError:G$()}}var G$,K$=o((()=>{Nq(),G$=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${$K(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function q$(){return{localeError:J$()}}var J$,Y$=o((()=>{Nq(),J$=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,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ąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${$K(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function X$(){return{localeError:Z$()}}var Z$,Q$=o((()=>{Nq(),Z$=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço 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ção ISO`,ipv4:`endereço IPv4`,ipv6:`endereço 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úmero E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${$K(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function $$(){return{localeError:e1()}}var e1,t1=o((()=>{Nq(),e1=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de 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:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${$K(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function n1(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function r1(){return{localeError:i1()}}var i1,a1=o((()=>{Nq(),i1=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${$K(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=n1(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=n1(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function o1(){return{localeError:s1()}}var s1,c1=o((()=>{Nq(),s1=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni 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 čas`,date:`ISO datum`,time:`ISO čas`,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 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${$K(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function l1(){return{localeError:u1()}}var u1,d1=o((()=>{Nq(),u1=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt 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äng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${$K(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function f1(){return{localeError:p1()}}var p1,m1=o((()=>{Nq(),p1=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,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:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${$K(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function h1(){return{localeError:g1()}}var g1,_1=o((()=>{Nq(),g1=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${$K(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function v1(){return{localeError:y1()}}var y1,b1=o((()=>{Nq(),y1=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={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üre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${$K(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function x1(){return{localeError:S1()}}var S1,C1=o((()=>{Nq(),S1=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${$K(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function w1(){return x1()}var T1=o((()=>{C1()}));function E1(){return{localeError:D1()}}var D1,O1=o((()=>{Nq(),D1=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${$K(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function k1(){return{localeError:A1()}}var A1,j1=o((()=>{Nq(),A1=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${$K(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function M1(){return{localeError:N1()}}var N1,P1=o((()=>{Nq(),N1=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ 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ày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${$K(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function F1(){return{localeError:I1()}}var I1,L1=o((()=>{Nq(),I1=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${$K(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function R1(){return{localeError:z1()}}var z1,B1=o((()=>{Nq(),z1=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,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:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${$K(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function V1(){return{localeError:H1()}}var H1,U1=o((()=>{Nq(),H1=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,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:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${$K(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),W1=c({ar:()=>KZ,az:()=>YZ,be:()=>$Z,bg:()=>nQ,ca:()=>aQ,cs:()=>cQ,da:()=>dQ,de:()=>mQ,el:()=>_Q,en:()=>bQ,eo:()=>CQ,es:()=>EQ,fa:()=>kQ,fi:()=>MQ,fr:()=>FQ,frCA:()=>RQ,he:()=>VQ,hr:()=>WQ,hu:()=>qQ,hy:()=>QQ,id:()=>t$,is:()=>i$,it:()=>s$,ja:()=>u$,ka:()=>p$,kh:()=>y$,km:()=>g$,ko:()=>x$,lt:()=>T$,mk:()=>k$,ms:()=>M$,nl:()=>F$,no:()=>R$,ota:()=>V$,pl:()=>q$,ps:()=>W$,pt:()=>X$,ro:()=>$$,ru:()=>r1,sl:()=>o1,sv:()=>l1,ta:()=>f1,th:()=>h1,tr:()=>v1,ua:()=>w1,uk:()=>x1,ur:()=>E1,uz:()=>k1,vi:()=>M1,yo:()=>V1,zhCN:()=>F1,zhTW:()=>R1}),G1=o((()=>{JZ(),ZZ(),tQ(),iQ(),sQ(),uQ(),pQ(),gQ(),yQ(),SQ(),TQ(),OQ(),jQ(),PQ(),LQ(),BQ(),UQ(),KQ(),YQ(),e$(),r$(),o$(),l$(),f$(),h$(),b$(),v$(),C$(),O$(),j$(),P$(),L$(),B$(),U$(),K$(),Y$(),Q$(),t1(),a1(),c1(),d1(),m1(),_1(),b1(),T1(),C1(),O1(),j1(),P1(),L1(),B1(),U1()}));function K1(){return new X1}var q1,J1,Y1,X1,Z1,Q1=o((()=>{J1=Symbol(`ZodOutput`),Y1=Symbol(`ZodInput`),X1=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(q1=globalThis).__zod_globalRegistry??(q1.__zod_globalRegistry=K1()),Z1=globalThis.__zod_globalRegistry}));function $1(e,t){return new e({type:`string`,...Y(t)})}function e0(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function t0(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function n0(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function r0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function i0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function a0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function o0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function s0(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function c0(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function l0(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function u0(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function d0(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function f0(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function p0(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function m0(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function h0(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function g0(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function _0(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function v0(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function y0(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function b0(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function x0(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function S0(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function C0(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function w0(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function T0(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function E0(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function D0(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function O0(e,t){return new e({type:`number`,checks:[],...Y(t)})}function k0(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function A0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function j0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function M0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function N0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function P0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function F0(e,t){return new e({type:`boolean`,...Y(t)})}function I0(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function L0(e,t){return new e({type:`bigint`,...Y(t)})}function R0(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function z0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function B0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function V0(e,t){return new e({type:`symbol`,...Y(t)})}function H0(e,t){return new e({type:`undefined`,...Y(t)})}function U0(e,t){return new e({type:`null`,...Y(t)})}function W0(e){return new e({type:`any`})}function G0(e){return new e({type:`unknown`})}function K0(e,t){return new e({type:`never`,...Y(t)})}function q0(e,t){return new e({type:`void`,...Y(t)})}function J0(e,t){return new e({type:`date`,...Y(t)})}function Y0(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function X0(e,t){return new e({type:`nan`,...Y(t)})}function Z0(e,t){return new kY({check:`less_than`,...Y(t),value:e,inclusive:!1})}function Q0(e,t){return new kY({check:`less_than`,...Y(t),value:e,inclusive:!0})}function $0(e,t){return new AY({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function e2(e,t){return new AY({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function t2(e){return $0(0,e)}function n2(e){return Z0(0,e)}function r2(e){return Q0(0,e)}function i2(e){return e2(0,e)}function a2(e,t){return new jY({check:`multiple_of`,...Y(t),value:e})}function o2(e,t){return new PY({check:`max_size`,...Y(t),maximum:e})}function s2(e,t){return new FY({check:`min_size`,...Y(t),minimum:e})}function c2(e,t){return new IY({check:`size_equals`,...Y(t),size:e})}function l2(e,t){return new LY({check:`max_length`,...Y(t),maximum:e})}function u2(e,t){return new RY({check:`min_length`,...Y(t),minimum:e})}function d2(e,t){return new zY({check:`length_equals`,...Y(t),length:e})}function f2(e,t){return new VY({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function p2(e){return new HY({check:`string_format`,format:`lowercase`,...Y(e)})}function m2(e){return new UY({check:`string_format`,format:`uppercase`,...Y(e)})}function h2(e,t){return new WY({check:`string_format`,format:`includes`,...Y(t),includes:e})}function g2(e,t){return new GY({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function _2(e,t){return new KY({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function v2(e,t,n){return new qY({check:`property`,property:e,schema:t,...Y(n)})}function y2(e,t){return new JY({check:`mime_type`,mime:e,...Y(t)})}function b2(e){return new YY({check:`overwrite`,tx:e})}function x2(e){return b2(t=>t.normalize(e))}function S2(){return b2(e=>e.trim())}function C2(){return b2(e=>e.toLowerCase())}function w2(){return b2(e=>e.toUpperCase())}function T2(){return b2(e=>GK(e))}function E2(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function D2(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function O2(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function k2(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function A2(e,t,n){return new e({type:`intersection`,left:t,right:n})}function j2(e,t,n,r){let i=n instanceof TX;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function M2(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function N2(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function P2(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function F2(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function I2(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function L2(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function R2(e,t){return new e({type:`file`,...Y(t)})}function z2(e,t){return new e({type:`transform`,transform:t})}function B2(e,t){return new e({type:`optional`,innerType:t})}function V2(e,t){return new e({type:`nullable`,innerType:t})}function H2(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():JK(n)}})}function U2(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function W2(e,t){return new e({type:`success`,innerType:t})}function G2(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function K2(e,t,n){return new e({type:`pipe`,in:t,out:n})}function q2(e,t){return new e({type:`readonly`,innerType:t})}function J2(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function Y2(e,t){return new e({type:`lazy`,getter:t})}function X2(e,t){return new e({type:`promise`,innerType:t})}function Z2(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function Q2(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function $2(e,t){let n=e4(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(gq(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(gq(r))}},e(t.value,t)),t);return n}function e4(e,t){let n=new DY({check:`custom`,...Y(t)});return n._zod.check=e,n}function t4(e){let t=new DY({check:`describe`});return t._zod.onattach=[t=>{let n=Z1.get(t)??{};Z1.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function n4(e){let t=new DY({check:`meta`});return t._zod.onattach=[t=>{let n=Z1.get(t)??{};Z1.add(t,{...n,...e})}],t._zod.check=()=>{},t}function r4(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??LZ,c=e.Boolean??tZ,l=new s({type:`pipe`,in:new(e.String??EX)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function i4(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var a4,o4=o((()=>{XY(),Q1(),GZ(),Nq(),a4={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function s4(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Z1,target:t,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 c4(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,c4(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&d4(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function l4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=JK,s=!wK.jitless,c=s&&Oq.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?lX([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),_Z=q(`$ZodUnion`,(e,t)=>{DX.init(e,t),RK(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),RK(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),RK(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),RK(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>IK(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>uX(t,r,e,i)):uX(o,r,e,i)}}),vZ=q(`$ZodXor`,(e,t)=>{_Z.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>dX(t,r,e,i)):dX(o,r,e,i)}}),yZ=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,_Z.init(e,t);let n=e._zod.parse;RK(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=PK(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!JK(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),bZ=q(`$ZodIntersection`,(e,t)=>{DX.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>pX(e,t,n)):pX(e,i,a)}}),xZ=q(`$ZodTuple`,(e,t)=>{DX.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=mX(n,`optin`),c=mX(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>hX(t,r,e))):hX(a,r,e)}}return o.length?Promise.all(o).then(()=>gX(l,r,n,a,c)):gX(l,r,n,a,c)}}),SZ=q(`$ZodRecord`,(e,t)=>{DX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!YK(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>mq(e,r,vK())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...fq(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...fq(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&aY.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>mq(e,r,vK())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...fq(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...fq(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),CZ=q(`$ZodMap`,(e,t)=>{DX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{_X(t,a,n,o,i,e,r)})):_X(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),wZ=q(`$ZodSet`,(e,t)=>{DX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>vX(e,n))):vX(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),TZ=q(`$ZodEnum`,(e,t)=>{DX.init(e,t);let n=MK(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Aq.has(typeof e)).map(e=>typeof e==`string`?QK(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),EZ=q(`$ZodLiteral`,(e,t)=>{if(DX.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?QK(e):e?QK(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),DZ=q(`$ZodFile`,(e,t)=>{DX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),OZ=q(`$ZodTransform`,(e,t)=>{DX.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new CK(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new SK;return n.value=i,n.fallback=!0,n}}),kZ=q(`$ZodOptional`,(e,t)=>{DX.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,RK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),RK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${IK(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>yX(e,r)):yX(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),AZ=q(`$ZodExactOptional`,(e,t)=>{kZ.init(e,t),RK(e._zod,`values`,()=>t.innerType._zod.values),RK(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),jZ=q(`$ZodNullable`,(e,t)=>{DX.init(e,t),RK(e._zod,`optin`,()=>t.innerType._zod.optin),RK(e._zod,`optout`,()=>t.innerType._zod.optout),RK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${IK(e.source)}|null)$`):void 0}),RK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),MZ=q(`$ZodDefault`,(e,t)=>{DX.init(e,t),e._zod.optin=`optional`,RK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>bX(e,t)):bX(r,t)}}),NZ=q(`$ZodPrefault`,(e,t)=>{DX.init(e,t),e._zod.optin=`optional`,RK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),PZ=q(`$ZodNonOptional`,(e,t)=>{DX.init(e,t),RK(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>xX(t,e)):xX(i,e)}}),FZ=q(`$ZodSuccess`,(e,t)=>{DX.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new CK(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),IZ=q(`$ZodCatch`,(e,t)=>{DX.init(e,t),e._zod.optin=`optional`,RK(e._zod,`optout`,()=>t.innerType._zod.optout),RK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>mq(e,n,vK()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>mq(e,n,vK()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),LZ=q(`$ZodNaN`,(e,t)=>{DX.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),RZ=q(`$ZodPipe`,(e,t)=>{DX.init(e,t),RK(e._zod,`values`,()=>t.in._zod.values),RK(e._zod,`optin`,()=>t.in._zod.optin),RK(e._zod,`optout`,()=>t.out._zod.optout),RK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>SX(e,t.in,n)):SX(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>SX(e,t.out,n)):SX(r,t.out,n)}}),zZ=q(`$ZodCodec`,(e,t)=>{DX.init(e,t),RK(e._zod,`values`,()=>t.in._zod.values),RK(e._zod,`optin`,()=>t.in._zod.optin),RK(e._zod,`optout`,()=>t.out._zod.optout),RK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>CX(e,t,n)):CX(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>CX(e,t,n)):CX(r,t,n)}}}),BZ=q(`$ZodPreprocess`,(e,t)=>{RZ.init(e,t)}),VZ=q(`$ZodReadonly`,(e,t)=>{DX.init(e,t),RK(e._zod,`propValues`,()=>t.innerType._zod.propValues),RK(e._zod,`values`,()=>t.innerType._zod.values),RK(e._zod,`optin`,()=>t.innerType?._zod?.optin),RK(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(TX):TX(r)}}),HZ=q(`$ZodTemplateLiteral`,(e,t)=>{DX.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||jq.has(typeof e))n.push(QK(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),UZ=q(`$ZodFunction`,(e,t)=>(DX.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Kq(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Kq(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await Jq(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Jq(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new xZ({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),WZ=q(`$ZodPromise`,(e,t)=>{DX.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),GZ=q(`$ZodLazy`,(e,t)=>{DX.init(e,t),RK(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),RK(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),RK(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),RK(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),RK(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),KZ=q(`$ZodCustom`,(e,t)=>{kY.init(e,t),DX.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>EX(t,n,r,e));EX(i,n,r,e)}})}));function JZ(){return{localeError:YZ()}}var YZ,XZ=o((()=>{Fq(),YZ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${tq(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function ZZ(){return{localeError:QZ()}}var QZ,$Z=o((()=>{Fq(),QZ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${tq(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function eQ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function tQ(){return{localeError:nQ()}}var nQ,rQ=o((()=>{Fq(),nQ=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${tq(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=eQ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=eQ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function iQ(){return{localeError:aQ()}}var aQ,oQ=o((()=>{Fq(),aQ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${tq(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function sQ(){return{localeError:cQ()}}var cQ,lQ=o((()=>{Fq(),cQ=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,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ça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${tq(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function uQ(){return{localeError:dQ()}}var dQ,fQ=o((()=>{Fq(),dQ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová 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 čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${tq(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function pQ(){return{localeError:mQ()}}var mQ,hQ=o((()=>{Fq(),mQ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={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æt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${tq(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function gQ(){return{localeError:_Q()}}var _Q,vQ=o((()=>{Fq(),_Q=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${tq(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function yQ(){return{localeError:bQ()}}var bQ,xQ=o((()=>{Fq(),bQ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση 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:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${tq(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function SQ(){return{localeError:CQ()}}var CQ,wQ=o((()=>{Fq(),CQ=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${tq(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function TQ(){return{localeError:EQ()}}var EQ,DQ=o((()=>{Fq(),EQ=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,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ŭro`,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`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${tq(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function OQ(){return{localeError:kQ()}}var kQ,AQ=o((()=>{Fq(),kQ=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,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ón ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${tq(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function jQ(){return{localeError:MQ()}}var MQ,NQ=o((()=>{Fq(),MQ=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${tq(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function PQ(){return{localeError:FQ()}}var FQ,IQ=o((()=>{Fq(),FQ=()=>{let e={string:{unit:`merkkiä`,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äivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,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äivämäärä`,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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${tq(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.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öte`}}}}));function LQ(){return{localeError:RQ()}}var RQ,zQ=o((()=>{Fq(),RQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${tq(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function BQ(){return{localeError:VQ()}}var VQ,HQ=o((()=>{Fq(),VQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${tq(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function UQ(){return{localeError:WQ()}}var WQ,GQ=o((()=>{Fq(),WQ=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,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:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=_q(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${tq(t.values[0])}`;let e=t.values.map(e=>tq(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function KQ(){return{localeError:qQ()}}var qQ,JQ=o((()=>{Fq(),qQ=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email 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:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${tq(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function YQ(){return{localeError:XQ()}}var XQ,ZQ=o((()=>{Fq(),XQ=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,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őbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${tq(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function QQ(e,t,n){return Math.abs(e)===1?t:n}function $Q(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function e$(){return{localeError:t$()}}var t$,n$=o((()=>{Fq(),t$=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${tq(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=QQ(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${$Q(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${$Q(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=QQ(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${$Q(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${$Q(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${$Q(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${$Q(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function r$(){return{localeError:i$()}}var i$,a$=o((()=>{Fq(),i$=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${tq(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function o$(){return{localeError:s$()}}var s$,c$=o((()=>{Fq(),s$=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,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ími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,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ölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${tq(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function l$(){return{localeError:u$()}}var u$,d$=o((()=>{Fq(),u$=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${tq(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function f$(){return{localeError:p$()}}var p$,m$=o((()=>{Fq(),p$=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${tq(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function h$(){return{localeError:g$()}}var g$,_$=o((()=>{Fq(),g$=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${tq(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function v$(){return{localeError:y$()}}var y$,b$=o((()=>{Fq(),y$=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${tq(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function x$(){return v$()}var S$=o((()=>{b$()}));function C$(){return{localeError:w$()}}var w$,T$=o((()=>{Fq(),w$=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${tq(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function E$(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function D$(){return{localeError:k$()}}var O$,k$,A$=o((()=>{Fq(),O$=e=>e.charAt(0).toUpperCase()+e.slice(1),k$=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto 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ė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${tq(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,E$(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${O$(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${O$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,E$(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${O$(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${O$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${O$(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function j$(){return{localeError:M$()}}var M$,N$=o((()=>{Fq(),M$=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${tq(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function P$(){return{localeError:F$()}}var F$,I$=o((()=>{Fq(),F$=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${tq(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function L$(){return{localeError:R$()}}var R$,z$=o((()=>{Fq(),R$=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${tq(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function B$(){return{localeError:V$()}}var V$,H$=o((()=>{Fq(),V$=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={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åde`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${tq(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function U$(){return{localeError:W$()}}var W$,G$=o((()=>{Fq(),W$=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,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âmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${tq(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function K$(){return{localeError:q$()}}var q$,J$=o((()=>{Fq(),q$=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${tq(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function Y$(){return{localeError:X$()}}var X$,Z$=o((()=>{Fq(),X$=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,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ąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${tq(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function Q$(){return{localeError:$$()}}var $$,e1=o((()=>{Fq(),$$=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço 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ção ISO`,ipv4:`endereço IPv4`,ipv6:`endereço 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úmero E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${tq(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function t1(){return{localeError:n1()}}var n1,r1=o((()=>{Fq(),n1=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de 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:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${tq(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function i1(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function a1(){return{localeError:o1()}}var o1,s1=o((()=>{Fq(),o1=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${tq(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=i1(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=i1(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function c1(){return{localeError:l1()}}var l1,u1=o((()=>{Fq(),l1=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni 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 čas`,date:`ISO datum`,time:`ISO čas`,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 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${tq(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function d1(){return{localeError:f1()}}var f1,p1=o((()=>{Fq(),f1=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt 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äng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${tq(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function m1(){return{localeError:h1()}}var h1,g1=o((()=>{Fq(),h1=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,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:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${tq(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function _1(){return{localeError:v1()}}var v1,y1=o((()=>{Fq(),v1=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${tq(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function b1(){return{localeError:x1()}}var x1,S1=o((()=>{Fq(),x1=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={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üre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${tq(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function C1(){return{localeError:w1()}}var w1,T1=o((()=>{Fq(),w1=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${tq(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function E1(){return C1()}var D1=o((()=>{T1()}));function O1(){return{localeError:k1()}}var k1,A1=o((()=>{Fq(),k1=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${tq(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function j1(){return{localeError:M1()}}var M1,N1=o((()=>{Fq(),M1=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${tq(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function P1(){return{localeError:F1()}}var F1,I1=o((()=>{Fq(),F1=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ 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ày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${tq(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function L1(){return{localeError:R1()}}var R1,z1=o((()=>{Fq(),R1=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${tq(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function B1(){return{localeError:V1()}}var V1,H1=o((()=>{Fq(),V1=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,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:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${tq(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function U1(){return{localeError:W1()}}var W1,G1=o((()=>{Fq(),W1=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,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:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=_q(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${tq(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),K1=c({ar:()=>JZ,az:()=>ZZ,be:()=>tQ,bg:()=>iQ,ca:()=>sQ,cs:()=>uQ,da:()=>pQ,de:()=>gQ,el:()=>yQ,en:()=>SQ,eo:()=>TQ,es:()=>OQ,fa:()=>jQ,fi:()=>PQ,fr:()=>LQ,frCA:()=>BQ,he:()=>UQ,hr:()=>KQ,hu:()=>YQ,hy:()=>e$,id:()=>r$,is:()=>o$,it:()=>l$,ja:()=>f$,ka:()=>h$,kh:()=>x$,km:()=>v$,ko:()=>C$,lt:()=>D$,mk:()=>j$,ms:()=>P$,nl:()=>L$,no:()=>B$,ota:()=>U$,pl:()=>Y$,ps:()=>K$,pt:()=>Q$,ro:()=>t1,ru:()=>a1,sl:()=>c1,sv:()=>d1,ta:()=>m1,th:()=>_1,tr:()=>b1,ua:()=>E1,uk:()=>C1,ur:()=>O1,uz:()=>j1,vi:()=>P1,yo:()=>U1,zhCN:()=>L1,zhTW:()=>B1}),q1=o((()=>{XZ(),$Z(),rQ(),oQ(),lQ(),fQ(),hQ(),vQ(),xQ(),wQ(),DQ(),AQ(),NQ(),IQ(),zQ(),HQ(),GQ(),JQ(),ZQ(),n$(),a$(),c$(),d$(),m$(),_$(),S$(),b$(),T$(),A$(),N$(),I$(),z$(),H$(),G$(),J$(),Z$(),e1(),r1(),s1(),u1(),p1(),g1(),y1(),S1(),D1(),T1(),A1(),N1(),I1(),z1(),H1(),G1()}));function J1(){return new Q1}var Y1,X1,Z1,Q1,$1,e0=o((()=>{X1=Symbol(`ZodOutput`),Z1=Symbol(`ZodInput`),Q1=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(Y1=globalThis).__zod_globalRegistry??(Y1.__zod_globalRegistry=J1()),$1=globalThis.__zod_globalRegistry}));function t0(e,t){return new e({type:`string`,...Y(t)})}function n0(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function r0(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function i0(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function a0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function o0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function s0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function c0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function l0(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function u0(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function d0(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function f0(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function p0(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function m0(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function h0(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function g0(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function _0(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function v0(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function y0(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function b0(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function x0(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function S0(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function C0(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function w0(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function T0(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function E0(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function D0(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function O0(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function k0(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function A0(e,t){return new e({type:`number`,checks:[],...Y(t)})}function j0(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function M0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function N0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function P0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function F0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function I0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function L0(e,t){return new e({type:`boolean`,...Y(t)})}function R0(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function z0(e,t){return new e({type:`bigint`,...Y(t)})}function B0(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function V0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function H0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function U0(e,t){return new e({type:`symbol`,...Y(t)})}function W0(e,t){return new e({type:`undefined`,...Y(t)})}function G0(e,t){return new e({type:`null`,...Y(t)})}function K0(e){return new e({type:`any`})}function q0(e){return new e({type:`unknown`})}function J0(e,t){return new e({type:`never`,...Y(t)})}function Y0(e,t){return new e({type:`void`,...Y(t)})}function X0(e,t){return new e({type:`date`,...Y(t)})}function Z0(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function Q0(e,t){return new e({type:`nan`,...Y(t)})}function $0(e,t){return new jY({check:`less_than`,...Y(t),value:e,inclusive:!1})}function e2(e,t){return new jY({check:`less_than`,...Y(t),value:e,inclusive:!0})}function t2(e,t){return new MY({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function n2(e,t){return new MY({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function r2(e){return t2(0,e)}function i2(e){return $0(0,e)}function a2(e){return e2(0,e)}function o2(e){return n2(0,e)}function s2(e,t){return new NY({check:`multiple_of`,...Y(t),value:e})}function c2(e,t){return new IY({check:`max_size`,...Y(t),maximum:e})}function l2(e,t){return new LY({check:`min_size`,...Y(t),minimum:e})}function u2(e,t){return new RY({check:`size_equals`,...Y(t),size:e})}function d2(e,t){return new zY({check:`max_length`,...Y(t),maximum:e})}function f2(e,t){return new BY({check:`min_length`,...Y(t),minimum:e})}function p2(e,t){return new VY({check:`length_equals`,...Y(t),length:e})}function m2(e,t){return new UY({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function h2(e){return new WY({check:`string_format`,format:`lowercase`,...Y(e)})}function g2(e){return new GY({check:`string_format`,format:`uppercase`,...Y(e)})}function _2(e,t){return new KY({check:`string_format`,format:`includes`,...Y(t),includes:e})}function v2(e,t){return new qY({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function y2(e,t){return new JY({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function b2(e,t,n){return new YY({check:`property`,property:e,schema:t,...Y(n)})}function x2(e,t){return new XY({check:`mime_type`,mime:e,...Y(t)})}function S2(e){return new ZY({check:`overwrite`,tx:e})}function C2(e){return S2(t=>t.normalize(e))}function w2(){return S2(e=>e.trim())}function T2(){return S2(e=>e.toLowerCase())}function E2(){return S2(e=>e.toUpperCase())}function D2(){return S2(e=>qK(e))}function O2(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function k2(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function A2(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function j2(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function M2(e,t,n){return new e({type:`intersection`,left:t,right:n})}function N2(e,t,n,r){let i=n instanceof DX;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function P2(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function F2(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function I2(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function L2(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function R2(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function z2(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function B2(e,t){return new e({type:`file`,...Y(t)})}function V2(e,t){return new e({type:`transform`,transform:t})}function H2(e,t){return new e({type:`optional`,innerType:t})}function U2(e,t){return new e({type:`nullable`,innerType:t})}function W2(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():XK(n)}})}function G2(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function K2(e,t){return new e({type:`success`,innerType:t})}function q2(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function J2(e,t,n){return new e({type:`pipe`,in:t,out:n})}function Y2(e,t){return new e({type:`readonly`,innerType:t})}function X2(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function Z2(e,t){return new e({type:`lazy`,getter:t})}function Q2(e,t){return new e({type:`promise`,innerType:t})}function $2(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function e4(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function t4(e,t){let n=n4(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(vq(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(vq(r))}},e(t.value,t)),t);return n}function n4(e,t){let n=new kY({check:`custom`,...Y(t)});return n._zod.check=e,n}function r4(e){let t=new kY({check:`describe`});return t._zod.onattach=[t=>{let n=$1.get(t)??{};$1.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function i4(e){let t=new kY({check:`meta`});return t._zod.onattach=[t=>{let n=$1.get(t)??{};$1.add(t,{...n,...e})}],t._zod.check=()=>{},t}function a4(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??zZ,c=e.Boolean??rZ,l=new s({type:`pipe`,in:new(e.String??OX)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function o4(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var s4,c4=o((()=>{QY(),e0(),qZ(),Fq(),s4={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function l4(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??$1,target:t,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 u4(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,u4(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&p4(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function d4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function u4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:p4(t,`input`,e.processors),output:p4(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function d4(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return d4(r.element,n);if(r.type===`set`)return d4(r.valueType,n);if(r.type===`lazy`)return d4(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return d4(r.innerType,n);if(r.type===`intersection`)return d4(r.left,n)||d4(r.right,n);if(r.type===`record`||r.type===`map`)return d4(r.keyType,n)||d4(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:d4(r.in,n)||d4(r.out,n);if(r.type===`object`){for(let e in r.shape)if(d4(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(d4(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(d4(e,n))return!0;return!!(r.rest&&d4(r.rest,n))}return!1}var f4,p4,m4=o((()=>{Q1(),f4=(e,t={})=>n=>{let r=s4({...n,processors:t});return c4(e,r),l4(r,e),u4(r,e)},p4=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=s4({...i??{},target:a,io:t,processors:n});return c4(e,o),l4(o,e),u4(o,e)}}));function h4(e,t){if(`_idmap`in e){let n=e,r=s4({...t,processors:n3}),i={};for(let e of n._idmap.entries()){let[t,n]=e;c4(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;l4(r,n),a[t]=u4(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=s4({...t,processors:n3});return c4(e,n),l4(n,e),u4(n,e)}var g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3=o((()=>{m4(),Nq(),g4={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},_4=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=g4[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},v4=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},y4=(e,t,n,r)=>{n.type=`boolean`},b4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},x4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},S4=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},C4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},w4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},T4=(e,t,n,r)=>{n.not={}},E4=(e,t,n,r)=>{},D4=(e,t,n,r)=>{},O4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},k4=(e,t,n,r)=>{let i=e._zod.def,a=AK(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},A4=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},j4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},M4=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},N4=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},P4=(e,t,n,r)=>{n.type=`boolean`},F4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},I4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},L4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},R4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},z4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},B4=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=c4(a.element,t,{...r,path:[...r.path,`items`]})},V4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=c4(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=c4(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},H4=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>c4(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},U4=(e,t,n,r)=>{let i=e._zod.def,a=c4(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=c4(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},W4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>c4(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?c4(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},G4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=c4(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=c4(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=c4(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},K4=(e,t,n,r)=>{let i=e._zod.def,a=c4(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},q4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},J4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Y4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},X4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Z4=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;c4(o,t,r);let s=t.seen.get(e);s.ref=o},Q4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},$4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},e3=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},t3=(e,t,n,r)=>{let i=e._zod.innerType;c4(i,t,r);let a=t.seen.get(e);a.ref=i},n3={string:_4,number:v4,boolean:y4,bigint:b4,symbol:x4,null:S4,undefined:C4,void:w4,never:T4,any:E4,unknown:D4,date:O4,enum:k4,literal:A4,nan:j4,template_literal:M4,file:N4,success:P4,custom:F4,function:I4,transform:L4,map:R4,set:z4,array:B4,object:V4,union:H4,intersection:U4,tuple:W4,record:G4,nullable:K4,nonoptional:q4,default:J4,prefault:Y4,catch:X4,pipe:Z4,readonly:Q4,promise:$4,optional:e3,lazy:t3}})),i3,a3=o((()=>{r3(),m4(),i3=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=s4({processors:n3,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return c4(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),l4(this.ctx,e);let{"~standard":n,...r}=u4(this.ctx,e);return r}}})),o3=c({}),s3=o((()=>{})),c3=c({$ZodAny:()=>sZ,$ZodArray:()=>fZ,$ZodAsyncError:()=>bK,$ZodBase64:()=>JX,$ZodBase64URL:()=>YX,$ZodBigInt:()=>nZ,$ZodBigIntFormat:()=>rZ,$ZodBoolean:()=>tZ,$ZodCIDRv4:()=>KX,$ZodCIDRv6:()=>qX,$ZodCUID:()=>PX,$ZodCUID2:()=>FX,$ZodCatch:()=>PZ,$ZodCheck:()=>DY,$ZodCheckBigIntFormat:()=>NY,$ZodCheckEndsWith:()=>KY,$ZodCheckGreaterThan:()=>AY,$ZodCheckIncludes:()=>WY,$ZodCheckLengthEquals:()=>zY,$ZodCheckLessThan:()=>kY,$ZodCheckLowerCase:()=>HY,$ZodCheckMaxLength:()=>LY,$ZodCheckMaxSize:()=>PY,$ZodCheckMimeType:()=>JY,$ZodCheckMinLength:()=>RY,$ZodCheckMinSize:()=>FY,$ZodCheckMultipleOf:()=>jY,$ZodCheckNumberFormat:()=>MY,$ZodCheckOverwrite:()=>YY,$ZodCheckProperty:()=>qY,$ZodCheckRegex:()=>VY,$ZodCheckSizeEquals:()=>IY,$ZodCheckStartsWith:()=>GY,$ZodCheckStringFormat:()=>BY,$ZodCheckUpperCase:()=>UY,$ZodCodec:()=>LZ,$ZodCustom:()=>WZ,$ZodCustomStringFormat:()=>QX,$ZodDate:()=>dZ,$ZodDefault:()=>AZ,$ZodDiscriminatedUnion:()=>_Z,$ZodE164:()=>XX,$ZodEmail:()=>AX,$ZodEmoji:()=>MX,$ZodEncodeError:()=>xK,$ZodEnum:()=>CZ,$ZodError:()=>Bq,$ZodExactOptional:()=>OZ,$ZodFile:()=>TZ,$ZodFunction:()=>VZ,$ZodGUID:()=>OX,$ZodIPv4:()=>UX,$ZodIPv6:()=>WX,$ZodISODate:()=>BX,$ZodISODateTime:()=>zX,$ZodISODuration:()=>HX,$ZodISOTime:()=>VX,$ZodIntersection:()=>vZ,$ZodJWT:()=>ZX,$ZodKSUID:()=>RX,$ZodLazy:()=>UZ,$ZodLiteral:()=>wZ,$ZodMAC:()=>GX,$ZodMap:()=>xZ,$ZodNaN:()=>FZ,$ZodNanoID:()=>NX,$ZodNever:()=>lZ,$ZodNonOptional:()=>MZ,$ZodNull:()=>oZ,$ZodNullable:()=>kZ,$ZodNumber:()=>$X,$ZodNumberFormat:()=>eZ,$ZodObject:()=>pZ,$ZodObjectJIT:()=>mZ,$ZodOptional:()=>DZ,$ZodPipe:()=>IZ,$ZodPrefault:()=>jZ,$ZodPreprocess:()=>RZ,$ZodPromise:()=>HZ,$ZodReadonly:()=>zZ,$ZodRealError:()=>Vq,$ZodRecord:()=>bZ,$ZodRegistry:()=>X1,$ZodSet:()=>SZ,$ZodString:()=>EX,$ZodStringFormat:()=>DX,$ZodSuccess:()=>NZ,$ZodSymbol:()=>iZ,$ZodTemplateLiteral:()=>BZ,$ZodTransform:()=>EZ,$ZodTuple:()=>yZ,$ZodType:()=>TX,$ZodULID:()=>IX,$ZodURL:()=>jX,$ZodUUID:()=>kX,$ZodUndefined:()=>aZ,$ZodUnion:()=>hZ,$ZodUnknown:()=>cZ,$ZodVoid:()=>uZ,$ZodXID:()=>LX,$ZodXor:()=>gZ,$brand:()=>yK,$constructor:()=>q,$input:()=>Y1,$output:()=>J1,Doc:()=>ZY,JSONSchema:()=>o3,JSONSchemaGenerator:()=>i3,NEVER:()=>vK,TimePrecision:()=>a4,_any:()=>W0,_array:()=>E2,_base64:()=>b0,_base64url:()=>x0,_bigint:()=>L0,_boolean:()=>F0,_catch:()=>G2,_check:()=>e4,_cidrv4:()=>v0,_cidrv6:()=>y0,_coercedBigint:()=>R0,_coercedBoolean:()=>I0,_coercedDate:()=>Y0,_coercedNumber:()=>k0,_coercedString:()=>e0,_cuid:()=>u0,_cuid2:()=>d0,_custom:()=>Z2,_date:()=>J0,_decode:()=>$q,_decodeAsync:()=>rJ,_default:()=>H2,_discriminatedUnion:()=>k2,_e164:()=>S0,_email:()=>t0,_emoji:()=>c0,_encode:()=>Zq,_encodeAsync:()=>tJ,_endsWith:()=>_2,_enum:()=>F2,_file:()=>R2,_float32:()=>j0,_float64:()=>M0,_gt:()=>$0,_gte:()=>e2,_guid:()=>n0,_includes:()=>h2,_int:()=>A0,_int32:()=>N0,_int64:()=>z0,_intersection:()=>A2,_ipv4:()=>h0,_ipv6:()=>g0,_isoDate:()=>T0,_isoDateTime:()=>w0,_isoDuration:()=>D0,_isoTime:()=>E0,_jwt:()=>C0,_ksuid:()=>m0,_lazy:()=>Y2,_length:()=>d2,_literal:()=>L2,_lowercase:()=>p2,_lt:()=>Z0,_lte:()=>Q0,_mac:()=>_0,_map:()=>N2,_max:()=>Q0,_maxLength:()=>l2,_maxSize:()=>o2,_mime:()=>y2,_min:()=>e2,_minLength:()=>u2,_minSize:()=>s2,_multipleOf:()=>a2,_nan:()=>X0,_nanoid:()=>l0,_nativeEnum:()=>I2,_negative:()=>n2,_never:()=>K0,_nonnegative:()=>i2,_nonoptional:()=>U2,_nonpositive:()=>r2,_normalize:()=>x2,_null:()=>U0,_nullable:()=>V2,_number:()=>O0,_optional:()=>B2,_overwrite:()=>b2,_parse:()=>Uq,_parseAsync:()=>Gq,_pipe:()=>K2,_positive:()=>t2,_promise:()=>X2,_property:()=>v2,_readonly:()=>q2,_record:()=>M2,_refine:()=>Q2,_regex:()=>f2,_safeDecode:()=>sJ,_safeDecodeAsync:()=>dJ,_safeEncode:()=>aJ,_safeEncodeAsync:()=>lJ,_safeParse:()=>qq,_safeParseAsync:()=>Yq,_set:()=>P2,_size:()=>c2,_slugify:()=>T2,_startsWith:()=>g2,_string:()=>$1,_stringFormat:()=>i4,_stringbool:()=>r4,_success:()=>W2,_superRefine:()=>$2,_symbol:()=>V0,_templateLiteral:()=>J2,_toLowerCase:()=>C2,_toUpperCase:()=>w2,_transform:()=>z2,_trim:()=>S2,_tuple:()=>j2,_uint32:()=>P0,_uint64:()=>B0,_ulid:()=>f0,_undefined:()=>H0,_union:()=>D2,_unknown:()=>G0,_uppercase:()=>m2,_url:()=>s0,_uuid:()=>r0,_uuidv4:()=>i0,_uuidv6:()=>a0,_uuidv7:()=>o0,_void:()=>q0,_xid:()=>p0,_xor:()=>O2,clone:()=>ZK,config:()=>gK,createStandardJSONSchemaMethod:()=>p4,createToJSONSchemaMethod:()=>f4,decode:()=>eJ,decodeAsync:()=>iJ,describe:()=>t4,encode:()=>Qq,encodeAsync:()=>nJ,extractDefs:()=>l4,finalize:()=>u4,flattenError:()=>Pq,formatError:()=>Fq,globalConfig:()=>SK,globalRegistry:()=>Z1,initializeContext:()=>s4,isValidBase64:()=>tX,isValidBase64URL:()=>nX,isValidJWT:()=>rX,locales:()=>W1,meta:()=>n4,parse:()=>Wq,parseAsync:()=>Kq,prettifyError:()=>Rq,process:()=>c4,regexes:()=>mJ,registry:()=>K1,safeDecode:()=>cJ,safeDecodeAsync:()=>fJ,safeEncode:()=>oJ,safeEncodeAsync:()=>uJ,safeParse:()=>Jq,safeParseAsync:()=>Xq,toDotPath:()=>Lq,toJSONSchema:()=>h4,treeifyError:()=>Iq,util:()=>wK,version:()=>$Y}),l3=o((()=>{CK(),pJ(),Hq(),GZ(),XY(),eX(),Nq(),TY(),G1(),Q1(),QY(),o4(),m4(),r3(),a3(),s3()}));pJ();function u3(e){return!!e._zod}function d3(e,t){return u3(e)?Jq(e,t):e.safeParse(t)}function f3(e){if(!e)return;let t;if(t=u3(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function p3(e){if(u3(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var m3=c({endsWith:()=>_2,gt:()=>$0,gte:()=>e2,includes:()=>h2,length:()=>d2,lowercase:()=>p2,lt:()=>Z0,lte:()=>Q0,maxLength:()=>l2,maxSize:()=>o2,mime:()=>y2,minLength:()=>u2,minSize:()=>s2,multipleOf:()=>a2,negative:()=>n2,nonnegative:()=>i2,nonpositive:()=>r2,normalize:()=>x2,overwrite:()=>b2,positive:()=>t2,property:()=>v2,regex:()=>f2,size:()=>c2,slugify:()=>T2,startsWith:()=>g2,toLowerCase:()=>C2,toUpperCase:()=>w2,trim:()=>S2,uppercase:()=>m2}),h3=o((()=>{l3()})),g3=c({ZodISODate:()=>S3,ZodISODateTime:()=>x3,ZodISODuration:()=>w3,ZodISOTime:()=>C3,date:()=>v3,datetime:()=>_3,duration:()=>b3,time:()=>y3});function _3(e){return w0(x3,e)}function v3(e){return T0(S3,e)}function y3(e){return E0(C3,e)}function b3(e){return D0(w3,e)}var x3,S3,C3,w3,T3=o((()=>{l3(),K5(),x3=q(`ZodISODateTime`,(e,t)=>{zX.init(e,t),A8.init(e,t)}),S3=q(`ZodISODate`,(e,t)=>{BX.init(e,t),A8.init(e,t)}),C3=q(`ZodISOTime`,(e,t)=>{VX.init(e,t),A8.init(e,t)}),w3=q(`ZodISODuration`,(e,t)=>{HX.init(e,t),A8.init(e,t)})})),E3,D3,O3,k3=o((()=>{l3(),Nq(),E3=(e,t)=>{Bq.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Fq(e,t)},flatten:{value:t=>Pq(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,jK,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,jK,2)}},isEmpty:{get(){return e.issues.length===0}}})},D3=q(`ZodError`,E3),O3=q(`ZodError`,E3,{Parent:Error})})),A3,j3,M3,N3,P3,F3,I3,L3,R3,z3,B3,V3,H3=o((()=>{l3(),k3(),A3=Uq(O3),j3=Gq(O3),M3=qq(O3),N3=Yq(O3),P3=Zq(O3),F3=$q(O3),I3=tJ(O3),L3=rJ(O3),R3=aJ(O3),z3=sJ(O3),B3=lJ(O3),V3=dJ(O3)})),U3=c({ZodAny:()=>o5,ZodArray:()=>d5,ZodBase64:()=>q8,ZodBase64URL:()=>J8,ZodBigInt:()=>t5,ZodBigIntFormat:()=>n5,ZodBoolean:()=>e5,ZodCIDRv4:()=>G8,ZodCIDRv6:()=>K8,ZodCUID:()=>L8,ZodCUID2:()=>R8,ZodCatch:()=>M5,ZodCodec:()=>F5,ZodCustom:()=>H5,ZodCustomStringFormat:()=>Z8,ZodDate:()=>u5,ZodDefault:()=>O5,ZodDiscriminatedUnion:()=>h5,ZodE164:()=>Y8,ZodEmail:()=>j8,ZodEmoji:()=>F8,ZodEnum:()=>x5,ZodExactOptional:()=>E5,ZodFile:()=>C5,ZodFunction:()=>V5,ZodGUID:()=>M8,ZodIPv4:()=>H8,ZodIPv6:()=>W8,ZodIntersection:()=>g5,ZodJWT:()=>X8,ZodKSUID:()=>V8,ZodLazy:()=>z5,ZodLiteral:()=>S5,ZodMAC:()=>U8,ZodMap:()=>y5,ZodNaN:()=>N5,ZodNanoID:()=>I8,ZodNever:()=>c5,ZodNonOptional:()=>A5,ZodNull:()=>a5,ZodNullable:()=>D5,ZodNumber:()=>Q8,ZodNumberFormat:()=>$8,ZodObject:()=>f5,ZodOptional:()=>T5,ZodPipe:()=>P5,ZodPrefault:()=>k5,ZodPreprocess:()=>I5,ZodPromise:()=>B5,ZodReadonly:()=>L5,ZodRecord:()=>v5,ZodSet:()=>b5,ZodString:()=>k8,ZodStringFormat:()=>A8,ZodSuccess:()=>j5,ZodSymbol:()=>r5,ZodTemplateLiteral:()=>R5,ZodTransform:()=>w5,ZodTuple:()=>_5,ZodType:()=>D8,ZodULID:()=>z8,ZodURL:()=>P8,ZodUUID:()=>N8,ZodUndefined:()=>i5,ZodUnion:()=>p5,ZodUnknown:()=>s5,ZodVoid:()=>l5,ZodXID:()=>B8,ZodXor:()=>m5,_ZodString:()=>O8,_default:()=>a8,_function:()=>v8,any:()=>M6,array:()=>L6,base64:()=>d6,base64url:()=>f6,bigint:()=>E6,boolean:()=>T6,catch:()=>l8,check:()=>y8,cidrv4:()=>l6,cidrv6:()=>u6,codec:()=>f8,cuid:()=>t6,cuid2:()=>n6,custom:()=>b8,date:()=>I6,describe:()=>U5,discriminatedUnion:()=>U6,e164:()=>p6,email:()=>G3,emoji:()=>$3,enum:()=>Z6,exactOptional:()=>n8,file:()=>$6,float32:()=>x6,float64:()=>S6,function:()=>v8,guid:()=>K3,hash:()=>v6,hex:()=>_6,hostname:()=>g6,httpUrl:()=>Q3,instanceof:()=>C8,int:()=>b6,int32:()=>C6,int64:()=>D6,intersection:()=>W6,invertCodec:()=>p8,ipv4:()=>o6,ipv6:()=>c6,json:()=>w8,jwt:()=>m6,keyof:()=>R6,ksuid:()=>a6,lazy:()=>g8,literal:()=>Q,looseObject:()=>B6,looseRecord:()=>J6,mac:()=>s6,map:()=>Y6,meta:()=>W5,nan:()=>u8,nanoid:()=>e6,nativeEnum:()=>Q6,never:()=>P6,nonoptional:()=>s8,null:()=>j6,nullable:()=>r8,nullish:()=>i8,number:()=>y6,object:()=>Z,optional:()=>t8,partialRecord:()=>q6,pipe:()=>d8,prefault:()=>o8,preprocess:()=>T8,promise:()=>_8,readonly:()=>m8,record:()=>K6,refine:()=>x8,set:()=>X6,strictObject:()=>z6,string:()=>X,stringFormat:()=>h6,stringbool:()=>G5,success:()=>c8,superRefine:()=>S8,symbol:()=>k6,templateLiteral:()=>h8,transform:()=>e8,tuple:()=>G6,uint32:()=>w6,uint64:()=>O6,ulid:()=>r6,undefined:()=>A6,union:()=>V6,unknown:()=>N6,url:()=>Z3,uuid:()=>q3,uuidv4:()=>J3,uuidv6:()=>Y3,uuidv7:()=>X3,void:()=>F6,xid:()=>i6,xor:()=>H6});function W3(e,t,n){let r=Object.getPrototypeOf(e),i=E8.get(r);if(i||(i=new Set,E8.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return $1(k8,e)}function G3(e){return t0(j8,e)}function K3(e){return n0(M8,e)}function q3(e){return r0(N8,e)}function J3(e){return i0(N8,e)}function Y3(e){return a0(N8,e)}function X3(e){return o0(N8,e)}function Z3(e){return s0(P8,e)}function Q3(e){return s0(P8,{protocol:XJ,hostname:YJ,...Y(e)})}function $3(e){return c0(F8,e)}function e6(e){return l0(I8,e)}function t6(e){return u0(L8,e)}function n6(e){return d0(R8,e)}function r6(e){return f0(z8,e)}function i6(e){return p0(B8,e)}function a6(e){return m0(V8,e)}function o6(e){return h0(H8,e)}function s6(e){return _0(U8,e)}function c6(e){return g0(W8,e)}function l6(e){return v0(G8,e)}function u6(e){return y0(K8,e)}function d6(e){return b0(q8,e)}function f6(e){return x0(J8,e)}function p6(e){return S0(Y8,e)}function m6(e){return C0(X8,e)}function h6(e,t,n={}){return i4(Z8,e,t,n)}function g6(e){return i4(Z8,`hostname`,JJ,e)}function _6(e){return i4(Z8,`hex`,lY,e)}function v6(e,t){let n=`${e}_${t?.enc??`hex`}`,r=mJ[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return i4(Z8,n,r,t)}function y6(e){return O0(Q8,e)}function b6(e){return A0($8,e)}function x6(e){return j0($8,e)}function S6(e){return M0($8,e)}function C6(e){return N0($8,e)}function w6(e){return P0($8,e)}function T6(e){return F0(e5,e)}function E6(e){return L0(t5,e)}function D6(e){return z0(n5,e)}function O6(e){return B0(n5,e)}function k6(e){return V0(r5,e)}function A6(e){return H0(i5,e)}function j6(e){return U0(a5,e)}function M6(){return W0(o5)}function N6(){return G0(s5)}function P6(e){return K0(c5,e)}function F6(e){return q0(l5,e)}function I6(e){return J0(u5,e)}function L6(e,t){return E2(d5,e,t)}function R6(e){let t=e._zod.def.shape;return Z6(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new f5(n)}function z6(e,t){return new f5({type:`object`,shape:e,catchall:P6(),...Y(t)})}function B6(e,t){return new f5({type:`object`,shape:e,catchall:N6(),...Y(t)})}function V6(e,t){return new p5({type:`union`,options:e,...Y(t)})}function H6(e,t){return new m5({type:`union`,options:e,inclusive:!1,...Y(t)})}function U6(e,t,n){return new h5({type:`union`,options:t,discriminator:e,...Y(n)})}function W6(e,t){return new g5({type:`intersection`,left:e,right:t})}function G6(e,t,n){let r=t instanceof TX;return new _5({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function K6(e,t,n){return!t||!t._zod?new v5({type:`record`,keyType:X(),valueType:e,...Y(t)}):new v5({type:`record`,keyType:e,valueType:t,...Y(n)})}function q6(e,t,n){let r=ZK(e);return r._zod.values=void 0,new v5({type:`record`,keyType:r,valueType:t,...Y(n)})}function J6(e,t,n){return new v5({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function Y6(e,t,n){return new y5({type:`map`,keyType:e,valueType:t,...Y(n)})}function X6(e,t){return new b5({type:`set`,valueType:e,...Y(t)})}function Z6(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new x5({type:`enum`,entries:n,...Y(t)})}function Q6(e,t){return new x5({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new S5({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function $6(e){return R2(C5,e)}function e8(e){return new w5({type:`transform`,transform:e})}function t8(e){return new T5({type:`optional`,innerType:e})}function n8(e){return new E5({type:`optional`,innerType:e})}function r8(e){return new D5({type:`nullable`,innerType:e})}function i8(e){return t8(r8(e))}function a8(e,t){return new O5({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():JK(t)}})}function o8(e,t){return new k5({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():JK(t)}})}function s8(e,t){return new A5({type:`nonoptional`,innerType:e,...Y(t)})}function c8(e){return new j5({type:`success`,innerType:e})}function l8(e,t){return new M5({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function u8(e){return X0(N5,e)}function d8(e,t){return new P5({type:`pipe`,in:e,out:t})}function f8(e,t,n){return new F5({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function p8(e){let t=e._zod.def;return new F5({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function m8(e){return new L5({type:`readonly`,innerType:e})}function h8(e,t){return new R5({type:`template_literal`,parts:e,...Y(t)})}function g8(e){return new z5({type:`lazy`,getter:e})}function _8(e){return new B5({type:`promise`,innerType:e})}function v8(e){return new V5({type:`function`,input:Array.isArray(e?.input)?G6(e?.input):e?.input??L6(N6()),output:e?.output??N6()})}function y8(e){let t=new DY({check:`custom`});return t._zod.check=e,t}function b8(e,t){return Z2(H5,e??(()=>!0),t)}function x8(e,t={}){return Q2(H5,e,t)}function S8(e,t){return $2(e,t)}function C8(e,t={}){let n=new H5({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function w8(e){let t=g8(()=>V6([X(e),y6(),T6(),j6(),L6(t),K6(X(),t)]));return t}function T8(e,t){return new I5({type:`pipe`,in:e8(e),out:t})}var E8,D8,O8,k8,A8,j8,M8,N8,P8,F8,I8,L8,R8,z8,B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8,X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5,o5,s5,c5,l5,u5,d5,f5,p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5,F5,I5,L5,R5,z5,B5,V5,H5,U5,W5,G5,K5=o((()=>{l3(),r3(),m4(),h3(),T3(),H3(),E8=new WeakMap,D8=q(`ZodType`,(e,t)=>(TX.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:p4(e,`input`),output:p4(e,`output`)}}),e.toJSONSchema=f4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>A3(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>M3(e,t,n),e.parseAsync=async(t,n)=>j3(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>N3(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>P3(e,t,n),e.decode=(t,n)=>F3(e,t,n),e.encodeAsync=async(t,n)=>I3(e,t,n),e.decodeAsync=async(t,n)=>L3(e,t,n),e.safeEncode=(t,n)=>R3(e,t,n),e.safeDecode=(t,n)=>z3(e,t,n),e.safeEncodeAsync=async(t,n)=>B3(e,t,n),e.safeDecodeAsync=async(t,n)=>V3(e,t,n),W3(e,`ZodType`,{check(...e){let t=this.def;return this.clone(zK(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ZK(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(x8(e,t))},superRefine(e,t){return this.check(S8(e,t))},overwrite(e){return this.check(b2(e))},optional(){return t8(this)},exactOptional(){return n8(this)},nullable(){return r8(this)},nullish(){return t8(r8(this))},nonoptional(e){return s8(this,e)},array(){return L6(this)},or(e){return V6([this,e])},and(e){return W6(this,e)},transform(e){return d8(this,e8(e))},default(e){return a8(this,e)},prefault(e){return o8(this,e)},catch(e){return l8(this,e)},pipe(e){return d8(this,e)},readonly(){return m8(this)},describe(e){let t=this.clone();return Z1.add(t,{description:e}),t},meta(...e){if(e.length===0)return Z1.get(this);let t=this.clone();return Z1.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Z1.get(e)?.description},configurable:!0}),e)),O8=q(`_ZodString`,(e,t)=>{EX.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_4(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,W3(e,`_ZodString`,{regex(...e){return this.check(f2(...e))},includes(...e){return this.check(h2(...e))},startsWith(...e){return this.check(g2(...e))},endsWith(...e){return this.check(_2(...e))},min(...e){return this.check(u2(...e))},max(...e){return this.check(l2(...e))},length(...e){return this.check(d2(...e))},nonempty(...e){return this.check(u2(1,...e))},lowercase(e){return this.check(p2(e))},uppercase(e){return this.check(m2(e))},trim(){return this.check(S2())},normalize(...e){return this.check(x2(...e))},toLowerCase(){return this.check(C2())},toUpperCase(){return this.check(w2())},slugify(){return this.check(T2())}})}),k8=q(`ZodString`,(e,t)=>{EX.init(e,t),O8.init(e,t),e.email=t=>e.check(t0(j8,t)),e.url=t=>e.check(s0(P8,t)),e.jwt=t=>e.check(C0(X8,t)),e.emoji=t=>e.check(c0(F8,t)),e.guid=t=>e.check(n0(M8,t)),e.uuid=t=>e.check(r0(N8,t)),e.uuidv4=t=>e.check(i0(N8,t)),e.uuidv6=t=>e.check(a0(N8,t)),e.uuidv7=t=>e.check(o0(N8,t)),e.nanoid=t=>e.check(l0(I8,t)),e.guid=t=>e.check(n0(M8,t)),e.cuid=t=>e.check(u0(L8,t)),e.cuid2=t=>e.check(d0(R8,t)),e.ulid=t=>e.check(f0(z8,t)),e.base64=t=>e.check(b0(q8,t)),e.base64url=t=>e.check(x0(J8,t)),e.xid=t=>e.check(p0(B8,t)),e.ksuid=t=>e.check(m0(V8,t)),e.ipv4=t=>e.check(h0(H8,t)),e.ipv6=t=>e.check(g0(W8,t)),e.cidrv4=t=>e.check(v0(G8,t)),e.cidrv6=t=>e.check(y0(K8,t)),e.e164=t=>e.check(S0(Y8,t)),e.datetime=t=>e.check(_3(t)),e.date=t=>e.check(v3(t)),e.time=t=>e.check(y3(t)),e.duration=t=>e.check(b3(t))}),A8=q(`ZodStringFormat`,(e,t)=>{DX.init(e,t),O8.init(e,t)}),j8=q(`ZodEmail`,(e,t)=>{AX.init(e,t),A8.init(e,t)}),M8=q(`ZodGUID`,(e,t)=>{OX.init(e,t),A8.init(e,t)}),N8=q(`ZodUUID`,(e,t)=>{kX.init(e,t),A8.init(e,t)}),P8=q(`ZodURL`,(e,t)=>{jX.init(e,t),A8.init(e,t)}),F8=q(`ZodEmoji`,(e,t)=>{MX.init(e,t),A8.init(e,t)}),I8=q(`ZodNanoID`,(e,t)=>{NX.init(e,t),A8.init(e,t)}),L8=q(`ZodCUID`,(e,t)=>{PX.init(e,t),A8.init(e,t)}),R8=q(`ZodCUID2`,(e,t)=>{FX.init(e,t),A8.init(e,t)}),z8=q(`ZodULID`,(e,t)=>{IX.init(e,t),A8.init(e,t)}),B8=q(`ZodXID`,(e,t)=>{LX.init(e,t),A8.init(e,t)}),V8=q(`ZodKSUID`,(e,t)=>{RX.init(e,t),A8.init(e,t)}),H8=q(`ZodIPv4`,(e,t)=>{UX.init(e,t),A8.init(e,t)}),U8=q(`ZodMAC`,(e,t)=>{GX.init(e,t),A8.init(e,t)}),W8=q(`ZodIPv6`,(e,t)=>{WX.init(e,t),A8.init(e,t)}),G8=q(`ZodCIDRv4`,(e,t)=>{KX.init(e,t),A8.init(e,t)}),K8=q(`ZodCIDRv6`,(e,t)=>{qX.init(e,t),A8.init(e,t)}),q8=q(`ZodBase64`,(e,t)=>{JX.init(e,t),A8.init(e,t)}),J8=q(`ZodBase64URL`,(e,t)=>{YX.init(e,t),A8.init(e,t)}),Y8=q(`ZodE164`,(e,t)=>{XX.init(e,t),A8.init(e,t)}),X8=q(`ZodJWT`,(e,t)=>{ZX.init(e,t),A8.init(e,t)}),Z8=q(`ZodCustomStringFormat`,(e,t)=>{QX.init(e,t),A8.init(e,t)}),Q8=q(`ZodNumber`,(e,t)=>{$X.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v4(e,t,n,r),W3(e,`ZodNumber`,{gt(e,t){return this.check($0(e,t))},gte(e,t){return this.check(e2(e,t))},min(e,t){return this.check(e2(e,t))},lt(e,t){return this.check(Z0(e,t))},lte(e,t){return this.check(Q0(e,t))},max(e,t){return this.check(Q0(e,t))},int(e){return this.check(b6(e))},safe(e){return this.check(b6(e))},positive(e){return this.check($0(0,e))},nonnegative(e){return this.check(e2(0,e))},negative(e){return this.check(Z0(0,e))},nonpositive(e){return this.check(Q0(0,e))},multipleOf(e,t){return this.check(a2(e,t))},step(e,t){return this.check(a2(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),$8=q(`ZodNumberFormat`,(e,t)=>{eZ.init(e,t),Q8.init(e,t)}),e5=q(`ZodBoolean`,(e,t)=>{tZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y4(e,t,n,r)}),t5=q(`ZodBigInt`,(e,t)=>{nZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b4(e,t,n,r),e.gte=(t,n)=>e.check(e2(t,n)),e.min=(t,n)=>e.check(e2(t,n)),e.gt=(t,n)=>e.check($0(t,n)),e.gte=(t,n)=>e.check(e2(t,n)),e.min=(t,n)=>e.check(e2(t,n)),e.lt=(t,n)=>e.check(Z0(t,n)),e.lte=(t,n)=>e.check(Q0(t,n)),e.max=(t,n)=>e.check(Q0(t,n)),e.positive=t=>e.check($0(BigInt(0),t)),e.negative=t=>e.check(Z0(BigInt(0),t)),e.nonpositive=t=>e.check(Q0(BigInt(0),t)),e.nonnegative=t=>e.check(e2(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(a2(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),n5=q(`ZodBigIntFormat`,(e,t)=>{rZ.init(e,t),t5.init(e,t)}),r5=q(`ZodSymbol`,(e,t)=>{iZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x4(e,t,n,r)}),i5=q(`ZodUndefined`,(e,t)=>{aZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C4(e,t,n,r)}),a5=q(`ZodNull`,(e,t)=>{oZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S4(e,t,n,r)}),o5=q(`ZodAny`,(e,t)=>{sZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E4(e,t,n,r)}),s5=q(`ZodUnknown`,(e,t)=>{cZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D4(e,t,n,r)}),c5=q(`ZodNever`,(e,t)=>{lZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T4(e,t,n,r)}),l5=q(`ZodVoid`,(e,t)=>{uZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w4(e,t,n,r)}),u5=q(`ZodDate`,(e,t)=>{dZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O4(e,t,n,r),e.min=(t,n)=>e.check(e2(t,n)),e.max=(t,n)=>e.check(Q0(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),d5=q(`ZodArray`,(e,t)=>{fZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B4(e,t,n,r),e.element=t.element,W3(e,`ZodArray`,{min(e,t){return this.check(u2(e,t))},nonempty(e){return this.check(u2(1,e))},max(e,t){return this.check(l2(e,t))},length(e,t){return this.check(d2(e,t))},unwrap(){return this.element}})}),f5=q(`ZodObject`,(e,t)=>{mZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V4(e,t,n,r),IK(e,`shape`,()=>t.shape),W3(e,`ZodObject`,{keyof(){return Z6(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:N6()})},loose(){return this.clone({...this._zod.def,catchall:N6()})},strict(){return this.clone({...this._zod.def,catchall:P6()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return rq(this,e)},safeExtend(e){return iq(this,e)},merge(e){return aq(this,e)},pick(e){return tq(this,e)},omit(e){return nq(this,e)},partial(...e){return oq(T5,this,e[0])},required(...e){return sq(A5,this,e[0])}})}),p5=q(`ZodUnion`,(e,t)=>{hZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H4(e,t,n,r),e.options=t.options}),m5=q(`ZodXor`,(e,t)=>{p5.init(e,t),gZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H4(e,t,n,r),e.options=t.options}),h5=q(`ZodDiscriminatedUnion`,(e,t)=>{p5.init(e,t),_Z.init(e,t)}),g5=q(`ZodIntersection`,(e,t)=>{vZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U4(e,t,n,r)}),_5=q(`ZodTuple`,(e,t)=>{yZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W4(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),v5=q(`ZodRecord`,(e,t)=>{bZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),y5=q(`ZodMap`,(e,t)=>{xZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(s2(...t)),e.nonempty=t=>e.check(s2(1,t)),e.max=(...t)=>e.check(o2(...t)),e.size=(...t)=>e.check(c2(...t))}),b5=q(`ZodSet`,(e,t)=>{SZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z4(e,t,n,r),e.min=(...t)=>e.check(s2(...t)),e.nonempty=t=>e.check(s2(1,t)),e.max=(...t)=>e.check(o2(...t)),e.size=(...t)=>e.check(c2(...t))}),x5=q(`ZodEnum`,(e,t)=>{CZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k4(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new x5({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new x5({...t,checks:[],...Y(r),entries:i})}}),S5=q(`ZodLiteral`,(e,t)=>{wZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A4(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),C5=q(`ZodFile`,(e,t)=>{TZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N4(e,t,n,r),e.min=(t,n)=>e.check(s2(t,n)),e.max=(t,n)=>e.check(o2(t,n)),e.mime=(t,n)=>e.check(y2(Array.isArray(t)?t:[t],n))}),w5=q(`ZodTransform`,(e,t)=>{EZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L4(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new xK(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(gq(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(gq(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),T5=q(`ZodOptional`,(e,t)=>{DZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),E5=q(`ZodExactOptional`,(e,t)=>{OZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),D5=q(`ZodNullable`,(e,t)=>{kZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),O5=q(`ZodDefault`,(e,t)=>{AZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),k5=q(`ZodPrefault`,(e,t)=>{jZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),A5=q(`ZodNonOptional`,(e,t)=>{MZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),j5=q(`ZodSuccess`,(e,t)=>{NZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),M5=q(`ZodCatch`,(e,t)=>{PZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),N5=q(`ZodNaN`,(e,t)=>{FZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j4(e,t,n,r)}),P5=q(`ZodPipe`,(e,t)=>{IZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z4(e,t,n,r),e.in=t.in,e.out=t.out}),F5=q(`ZodCodec`,(e,t)=>{P5.init(e,t),LZ.init(e,t)}),I5=q(`ZodPreprocess`,(e,t)=>{P5.init(e,t),RZ.init(e,t)}),L5=q(`ZodReadonly`,(e,t)=>{zZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),R5=q(`ZodTemplateLiteral`,(e,t)=>{BZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M4(e,t,n,r)}),z5=q(`ZodLazy`,(e,t)=>{UZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t3(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),B5=q(`ZodPromise`,(e,t)=>{HZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),V5=q(`ZodFunction`,(e,t)=>{VZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I4(e,t,n,r)}),H5=q(`ZodCustom`,(e,t)=>{WZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r)}),U5=t4,W5=n4,G5=(...e)=>r4({Codec:F5,Boolean:e5,String:k8},...e)}));function q5(e){gK({customError:e})}function J5(){return gK().customError}var Y5,X5,Z5=o((()=>{l3(),Y5={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`},X5||={}}));function Q5(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function $5(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function e7(e,t){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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=t7($5(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>e7({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){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))),r=t;break}case`number`:case`integer`:{let t=n===`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)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=t7(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=t7(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?t7(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=t7(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tt7(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?t7(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>t7(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?t7(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=t7(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function t7(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=e7(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>t7(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>t7(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf)){if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:t7(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function n7(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:Q5(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Z1};return t7(n,r)}var $,r7,i7=o((()=>{Q1(),h3(),T3(),K5(),$={...U3,...m3,iso:g3},r7=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`.split(`.`))})),a7=c({bigint:()=>l7,boolean:()=>c7,date:()=>u7,number:()=>s7,string:()=>o7});function o7(e){return e0(k8,e)}function s7(e){return k0(Q8,e)}function c7(e){return I0(e5,e)}function l7(e){return R0(t5,e)}function u7(e){return Y0(u5,e)}var d7=o((()=>{l3(),K5()})),f7=c({$brand:()=>yK,$input:()=>Y1,$output:()=>J1,NEVER:()=>vK,TimePrecision:()=>a4,ZodAny:()=>o5,ZodArray:()=>d5,ZodBase64:()=>q8,ZodBase64URL:()=>J8,ZodBigInt:()=>t5,ZodBigIntFormat:()=>n5,ZodBoolean:()=>e5,ZodCIDRv4:()=>G8,ZodCIDRv6:()=>K8,ZodCUID:()=>L8,ZodCUID2:()=>R8,ZodCatch:()=>M5,ZodCodec:()=>F5,ZodCustom:()=>H5,ZodCustomStringFormat:()=>Z8,ZodDate:()=>u5,ZodDefault:()=>O5,ZodDiscriminatedUnion:()=>h5,ZodE164:()=>Y8,ZodEmail:()=>j8,ZodEmoji:()=>F8,ZodEnum:()=>x5,ZodError:()=>D3,ZodExactOptional:()=>E5,ZodFile:()=>C5,ZodFirstPartyTypeKind:()=>X5,ZodFunction:()=>V5,ZodGUID:()=>M8,ZodIPv4:()=>H8,ZodIPv6:()=>W8,ZodISODate:()=>S3,ZodISODateTime:()=>x3,ZodISODuration:()=>w3,ZodISOTime:()=>C3,ZodIntersection:()=>g5,ZodIssueCode:()=>Y5,ZodJWT:()=>X8,ZodKSUID:()=>V8,ZodLazy:()=>z5,ZodLiteral:()=>S5,ZodMAC:()=>U8,ZodMap:()=>y5,ZodNaN:()=>N5,ZodNanoID:()=>I8,ZodNever:()=>c5,ZodNonOptional:()=>A5,ZodNull:()=>a5,ZodNullable:()=>D5,ZodNumber:()=>Q8,ZodNumberFormat:()=>$8,ZodObject:()=>f5,ZodOptional:()=>T5,ZodPipe:()=>P5,ZodPrefault:()=>k5,ZodPreprocess:()=>I5,ZodPromise:()=>B5,ZodReadonly:()=>L5,ZodRealError:()=>O3,ZodRecord:()=>v5,ZodSet:()=>b5,ZodString:()=>k8,ZodStringFormat:()=>A8,ZodSuccess:()=>j5,ZodSymbol:()=>r5,ZodTemplateLiteral:()=>R5,ZodTransform:()=>w5,ZodTuple:()=>_5,ZodType:()=>D8,ZodULID:()=>z8,ZodURL:()=>P8,ZodUUID:()=>N8,ZodUndefined:()=>i5,ZodUnion:()=>p5,ZodUnknown:()=>s5,ZodVoid:()=>l5,ZodXID:()=>B8,ZodXor:()=>m5,_ZodString:()=>O8,_default:()=>a8,_function:()=>v8,any:()=>M6,array:()=>L6,base64:()=>d6,base64url:()=>f6,bigint:()=>E6,boolean:()=>T6,catch:()=>l8,check:()=>y8,cidrv4:()=>l6,cidrv6:()=>u6,clone:()=>ZK,codec:()=>f8,coerce:()=>a7,config:()=>gK,core:()=>c3,cuid:()=>t6,cuid2:()=>n6,custom:()=>b8,date:()=>I6,decode:()=>F3,decodeAsync:()=>L3,describe:()=>U5,discriminatedUnion:()=>U6,e164:()=>p6,email:()=>G3,emoji:()=>$3,encode:()=>P3,encodeAsync:()=>I3,endsWith:()=>_2,enum:()=>Z6,exactOptional:()=>n8,file:()=>$6,flattenError:()=>Pq,float32:()=>x6,float64:()=>S6,formatError:()=>Fq,fromJSONSchema:()=>n7,function:()=>v8,getErrorMap:()=>J5,globalRegistry:()=>Z1,gt:()=>$0,gte:()=>e2,guid:()=>K3,hash:()=>v6,hex:()=>_6,hostname:()=>g6,httpUrl:()=>Q3,includes:()=>h2,instanceof:()=>C8,int:()=>b6,int32:()=>C6,int64:()=>D6,intersection:()=>W6,invertCodec:()=>p8,ipv4:()=>o6,ipv6:()=>c6,iso:()=>g3,json:()=>w8,jwt:()=>m6,keyof:()=>R6,ksuid:()=>a6,lazy:()=>g8,length:()=>d2,literal:()=>Q,locales:()=>W1,looseObject:()=>B6,looseRecord:()=>J6,lowercase:()=>p2,lt:()=>Z0,lte:()=>Q0,mac:()=>s6,map:()=>Y6,maxLength:()=>l2,maxSize:()=>o2,meta:()=>W5,mime:()=>y2,minLength:()=>u2,minSize:()=>s2,multipleOf:()=>a2,nan:()=>u8,nanoid:()=>e6,nativeEnum:()=>Q6,negative:()=>n2,never:()=>P6,nonnegative:()=>i2,nonoptional:()=>s8,nonpositive:()=>r2,normalize:()=>x2,null:()=>j6,nullable:()=>r8,nullish:()=>i8,number:()=>y6,object:()=>Z,optional:()=>t8,overwrite:()=>b2,parse:()=>A3,parseAsync:()=>j3,partialRecord:()=>q6,pipe:()=>d8,positive:()=>t2,prefault:()=>o8,preprocess:()=>T8,prettifyError:()=>Rq,promise:()=>_8,property:()=>v2,readonly:()=>m8,record:()=>K6,refine:()=>x8,regex:()=>f2,regexes:()=>mJ,registry:()=>K1,safeDecode:()=>z3,safeDecodeAsync:()=>V3,safeEncode:()=>R3,safeEncodeAsync:()=>B3,safeParse:()=>M3,safeParseAsync:()=>N3,set:()=>X6,setErrorMap:()=>q5,size:()=>c2,slugify:()=>T2,startsWith:()=>g2,strictObject:()=>z6,string:()=>X,stringFormat:()=>h6,stringbool:()=>G5,success:()=>c8,superRefine:()=>S8,symbol:()=>k6,templateLiteral:()=>h8,toJSONSchema:()=>h4,toLowerCase:()=>C2,toUpperCase:()=>w2,transform:()=>e8,treeifyError:()=>Iq,trim:()=>S2,tuple:()=>G6,uint32:()=>w6,uint64:()=>O6,ulid:()=>r6,undefined:()=>A6,union:()=>V6,unknown:()=>N6,uppercase:()=>m2,url:()=>Z3,util:()=>wK,uuid:()=>q3,uuidv4:()=>J3,uuidv6:()=>Y3,uuidv7:()=>X3,void:()=>F6,xid:()=>i6,xor:()=>H6}),p7=o((()=>{l3(),K5(),h3(),k3(),H3(),Z5(),SQ(),r3(),i7(),G1(),T3(),d7(),gK(bQ())})),m7,h7=o((()=>{p7(),p7(),m7=f7})),g7=c({$brand:()=>yK,$input:()=>Y1,$output:()=>J1,NEVER:()=>vK,TimePrecision:()=>a4,ZodAny:()=>o5,ZodArray:()=>d5,ZodBase64:()=>q8,ZodBase64URL:()=>J8,ZodBigInt:()=>t5,ZodBigIntFormat:()=>n5,ZodBoolean:()=>e5,ZodCIDRv4:()=>G8,ZodCIDRv6:()=>K8,ZodCUID:()=>L8,ZodCUID2:()=>R8,ZodCatch:()=>M5,ZodCodec:()=>F5,ZodCustom:()=>H5,ZodCustomStringFormat:()=>Z8,ZodDate:()=>u5,ZodDefault:()=>O5,ZodDiscriminatedUnion:()=>h5,ZodE164:()=>Y8,ZodEmail:()=>j8,ZodEmoji:()=>F8,ZodEnum:()=>x5,ZodError:()=>D3,ZodExactOptional:()=>E5,ZodFile:()=>C5,ZodFirstPartyTypeKind:()=>X5,ZodFunction:()=>V5,ZodGUID:()=>M8,ZodIPv4:()=>H8,ZodIPv6:()=>W8,ZodISODate:()=>S3,ZodISODateTime:()=>x3,ZodISODuration:()=>w3,ZodISOTime:()=>C3,ZodIntersection:()=>g5,ZodIssueCode:()=>Y5,ZodJWT:()=>X8,ZodKSUID:()=>V8,ZodLazy:()=>z5,ZodLiteral:()=>S5,ZodMAC:()=>U8,ZodMap:()=>y5,ZodNaN:()=>N5,ZodNanoID:()=>I8,ZodNever:()=>c5,ZodNonOptional:()=>A5,ZodNull:()=>a5,ZodNullable:()=>D5,ZodNumber:()=>Q8,ZodNumberFormat:()=>$8,ZodObject:()=>f5,ZodOptional:()=>T5,ZodPipe:()=>P5,ZodPrefault:()=>k5,ZodPreprocess:()=>I5,ZodPromise:()=>B5,ZodReadonly:()=>L5,ZodRealError:()=>O3,ZodRecord:()=>v5,ZodSet:()=>b5,ZodString:()=>k8,ZodStringFormat:()=>A8,ZodSuccess:()=>j5,ZodSymbol:()=>r5,ZodTemplateLiteral:()=>R5,ZodTransform:()=>w5,ZodTuple:()=>_5,ZodType:()=>D8,ZodULID:()=>z8,ZodURL:()=>P8,ZodUUID:()=>N8,ZodUndefined:()=>i5,ZodUnion:()=>p5,ZodUnknown:()=>s5,ZodVoid:()=>l5,ZodXID:()=>B8,ZodXor:()=>m5,_ZodString:()=>O8,_default:()=>a8,_function:()=>v8,any:()=>M6,array:()=>L6,base64:()=>d6,base64url:()=>f6,bigint:()=>E6,boolean:()=>T6,catch:()=>l8,check:()=>y8,cidrv4:()=>l6,cidrv6:()=>u6,clone:()=>ZK,codec:()=>f8,coerce:()=>a7,config:()=>gK,core:()=>c3,cuid:()=>t6,cuid2:()=>n6,custom:()=>b8,date:()=>I6,decode:()=>F3,decodeAsync:()=>L3,default:()=>_7,describe:()=>U5,discriminatedUnion:()=>U6,e164:()=>p6,email:()=>G3,emoji:()=>$3,encode:()=>P3,encodeAsync:()=>I3,endsWith:()=>_2,enum:()=>Z6,exactOptional:()=>n8,file:()=>$6,flattenError:()=>Pq,float32:()=>x6,float64:()=>S6,formatError:()=>Fq,fromJSONSchema:()=>n7,function:()=>v8,getErrorMap:()=>J5,globalRegistry:()=>Z1,gt:()=>$0,gte:()=>e2,guid:()=>K3,hash:()=>v6,hex:()=>_6,hostname:()=>g6,httpUrl:()=>Q3,includes:()=>h2,instanceof:()=>C8,int:()=>b6,int32:()=>C6,int64:()=>D6,intersection:()=>W6,invertCodec:()=>p8,ipv4:()=>o6,ipv6:()=>c6,iso:()=>g3,json:()=>w8,jwt:()=>m6,keyof:()=>R6,ksuid:()=>a6,lazy:()=>g8,length:()=>d2,literal:()=>Q,locales:()=>W1,looseObject:()=>B6,looseRecord:()=>J6,lowercase:()=>p2,lt:()=>Z0,lte:()=>Q0,mac:()=>s6,map:()=>Y6,maxLength:()=>l2,maxSize:()=>o2,meta:()=>W5,mime:()=>y2,minLength:()=>u2,minSize:()=>s2,multipleOf:()=>a2,nan:()=>u8,nanoid:()=>e6,nativeEnum:()=>Q6,negative:()=>n2,never:()=>P6,nonnegative:()=>i2,nonoptional:()=>s8,nonpositive:()=>r2,normalize:()=>x2,null:()=>j6,nullable:()=>r8,nullish:()=>i8,number:()=>y6,object:()=>Z,optional:()=>t8,overwrite:()=>b2,parse:()=>A3,parseAsync:()=>j3,partialRecord:()=>q6,pipe:()=>d8,positive:()=>t2,prefault:()=>o8,preprocess:()=>T8,prettifyError:()=>Rq,promise:()=>_8,property:()=>v2,readonly:()=>m8,record:()=>K6,refine:()=>x8,regex:()=>f2,regexes:()=>mJ,registry:()=>K1,safeDecode:()=>z3,safeDecodeAsync:()=>V3,safeEncode:()=>R3,safeEncodeAsync:()=>B3,safeParse:()=>M3,safeParseAsync:()=>N3,set:()=>X6,setErrorMap:()=>q5,size:()=>c2,slugify:()=>T2,startsWith:()=>g2,strictObject:()=>z6,string:()=>X,stringFormat:()=>h6,stringbool:()=>G5,success:()=>c8,superRefine:()=>S8,symbol:()=>k6,templateLiteral:()=>h8,toJSONSchema:()=>h4,toLowerCase:()=>C2,toUpperCase:()=>w2,transform:()=>e8,treeifyError:()=>Iq,trim:()=>S2,tuple:()=>G6,uint32:()=>w6,uint64:()=>O6,ulid:()=>r6,undefined:()=>A6,union:()=>V6,unknown:()=>N6,uppercase:()=>m2,url:()=>Z3,util:()=>wK,uuid:()=>q3,uuidv4:()=>J3,uuidv6:()=>Y3,uuidv7:()=>X3,void:()=>F6,xid:()=>i6,xor:()=>H6,z:()=>f7}),_7,v7=o((()=>{h7(),h7(),_7=m7}));v7();var y7=`io.modelcontextprotocol/related-task`,b7=b8(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),x7=V6([X(),y6().int()]),S7=X();B6({ttl:y6().optional(),pollInterval:y6().optional()});var C7=Z({ttl:y6().optional()}),w7=Z({taskId:X()}),T7=B6({progressToken:x7.optional(),[y7]:w7.optional()}),E7=Z({_meta:T7.optional()}),D7=E7.extend({task:C7.optional()}),O7=e=>D7.safeParse(e).success,k7=Z({method:X(),params:E7.loose().optional()}),A7=Z({_meta:T7.optional()}),j7=Z({method:X(),params:A7.loose().optional()}),M7=B6({_meta:T7.optional()}),N7=V6([X(),y6().int()]),P7=Z({jsonrpc:Q(`2.0`),id:N7,...k7.shape}).strict(),F7=e=>P7.safeParse(e).success,I7=Z({jsonrpc:Q(`2.0`),...j7.shape}).strict(),L7=e=>I7.safeParse(e).success,R7=Z({jsonrpc:Q(`2.0`),id:N7,result:M7}).strict(),z7=e=>R7.safeParse(e).success,B7;(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`})(B7||={});var V7=Z({jsonrpc:Q(`2.0`),id:N7.optional(),error:Z({code:y6().int(),message:X(),data:N6().optional()})}).strict(),H7=e=>V7.safeParse(e).success,U7=V6([P7,I7,R7,V7]);V6([R7,V7]);var W7=M7.strict(),G7=A7.extend({requestId:N7.optional(),reason:X().optional()}),K7=j7.extend({method:Q(`notifications/cancelled`),params:G7}),q7=Z({icons:L6(Z({src:X(),mimeType:X().optional(),sizes:L6(X()).optional(),theme:Z6([`light`,`dark`]).optional()})).optional()}),J7=Z({name:X(),title:X().optional()}),Y7=J7.extend({...J7.shape,...q7.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),X7=T8(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,W6(Z({form:W6(Z({applyDefaults:T6().optional()}),K6(X(),N6())).optional(),url:b7.optional()}),K6(X(),N6()).optional())),Z7=B6({list:b7.optional(),cancel:b7.optional(),requests:B6({sampling:B6({createMessage:b7.optional()}).optional(),elicitation:B6({create:b7.optional()}).optional()}).optional()}),Q7=B6({list:b7.optional(),cancel:b7.optional(),requests:B6({tools:B6({call:b7.optional()}).optional()}).optional()}),$7=Z({experimental:K6(X(),b7).optional(),sampling:Z({context:b7.optional(),tools:b7.optional()}).optional(),elicitation:X7.optional(),roots:Z({listChanged:T6().optional()}).optional(),tasks:Z7.optional(),extensions:K6(X(),b7).optional()}),e9=E7.extend({protocolVersion:X(),capabilities:$7,clientInfo:Y7}),t9=k7.extend({method:Q(`initialize`),params:e9}),$ee=Z({experimental:K6(X(),b7).optional(),logging:b7.optional(),completions:b7.optional(),prompts:Z({listChanged:T6().optional()}).optional(),resources:Z({subscribe:T6().optional(),listChanged:T6().optional()}).optional(),tools:Z({listChanged:T6().optional()}).optional(),tasks:Q7.optional(),extensions:K6(X(),b7).optional()}),ete=M7.extend({protocolVersion:X(),capabilities:$ee,serverInfo:Y7,instructions:X().optional()}),tte=j7.extend({method:Q(`notifications/initialized`),params:A7.optional()}),n9=k7.extend({method:Q(`ping`),params:E7.optional()}),nte=Z({progress:y6(),total:t8(y6()),message:t8(X())}),rte=Z({...A7.shape,...nte.shape,progressToken:x7}),r9=j7.extend({method:Q(`notifications/progress`),params:rte}),ite=E7.extend({cursor:S7.optional()}),i9=k7.extend({params:ite.optional()}),a9=M7.extend({nextCursor:S7.optional()}),ate=Z6([`working`,`input_required`,`completed`,`failed`,`cancelled`]),o9=Z({taskId:X(),status:ate,ttl:V6([y6(),j6()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:t8(y6()),statusMessage:t8(X())}),s9=M7.extend({task:o9}),ote=A7.merge(o9),c9=j7.extend({method:Q(`notifications/tasks/status`),params:ote}),l9=k7.extend({method:Q(`tasks/get`),params:E7.extend({taskId:X()})}),u9=M7.merge(o9),d9=k7.extend({method:Q(`tasks/result`),params:E7.extend({taskId:X()})});M7.loose();var f9=i9.extend({method:Q(`tasks/list`)}),p9=a9.extend({tasks:L6(o9)}),m9=k7.extend({method:Q(`tasks/cancel`),params:E7.extend({taskId:X()})}),ste=M7.merge(o9),h9=Z({uri:X(),mimeType:t8(X()),_meta:K6(X(),N6()).optional()}),g9=h9.extend({text:X()}),_9=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),v9=h9.extend({blob:_9}),y9=Z6([`user`,`assistant`]),b9=Z({audience:L6(y9).optional(),priority:y6().min(0).max(1).optional(),lastModified:_3({offset:!0}).optional()}),x9=Z({...J7.shape,...q7.shape,uri:X(),description:t8(X()),mimeType:t8(X()),size:t8(y6()),annotations:b9.optional(),_meta:t8(B6({}))}),cte=Z({...J7.shape,...q7.shape,uriTemplate:X(),description:t8(X()),mimeType:t8(X()),annotations:b9.optional(),_meta:t8(B6({}))}),lte=i9.extend({method:Q(`resources/list`)}),S9=a9.extend({resources:L6(x9)}),ute=i9.extend({method:Q(`resources/templates/list`)}),dte=a9.extend({resourceTemplates:L6(cte)}),C9=E7.extend({uri:X()}),fte=C9,pte=k7.extend({method:Q(`resources/read`),params:fte}),w9=M7.extend({contents:L6(V6([g9,v9]))}),mte=j7.extend({method:Q(`notifications/resources/list_changed`),params:A7.optional()}),hte=C9,gte=k7.extend({method:Q(`resources/subscribe`),params:hte}),_te=C9,vte=k7.extend({method:Q(`resources/unsubscribe`),params:_te}),yte=A7.extend({uri:X()}),bte=j7.extend({method:Q(`notifications/resources/updated`),params:yte}),xte=Z({name:X(),description:t8(X()),required:t8(T6())}),Ste=Z({...J7.shape,...q7.shape,description:t8(X()),arguments:t8(L6(xte)),_meta:t8(B6({}))}),T9=i9.extend({method:Q(`prompts/list`)}),Cte=a9.extend({prompts:L6(Ste)}),wte=E7.extend({name:X(),arguments:K6(X(),X()).optional()}),Tte=k7.extend({method:Q(`prompts/get`),params:wte}),E9=Z({type:Q(`text`),text:X(),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),D9=Z({type:Q(`image`),data:_9,mimeType:X(),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),O9=Z({type:Q(`audio`),data:_9,mimeType:X(),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),Ete=Z({type:Q(`tool_use`),name:X(),id:X(),input:K6(X(),N6()),_meta:K6(X(),N6()).optional()}),k9=Z({type:Q(`resource`),resource:V6([g9,v9]),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),A9=x9.extend({type:Q(`resource_link`)}),j9=V6([E9,D9,O9,A9,k9]),Dte=Z({role:y9,content:j9}),Ote=M7.extend({description:X().optional(),messages:L6(Dte)}),kte=j7.extend({method:Q(`notifications/prompts/list_changed`),params:A7.optional()}),Ate=Z({title:X().optional(),readOnlyHint:T6().optional(),destructiveHint:T6().optional(),idempotentHint:T6().optional(),openWorldHint:T6().optional()}),jte=Z({taskSupport:Z6([`required`,`optional`,`forbidden`]).optional()}),M9=Z({...J7.shape,...q7.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:K6(X(),b7).optional(),required:L6(X()).optional()}).catchall(N6()),outputSchema:Z({type:Q(`object`),properties:K6(X(),b7).optional(),required:L6(X()).optional()}).catchall(N6()).optional(),annotations:Ate.optional(),execution:jte.optional(),_meta:K6(X(),N6()).optional()}),N9=i9.extend({method:Q(`tools/list`)}),Mte=a9.extend({tools:L6(M9)}),P9=M7.extend({content:L6(j9).default([]),structuredContent:K6(X(),N6()).optional(),isError:T6().optional()});P9.or(M7.extend({toolResult:N6()}));var Nte=D7.extend({name:X(),arguments:K6(X(),N6()).optional()}),F9=k7.extend({method:Q(`tools/call`),params:Nte}),Pte=j7.extend({method:Q(`notifications/tools/list_changed`),params:A7.optional()});Z({autoRefresh:T6().default(!0),debounceMs:y6().int().nonnegative().default(300)});var I9=Z6([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Fte=E7.extend({level:I9}),Ite=k7.extend({method:Q(`logging/setLevel`),params:Fte}),Lte=A7.extend({level:I9,logger:X().optional(),data:N6()}),Rte=j7.extend({method:Q(`notifications/message`),params:Lte}),zte=Z({hints:L6(Z({name:X().optional()})).optional(),costPriority:y6().min(0).max(1).optional(),speedPriority:y6().min(0).max(1).optional(),intelligencePriority:y6().min(0).max(1).optional()}),Bte=Z({mode:Z6([`auto`,`required`,`none`]).optional()}),Vte=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:L6(j9).default([]),structuredContent:Z({}).loose().optional(),isError:T6().optional(),_meta:K6(X(),N6()).optional()}),Hte=U6(`type`,[E9,D9,O9]),L9=U6(`type`,[E9,D9,O9,Ete,Vte]),Ute=Z({role:y9,content:V6([L9,L6(L9)]),_meta:K6(X(),N6()).optional()}),Wte=D7.extend({messages:L6(Ute),modelPreferences:zte.optional(),systemPrompt:X().optional(),includeContext:Z6([`none`,`thisServer`,`allServers`]).optional(),temperature:y6().optional(),maxTokens:y6().int(),stopSequences:L6(X()).optional(),metadata:b7.optional(),tools:L6(M9).optional(),toolChoice:Bte.optional()}),Gte=k7.extend({method:Q(`sampling/createMessage`),params:Wte}),R9=M7.extend({model:X(),stopReason:t8(Z6([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:y9,content:Hte}),z9=M7.extend({model:X(),stopReason:t8(Z6([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:y9,content:V6([L9,L6(L9)])}),Kte=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:T6().optional()}),qte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:y6().optional(),maxLength:y6().optional(),format:Z6([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),Jte=Z({type:Z6([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:y6().optional(),maximum:y6().optional(),default:y6().optional()}),Yte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:L6(X()),default:X().optional()}),Xte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:L6(Z({const:X(),title:X()})),default:X().optional()}),Zte=V6([V6([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:L6(X()),enumNames:L6(X()).optional(),default:X().optional()}),V6([Yte,Xte]),V6([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:y6().optional(),maxItems:y6().optional(),items:Z({type:Q(`string`),enum:L6(X())}),default:L6(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:y6().optional(),maxItems:y6().optional(),items:Z({anyOf:L6(Z({const:X(),title:X()}))}),default:L6(X()).optional()})])]),Kte,qte,Jte]),Qte=V6([D7.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:K6(X(),Zte),required:L6(X()).optional()})}),D7.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),$te=k7.extend({method:Q(`elicitation/create`),params:Qte}),ene=A7.extend({elicitationId:X()}),tne=j7.extend({method:Q(`notifications/elicitation/complete`),params:ene}),nne=M7.extend({action:Z6([`accept`,`decline`,`cancel`]),content:T8(e=>e===null?void 0:e,K6(X(),V6([X(),y6(),T6(),L6(X())])).optional())}),rne=Z({type:Q(`ref/resource`),uri:X()}),ine=Z({type:Q(`ref/prompt`),name:X()}),ane=E7.extend({ref:V6([ine,rne]),argument:Z({name:X(),value:X()}),context:Z({arguments:K6(X(),X()).optional()}).optional()}),one=k7.extend({method:Q(`completion/complete`),params:ane}),sne=M7.extend({completion:B6({values:L6(X()).max(100),total:t8(y6().int()),hasMore:t8(T6())})}),cne=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:K6(X(),N6()).optional()}),lne=k7.extend({method:Q(`roots/list`),params:E7.optional()}),une=M7.extend({roots:L6(cne)}),dne=j7.extend({method:Q(`notifications/roots/list_changed`),params:A7.optional()});V6([n9,t9,one,Ite,Tte,T9,lte,ute,pte,gte,vte,F9,N9,l9,d9,f9,m9]),V6([K7,r9,tte,dne,c9]),V6([W7,R9,z9,nne,une,u9,p9,s9]),V6([n9,Gte,$te,lne,l9,d9,f9,m9]),V6([K7,r9,Rte,bte,mte,Pte,kte,c9,tne]),V6([W7,ete,sne,Ote,Cte,S9,dte,w9,P9,Mte,u9,p9,s9]);var B9=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===B7.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new fne(e.elicitations,n)}return new e(t,n,r)}},fne=class extends B9{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(B7.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function V9(e){return e===`completed`||e===`failed`||e===`cancelled`}function H9(e){let t=f3(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=p3(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function U9(e,t){let n=d3(e,t);if(!n.success)throw n.error;return n.data}var pne=class{constructor(e){this._options=e,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(K7,e=>{this._oncancel(e)}),this.setNotificationHandler(r9,e=>{this._onprogress(e)}),this.setRequestHandler(n9,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(l9,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new B9(B7.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(d9,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r){if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new B9(e.error.code,e.error.message,e.error.data))}}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new B9(B7.InvalidParams,`Task not found: ${r}`);if(!V9(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(V9(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[y7]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(f9,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new B9(B7.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(m9,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new B9(B7.InvalidParams,`Task not found: ${e.params.taskId}`);if(V9(n.status))throw new B9(B7.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new B9(B7.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof B9?e:new B9(B7.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),B9.fromError(B7.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){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=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),z7(e)||H7(e)?this._onresponse(e):F7(e)?this._onrequest(e,t):L7(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=B9.fromError(B7.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[y7]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:B7.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=O7(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new B9(B7.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:B7.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),z7(e)?n(e):n(new B9(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(z7(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),z7(e)?r(e):r(B9.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof B9?e:new B9(B7.InternalError,String(e))}}return}let i;try{let r=await this.request(e,s9,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new B9(B7.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},V9(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new B9(B7.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new B9(B7.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof B9?e:new B9(B7.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[y7]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof B9?e:new B9(B7.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=d3(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(B9.fromError(B7.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},u9,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},p9,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},ste,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[y7]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[y7]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[y7]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=H9(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=U9(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=H9(e);this._notificationHandlers.set(n,n=>{let r=U9(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&F7(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new B9(B7.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new B9(B7.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new B9(B7.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new B9(B7.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=c9.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),V9(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new B9(B7.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(V9(a.status))throw new B9(B7.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=c9.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),V9(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function W9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function mne(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=W9(a)&&W9(i)?{...a,...i}:i}return n}var hne=`modulepreload`,gne=function(e,t){return new URL(e,t).href},G9={},_ne=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=gne(t,n),t=s(t),t in G9)return;G9[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:hne,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};v7(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var vne=class extends pne{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},yne=`2026-01-26`,K9=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=U7.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},bne=V6([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),q9=V6([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),xne=K6(V6([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function f4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:h4(t,`input`,e.processors),output:h4(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function p4(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return p4(r.element,n);if(r.type===`set`)return p4(r.valueType,n);if(r.type===`lazy`)return p4(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return p4(r.innerType,n);if(r.type===`intersection`)return p4(r.left,n)||p4(r.right,n);if(r.type===`record`||r.type===`map`)return p4(r.keyType,n)||p4(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:p4(r.in,n)||p4(r.out,n);if(r.type===`object`){for(let e in r.shape)if(p4(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(p4(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(p4(e,n))return!0;return!!(r.rest&&p4(r.rest,n))}return!1}var m4,h4,g4=o((()=>{e0(),m4=(e,t={})=>n=>{let r=l4({...n,processors:t});return u4(e,r),d4(r,e),f4(r,e)},h4=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=l4({...i??{},target:a,io:t,processors:n});return u4(e,o),d4(o,e),f4(o,e)}}));function _4(e,t){if(`_idmap`in e){let n=e,r=l4({...t,processors:i3}),i={};for(let e of n._idmap.entries()){let[t,n]=e;u4(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;d4(r,n),a[t]=f4(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=l4({...t,processors:i3});return u4(e,n),d4(n,e),f4(n,e)}var v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3=o((()=>{g4(),Fq(),v4={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},y4=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=v4[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},b4=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},x4=(e,t,n,r)=>{n.type=`boolean`},S4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},C4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},w4=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},T4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},E4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},D4=(e,t,n,r)=>{n.not={}},O4=(e,t,n,r)=>{},k4=(e,t,n,r)=>{},A4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},j4=(e,t,n,r)=>{let i=e._zod.def,a=MK(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},M4=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},N4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},P4=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},F4=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},I4=(e,t,n,r)=>{n.type=`boolean`},L4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},R4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},z4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},B4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},V4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},H4=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=u4(a.element,t,{...r,path:[...r.path,`items`]})},U4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=u4(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=u4(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},W4=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>u4(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},G4=(e,t,n,r)=>{let i=e._zod.def,a=u4(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=u4(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},K4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>u4(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?u4(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},q4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=u4(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=u4(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=u4(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},J4=(e,t,n,r)=>{let i=e._zod.def,a=u4(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Y4=(e,t,n,r)=>{let i=e._zod.def;u4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},X4=(e,t,n,r)=>{let i=e._zod.def;u4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Z4=(e,t,n,r)=>{let i=e._zod.def;u4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Q4=(e,t,n,r)=>{let i=e._zod.def;u4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},$4=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;u4(o,t,r);let s=t.seen.get(e);s.ref=o},e3=(e,t,n,r)=>{let i=e._zod.def;u4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},t3=(e,t,n,r)=>{let i=e._zod.def;u4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},n3=(e,t,n,r)=>{let i=e._zod.def;u4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},r3=(e,t,n,r)=>{let i=e._zod.innerType;u4(i,t,r);let a=t.seen.get(e);a.ref=i},i3={string:y4,number:b4,boolean:x4,bigint:S4,symbol:C4,null:w4,undefined:T4,void:E4,never:D4,any:O4,unknown:k4,date:A4,enum:j4,literal:M4,nan:N4,template_literal:P4,file:F4,success:I4,custom:L4,function:R4,transform:z4,map:B4,set:V4,array:H4,object:U4,union:W4,intersection:G4,tuple:K4,record:q4,nullable:J4,nonoptional:Y4,default:X4,prefault:Z4,catch:Q4,pipe:$4,readonly:e3,promise:t3,optional:n3,lazy:r3}})),o3,s3=o((()=>{a3(),g4(),o3=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=l4({processors:i3,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return u4(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),d4(this.ctx,e);let{"~standard":n,...r}=f4(this.ctx,e);return r}}})),c3=c({}),l3=o((()=>{})),u3=c({$ZodAny:()=>lZ,$ZodArray:()=>mZ,$ZodAsyncError:()=>SK,$ZodBase64:()=>XX,$ZodBase64URL:()=>ZX,$ZodBigInt:()=>iZ,$ZodBigIntFormat:()=>aZ,$ZodBoolean:()=>rZ,$ZodCIDRv4:()=>JX,$ZodCIDRv6:()=>YX,$ZodCUID:()=>IX,$ZodCUID2:()=>LX,$ZodCatch:()=>IZ,$ZodCheck:()=>kY,$ZodCheckBigIntFormat:()=>FY,$ZodCheckEndsWith:()=>JY,$ZodCheckGreaterThan:()=>MY,$ZodCheckIncludes:()=>KY,$ZodCheckLengthEquals:()=>VY,$ZodCheckLessThan:()=>jY,$ZodCheckLowerCase:()=>WY,$ZodCheckMaxLength:()=>zY,$ZodCheckMaxSize:()=>IY,$ZodCheckMimeType:()=>XY,$ZodCheckMinLength:()=>BY,$ZodCheckMinSize:()=>LY,$ZodCheckMultipleOf:()=>NY,$ZodCheckNumberFormat:()=>PY,$ZodCheckOverwrite:()=>ZY,$ZodCheckProperty:()=>YY,$ZodCheckRegex:()=>UY,$ZodCheckSizeEquals:()=>RY,$ZodCheckStartsWith:()=>qY,$ZodCheckStringFormat:()=>HY,$ZodCheckUpperCase:()=>GY,$ZodCodec:()=>zZ,$ZodCustom:()=>KZ,$ZodCustomStringFormat:()=>eZ,$ZodDate:()=>pZ,$ZodDefault:()=>MZ,$ZodDiscriminatedUnion:()=>yZ,$ZodE164:()=>QX,$ZodEmail:()=>MX,$ZodEmoji:()=>PX,$ZodEncodeError:()=>CK,$ZodEnum:()=>TZ,$ZodError:()=>Hq,$ZodExactOptional:()=>AZ,$ZodFile:()=>DZ,$ZodFunction:()=>UZ,$ZodGUID:()=>AX,$ZodIPv4:()=>GX,$ZodIPv6:()=>KX,$ZodISODate:()=>HX,$ZodISODateTime:()=>VX,$ZodISODuration:()=>WX,$ZodISOTime:()=>UX,$ZodIntersection:()=>bZ,$ZodJWT:()=>$X,$ZodKSUID:()=>BX,$ZodLazy:()=>GZ,$ZodLiteral:()=>EZ,$ZodMAC:()=>qX,$ZodMap:()=>CZ,$ZodNaN:()=>LZ,$ZodNanoID:()=>FX,$ZodNever:()=>dZ,$ZodNonOptional:()=>PZ,$ZodNull:()=>cZ,$ZodNullable:()=>jZ,$ZodNumber:()=>tZ,$ZodNumberFormat:()=>nZ,$ZodObject:()=>hZ,$ZodObjectJIT:()=>gZ,$ZodOptional:()=>kZ,$ZodPipe:()=>RZ,$ZodPrefault:()=>NZ,$ZodPreprocess:()=>BZ,$ZodPromise:()=>WZ,$ZodReadonly:()=>VZ,$ZodRealError:()=>Uq,$ZodRecord:()=>SZ,$ZodRegistry:()=>Q1,$ZodSet:()=>wZ,$ZodString:()=>OX,$ZodStringFormat:()=>kX,$ZodSuccess:()=>FZ,$ZodSymbol:()=>oZ,$ZodTemplateLiteral:()=>HZ,$ZodTransform:()=>OZ,$ZodTuple:()=>xZ,$ZodType:()=>DX,$ZodULID:()=>RX,$ZodURL:()=>NX,$ZodUUID:()=>jX,$ZodUndefined:()=>sZ,$ZodUnion:()=>_Z,$ZodUnknown:()=>uZ,$ZodVoid:()=>fZ,$ZodXID:()=>zX,$ZodXor:()=>vZ,$brand:()=>xK,$constructor:()=>q,$input:()=>Z1,$output:()=>X1,Doc:()=>$Y,JSONSchema:()=>c3,JSONSchemaGenerator:()=>o3,NEVER:()=>bK,TimePrecision:()=>s4,_any:()=>K0,_array:()=>O2,_base64:()=>S0,_base64url:()=>C0,_bigint:()=>z0,_boolean:()=>L0,_catch:()=>q2,_check:()=>n4,_cidrv4:()=>b0,_cidrv6:()=>x0,_coercedBigint:()=>B0,_coercedBoolean:()=>R0,_coercedDate:()=>Z0,_coercedNumber:()=>j0,_coercedString:()=>n0,_cuid:()=>f0,_cuid2:()=>p0,_custom:()=>$2,_date:()=>X0,_decode:()=>tJ,_decodeAsync:()=>aJ,_default:()=>W2,_discriminatedUnion:()=>j2,_e164:()=>w0,_email:()=>r0,_emoji:()=>u0,_encode:()=>$q,_encodeAsync:()=>rJ,_endsWith:()=>y2,_enum:()=>L2,_file:()=>B2,_float32:()=>N0,_float64:()=>P0,_gt:()=>t2,_gte:()=>n2,_guid:()=>i0,_includes:()=>_2,_int:()=>M0,_int32:()=>F0,_int64:()=>V0,_intersection:()=>M2,_ipv4:()=>_0,_ipv6:()=>v0,_isoDate:()=>D0,_isoDateTime:()=>E0,_isoDuration:()=>k0,_isoTime:()=>O0,_jwt:()=>T0,_ksuid:()=>g0,_lazy:()=>Z2,_length:()=>p2,_literal:()=>z2,_lowercase:()=>h2,_lt:()=>$0,_lte:()=>e2,_mac:()=>y0,_map:()=>F2,_max:()=>e2,_maxLength:()=>d2,_maxSize:()=>c2,_mime:()=>x2,_min:()=>n2,_minLength:()=>f2,_minSize:()=>l2,_multipleOf:()=>s2,_nan:()=>Q0,_nanoid:()=>d0,_nativeEnum:()=>R2,_negative:()=>i2,_never:()=>J0,_nonnegative:()=>o2,_nonoptional:()=>G2,_nonpositive:()=>a2,_normalize:()=>C2,_null:()=>G0,_nullable:()=>U2,_number:()=>A0,_optional:()=>H2,_overwrite:()=>S2,_parse:()=>Gq,_parseAsync:()=>qq,_pipe:()=>J2,_positive:()=>r2,_promise:()=>Q2,_property:()=>b2,_readonly:()=>Y2,_record:()=>P2,_refine:()=>e4,_regex:()=>m2,_safeDecode:()=>lJ,_safeDecodeAsync:()=>pJ,_safeEncode:()=>sJ,_safeEncodeAsync:()=>dJ,_safeParse:()=>Yq,_safeParseAsync:()=>Zq,_set:()=>I2,_size:()=>u2,_slugify:()=>D2,_startsWith:()=>v2,_string:()=>t0,_stringFormat:()=>o4,_stringbool:()=>a4,_success:()=>K2,_superRefine:()=>t4,_symbol:()=>U0,_templateLiteral:()=>X2,_toLowerCase:()=>T2,_toUpperCase:()=>E2,_transform:()=>V2,_trim:()=>w2,_tuple:()=>N2,_uint32:()=>I0,_uint64:()=>H0,_ulid:()=>m0,_undefined:()=>W0,_union:()=>k2,_unknown:()=>q0,_uppercase:()=>g2,_url:()=>l0,_uuid:()=>a0,_uuidv4:()=>o0,_uuidv6:()=>s0,_uuidv7:()=>c0,_void:()=>Y0,_xid:()=>h0,_xor:()=>A2,clone:()=>$K,config:()=>vK,createStandardJSONSchemaMethod:()=>h4,createToJSONSchemaMethod:()=>m4,decode:()=>nJ,decodeAsync:()=>oJ,describe:()=>r4,encode:()=>eJ,encodeAsync:()=>iJ,extractDefs:()=>d4,finalize:()=>f4,flattenError:()=>Iq,formatError:()=>Lq,globalConfig:()=>wK,globalRegistry:()=>$1,initializeContext:()=>l4,isValidBase64:()=>rX,isValidBase64URL:()=>iX,isValidJWT:()=>aX,locales:()=>K1,meta:()=>i4,parse:()=>Kq,parseAsync:()=>Jq,prettifyError:()=>Bq,process:()=>u4,regexes:()=>gJ,registry:()=>J1,safeDecode:()=>uJ,safeDecodeAsync:()=>mJ,safeEncode:()=>cJ,safeEncodeAsync:()=>fJ,safeParse:()=>Xq,safeParseAsync:()=>Qq,toDotPath:()=>zq,toJSONSchema:()=>_4,treeifyError:()=>Rq,util:()=>EK,version:()=>tX}),d3=o((()=>{TK(),hJ(),Wq(),qZ(),QY(),nX(),Fq(),DY(),q1(),e0(),eX(),c4(),g4(),a3(),s3(),l3()}));hJ();function f3(e){return!!e._zod}function p3(e,t){return f3(e)?Xq(e,t):e.safeParse(t)}function m3(e){if(!e)return;let t;if(t=f3(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function h3(e){if(f3(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var g3=c({endsWith:()=>y2,gt:()=>t2,gte:()=>n2,includes:()=>_2,length:()=>p2,lowercase:()=>h2,lt:()=>$0,lte:()=>e2,maxLength:()=>d2,maxSize:()=>c2,mime:()=>x2,minLength:()=>f2,minSize:()=>l2,multipleOf:()=>s2,negative:()=>i2,nonnegative:()=>o2,nonpositive:()=>a2,normalize:()=>C2,overwrite:()=>S2,positive:()=>r2,property:()=>b2,regex:()=>m2,size:()=>u2,slugify:()=>D2,startsWith:()=>v2,toLowerCase:()=>T2,toUpperCase:()=>E2,trim:()=>w2,uppercase:()=>g2}),_3=o((()=>{d3()})),v3=c({ZodISODate:()=>w3,ZodISODateTime:()=>C3,ZodISODuration:()=>E3,ZodISOTime:()=>T3,date:()=>b3,datetime:()=>y3,duration:()=>S3,time:()=>x3});function y3(e){return E0(C3,e)}function b3(e){return D0(w3,e)}function x3(e){return O0(T3,e)}function S3(e){return k0(E3,e)}var C3,w3,T3,E3,D3=o((()=>{d3(),J5(),C3=q(`ZodISODateTime`,(e,t)=>{VX.init(e,t),M8.init(e,t)}),w3=q(`ZodISODate`,(e,t)=>{HX.init(e,t),M8.init(e,t)}),T3=q(`ZodISOTime`,(e,t)=>{UX.init(e,t),M8.init(e,t)}),E3=q(`ZodISODuration`,(e,t)=>{WX.init(e,t),M8.init(e,t)})})),O3,k3,A3,j3=o((()=>{d3(),Fq(),O3=(e,t)=>{Hq.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Lq(e,t)},flatten:{value:t=>Iq(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,NK,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,NK,2)}},isEmpty:{get(){return e.issues.length===0}}})},k3=q(`ZodError`,O3),A3=q(`ZodError`,O3,{Parent:Error})})),M3,N3,P3,F3,I3,L3,R3,z3,B3,V3,H3,U3,W3=o((()=>{d3(),j3(),M3=Gq(A3),N3=qq(A3),P3=Yq(A3),F3=Zq(A3),I3=$q(A3),L3=tJ(A3),R3=rJ(A3),z3=aJ(A3),B3=sJ(A3),V3=lJ(A3),H3=dJ(A3),U3=pJ(A3)})),G3=c({ZodAny:()=>c5,ZodArray:()=>p5,ZodBase64:()=>Y8,ZodBase64URL:()=>X8,ZodBigInt:()=>r5,ZodBigIntFormat:()=>i5,ZodBoolean:()=>n5,ZodCIDRv4:()=>q8,ZodCIDRv6:()=>J8,ZodCUID:()=>z8,ZodCUID2:()=>B8,ZodCatch:()=>P5,ZodCodec:()=>L5,ZodCustom:()=>W5,ZodCustomStringFormat:()=>$8,ZodDate:()=>f5,ZodDefault:()=>A5,ZodDiscriminatedUnion:()=>_5,ZodE164:()=>Z8,ZodEmail:()=>N8,ZodEmoji:()=>L8,ZodEnum:()=>C5,ZodExactOptional:()=>O5,ZodFile:()=>T5,ZodFunction:()=>U5,ZodGUID:()=>P8,ZodIPv4:()=>W8,ZodIPv6:()=>K8,ZodIntersection:()=>v5,ZodJWT:()=>Q8,ZodKSUID:()=>U8,ZodLazy:()=>V5,ZodLiteral:()=>w5,ZodMAC:()=>G8,ZodMap:()=>x5,ZodNaN:()=>F5,ZodNanoID:()=>R8,ZodNever:()=>u5,ZodNonOptional:()=>M5,ZodNull:()=>s5,ZodNullable:()=>k5,ZodNumber:()=>e5,ZodNumberFormat:()=>t5,ZodObject:()=>m5,ZodOptional:()=>D5,ZodPipe:()=>I5,ZodPrefault:()=>j5,ZodPreprocess:()=>R5,ZodPromise:()=>H5,ZodReadonly:()=>z5,ZodRecord:()=>b5,ZodSet:()=>S5,ZodString:()=>j8,ZodStringFormat:()=>M8,ZodSuccess:()=>N5,ZodSymbol:()=>a5,ZodTemplateLiteral:()=>B5,ZodTransform:()=>E5,ZodTuple:()=>y5,ZodType:()=>k8,ZodULID:()=>V8,ZodURL:()=>I8,ZodUUID:()=>F8,ZodUndefined:()=>o5,ZodUnion:()=>h5,ZodUnknown:()=>l5,ZodVoid:()=>d5,ZodXID:()=>H8,ZodXor:()=>g5,_ZodString:()=>A8,_default:()=>s8,_function:()=>b8,any:()=>P6,array:()=>z6,base64:()=>p6,base64url:()=>m6,bigint:()=>O6,boolean:()=>D6,catch:()=>d8,check:()=>x8,cidrv4:()=>d6,cidrv6:()=>f6,codec:()=>m8,cuid:()=>r6,cuid2:()=>i6,custom:()=>S8,date:()=>R6,describe:()=>G5,discriminatedUnion:()=>G6,e164:()=>h6,email:()=>q3,emoji:()=>t6,enum:()=>$6,exactOptional:()=>i8,file:()=>t8,float32:()=>C6,float64:()=>w6,function:()=>b8,guid:()=>J3,hash:()=>b6,hex:()=>y6,hostname:()=>v6,httpUrl:()=>e6,instanceof:()=>T8,int:()=>S6,int32:()=>T6,int64:()=>k6,intersection:()=>K6,invertCodec:()=>h8,ipv4:()=>c6,ipv6:()=>u6,json:()=>E8,jwt:()=>g6,keyof:()=>B6,ksuid:()=>s6,lazy:()=>v8,literal:()=>Q,looseObject:()=>H6,looseRecord:()=>X6,mac:()=>l6,map:()=>Z6,meta:()=>K5,nan:()=>f8,nanoid:()=>n6,nativeEnum:()=>e8,never:()=>I6,nonoptional:()=>l8,null:()=>N6,nullable:()=>a8,nullish:()=>o8,number:()=>x6,object:()=>Z,optional:()=>r8,partialRecord:()=>Y6,pipe:()=>p8,prefault:()=>c8,preprocess:()=>D8,promise:()=>y8,readonly:()=>g8,record:()=>J6,refine:()=>C8,set:()=>Q6,strictObject:()=>V6,string:()=>X,stringFormat:()=>_6,stringbool:()=>q5,success:()=>u8,superRefine:()=>w8,symbol:()=>j6,templateLiteral:()=>_8,transform:()=>n8,tuple:()=>q6,uint32:()=>E6,uint64:()=>A6,ulid:()=>a6,undefined:()=>M6,union:()=>U6,unknown:()=>F6,url:()=>$3,uuid:()=>Y3,uuidv4:()=>X3,uuidv6:()=>Z3,uuidv7:()=>Q3,void:()=>L6,xid:()=>o6,xor:()=>W6});function K3(e,t,n){let r=Object.getPrototypeOf(e),i=O8.get(r);if(i||(i=new Set,O8.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return t0(j8,e)}function q3(e){return r0(N8,e)}function J3(e){return i0(P8,e)}function Y3(e){return a0(F8,e)}function X3(e){return o0(F8,e)}function Z3(e){return s0(F8,e)}function Q3(e){return c0(F8,e)}function $3(e){return l0(I8,e)}function e6(e){return l0(I8,{protocol:QJ,hostname:ZJ,...Y(e)})}function t6(e){return u0(L8,e)}function n6(e){return d0(R8,e)}function r6(e){return f0(z8,e)}function i6(e){return p0(B8,e)}function a6(e){return m0(V8,e)}function o6(e){return h0(H8,e)}function s6(e){return g0(U8,e)}function c6(e){return _0(W8,e)}function l6(e){return y0(G8,e)}function u6(e){return v0(K8,e)}function d6(e){return b0(q8,e)}function f6(e){return x0(J8,e)}function p6(e){return S0(Y8,e)}function m6(e){return C0(X8,e)}function h6(e){return w0(Z8,e)}function g6(e){return T0(Q8,e)}function _6(e,t,n={}){return o4($8,e,t,n)}function v6(e){return o4($8,`hostname`,XJ,e)}function y6(e){return o4($8,`hex`,dY,e)}function b6(e,t){let n=`${e}_${t?.enc??`hex`}`,r=gJ[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return o4($8,n,r,t)}function x6(e){return A0(e5,e)}function S6(e){return M0(t5,e)}function C6(e){return N0(t5,e)}function w6(e){return P0(t5,e)}function T6(e){return F0(t5,e)}function E6(e){return I0(t5,e)}function D6(e){return L0(n5,e)}function O6(e){return z0(r5,e)}function k6(e){return V0(i5,e)}function A6(e){return H0(i5,e)}function j6(e){return U0(a5,e)}function M6(e){return W0(o5,e)}function N6(e){return G0(s5,e)}function P6(){return K0(c5)}function F6(){return q0(l5)}function I6(e){return J0(u5,e)}function L6(e){return Y0(d5,e)}function R6(e){return X0(f5,e)}function z6(e,t){return O2(p5,e,t)}function B6(e){let t=e._zod.def.shape;return $6(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new m5(n)}function V6(e,t){return new m5({type:`object`,shape:e,catchall:I6(),...Y(t)})}function H6(e,t){return new m5({type:`object`,shape:e,catchall:F6(),...Y(t)})}function U6(e,t){return new h5({type:`union`,options:e,...Y(t)})}function W6(e,t){return new g5({type:`union`,options:e,inclusive:!1,...Y(t)})}function G6(e,t,n){return new _5({type:`union`,options:t,discriminator:e,...Y(n)})}function K6(e,t){return new v5({type:`intersection`,left:e,right:t})}function q6(e,t,n){let r=t instanceof DX;return new y5({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function J6(e,t,n){return!t||!t._zod?new b5({type:`record`,keyType:X(),valueType:e,...Y(t)}):new b5({type:`record`,keyType:e,valueType:t,...Y(n)})}function Y6(e,t,n){let r=$K(e);return r._zod.values=void 0,new b5({type:`record`,keyType:r,valueType:t,...Y(n)})}function X6(e,t,n){return new b5({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function Z6(e,t,n){return new x5({type:`map`,keyType:e,valueType:t,...Y(n)})}function Q6(e,t){return new S5({type:`set`,valueType:e,...Y(t)})}function $6(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new C5({type:`enum`,entries:n,...Y(t)})}function e8(e,t){return new C5({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new w5({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function t8(e){return B2(T5,e)}function n8(e){return new E5({type:`transform`,transform:e})}function r8(e){return new D5({type:`optional`,innerType:e})}function i8(e){return new O5({type:`optional`,innerType:e})}function a8(e){return new k5({type:`nullable`,innerType:e})}function o8(e){return r8(a8(e))}function s8(e,t){return new A5({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():XK(t)}})}function c8(e,t){return new j5({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():XK(t)}})}function l8(e,t){return new M5({type:`nonoptional`,innerType:e,...Y(t)})}function u8(e){return new N5({type:`success`,innerType:e})}function d8(e,t){return new P5({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function f8(e){return Q0(F5,e)}function p8(e,t){return new I5({type:`pipe`,in:e,out:t})}function m8(e,t,n){return new L5({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function h8(e){let t=e._zod.def;return new L5({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function g8(e){return new z5({type:`readonly`,innerType:e})}function _8(e,t){return new B5({type:`template_literal`,parts:e,...Y(t)})}function v8(e){return new V5({type:`lazy`,getter:e})}function y8(e){return new H5({type:`promise`,innerType:e})}function b8(e){return new U5({type:`function`,input:Array.isArray(e?.input)?q6(e?.input):e?.input??z6(F6()),output:e?.output??F6()})}function x8(e){let t=new kY({check:`custom`});return t._zod.check=e,t}function S8(e,t){return $2(W5,e??(()=>!0),t)}function C8(e,t={}){return e4(W5,e,t)}function w8(e,t){return t4(e,t)}function T8(e,t={}){let n=new W5({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function E8(e){let t=v8(()=>U6([X(e),x6(),D6(),N6(),z6(t),J6(X(),t)]));return t}function D8(e,t){return new R5({type:`pipe`,in:n8(e),out:t})}var O8,k8,A8,j8,M8,N8,P8,F8,I8,L8,R8,z8,B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8,X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5,o5,s5,c5,l5,u5,d5,f5,p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5,F5,I5,L5,R5,z5,B5,V5,H5,U5,W5,G5,K5,q5,J5=o((()=>{d3(),a3(),g4(),_3(),D3(),W3(),O8=new WeakMap,k8=q(`ZodType`,(e,t)=>(DX.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:h4(e,`input`),output:h4(e,`output`)}}),e.toJSONSchema=m4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>M3(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>P3(e,t,n),e.parseAsync=async(t,n)=>N3(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>F3(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>I3(e,t,n),e.decode=(t,n)=>L3(e,t,n),e.encodeAsync=async(t,n)=>R3(e,t,n),e.decodeAsync=async(t,n)=>z3(e,t,n),e.safeEncode=(t,n)=>B3(e,t,n),e.safeDecode=(t,n)=>V3(e,t,n),e.safeEncodeAsync=async(t,n)=>H3(e,t,n),e.safeDecodeAsync=async(t,n)=>U3(e,t,n),K3(e,`ZodType`,{check(...e){let t=this.def;return this.clone(VK(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return $K(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(C8(e,t))},superRefine(e,t){return this.check(w8(e,t))},overwrite(e){return this.check(S2(e))},optional(){return r8(this)},exactOptional(){return i8(this)},nullable(){return a8(this)},nullish(){return r8(a8(this))},nonoptional(e){return l8(this,e)},array(){return z6(this)},or(e){return U6([this,e])},and(e){return K6(this,e)},transform(e){return p8(this,n8(e))},default(e){return s8(this,e)},prefault(e){return c8(this,e)},catch(e){return d8(this,e)},pipe(e){return p8(this,e)},readonly(){return g8(this)},describe(e){let t=this.clone();return $1.add(t,{description:e}),t},meta(...e){if(e.length===0)return $1.get(this);let t=this.clone();return $1.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return $1.get(e)?.description},configurable:!0}),e)),A8=q(`_ZodString`,(e,t)=>{OX.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y4(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,K3(e,`_ZodString`,{regex(...e){return this.check(m2(...e))},includes(...e){return this.check(_2(...e))},startsWith(...e){return this.check(v2(...e))},endsWith(...e){return this.check(y2(...e))},min(...e){return this.check(f2(...e))},max(...e){return this.check(d2(...e))},length(...e){return this.check(p2(...e))},nonempty(...e){return this.check(f2(1,...e))},lowercase(e){return this.check(h2(e))},uppercase(e){return this.check(g2(e))},trim(){return this.check(w2())},normalize(...e){return this.check(C2(...e))},toLowerCase(){return this.check(T2())},toUpperCase(){return this.check(E2())},slugify(){return this.check(D2())}})}),j8=q(`ZodString`,(e,t)=>{OX.init(e,t),A8.init(e,t),e.email=t=>e.check(r0(N8,t)),e.url=t=>e.check(l0(I8,t)),e.jwt=t=>e.check(T0(Q8,t)),e.emoji=t=>e.check(u0(L8,t)),e.guid=t=>e.check(i0(P8,t)),e.uuid=t=>e.check(a0(F8,t)),e.uuidv4=t=>e.check(o0(F8,t)),e.uuidv6=t=>e.check(s0(F8,t)),e.uuidv7=t=>e.check(c0(F8,t)),e.nanoid=t=>e.check(d0(R8,t)),e.guid=t=>e.check(i0(P8,t)),e.cuid=t=>e.check(f0(z8,t)),e.cuid2=t=>e.check(p0(B8,t)),e.ulid=t=>e.check(m0(V8,t)),e.base64=t=>e.check(S0(Y8,t)),e.base64url=t=>e.check(C0(X8,t)),e.xid=t=>e.check(h0(H8,t)),e.ksuid=t=>e.check(g0(U8,t)),e.ipv4=t=>e.check(_0(W8,t)),e.ipv6=t=>e.check(v0(K8,t)),e.cidrv4=t=>e.check(b0(q8,t)),e.cidrv6=t=>e.check(x0(J8,t)),e.e164=t=>e.check(w0(Z8,t)),e.datetime=t=>e.check(y3(t)),e.date=t=>e.check(b3(t)),e.time=t=>e.check(x3(t)),e.duration=t=>e.check(S3(t))}),M8=q(`ZodStringFormat`,(e,t)=>{kX.init(e,t),A8.init(e,t)}),N8=q(`ZodEmail`,(e,t)=>{MX.init(e,t),M8.init(e,t)}),P8=q(`ZodGUID`,(e,t)=>{AX.init(e,t),M8.init(e,t)}),F8=q(`ZodUUID`,(e,t)=>{jX.init(e,t),M8.init(e,t)}),I8=q(`ZodURL`,(e,t)=>{NX.init(e,t),M8.init(e,t)}),L8=q(`ZodEmoji`,(e,t)=>{PX.init(e,t),M8.init(e,t)}),R8=q(`ZodNanoID`,(e,t)=>{FX.init(e,t),M8.init(e,t)}),z8=q(`ZodCUID`,(e,t)=>{IX.init(e,t),M8.init(e,t)}),B8=q(`ZodCUID2`,(e,t)=>{LX.init(e,t),M8.init(e,t)}),V8=q(`ZodULID`,(e,t)=>{RX.init(e,t),M8.init(e,t)}),H8=q(`ZodXID`,(e,t)=>{zX.init(e,t),M8.init(e,t)}),U8=q(`ZodKSUID`,(e,t)=>{BX.init(e,t),M8.init(e,t)}),W8=q(`ZodIPv4`,(e,t)=>{GX.init(e,t),M8.init(e,t)}),G8=q(`ZodMAC`,(e,t)=>{qX.init(e,t),M8.init(e,t)}),K8=q(`ZodIPv6`,(e,t)=>{KX.init(e,t),M8.init(e,t)}),q8=q(`ZodCIDRv4`,(e,t)=>{JX.init(e,t),M8.init(e,t)}),J8=q(`ZodCIDRv6`,(e,t)=>{YX.init(e,t),M8.init(e,t)}),Y8=q(`ZodBase64`,(e,t)=>{XX.init(e,t),M8.init(e,t)}),X8=q(`ZodBase64URL`,(e,t)=>{ZX.init(e,t),M8.init(e,t)}),Z8=q(`ZodE164`,(e,t)=>{QX.init(e,t),M8.init(e,t)}),Q8=q(`ZodJWT`,(e,t)=>{$X.init(e,t),M8.init(e,t)}),$8=q(`ZodCustomStringFormat`,(e,t)=>{eZ.init(e,t),M8.init(e,t)}),e5=q(`ZodNumber`,(e,t)=>{tZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b4(e,t,n,r),K3(e,`ZodNumber`,{gt(e,t){return this.check(t2(e,t))},gte(e,t){return this.check(n2(e,t))},min(e,t){return this.check(n2(e,t))},lt(e,t){return this.check($0(e,t))},lte(e,t){return this.check(e2(e,t))},max(e,t){return this.check(e2(e,t))},int(e){return this.check(S6(e))},safe(e){return this.check(S6(e))},positive(e){return this.check(t2(0,e))},nonnegative(e){return this.check(n2(0,e))},negative(e){return this.check($0(0,e))},nonpositive(e){return this.check(e2(0,e))},multipleOf(e,t){return this.check(s2(e,t))},step(e,t){return this.check(s2(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),t5=q(`ZodNumberFormat`,(e,t)=>{nZ.init(e,t),e5.init(e,t)}),n5=q(`ZodBoolean`,(e,t)=>{rZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x4(e,t,n,r)}),r5=q(`ZodBigInt`,(e,t)=>{iZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S4(e,t,n,r),e.gte=(t,n)=>e.check(n2(t,n)),e.min=(t,n)=>e.check(n2(t,n)),e.gt=(t,n)=>e.check(t2(t,n)),e.gte=(t,n)=>e.check(n2(t,n)),e.min=(t,n)=>e.check(n2(t,n)),e.lt=(t,n)=>e.check($0(t,n)),e.lte=(t,n)=>e.check(e2(t,n)),e.max=(t,n)=>e.check(e2(t,n)),e.positive=t=>e.check(t2(BigInt(0),t)),e.negative=t=>e.check($0(BigInt(0),t)),e.nonpositive=t=>e.check(e2(BigInt(0),t)),e.nonnegative=t=>e.check(n2(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(s2(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),i5=q(`ZodBigIntFormat`,(e,t)=>{aZ.init(e,t),r5.init(e,t)}),a5=q(`ZodSymbol`,(e,t)=>{oZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C4(e,t,n,r)}),o5=q(`ZodUndefined`,(e,t)=>{sZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T4(e,t,n,r)}),s5=q(`ZodNull`,(e,t)=>{cZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w4(e,t,n,r)}),c5=q(`ZodAny`,(e,t)=>{lZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O4(e,t,n,r)}),l5=q(`ZodUnknown`,(e,t)=>{uZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k4(e,t,n,r)}),u5=q(`ZodNever`,(e,t)=>{dZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D4(e,t,n,r)}),d5=q(`ZodVoid`,(e,t)=>{fZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E4(e,t,n,r)}),f5=q(`ZodDate`,(e,t)=>{pZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A4(e,t,n,r),e.min=(t,n)=>e.check(n2(t,n)),e.max=(t,n)=>e.check(e2(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),p5=q(`ZodArray`,(e,t)=>{mZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H4(e,t,n,r),e.element=t.element,K3(e,`ZodArray`,{min(e,t){return this.check(f2(e,t))},nonempty(e){return this.check(f2(1,e))},max(e,t){return this.check(d2(e,t))},length(e,t){return this.check(p2(e,t))},unwrap(){return this.element}})}),m5=q(`ZodObject`,(e,t)=>{gZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U4(e,t,n,r),RK(e,`shape`,()=>t.shape),K3(e,`ZodObject`,{keyof(){return $6(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:F6()})},loose(){return this.clone({...this._zod.def,catchall:F6()})},strict(){return this.clone({...this._zod.def,catchall:I6()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return aq(this,e)},safeExtend(e){return oq(this,e)},merge(e){return sq(this,e)},pick(e){return rq(this,e)},omit(e){return iq(this,e)},partial(...e){return cq(D5,this,e[0])},required(...e){return lq(M5,this,e[0])}})}),h5=q(`ZodUnion`,(e,t)=>{_Z.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W4(e,t,n,r),e.options=t.options}),g5=q(`ZodXor`,(e,t)=>{h5.init(e,t),vZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W4(e,t,n,r),e.options=t.options}),_5=q(`ZodDiscriminatedUnion`,(e,t)=>{h5.init(e,t),yZ.init(e,t)}),v5=q(`ZodIntersection`,(e,t)=>{bZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G4(e,t,n,r)}),y5=q(`ZodTuple`,(e,t)=>{xZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K4(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),b5=q(`ZodRecord`,(e,t)=>{SZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),x5=q(`ZodMap`,(e,t)=>{CZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(l2(...t)),e.nonempty=t=>e.check(l2(1,t)),e.max=(...t)=>e.check(c2(...t)),e.size=(...t)=>e.check(u2(...t))}),S5=q(`ZodSet`,(e,t)=>{wZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V4(e,t,n,r),e.min=(...t)=>e.check(l2(...t)),e.nonempty=t=>e.check(l2(1,t)),e.max=(...t)=>e.check(c2(...t)),e.size=(...t)=>e.check(u2(...t))}),C5=q(`ZodEnum`,(e,t)=>{TZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j4(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new C5({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new C5({...t,checks:[],...Y(r),entries:i})}}),w5=q(`ZodLiteral`,(e,t)=>{EZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M4(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),T5=q(`ZodFile`,(e,t)=>{DZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r),e.min=(t,n)=>e.check(l2(t,n)),e.max=(t,n)=>e.check(c2(t,n)),e.mime=(t,n)=>e.check(x2(Array.isArray(t)?t:[t],n))}),E5=q(`ZodTransform`,(e,t)=>{OZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z4(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new CK(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(vq(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(vq(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),D5=q(`ZodOptional`,(e,t)=>{kZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),O5=q(`ZodExactOptional`,(e,t)=>{AZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),k5=q(`ZodNullable`,(e,t)=>{jZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),A5=q(`ZodDefault`,(e,t)=>{MZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),j5=q(`ZodPrefault`,(e,t)=>{NZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),M5=q(`ZodNonOptional`,(e,t)=>{PZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),N5=q(`ZodSuccess`,(e,t)=>{FZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),P5=q(`ZodCatch`,(e,t)=>{IZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),F5=q(`ZodNaN`,(e,t)=>{LZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N4(e,t,n,r)}),I5=q(`ZodPipe`,(e,t)=>{RZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$4(e,t,n,r),e.in=t.in,e.out=t.out}),L5=q(`ZodCodec`,(e,t)=>{I5.init(e,t),zZ.init(e,t)}),R5=q(`ZodPreprocess`,(e,t)=>{I5.init(e,t),BZ.init(e,t)}),z5=q(`ZodReadonly`,(e,t)=>{VZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),B5=q(`ZodTemplateLiteral`,(e,t)=>{HZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P4(e,t,n,r)}),V5=q(`ZodLazy`,(e,t)=>{GZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>r3(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),H5=q(`ZodPromise`,(e,t)=>{WZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),U5=q(`ZodFunction`,(e,t)=>{UZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R4(e,t,n,r)}),W5=q(`ZodCustom`,(e,t)=>{KZ.init(e,t),k8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L4(e,t,n,r)}),G5=r4,K5=i4,q5=(...e)=>a4({Codec:L5,Boolean:n5,String:j8},...e)}));function Y5(e){vK({customError:e})}function X5(){return vK().customError}var Z5,Q5,$5=o((()=>{d3(),Z5={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`},Q5||={}}));function e7(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function t7(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function n7(e,t){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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=r7(t7(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>n7({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){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))),r=t;break}case`number`:case`integer`:{let t=n===`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)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=r7(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=r7(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?r7(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=r7(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tr7(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?r7(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>r7(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?r7(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=r7(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function r7(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=n7(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>r7(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>r7(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf)){if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:r7(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function i7(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:e7(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??$1};return r7(n,r)}var $,a7,o7=o((()=>{e0(),_3(),D3(),J5(),$={...G3,...g3,iso:v3},a7=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`.split(`.`))})),s7=c({bigint:()=>d7,boolean:()=>u7,date:()=>f7,number:()=>l7,string:()=>c7});function c7(e){return n0(j8,e)}function l7(e){return j0(e5,e)}function u7(e){return R0(n5,e)}function d7(e){return B0(r5,e)}function f7(e){return Z0(f5,e)}var p7=o((()=>{d3(),J5()})),m7=c({$brand:()=>xK,$input:()=>Z1,$output:()=>X1,NEVER:()=>bK,TimePrecision:()=>s4,ZodAny:()=>c5,ZodArray:()=>p5,ZodBase64:()=>Y8,ZodBase64URL:()=>X8,ZodBigInt:()=>r5,ZodBigIntFormat:()=>i5,ZodBoolean:()=>n5,ZodCIDRv4:()=>q8,ZodCIDRv6:()=>J8,ZodCUID:()=>z8,ZodCUID2:()=>B8,ZodCatch:()=>P5,ZodCodec:()=>L5,ZodCustom:()=>W5,ZodCustomStringFormat:()=>$8,ZodDate:()=>f5,ZodDefault:()=>A5,ZodDiscriminatedUnion:()=>_5,ZodE164:()=>Z8,ZodEmail:()=>N8,ZodEmoji:()=>L8,ZodEnum:()=>C5,ZodError:()=>k3,ZodExactOptional:()=>O5,ZodFile:()=>T5,ZodFirstPartyTypeKind:()=>Q5,ZodFunction:()=>U5,ZodGUID:()=>P8,ZodIPv4:()=>W8,ZodIPv6:()=>K8,ZodISODate:()=>w3,ZodISODateTime:()=>C3,ZodISODuration:()=>E3,ZodISOTime:()=>T3,ZodIntersection:()=>v5,ZodIssueCode:()=>Z5,ZodJWT:()=>Q8,ZodKSUID:()=>U8,ZodLazy:()=>V5,ZodLiteral:()=>w5,ZodMAC:()=>G8,ZodMap:()=>x5,ZodNaN:()=>F5,ZodNanoID:()=>R8,ZodNever:()=>u5,ZodNonOptional:()=>M5,ZodNull:()=>s5,ZodNullable:()=>k5,ZodNumber:()=>e5,ZodNumberFormat:()=>t5,ZodObject:()=>m5,ZodOptional:()=>D5,ZodPipe:()=>I5,ZodPrefault:()=>j5,ZodPreprocess:()=>R5,ZodPromise:()=>H5,ZodReadonly:()=>z5,ZodRealError:()=>A3,ZodRecord:()=>b5,ZodSet:()=>S5,ZodString:()=>j8,ZodStringFormat:()=>M8,ZodSuccess:()=>N5,ZodSymbol:()=>a5,ZodTemplateLiteral:()=>B5,ZodTransform:()=>E5,ZodTuple:()=>y5,ZodType:()=>k8,ZodULID:()=>V8,ZodURL:()=>I8,ZodUUID:()=>F8,ZodUndefined:()=>o5,ZodUnion:()=>h5,ZodUnknown:()=>l5,ZodVoid:()=>d5,ZodXID:()=>H8,ZodXor:()=>g5,_ZodString:()=>A8,_default:()=>s8,_function:()=>b8,any:()=>P6,array:()=>z6,base64:()=>p6,base64url:()=>m6,bigint:()=>O6,boolean:()=>D6,catch:()=>d8,check:()=>x8,cidrv4:()=>d6,cidrv6:()=>f6,clone:()=>$K,codec:()=>m8,coerce:()=>s7,config:()=>vK,core:()=>u3,cuid:()=>r6,cuid2:()=>i6,custom:()=>S8,date:()=>R6,decode:()=>L3,decodeAsync:()=>z3,describe:()=>G5,discriminatedUnion:()=>G6,e164:()=>h6,email:()=>q3,emoji:()=>t6,encode:()=>I3,encodeAsync:()=>R3,endsWith:()=>y2,enum:()=>$6,exactOptional:()=>i8,file:()=>t8,flattenError:()=>Iq,float32:()=>C6,float64:()=>w6,formatError:()=>Lq,fromJSONSchema:()=>i7,function:()=>b8,getErrorMap:()=>X5,globalRegistry:()=>$1,gt:()=>t2,gte:()=>n2,guid:()=>J3,hash:()=>b6,hex:()=>y6,hostname:()=>v6,httpUrl:()=>e6,includes:()=>_2,instanceof:()=>T8,int:()=>S6,int32:()=>T6,int64:()=>k6,intersection:()=>K6,invertCodec:()=>h8,ipv4:()=>c6,ipv6:()=>u6,iso:()=>v3,json:()=>E8,jwt:()=>g6,keyof:()=>B6,ksuid:()=>s6,lazy:()=>v8,length:()=>p2,literal:()=>Q,locales:()=>K1,looseObject:()=>H6,looseRecord:()=>X6,lowercase:()=>h2,lt:()=>$0,lte:()=>e2,mac:()=>l6,map:()=>Z6,maxLength:()=>d2,maxSize:()=>c2,meta:()=>K5,mime:()=>x2,minLength:()=>f2,minSize:()=>l2,multipleOf:()=>s2,nan:()=>f8,nanoid:()=>n6,nativeEnum:()=>e8,negative:()=>i2,never:()=>I6,nonnegative:()=>o2,nonoptional:()=>l8,nonpositive:()=>a2,normalize:()=>C2,null:()=>N6,nullable:()=>a8,nullish:()=>o8,number:()=>x6,object:()=>Z,optional:()=>r8,overwrite:()=>S2,parse:()=>M3,parseAsync:()=>N3,partialRecord:()=>Y6,pipe:()=>p8,positive:()=>r2,prefault:()=>c8,preprocess:()=>D8,prettifyError:()=>Bq,promise:()=>y8,property:()=>b2,readonly:()=>g8,record:()=>J6,refine:()=>C8,regex:()=>m2,regexes:()=>gJ,registry:()=>J1,safeDecode:()=>V3,safeDecodeAsync:()=>U3,safeEncode:()=>B3,safeEncodeAsync:()=>H3,safeParse:()=>P3,safeParseAsync:()=>F3,set:()=>Q6,setErrorMap:()=>Y5,size:()=>u2,slugify:()=>D2,startsWith:()=>v2,strictObject:()=>V6,string:()=>X,stringFormat:()=>_6,stringbool:()=>q5,success:()=>u8,superRefine:()=>w8,symbol:()=>j6,templateLiteral:()=>_8,toJSONSchema:()=>_4,toLowerCase:()=>T2,toUpperCase:()=>E2,transform:()=>n8,treeifyError:()=>Rq,trim:()=>w2,tuple:()=>q6,uint32:()=>E6,uint64:()=>A6,ulid:()=>a6,undefined:()=>M6,union:()=>U6,unknown:()=>F6,uppercase:()=>g2,url:()=>$3,util:()=>EK,uuid:()=>Y3,uuidv4:()=>X3,uuidv6:()=>Z3,uuidv7:()=>Q3,void:()=>L6,xid:()=>o6,xor:()=>W6}),h7=o((()=>{d3(),J5(),_3(),j3(),W3(),$5(),wQ(),a3(),o7(),q1(),D3(),p7(),vK(SQ())})),g7,_7=o((()=>{h7(),h7(),g7=m7})),v7=c({$brand:()=>xK,$input:()=>Z1,$output:()=>X1,NEVER:()=>bK,TimePrecision:()=>s4,ZodAny:()=>c5,ZodArray:()=>p5,ZodBase64:()=>Y8,ZodBase64URL:()=>X8,ZodBigInt:()=>r5,ZodBigIntFormat:()=>i5,ZodBoolean:()=>n5,ZodCIDRv4:()=>q8,ZodCIDRv6:()=>J8,ZodCUID:()=>z8,ZodCUID2:()=>B8,ZodCatch:()=>P5,ZodCodec:()=>L5,ZodCustom:()=>W5,ZodCustomStringFormat:()=>$8,ZodDate:()=>f5,ZodDefault:()=>A5,ZodDiscriminatedUnion:()=>_5,ZodE164:()=>Z8,ZodEmail:()=>N8,ZodEmoji:()=>L8,ZodEnum:()=>C5,ZodError:()=>k3,ZodExactOptional:()=>O5,ZodFile:()=>T5,ZodFirstPartyTypeKind:()=>Q5,ZodFunction:()=>U5,ZodGUID:()=>P8,ZodIPv4:()=>W8,ZodIPv6:()=>K8,ZodISODate:()=>w3,ZodISODateTime:()=>C3,ZodISODuration:()=>E3,ZodISOTime:()=>T3,ZodIntersection:()=>v5,ZodIssueCode:()=>Z5,ZodJWT:()=>Q8,ZodKSUID:()=>U8,ZodLazy:()=>V5,ZodLiteral:()=>w5,ZodMAC:()=>G8,ZodMap:()=>x5,ZodNaN:()=>F5,ZodNanoID:()=>R8,ZodNever:()=>u5,ZodNonOptional:()=>M5,ZodNull:()=>s5,ZodNullable:()=>k5,ZodNumber:()=>e5,ZodNumberFormat:()=>t5,ZodObject:()=>m5,ZodOptional:()=>D5,ZodPipe:()=>I5,ZodPrefault:()=>j5,ZodPreprocess:()=>R5,ZodPromise:()=>H5,ZodReadonly:()=>z5,ZodRealError:()=>A3,ZodRecord:()=>b5,ZodSet:()=>S5,ZodString:()=>j8,ZodStringFormat:()=>M8,ZodSuccess:()=>N5,ZodSymbol:()=>a5,ZodTemplateLiteral:()=>B5,ZodTransform:()=>E5,ZodTuple:()=>y5,ZodType:()=>k8,ZodULID:()=>V8,ZodURL:()=>I8,ZodUUID:()=>F8,ZodUndefined:()=>o5,ZodUnion:()=>h5,ZodUnknown:()=>l5,ZodVoid:()=>d5,ZodXID:()=>H8,ZodXor:()=>g5,_ZodString:()=>A8,_default:()=>s8,_function:()=>b8,any:()=>P6,array:()=>z6,base64:()=>p6,base64url:()=>m6,bigint:()=>O6,boolean:()=>D6,catch:()=>d8,check:()=>x8,cidrv4:()=>d6,cidrv6:()=>f6,clone:()=>$K,codec:()=>m8,coerce:()=>s7,config:()=>vK,core:()=>u3,cuid:()=>r6,cuid2:()=>i6,custom:()=>S8,date:()=>R6,decode:()=>L3,decodeAsync:()=>z3,default:()=>y7,describe:()=>G5,discriminatedUnion:()=>G6,e164:()=>h6,email:()=>q3,emoji:()=>t6,encode:()=>I3,encodeAsync:()=>R3,endsWith:()=>y2,enum:()=>$6,exactOptional:()=>i8,file:()=>t8,flattenError:()=>Iq,float32:()=>C6,float64:()=>w6,formatError:()=>Lq,fromJSONSchema:()=>i7,function:()=>b8,getErrorMap:()=>X5,globalRegistry:()=>$1,gt:()=>t2,gte:()=>n2,guid:()=>J3,hash:()=>b6,hex:()=>y6,hostname:()=>v6,httpUrl:()=>e6,includes:()=>_2,instanceof:()=>T8,int:()=>S6,int32:()=>T6,int64:()=>k6,intersection:()=>K6,invertCodec:()=>h8,ipv4:()=>c6,ipv6:()=>u6,iso:()=>v3,json:()=>E8,jwt:()=>g6,keyof:()=>B6,ksuid:()=>s6,lazy:()=>v8,length:()=>p2,literal:()=>Q,locales:()=>K1,looseObject:()=>H6,looseRecord:()=>X6,lowercase:()=>h2,lt:()=>$0,lte:()=>e2,mac:()=>l6,map:()=>Z6,maxLength:()=>d2,maxSize:()=>c2,meta:()=>K5,mime:()=>x2,minLength:()=>f2,minSize:()=>l2,multipleOf:()=>s2,nan:()=>f8,nanoid:()=>n6,nativeEnum:()=>e8,negative:()=>i2,never:()=>I6,nonnegative:()=>o2,nonoptional:()=>l8,nonpositive:()=>a2,normalize:()=>C2,null:()=>N6,nullable:()=>a8,nullish:()=>o8,number:()=>x6,object:()=>Z,optional:()=>r8,overwrite:()=>S2,parse:()=>M3,parseAsync:()=>N3,partialRecord:()=>Y6,pipe:()=>p8,positive:()=>r2,prefault:()=>c8,preprocess:()=>D8,prettifyError:()=>Bq,promise:()=>y8,property:()=>b2,readonly:()=>g8,record:()=>J6,refine:()=>C8,regex:()=>m2,regexes:()=>gJ,registry:()=>J1,safeDecode:()=>V3,safeDecodeAsync:()=>U3,safeEncode:()=>B3,safeEncodeAsync:()=>H3,safeParse:()=>P3,safeParseAsync:()=>F3,set:()=>Q6,setErrorMap:()=>Y5,size:()=>u2,slugify:()=>D2,startsWith:()=>v2,strictObject:()=>V6,string:()=>X,stringFormat:()=>_6,stringbool:()=>q5,success:()=>u8,superRefine:()=>w8,symbol:()=>j6,templateLiteral:()=>_8,toJSONSchema:()=>_4,toLowerCase:()=>T2,toUpperCase:()=>E2,transform:()=>n8,treeifyError:()=>Rq,trim:()=>w2,tuple:()=>q6,uint32:()=>E6,uint64:()=>A6,ulid:()=>a6,undefined:()=>M6,union:()=>U6,unknown:()=>F6,uppercase:()=>g2,url:()=>$3,util:()=>EK,uuid:()=>Y3,uuidv4:()=>X3,uuidv6:()=>Z3,uuidv7:()=>Q3,void:()=>L6,xid:()=>o6,xor:()=>W6,z:()=>m7}),y7,b7=o((()=>{_7(),_7(),y7=g7}));b7();var x7=`io.modelcontextprotocol/related-task`,S7=S8(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),C7=U6([X(),x6().int()]),w7=X();H6({ttl:x6().optional(),pollInterval:x6().optional()});var T7=Z({ttl:x6().optional()}),E7=Z({taskId:X()}),D7=H6({progressToken:C7.optional(),[x7]:E7.optional()}),O7=Z({_meta:D7.optional()}),k7=O7.extend({task:T7.optional()}),A7=e=>k7.safeParse(e).success,j7=Z({method:X(),params:O7.loose().optional()}),M7=Z({_meta:D7.optional()}),N7=Z({method:X(),params:M7.loose().optional()}),P7=H6({_meta:D7.optional()}),F7=U6([X(),x6().int()]),I7=Z({jsonrpc:Q(`2.0`),id:F7,...j7.shape}).strict(),L7=e=>I7.safeParse(e).success,R7=Z({jsonrpc:Q(`2.0`),...N7.shape}).strict(),z7=e=>R7.safeParse(e).success,B7=Z({jsonrpc:Q(`2.0`),id:F7,result:P7}).strict(),V7=e=>B7.safeParse(e).success,H7;(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`})(H7||={});var U7=Z({jsonrpc:Q(`2.0`),id:F7.optional(),error:Z({code:x6().int(),message:X(),data:F6().optional()})}).strict(),W7=e=>U7.safeParse(e).success,G7=U6([I7,R7,B7,U7]);U6([B7,U7]);var K7=P7.strict(),q7=M7.extend({requestId:F7.optional(),reason:X().optional()}),J7=N7.extend({method:Q(`notifications/cancelled`),params:q7}),Y7=Z({icons:z6(Z({src:X(),mimeType:X().optional(),sizes:z6(X()).optional(),theme:$6([`light`,`dark`]).optional()})).optional()}),X7=Z({name:X(),title:X().optional()}),Z7=X7.extend({...X7.shape,...Y7.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),Q7=D8(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,K6(Z({form:K6(Z({applyDefaults:D6().optional()}),J6(X(),F6())).optional(),url:S7.optional()}),J6(X(),F6()).optional())),$7=H6({list:S7.optional(),cancel:S7.optional(),requests:H6({sampling:H6({createMessage:S7.optional()}).optional(),elicitation:H6({create:S7.optional()}).optional()}).optional()}),e9=H6({list:S7.optional(),cancel:S7.optional(),requests:H6({tools:H6({call:S7.optional()}).optional()}).optional()}),t9=Z({experimental:J6(X(),S7).optional(),sampling:Z({context:S7.optional(),tools:S7.optional()}).optional(),elicitation:Q7.optional(),roots:Z({listChanged:D6().optional()}).optional(),tasks:$7.optional(),extensions:J6(X(),S7).optional()}),n9=O7.extend({protocolVersion:X(),capabilities:t9,clientInfo:Z7}),Qee=j7.extend({method:Q(`initialize`),params:n9}),$ee=Z({experimental:J6(X(),S7).optional(),logging:S7.optional(),completions:S7.optional(),prompts:Z({listChanged:D6().optional()}).optional(),resources:Z({subscribe:D6().optional(),listChanged:D6().optional()}).optional(),tools:Z({listChanged:D6().optional()}).optional(),tasks:e9.optional(),extensions:J6(X(),S7).optional()}),ete=P7.extend({protocolVersion:X(),capabilities:$ee,serverInfo:Z7,instructions:X().optional()}),tte=N7.extend({method:Q(`notifications/initialized`),params:M7.optional()}),r9=j7.extend({method:Q(`ping`),params:O7.optional()}),nte=Z({progress:x6(),total:r8(x6()),message:r8(X())}),rte=Z({...M7.shape,...nte.shape,progressToken:C7}),i9=N7.extend({method:Q(`notifications/progress`),params:rte}),ite=O7.extend({cursor:w7.optional()}),a9=j7.extend({params:ite.optional()}),o9=P7.extend({nextCursor:w7.optional()}),ate=$6([`working`,`input_required`,`completed`,`failed`,`cancelled`]),s9=Z({taskId:X(),status:ate,ttl:U6([x6(),N6()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:r8(x6()),statusMessage:r8(X())}),c9=P7.extend({task:s9}),ote=M7.merge(s9),l9=N7.extend({method:Q(`notifications/tasks/status`),params:ote}),u9=j7.extend({method:Q(`tasks/get`),params:O7.extend({taskId:X()})}),d9=P7.merge(s9),f9=j7.extend({method:Q(`tasks/result`),params:O7.extend({taskId:X()})});P7.loose();var p9=a9.extend({method:Q(`tasks/list`)}),m9=o9.extend({tasks:z6(s9)}),h9=j7.extend({method:Q(`tasks/cancel`),params:O7.extend({taskId:X()})}),ste=P7.merge(s9),g9=Z({uri:X(),mimeType:r8(X()),_meta:J6(X(),F6()).optional()}),_9=g9.extend({text:X()}),v9=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),y9=g9.extend({blob:v9}),b9=$6([`user`,`assistant`]),x9=Z({audience:z6(b9).optional(),priority:x6().min(0).max(1).optional(),lastModified:y3({offset:!0}).optional()}),S9=Z({...X7.shape,...Y7.shape,uri:X(),description:r8(X()),mimeType:r8(X()),size:r8(x6()),annotations:x9.optional(),_meta:r8(H6({}))}),cte=Z({...X7.shape,...Y7.shape,uriTemplate:X(),description:r8(X()),mimeType:r8(X()),annotations:x9.optional(),_meta:r8(H6({}))}),lte=a9.extend({method:Q(`resources/list`)}),C9=o9.extend({resources:z6(S9)}),ute=a9.extend({method:Q(`resources/templates/list`)}),dte=o9.extend({resourceTemplates:z6(cte)}),w9=O7.extend({uri:X()}),fte=w9,pte=j7.extend({method:Q(`resources/read`),params:fte}),T9=P7.extend({contents:z6(U6([_9,y9]))}),mte=N7.extend({method:Q(`notifications/resources/list_changed`),params:M7.optional()}),hte=w9,gte=j7.extend({method:Q(`resources/subscribe`),params:hte}),_te=w9,vte=j7.extend({method:Q(`resources/unsubscribe`),params:_te}),yte=M7.extend({uri:X()}),bte=N7.extend({method:Q(`notifications/resources/updated`),params:yte}),xte=Z({name:X(),description:r8(X()),required:r8(D6())}),Ste=Z({...X7.shape,...Y7.shape,description:r8(X()),arguments:r8(z6(xte)),_meta:r8(H6({}))}),Cte=a9.extend({method:Q(`prompts/list`)}),wte=o9.extend({prompts:z6(Ste)}),Tte=O7.extend({name:X(),arguments:J6(X(),X()).optional()}),Ete=j7.extend({method:Q(`prompts/get`),params:Tte}),E9=Z({type:Q(`text`),text:X(),annotations:x9.optional(),_meta:J6(X(),F6()).optional()}),D9=Z({type:Q(`image`),data:v9,mimeType:X(),annotations:x9.optional(),_meta:J6(X(),F6()).optional()}),O9=Z({type:Q(`audio`),data:v9,mimeType:X(),annotations:x9.optional(),_meta:J6(X(),F6()).optional()}),Dte=Z({type:Q(`tool_use`),name:X(),id:X(),input:J6(X(),F6()),_meta:J6(X(),F6()).optional()}),k9=Z({type:Q(`resource`),resource:U6([_9,y9]),annotations:x9.optional(),_meta:J6(X(),F6()).optional()}),A9=S9.extend({type:Q(`resource_link`)}),j9=U6([E9,D9,O9,A9,k9]),Ote=Z({role:b9,content:j9}),kte=P7.extend({description:X().optional(),messages:z6(Ote)}),Ate=N7.extend({method:Q(`notifications/prompts/list_changed`),params:M7.optional()}),jte=Z({title:X().optional(),readOnlyHint:D6().optional(),destructiveHint:D6().optional(),idempotentHint:D6().optional(),openWorldHint:D6().optional()}),Mte=Z({taskSupport:$6([`required`,`optional`,`forbidden`]).optional()}),M9=Z({...X7.shape,...Y7.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:J6(X(),S7).optional(),required:z6(X()).optional()}).catchall(F6()),outputSchema:Z({type:Q(`object`),properties:J6(X(),S7).optional(),required:z6(X()).optional()}).catchall(F6()).optional(),annotations:jte.optional(),execution:Mte.optional(),_meta:J6(X(),F6()).optional()}),N9=a9.extend({method:Q(`tools/list`)}),Nte=o9.extend({tools:z6(M9)}),P9=P7.extend({content:z6(j9).default([]),structuredContent:J6(X(),F6()).optional(),isError:D6().optional()});P9.or(P7.extend({toolResult:F6()}));var Pte=k7.extend({name:X(),arguments:J6(X(),F6()).optional()}),F9=j7.extend({method:Q(`tools/call`),params:Pte}),Fte=N7.extend({method:Q(`notifications/tools/list_changed`),params:M7.optional()});Z({autoRefresh:D6().default(!0),debounceMs:x6().int().nonnegative().default(300)});var I9=$6([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Ite=O7.extend({level:I9}),Lte=j7.extend({method:Q(`logging/setLevel`),params:Ite}),Rte=M7.extend({level:I9,logger:X().optional(),data:F6()}),zte=N7.extend({method:Q(`notifications/message`),params:Rte}),Bte=Z({hints:z6(Z({name:X().optional()})).optional(),costPriority:x6().min(0).max(1).optional(),speedPriority:x6().min(0).max(1).optional(),intelligencePriority:x6().min(0).max(1).optional()}),Vte=Z({mode:$6([`auto`,`required`,`none`]).optional()}),Hte=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:z6(j9).default([]),structuredContent:Z({}).loose().optional(),isError:D6().optional(),_meta:J6(X(),F6()).optional()}),Ute=G6(`type`,[E9,D9,O9]),L9=G6(`type`,[E9,D9,O9,Dte,Hte]),Wte=Z({role:b9,content:U6([L9,z6(L9)]),_meta:J6(X(),F6()).optional()}),Gte=k7.extend({messages:z6(Wte),modelPreferences:Bte.optional(),systemPrompt:X().optional(),includeContext:$6([`none`,`thisServer`,`allServers`]).optional(),temperature:x6().optional(),maxTokens:x6().int(),stopSequences:z6(X()).optional(),metadata:S7.optional(),tools:z6(M9).optional(),toolChoice:Vte.optional()}),Kte=j7.extend({method:Q(`sampling/createMessage`),params:Gte}),R9=P7.extend({model:X(),stopReason:r8($6([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:b9,content:Ute}),z9=P7.extend({model:X(),stopReason:r8($6([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:b9,content:U6([L9,z6(L9)])}),qte=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:D6().optional()}),Jte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:x6().optional(),maxLength:x6().optional(),format:$6([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),Yte=Z({type:$6([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:x6().optional(),maximum:x6().optional(),default:x6().optional()}),Xte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:z6(X()),default:X().optional()}),Zte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:z6(Z({const:X(),title:X()})),default:X().optional()}),Qte=U6([U6([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:z6(X()),enumNames:z6(X()).optional(),default:X().optional()}),U6([Xte,Zte]),U6([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:x6().optional(),maxItems:x6().optional(),items:Z({type:Q(`string`),enum:z6(X())}),default:z6(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:x6().optional(),maxItems:x6().optional(),items:Z({anyOf:z6(Z({const:X(),title:X()}))}),default:z6(X()).optional()})])]),qte,Jte,Yte]),$te=U6([k7.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:J6(X(),Qte),required:z6(X()).optional()})}),k7.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),ene=j7.extend({method:Q(`elicitation/create`),params:$te}),tne=M7.extend({elicitationId:X()}),nne=N7.extend({method:Q(`notifications/elicitation/complete`),params:tne}),rne=P7.extend({action:$6([`accept`,`decline`,`cancel`]),content:D8(e=>e===null?void 0:e,J6(X(),U6([X(),x6(),D6(),z6(X())])).optional())}),ine=Z({type:Q(`ref/resource`),uri:X()}),ane=Z({type:Q(`ref/prompt`),name:X()}),one=O7.extend({ref:U6([ane,ine]),argument:Z({name:X(),value:X()}),context:Z({arguments:J6(X(),X()).optional()}).optional()}),sne=j7.extend({method:Q(`completion/complete`),params:one}),cne=P7.extend({completion:H6({values:z6(X()).max(100),total:r8(x6().int()),hasMore:r8(D6())})}),lne=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:J6(X(),F6()).optional()}),une=j7.extend({method:Q(`roots/list`),params:O7.optional()}),dne=P7.extend({roots:z6(lne)}),fne=N7.extend({method:Q(`notifications/roots/list_changed`),params:M7.optional()});U6([r9,Qee,sne,Lte,Ete,Cte,lte,ute,pte,gte,vte,F9,N9,u9,f9,p9,h9]),U6([J7,i9,tte,fne,l9]),U6([K7,R9,z9,rne,dne,d9,m9,c9]),U6([r9,Kte,ene,une,u9,f9,p9,h9]),U6([J7,i9,zte,bte,mte,Fte,Ate,l9,nne]),U6([K7,ete,cne,kte,wte,C9,dte,T9,P9,Nte,d9,m9,c9]);var B9=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===H7.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new pne(e.elicitations,n)}return new e(t,n,r)}},pne=class extends B9{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(H7.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function V9(e){return e===`completed`||e===`failed`||e===`cancelled`}function H9(e){let t=m3(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=h3(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function U9(e,t){let n=p3(e,t);if(!n.success)throw n.error;return n.data}var mne=class{constructor(e){this._options=e,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(J7,e=>{this._oncancel(e)}),this.setNotificationHandler(i9,e=>{this._onprogress(e)}),this.setRequestHandler(r9,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(u9,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new B9(H7.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(f9,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r){if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new B9(e.error.code,e.error.message,e.error.data))}}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new B9(H7.InvalidParams,`Task not found: ${r}`);if(!V9(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(V9(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[x7]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(p9,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new B9(H7.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(h9,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new B9(H7.InvalidParams,`Task not found: ${e.params.taskId}`);if(V9(n.status))throw new B9(H7.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new B9(H7.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof B9?e:new B9(H7.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),B9.fromError(H7.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){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=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),V7(e)||W7(e)?this._onresponse(e):L7(e)?this._onrequest(e,t):z7(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=B9.fromError(H7.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[x7]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:H7.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=A7(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new B9(H7.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:H7.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),V7(e)?n(e):n(new B9(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(V7(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),V7(e)?r(e):r(B9.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof B9?e:new B9(H7.InternalError,String(e))}}return}let i;try{let r=await this.request(e,c9,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new B9(H7.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},V9(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new B9(H7.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new B9(H7.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof B9?e:new B9(H7.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[x7]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof B9?e:new B9(H7.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=p3(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(B9.fromError(H7.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},d9,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},m9,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},ste,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[x7]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[x7]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[x7]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=H9(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=U9(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=H9(e);this._notificationHandlers.set(n,n=>{let r=U9(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&L7(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new B9(H7.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new B9(H7.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new B9(H7.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new B9(H7.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=l9.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),V9(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new B9(H7.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(V9(a.status))throw new B9(H7.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=l9.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),V9(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function W9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function hne(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=W9(a)&&W9(i)?{...a,...i}:i}return n}var gne=`modulepreload`,_ne=function(e,t){return new URL(e,t).href},G9={},vne=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=_ne(t,n),t=s(t),t in G9)return;G9[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:gne,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};b7(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var yne=class extends mne{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},bne=`2026-01-26`,K9=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=G7.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},xne=U6([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),q9=U6([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),Sne=J6(U6([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).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\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),V6([X(),A6()]).describe(`Style variables for theming MCP apps. +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),U6([X(),M6()]).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.). @@ -107,10 +107,10 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var Sne=Z({isError:T6().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Cne=Z({isError:T6().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),wne=Z({isError:T6().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var J9=Z({connectDomains:L6(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var Cne=Z({isError:D6().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),wne=Z({isError:D6().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Tne=Z({isError:D6().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var J9=Z({connectDomains:z6(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:L6(X()).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 → no network resources (secure default)"),frameDomains:L6(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:L6(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Y9=Z({camera:Z({}).optional().describe(`Request camera access. +- Empty or omitted → no network connections (secure default)`),resourceDomains:z6(X()).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 → no network resources (secure default)"),frameDomains:z6(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:z6(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Y9=Z({camera:Z({}).optional().describe(`Request camera access. Maps to Permission Policy \`camera\` feature.`),microphone:Z({}).optional().describe(`Request microphone access. @@ -118,7 +118,7 @@ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:Z({}).optional().describe(`Request clipboard write access. -Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:y6().optional().describe(`New width in pixels.`),height:y6().optional().describe(`New height in pixels.`)})});var Tne=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:K6(X(),N6().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Ene=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:K6(X(),N6().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Dne=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),One=Z({fonts:X().optional()}),kne=Z({variables:xne.optional().describe(`CSS variables for theming the app.`),css:One.optional().describe(`CSS blocks that apps can inject.`)}),Ane=Z({method:Q(`ui/resource-teardown`),params:Z({})});K6(X(),N6());var X9=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var jne=Z({experimental:K6(X(),K6(X(),M6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:T6().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:T6().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:Y9.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:J9.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:X9.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:X9.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).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.")}),Mne=Z({experimental:K6(X(),K6(X(),M6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:T6().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:L6(q9).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:J9.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Y9.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. +Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:x6().optional().describe(`New width in pixels.`),height:x6().optional().describe(`New height in pixels.`)})});var Ene=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:J6(X(),F6().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Dne=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:J6(X(),F6().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),One=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),kne=Z({fonts:X().optional()}),Ane=Z({variables:Sne.optional().describe(`CSS variables for theming the app.`),css:kne.optional().describe(`CSS blocks that apps can inject.`)}),jne=Z({method:Q(`ui/resource-teardown`),params:Z({})});J6(X(),F6());var X9=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var Mne=Z({experimental:J6(X(),J6(X(),P6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:D6().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:D6().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:Y9.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:J9.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:X9.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:X9.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).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.")}),Nne=Z({experimental:J6(X(),J6(X(),P6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:D6().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:z6(q9).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:J9.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Y9.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. @@ -126,16 +126,16 @@ - 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:T6().optional().describe(`Visual boundary preference - true if view prefers a visible border. +If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:D6().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`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:q9.describe(`The display mode being requested.`)})});var Nne=Z({mode:q9.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Pne=V6([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:L6(Pne).optional().describe(`Who can access this tool. Default: ["model", "app"] +- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:q9.describe(`The display mode being requested.`)})});var Pne=Z({mode:q9.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Fne=U6([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:z6(Fne).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:P6().optional(),permissions:P6().optional()}),Z({mimeTypes:L6(X()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Z({method:Q(`ui/download-file`),params:Z({contents:L6(V6([k9,A9])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Z({method:Q(`ui/message`),params:Z({role:Q(`user`).describe(`Message role, currently only "user" is supported.`),content:L6(j9).describe(`Message content blocks (text, image, etc.).`)})}),Z({method:Q(`ui/notifications/sandbox-resource-ready`),params:Z({html:X().describe(`HTML content to load into the inner iframe.`),sandbox:X().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:J9.optional().describe(`CSP configuration from resource metadata.`),permissions:Y9.optional().describe(`Sandbox permissions from resource metadata.`)})});var Fne=Z({method:Q(`ui/notifications/tool-result`),params:P9.describe(`Standard MCP tool execution result.`)}),Z9=Z({toolInfo:Z({id:N7.optional().describe(`JSON-RPC id of the tools/call request.`),tool:M9.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:bne.optional().describe(`Current color theme preference.`),styles:kne.optional().describe(`Style configuration for theming the app.`),displayMode:q9.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:L6(q9).optional().describe(`Display modes the host supports.`),containerDimensions:V6([Z({height:y6().describe(`Fixed container height in pixels.`)}),Z({maxHeight:V6([y6(),A6()]).optional().describe(`Maximum container height in pixels.`)})]).and(V6([Z({width:y6().describe(`Fixed container width in pixels.`)}),Z({maxWidth:V6([y6(),A6()]).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:X().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:X().optional().describe(`User's timezone in IANA format.`),userAgent:X().optional().describe(`Host application identifier.`),platform:V6([Q(`web`),Q(`desktop`),Q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:Z({touch:T6().optional().describe(`Whether the device supports touch input.`),hover:T6().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:Z({top:y6().describe(`Top safe area inset in pixels.`),right:y6().describe(`Right safe area inset in pixels.`),bottom:y6().describe(`Bottom safe area inset in pixels.`),left:y6().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Ine=Z({method:Q(`ui/notifications/host-context-changed`),params:Z9.describe(`Partial context update containing only changed fields.`)});Z({method:Q(`ui/update-model-context`),params:Z({content:L6(j9).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:K6(X(),N6().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),Z({method:Q(`ui/initialize`),params:Z({appInfo:Y7.describe(`App identification (name and version).`),appCapabilities:Mne.describe(`Features and capabilities this app provides.`),protocolVersion:X().describe(`Protocol version this app supports.`)})});var Lne=Z({protocolVersion:X().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Y7.describe(`Host application identification and version.`),hostCapabilities:jne.describe(`Features and capabilities provided by the host.`),hostContext:Z9.describe(`Rich context about the host environment.`)}).passthrough(),Rne={target:`draft-2020-12`};async function Q9(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Rne);if(n.vendor===`zod`){let{z:n}=await _ne(async()=>{let{z:e}=await Promise.resolve().then(()=>(v7(),g7));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.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 $9(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var zne=class e extends vne{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() 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(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Tne,toolinputpartial:Ene,toolresult:Fne,toolcancelled:Dne,hostcontextchanged:Ine};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" 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(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||gK({jitless:!0}),this.setRequestHandler(n9,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=mne(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await $9(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await $9(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Q9(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Q9(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Ane,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(F9,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(N9,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},P9,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},w9,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},S9,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?z9:R9;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},wne,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},W7,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Sne,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Cne,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Nne,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new K9(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:yne}},Lne,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Bne({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(!1),[l,u]=(0,G.useState)(null);return(0,G.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new K9(window.parent,window.parent);if(s=new zne(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function Vne(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)({}),[a,o]=(0,G.useState)(),[s,c]=(0,G.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=Bne({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,G.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function Hne(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}ZO([bC]);function Une(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=Vne(`Fanout log explorer`),[o,s]=(0,G.useState)(`ALL`),[c,l]=(0,G.useState)(``),u=r?.theme===`dark`,d=(0,G.useMemo)(()=>(i?.data.entries??[]).filter(e=>(o===`ALL`||e.severity.toUpperCase()===o)&&(!c||e.body.toLowerCase().includes(c.toLowerCase())||e.service.toLowerCase().includes(c.toLowerCase()))),[i,c,o]);return(0,K.jsxs)(IV,{dark:u,children:[(0,K.jsx)(LV,{eyebrow:`Application activity`,title:`Logs`,summary:i?`${i.data.entries.length} entries in this time range`:void 0,onRefresh:()=>t(`search_logs`),disabled:!e}),(0,K.jsx)(RV,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Searching logs…`:void 0}),i&&i.data.entries.length===0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(zV,{tall:!0,icon:(0,K.jsx)(vV,{size:20,weight:`duotone`}),title:`No logs matched`,children:`Try a wider time window, a different service, or a less restrictive search.`}),(0,K.jsx)(BV,{left:hK(i.provenance.window),right:`No entries found`})]}),i&&i.data.entries.length>0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Wne,{data:i.data,dark:u}),(0,K.jsxs)(VR,{px:{base:`md`,sm:`lg`},py:`sm`,justify:`space-between`,align:`center`,children:[(0,K.jsx)(AB,{size:`xs`,value:o,onChange:s,data:[`ALL`,`ERROR`,`WARN`,`INFO`]}),(0,K.jsx)(XB,{"aria-label":`Filter visible logs`,type:`search`,value:c,onChange:e=>l(e.currentTarget.value),placeholder:`Filter visible logs…`,leftSection:(0,K.jsx)(bV,{size:15}),w:{base:`100%`,xs:250}})]}),(0,K.jsx)(Gne,{entries:d,onTrace:t=>Hne(e,`Investigate trace ${t.trace_id} related to this ${t.severity} log from ${t.service}.`)}),(0,K.jsx)(BV,{left:hK(i.provenance.window),right:`${d.length} matching`})]})]})}function Wne({data:e,dark:t}){let n=(0,G.useMemo)(()=>{let n=UV(t),r=[...new Set(e.buckets.map(e=>e.time))],i=[...new Set(e.buckets.map(e=>e.severity))],a=new Map(e.buckets.map(e=>[`${e.time}\u0000${e.severity}`,e.count]));return{color:i.map(e=>qne(e,t)),grid:{left:42,right:18,top:30,bottom:28},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},backgroundColor:n.surface,borderColor:n.border,textStyle:{color:n.text,fontSize:10}},legend:{top:0,right:0,textStyle:{color:n.muted,fontSize:9},itemWidth:7,itemHeight:7,icon:`circle`},xAxis:{type:`category`,data:r.map(e=>new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})),axisLabel:{color:n.muted,fontSize:8,hideOverlap:!0},axisLine:{lineStyle:{color:n.border}}},yAxis:{type:`value`,minInterval:1,splitLine:{lineStyle:{color:n.grid}},axisLabel:{color:n.muted,fontSize:8}},series:i.map(e=>({name:e,type:`bar`,stack:`logs`,barMaxWidth:22,data:r.map(t=>a.get(`${t}\u0000${e}`)??0),itemStyle:{borderRadius:[2,2,0,0]}}))}},[t,e.buckets]);return(0,K.jsx)(YL,{withBorder:!0,radius:`md`,mx:{base:`md`,sm:`lg`},p:`xs`,children:(0,K.jsx)(mK,{option:n,height:190,label:`Log volume by severity over time`})})}function Gne({entries:e,onTrace:t}){let n=VV(e,6);return e.length===0?(0,K.jsx)(zV,{icon:(0,K.jsx)(bV,{size:20,weight:`duotone`}),title:`No visible matches`,children:`Adjust the local severity or text filter.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(YB.ScrollContainer,{minWidth:680,children:(0,K.jsxs)(YB,{striped:!0,highlightOnHover:!0,verticalSpacing:`xs`,children:[(0,K.jsx)(YB.Thead,{children:(0,K.jsxs)(YB.Tr,{children:[(0,K.jsx)(YB.Th,{children:`Time`}),(0,K.jsx)(YB.Th,{children:`Level`}),(0,K.jsx)(YB.Th,{children:`Service`}),(0,K.jsx)(YB.Th,{children:`Message`}),(0,K.jsx)(YB.Th,{})]})}),(0,K.jsx)(YB.Tbody,{children:n.pageItems.map((e,r)=>(0,K.jsxs)(YB.Tr,{children:[(0,K.jsx)(YB.Td,{children:(0,K.jsx)(Ez,{size:`xs`,ff:`monospace`,children:new Date(e.time).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`,second:`2-digit`})})}),(0,K.jsx)(YB.Td,{children:(0,K.jsx)(kz,{size:`sm`,color:Kne(e.severity),variant:`light`,children:e.severity||`LOG`})}),(0,K.jsx)(YB.Td,{children:(0,K.jsx)(Ez,{size:`sm`,fw:600,children:e.service})}),(0,K.jsx)(YB.Td,{children:(0,K.jsx)(Ez,{size:`sm`,lineClamp:2,title:e.body,children:e.body})}),(0,K.jsx)(YB.Td,{children:e.trace_id&&(0,K.jsx)(EB,{label:`Investigate trace`,children:(0,K.jsx)(jR,{variant:`subtle`,"aria-label":`Investigate trace ${e.trace_id}`,onClick:()=>t(e),children:(0,K.jsx)(gV,{size:15,weight:`bold`})})})})]},`${e.time}-${n.from+r}`))})]})}),(0,K.jsx)(HV,{...n,onChange:n.setPage})]})}function Kne(e){let t=e.toUpperCase();return t===`ERROR`||t===`FATAL`?`bad`:t===`WARN`||t===`WARNING`?`warn`:t===`INFO`?`info`:`gray`}function qne(e,t){let n=WV(t),r=e.toUpperCase();return r===`ERROR`||r===`FATAL`?n.bad:r===`WARN`||r===`WARNING`?n.warn:r===`INFO`?n.info:UV(t).muted}(0,wV.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(Une,{})})); +- "app": Tool callable by the app from this server only`),csp:I6().optional(),permissions:I6().optional()}),Z({mimeTypes:z6(X()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Z({method:Q(`ui/download-file`),params:Z({contents:z6(U6([k9,A9])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Z({method:Q(`ui/message`),params:Z({role:Q(`user`).describe(`Message role, currently only "user" is supported.`),content:z6(j9).describe(`Message content blocks (text, image, etc.).`)})}),Z({method:Q(`ui/notifications/sandbox-resource-ready`),params:Z({html:X().describe(`HTML content to load into the inner iframe.`),sandbox:X().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:J9.optional().describe(`CSP configuration from resource metadata.`),permissions:Y9.optional().describe(`Sandbox permissions from resource metadata.`)})});var Ine=Z({method:Q(`ui/notifications/tool-result`),params:P9.describe(`Standard MCP tool execution result.`)}),Z9=Z({toolInfo:Z({id:F7.optional().describe(`JSON-RPC id of the tools/call request.`),tool:M9.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:xne.optional().describe(`Current color theme preference.`),styles:Ane.optional().describe(`Style configuration for theming the app.`),displayMode:q9.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:z6(q9).optional().describe(`Display modes the host supports.`),containerDimensions:U6([Z({height:x6().describe(`Fixed container height in pixels.`)}),Z({maxHeight:U6([x6(),M6()]).optional().describe(`Maximum container height in pixels.`)})]).and(U6([Z({width:x6().describe(`Fixed container width in pixels.`)}),Z({maxWidth:U6([x6(),M6()]).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:X().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:X().optional().describe(`User's timezone in IANA format.`),userAgent:X().optional().describe(`Host application identifier.`),platform:U6([Q(`web`),Q(`desktop`),Q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:Z({touch:D6().optional().describe(`Whether the device supports touch input.`),hover:D6().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:Z({top:x6().describe(`Top safe area inset in pixels.`),right:x6().describe(`Right safe area inset in pixels.`),bottom:x6().describe(`Bottom safe area inset in pixels.`),left:x6().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Lne=Z({method:Q(`ui/notifications/host-context-changed`),params:Z9.describe(`Partial context update containing only changed fields.`)});Z({method:Q(`ui/update-model-context`),params:Z({content:z6(j9).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:J6(X(),F6().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),Z({method:Q(`ui/initialize`),params:Z({appInfo:Z7.describe(`App identification (name and version).`),appCapabilities:Nne.describe(`Features and capabilities this app provides.`),protocolVersion:X().describe(`Protocol version this app supports.`)})});var Rne=Z({protocolVersion:X().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:Z7.describe(`Host application identification and version.`),hostCapabilities:Mne.describe(`Features and capabilities provided by the host.`),hostContext:Z9.describe(`Rich context about the host environment.`)}).passthrough(),zne={target:`draft-2020-12`};async function Q9(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](zne);if(n.vendor===`zod`){let{z:n}=await vne(async()=>{let{z:e}=await Promise.resolve().then(()=>(b7(),v7));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.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 $9(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var Bne=class e extends yne{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() 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(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Ene,toolinputpartial:Dne,toolresult:Ine,toolcancelled:One,hostcontextchanged:Lne};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" 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(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||vK({jitless:!0}),this.setRequestHandler(r9,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=hne(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await $9(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await $9(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Q9(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Q9(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(jne,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(F9,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(N9,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},P9,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},T9,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},C9,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?z9:R9;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Tne,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},K7,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Cne,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},wne,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Pne,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new K9(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:bne}},Rne,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Vne({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(!1),[l,u]=(0,G.useState)(null);return(0,G.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new K9(window.parent,window.parent);if(s=new Bne(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function Hne(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)({}),[a,o]=(0,G.useState)(),[s,c]=(0,G.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=Vne({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,G.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function Une(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}pk([EC]);function Wne(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=Hne(`Fanout log explorer`),[o,s]=(0,G.useState)(`ALL`),[c,l]=(0,G.useState)(``),u=r?.theme===`dark`,d=(0,G.useMemo)(()=>(i?.data.entries??[]).filter(e=>(o===`ALL`||e.severity.toUpperCase()===o)&&(!c||e.body.toLowerCase().includes(c.toLowerCase())||e.service.toLowerCase().includes(c.toLowerCase()))),[i,c,o]);return(0,K.jsxs)(zV,{dark:u,children:[(0,K.jsx)(BV,{eyebrow:`Application activity`,title:`Logs`,summary:i?`${i.data.entries.length} entries in this time range`:void 0,onRefresh:()=>t(`search_logs`),disabled:!e}),(0,K.jsx)(VV,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Searching logs…`:void 0}),i&&i.data.entries.length===0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(HV,{tall:!0,icon:(0,K.jsx)(xV,{size:20,weight:`duotone`}),title:`No logs matched`,children:`Try a wider time window, a different service, or a less restrictive search.`}),(0,K.jsx)(UV,{left:gK(i.provenance.window),right:`No entries found`})]}),i&&i.data.entries.length>0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Gne,{data:i.data,dark:u,window:i.provenance.window}),(0,K.jsxs)(WR,{px:{base:`md`,sm:`lg`},py:`sm`,justify:`space-between`,align:`center`,children:[(0,K.jsx)(NB,{size:`xs`,value:o,onChange:s,data:[`ALL`,`ERROR`,`WARN`,`INFO`]}),(0,K.jsx)($B,{"aria-label":`Filter visible logs`,type:`search`,value:c,onChange:e=>l(e.currentTarget.value),placeholder:`Filter visible logs…`,leftSection:(0,K.jsx)(CV,{size:15}),w:{base:`100%`,xs:250}})]}),(0,K.jsx)(Kne,{entries:d,window:i.provenance.window,onTrace:t=>Une(e,`Investigate trace ${t.trace_id} related to this ${t.severity} log from ${t.service}.`)}),(0,K.jsx)(UV,{left:gK(i.provenance.window),right:`${d.length} matching`})]})]})}function Gne({data:e,dark:t,window:n}){let r=(0,G.useMemo)(()=>{let r=KV(t),i=[...new Set(e.buckets.map(e=>e.time))],a=[...new Set(e.buckets.map(e=>e.severity))],o=new Map(e.buckets.map(e=>[`${e.time}\u0000${e.severity}`,e.count]));return{color:a.map(e=>Jne(e,t)),grid:{left:42,right:18,top:30,bottom:28},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},backgroundColor:r.surface,borderColor:r.border,textStyle:{color:r.text,fontSize:10}},legend:{top:0,right:0,textStyle:{color:r.muted,fontSize:9},itemWidth:7,itemHeight:7,icon:`circle`},xAxis:{type:`category`,data:i.map(e=>_K(e,n)),axisLabel:{color:r.muted,fontSize:8,hideOverlap:!0},axisLine:{lineStyle:{color:r.border}}},yAxis:{type:`value`,minInterval:1,splitLine:{lineStyle:{color:r.grid}},axisLabel:{color:r.muted,fontSize:8}},series:a.map(e=>({name:e,type:`bar`,stack:`logs`,barMaxWidth:22,data:i.map(t=>o.get(`${t}\u0000${e}`)??0),itemStyle:{borderRadius:[2,2,0,0]}}))}},[t,e.buckets,n]);return(0,K.jsx)(ZL,{withBorder:!0,radius:`md`,mx:{base:`md`,sm:`lg`},p:`xs`,children:(0,K.jsx)(hK,{option:r,height:190,label:`Log volume by severity over time`})})}function Kne({entries:e,onTrace:t,window:n}){let r=WV(e,6);return e.length===0?(0,K.jsx)(HV,{icon:(0,K.jsx)(CV,{size:20,weight:`duotone`}),title:`No visible matches`,children:`Adjust the local severity or text filter.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(QB.ScrollContainer,{minWidth:680,children:(0,K.jsxs)(QB,{striped:!0,highlightOnHover:!0,verticalSpacing:`xs`,children:[(0,K.jsx)(QB.Thead,{children:(0,K.jsxs)(QB.Tr,{children:[(0,K.jsx)(QB.Th,{children:`Time`}),(0,K.jsx)(QB.Th,{children:`Level`}),(0,K.jsx)(QB.Th,{children:`Service`}),(0,K.jsx)(QB.Th,{children:`Message`}),(0,K.jsx)(QB.Th,{})]})}),(0,K.jsx)(QB.Tbody,{children:r.pageItems.map((e,i)=>(0,K.jsxs)(QB.Tr,{children:[(0,K.jsx)(QB.Td,{children:(0,K.jsx)(kz,{size:`xs`,ff:`monospace`,children:_K(e.time,n,!0)})}),(0,K.jsx)(QB.Td,{children:(0,K.jsx)(Mz,{size:`sm`,color:qne(e.severity),variant:`light`,children:e.severity||`LOG`})}),(0,K.jsx)(QB.Td,{children:(0,K.jsx)(kz,{size:`sm`,fw:600,children:e.service})}),(0,K.jsx)(QB.Td,{children:(0,K.jsx)(kz,{size:`sm`,lineClamp:2,title:e.body,children:e.body})}),(0,K.jsx)(QB.Td,{children:e.trace_id&&(0,K.jsx)(kB,{label:`Investigate trace`,children:(0,K.jsx)(PR,{variant:`subtle`,"aria-label":`Investigate trace ${e.trace_id}`,onClick:()=>t(e),children:(0,K.jsx)(yV,{size:15,weight:`bold`})})})})]},`${e.time}-${r.from+i}`))})]})}),(0,K.jsx)(GV,{...r,onChange:r.setPage})]})}function qne(e){let t=e.toUpperCase();return t===`ERROR`||t===`FATAL`?`bad`:t===`WARN`||t===`WARNING`?`warn`:t===`INFO`?`info`:`gray`}function Jne(e,t){let n=qV(t),r=e.toUpperCase();return r===`ERROR`||r===`FATAL`?n.bad:r===`WARN`||r===`WARNING`?n.warn:r===`INFO`?n.info:KV(t).muted}(0,DV.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(Wne,{})}));
diff --git a/internal/mcp/apps/performance.html b/internal/mcp/apps/performance.html index ef8570901..5313ea2aa 100644 --- a/internal/mcp/apps/performance.html +++ b/internal/mcp/apps/performance.html @@ -25,10 +25,10 @@ `)){var p=new Gz;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,Uz(Yz,f,null,r,d)).on(`mouseover`,Uz(Xz,m.name,null,r,d)).on(`mouseout`,Uz(Zz,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=el(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Kr(h.fill);_&&_[3]===0&&(_[3]=.2,h=F(F({},h),{fill:ei(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,Uz(Yz,null,f,r,d)).on(`mouseover`,Uz(Xz,null,f,r,d)).on(`mouseout`,Uz(Zz,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=el(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};el(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();Wz(e,function(e){var r=e.type,i=new Xo({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Xf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),su(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=qz(c,r,o,s,d,m,u),y=new Gz,b=r.getModel(`textStyle`);if(he(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(Jz({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;B(w)&&w?T=w.replace(`{name}`,t??``):he(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Xo({style:Qf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Go({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Mf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),su(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Zg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Zg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(zT);function qz(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),Wz(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:bD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function Jz(e){var t=e.icon||`roundRect`,n=Ev(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=H.color.neutral00,n.style.lineWidth=2),n}function Yz(e,t,n,r){Zz(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),Xz(e,t,n,r)}function Xz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function Zz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function Qz(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),$z(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){L(i,function(t,n){e[t?`select`:`unSelect`](n)}),$z(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function $z(e,t){var n=t||{};return L(e.getData(),function(t){var r=t.get(`name`);if(r!==` `&&r!==``){var i=e.isSelected(r);n[r]=Be(n,r)?n[r]&&i:i}}),n}function eB(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,me(Qz,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,me(Qz,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,me(Qz,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,me(Qz,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,me(Qz,`unSelect`))}var tB=$c(nB);function nB(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=we(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Go({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Gd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,B(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=sB[i],o=cB[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(Kz);function uB(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function dB(e){ok(rB),e.registerComponentModel(iB),e.registerComponentView(lB),uB(e)}function fB(e){ok(rB),ok(dB)}var pB={get:function(e,t,n){var r=N((mB[e]||{})[t]);return n&&z(r)?r[r.length-1]:r}},mB={color:{active:[`#006edd`,`#e0ffff`],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},hB=gA.mapVisual,gB=gA.eachVisual,_B=z,vB=L,yB=As,bB=ws,xB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&zz(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=pe(e,this),this.controllerVisuals=Rz(this.option.controller,t,e),this.targetVisuals=Rz(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return vB(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=jc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return R(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){L(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],z(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(B(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(he(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=yB([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ue(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};P(r,n),P(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){_B(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},vB(r,function(e,t){if(gA.isValidType(t)){var n=pB.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;vB(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&N(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&N(n)||(a?s[0]:[s[0],s[0]])),c.symbol=hB(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;gB(l,function(e){e>u&&(u=e)}),c.symbolSize=hB(l,function(e){return bB(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},t}(c_),SB=[20,140],CB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=SB[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=SB[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):z(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),L(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=As((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=wB(this,`outOfRange`,this.getExtent()),n=wB(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Hu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);AB([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=kB(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=_f(n.handleLabelPoints[l],gf(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=kB(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=_f(c.indicatorLabelPoint,gf(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||RB(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=wc(u,d);this._dispatchHighDown(`downplay`,OB(f[0],n)),this._dispatchHighDown(`highlight`,OB(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(wE(e.target,function(e){var n=el(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function UB(e,t,n,r){for(var i=t.targetVisuals[r],a=gA.prepareVisualTypes(i),o={color:SE(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(BB,VB),L(HB,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(GB))}function YB(e){e.registerComponentModel(CB),e.registerComponentView(FB),JB(e)}var XB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],ZB[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=N(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=R(this._pieceList,function(e){return e=N(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=gA.listVisualTypes(),i=this.isCategory();L(t.pieces,function(e){L(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),L(n,function(e,n){var r=!1;L(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&L(this.stateList,function(e){(t[e]||(t[e]={}))[n]=pB.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,L(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;L(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=N(e)},t.prototype.getValueState=function(e){var t=gA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){gA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return L(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=wh(xB.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(xB),ZB={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function QB(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var $B=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Ce(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),L(o.viewPieceList,function(o){var s=o.piece,u=new Hu;u.onclick=pe(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Xo({style:Qf(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:we(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Zg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:OB(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return DB(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Hu,o=this.visualMapModel.textStyleModel;a.add(new Xo({style:Qf(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=R(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Ev(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=N(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,L(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(TB);function eV(e){e.registerComponentModel(XB),e.registerComponentView($B),JB(e)}function tV(e){ok(YB),ok(eV)}var nV={label:{enabled:!0},decal:{show:!1}},rV=Ec(),iV=Ec(),aV=$c(oV);function oV(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=iV(e).scope||(iV(e).scope={}),i=N(nV);P(i.label,e.getLocaleModel().get(`aria`),!1),P(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Le();e.eachSeries(function(e){e.isColorBySeries()||(rV(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(he(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=p_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=rV(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=p_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?F(F({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=I(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=fV:-c>=fV),f=c>0?c%fV:c%fV+fV,p=!1;p=d?!0:!si(u)&&f>=dV==!!l;var m=e+n*uV(a),h=t+r*lV(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*pV);if(d){var _=1/this._p,v=(l?1:-1)*(fV-_);this._add(`A`,n,r,g,1,+l,e+n*uV(a+v),t+r*lV(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*uV(o),b=t+r*lV(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function AV(e){return``}function jV(e,t){t||={};var n=t.newline?` `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return kV(i,a)+(i===`style`?o||``:Rh(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+AV(i)}return r(e)}function MV(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=R(de(e),function(t){return t+i+R(de(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(de(t),function(e){return`@keyframes `+e+i+R(de(t[e]),function(n){return n+i+R(de(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function NV(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function PV(e,t,n,r){return OV(`svg`,`root`,{width:e,height:t,xmlns:SV,"xmlns:xlink":CV,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var FV=0;function IV(){return FV++}var LV={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},RV=`transform-origin`;function zV(e,t,n){var r=F({},e.shape);F(r,t),e.buildPath(n,r);var i=new mV;return i.reset(Si(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function BV(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[RV]=n+`px `+r+`px`)}var VV={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function HV(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function UV(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=NV(n.zrId);t.animation=!0,GV(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=de(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=HV(i,n);return a.replace(o,s)}}function WV(e){return B(e)?LV[e]?`cubic-bezier(`+LV[e]+`)`:jr(e)?e:``:``}function GV(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Dd){var s=UV(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return HV(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+IV();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function KV(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};qV(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ri(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),qV(r,t,n,!0)}}}function qV(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+IV(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var JV=Math.round;function YV(e){return e&&B(e.src)}function XV(e){return e&&he(e.toDataURL)}function ZV(e,t,n,r){xV(function(i,a){var o=i===`fill`||i===`stroke`;o&&bi(a)?fH(t,e,i,r):o&&_i(a)?pH(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),dH(n,e,r)}function QV(e,t){var n=Bw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[EV+`silent`]=`true`))}function $V(e){return si(e[0]-1)&&si(e[1])&&si(e[2])&&si(e[3]-1)}function eH(e){return si(e[4])&&si(e[5])}function tH(e,t,n){if(t&&!(eH(t)&&$V(t))){var r=n?10:1e4;e.transform=$V(t)?`translate(`+JV(t[4]*r)/r+` `+JV(t[5]*r)/r+`)`:ui(t)}}function nH(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Oe(f,g),Oe(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=mt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=OV(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=N(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Ci(i);x&&(o.patternTransform=x);var S=OV(`pattern`,``,o,[d]),C=jV(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=OV(`pattern`,T,o,[d])),t[n]=xi(T)}}function mH(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=OV(`clipPath`,a,o,[sH(e,n)])}t[`clip-path`]=xi(a)}function hH(e){return document.createTextNode(e)}function gH(e,t,n){e.insertBefore(t,n)}function _H(e,t){e.removeChild(t)}function vH(e,t){e.appendChild(t)}function yH(e){return e.parentNode}function bH(e){return e.nextSibling}function xH(e,t){e.textContent=t}var SH=58,CH=120,wH=OV(``,``);function TH(e){return e===void 0}function EH(e){return e!==void 0}function DH(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function OH(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function kH(e){var t,n=e.children,r=e.tag;if(EH(r)){var i=e.elm=DV(r);if(MH(wH,e),z(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,AH(e,m,n,i,c)):jH(e,t,r,a))}function PH(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(MH(e,t),TH(t.text)?EH(r)&&EH(i)?r!==i&&NH(n,r,i):EH(i)?(EH(e.text)&&xH(n,``),AH(n,null,i,0,i.length-1)):EH(r)?jH(n,r,0,r.length-1):EH(e.text)&&xH(n,``):e.text!==t.text&&(EH(r)&&jH(n,r,0,r.length-1),xH(n,t.text)))}function FH(e,t){if(OH(e,t))PH(e,t);else{var n=e.elm,r=yH(n);kH(t),r!==null&&(gH(r,t.elm,bH(n)),jH(r,[e],0,0))}return t}var IH=0,LH=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=RH(`configLayer`),this.storage=t,this._opts=n=F({},n),this.root=e,this._id=`zr`+IH++,this._oldVNode=PV(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=DV(`svg`);MH(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,FH(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return uH(e,NV(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=NV(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=zH(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=OV(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(de(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(OV(`defs`,`defs`,{},c)),e.animation){var l=MV(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=OV(`style`,`stl`,{},[],l);a.push(u)}}return PV(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},jV(this.renderToVNode({animation:we(e.cssAnimation,!0),emphasis:we(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:we(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=BO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}var HH=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function UH(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function WH(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function GH(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function KH(e){return e&&Object.assign(QH,e),QH}var qH,JH,YH,XH,ZH,QH,$H=o((()=>{JH=Object.freeze({status:`aborted`}),YH=Symbol(`zod_brand`),XH=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ZH=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(qH=globalThis).__zod_globalConfig??(qH.__zod_globalConfig={}),QH=globalThis.__zod_globalConfig})),eU=c({BIGINT_FORMAT_RANGES:()=>sW,Class:()=>cW,NUMBER_FORMAT_RANGES:()=>oW,aborted:()=>RU,allowsEval:()=>nW,assert:()=>aU,assertEqual:()=>tU,assertIs:()=>rU,assertNever:()=>iU,assertNotEqual:()=>nU,assignProp:()=>mU,base64ToUint8Array:()=>JU,base64urlToUint8Array:()=>XU,cached:()=>cU,captureStackTrace:()=>tW,cleanEnum:()=>qU,cleanRegex:()=>uU,clone:()=>DU,cloneDef:()=>gU,createTransparentProxy:()=>OU,defineLazy:()=>fU,esc:()=>bU,escapeRegex:()=>EU,explicitlyAborted:()=>zU,extend:()=>NU,finalizeIssue:()=>HU,floatSafeRemainder:()=>dU,getElementAtPath:()=>_U,getEnumValues:()=>oU,getLengthableOrigin:()=>WU,getParsedType:()=>rW,getSizableOrigin:()=>UU,hexToUint8Array:()=>QU,isObject:()=>SU,isPlainObject:()=>CU,issue:()=>KU,joinValues:()=>J,jsonStringifyReplacer:()=>sU,merge:()=>FU,mergeDefs:()=>hU,normalizeParams:()=>Y,nullish:()=>lU,numKeys:()=>TU,objectClone:()=>pU,omit:()=>MU,optionalKeys:()=>AU,parsedType:()=>GU,partial:()=>IU,pick:()=>jU,prefixIssues:()=>BU,primitiveTypes:()=>aW,promiseAllObject:()=>vU,propertyKeyTypes:()=>iW,randomString:()=>yU,required:()=>LU,safeExtend:()=>PU,shallowClone:()=>wU,slugify:()=>xU,stringifyPrimitive:()=>kU,uint8ArrayToBase64:()=>YU,uint8ArrayToBase64url:()=>ZU,uint8ArrayToHex:()=>$U,unwrapMessage:()=>VU});function tU(e){return e}function nU(e){return e}function rU(e){}function iU(e){throw Error(`Unexpected value in exhaustive check`)}function aU(e){}function oU(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>kU(e)).join(t)}function sU(e,t){return typeof t==`bigint`?t.toString():t}function cU(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function lU(e){return e==null}function uU(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function dU(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function vU(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function OU(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function kU(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function AU(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function jU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return DU(e,hU(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return mU(this,`shape`,e),e},checks:[]}))}function MU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return DU(e,hU(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return mU(this,`shape`,r),r},checks:[]}))}function NU(e,t){if(!CU(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return DU(e,hU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return mU(this,`shape`,n),n}}))}function PU(e,t){if(!CU(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return DU(e,hU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return mU(this,`shape`,n),n}}))}function FU(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return DU(e,hU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return mU(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function IU(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return DU(t,hU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return mU(this,`shape`,i),i},checks:[]}))}function LU(e,t,n){return DU(t,hU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return mU(this,`shape`,i),i}}))}function RU(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function VU(e){return typeof e==`string`?e:e?.message}function HU(e,t,n){let r=e.message?e.message:VU(e.inst?._zod.def?.error?.(e))??VU(t?.error?.(e))??VU(n.customError?.(e))??VU(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function UU(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function WU(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function GU(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function KU(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function qU(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function JU(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var eW,tW,nW,rW,iW,aW,oW,sW,cW,lW=o((()=>{$H(),eW=Symbol(`evaluating`),tW=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},nW=cU(()=>{if(QH.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),rW=e=>{let t=typeof e;switch(t){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: ${t}`)}},iW=new Set([`string`,`number`,`symbol`]),aW=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),oW={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},sW={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},cW=class{constructor(...e){}}}));function uW(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function dW(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function mW(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${pW(e.path)}`);return t.join(` -`)}var hW,gW,_W,vW=o((()=>{$H(),lW(),hW=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,sU,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},gW=q(`$ZodError`,hW),_W=q(`$ZodError`,hW,{Parent:Error})})),yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW=o((()=>{$H(),vW(),lW(),yW=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new XH;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>HU(e,a,KH())));throw tW(t,i?.callee),t}return o.value},bW=yW(_W),xW=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>HU(e,a,KH())));throw tW(t,i?.callee),t}return o.value},SW=xW(_W),CW=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new XH;return a.issues.length?{success:!1,error:new(e??gW)(a.issues.map(e=>HU(e,i,KH())))}:{success:!0,data:a.value}},wW=CW(_W),TW=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>HU(e,i,KH())))}:{success:!0,data:a.value}},EW=TW(_W),DW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return yW(e)(t,n,i)},OW=DW(_W),kW=e=>(t,n,r)=>yW(e)(t,n,r),AW=kW(_W),jW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return xW(e)(t,n,i)},MW=jW(_W),NW=e=>async(t,n,r)=>xW(e)(t,n,r),PW=NW(_W),FW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return CW(e)(t,n,i)},IW=FW(_W),LW=e=>(t,n,r)=>CW(e)(t,n,r),RW=LW(_W),zW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return TW(e)(t,n,i)},BW=zW(_W),VW=e=>async(t,n,r)=>TW(e)(t,n,r),HW=VW(_W)})),WW=c({base64:()=>SG,base64url:()=>CG,bigint:()=>jG,boolean:()=>PG,browserEmail:()=>hG,cidrv4:()=>bG,cidrv6:()=>xG,cuid:()=>ZW,cuid2:()=>QW,date:()=>kG,datetime:()=>JW,domain:()=>TG,duration:()=>rG,e164:()=>DG,email:()=>uG,emoji:()=>GW,extendedDuration:()=>iG,guid:()=>aG,hex:()=>zG,hostname:()=>wG,html5Email:()=>dG,httpProtocol:()=>EG,idnEmail:()=>mG,integer:()=>MG,ipv4:()=>_G,ipv6:()=>vG,ksuid:()=>tG,lowercase:()=>LG,mac:()=>yG,md5_base64:()=>VG,md5_base64url:()=>HG,md5_hex:()=>BG,nanoid:()=>nG,null:()=>FG,number:()=>NG,rfc5322Email:()=>fG,sha1_base64:()=>WG,sha1_base64url:()=>GG,sha1_hex:()=>UG,sha256_base64:()=>qG,sha256_base64url:()=>JG,sha256_hex:()=>KG,sha384_base64:()=>XG,sha384_base64url:()=>ZG,sha384_hex:()=>YG,sha512_base64:()=>$G,sha512_base64url:()=>eK,sha512_hex:()=>QG,string:()=>AG,time:()=>qW,ulid:()=>$W,undefined:()=>IG,unicodeEmail:()=>pG,uppercase:()=>RG,uuid:()=>oG,uuid4:()=>sG,uuid6:()=>cG,uuid7:()=>lG,xid:()=>eG});function GW(){return new RegExp(gG,`u`)}function KW(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function qW(e){return RegExp(`^${KW(e)}$`)}function JW(e){let t=KW({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${OG}T(?:${r})$`)}function YW(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function XW(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var ZW,QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK=o((()=>{lW(),ZW=/^[cC][0-9a-z]{6,}$/,QW=/^[0-9a-z]+$/,$W=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,eG=/^[0-9a-vA-V]{20}$/,tG=/^[A-Za-z0-9]{27}$/,nG=/^[a-zA-Z0-9_-]{21}$/,rG=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,iG=/^[-+]?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)?)??$/,aG=/^([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})$/,oG=e=>e?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)$/,sG=oG(4),cG=oG(6),lG=oG(7),uG=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dG=/^[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])?)*$/,fG=/^(([^<>()\[\]\\.,;:\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,}))$/,pG=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,mG=pG,hG=/^[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])?)*$/,gG=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,_G=/^(?:(?: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])$/,vG=/^(([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}|:))$/,yG=e=>{let t=EU(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},bG=/^((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])$/,xG=/^(([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])$/,SG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,CG=/^[A-Za-z0-9_-]*$/,wG=/^(?=.{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])?)*\.?$/,TG=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,EG=/^https?$/,DG=/^\+[1-9]\d{6,14}$/,OG=`(?:(?:\\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])))`,kG=RegExp(`^${OG}$`),AG=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},jG=/^-?\d+n?$/,MG=/^-?\d+$/,NG=/^-?\d+(?:\.\d+)?$/,PG=/^(?:true|false)$/i,FG=/^null$/i,IG=/^undefined$/i,LG=/^[^A-Z]*$/,RG=/^[^a-z]*$/,zG=/^[0-9a-fA-F]*$/,BG=/^[0-9a-fA-F]{32}$/,VG=YW(22,`==`),HG=XW(22),UG=/^[0-9a-fA-F]{40}$/,WG=YW(27,`=`),GG=XW(27),KG=/^[0-9a-fA-F]{64}$/,qG=YW(43,`=`),JG=XW(43),YG=/^[0-9a-fA-F]{96}$/,XG=YW(64,``),ZG=XW(64),QG=/^[0-9a-fA-F]{128}$/,$G=YW(86,`==`),eK=XW(86)}));function nK(e,t,n){e.issues.length&&t.issues.push(...BU(n,e.issues))}var rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK=o((()=>{$H(),tK(),lW(),rK=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),iK={number:`number`,bigint:`bigint`,object:`date`},aK=q(`$ZodCheckLessThan`,(e,t)=>{rK.init(e,t);let n=iK[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{rK.init(e,t);let n=iK[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),sK=q(`$ZodCheckMultipleOf`,(e,t)=>{rK.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):dU(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),cK=q(`$ZodCheckNumberFormat`,(e,t)=>{rK.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=oW[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=MG)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.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:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),lK=q(`$ZodCheckBigIntFormat`,(e,t)=>{rK.init(e,t);let[n,r]=sW[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),uK=q(`$ZodCheckMaxSize`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:UU(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),dK=q(`$ZodCheckMinSize`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:UU(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fK=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:UU(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),pK=q(`$ZodCheckMaxLength`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=WU(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),mK=q(`$ZodCheckMinLength`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=WU(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),hK=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=WU(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),gK=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;rK.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),_K=q(`$ZodCheckRegex`,(e,t)=>{gK.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),vK=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=LG,gK.init(e,t)}),yK=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=RG,gK.init(e,t)}),bK=q(`$ZodCheckIncludes`,(e,t)=>{rK.init(e,t);let n=EU(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),xK=q(`$ZodCheckStartsWith`,(e,t)=>{rK.init(e,t);let n=RegExp(`^${EU(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),SK=q(`$ZodCheckEndsWith`,(e,t)=>{rK.init(e,t);let n=RegExp(`.*${EU(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),CK=q(`$ZodCheckProperty`,(e,t)=>{rK.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>nK(n,e,t.property));nK(n,e,t.property)}}),wK=q(`$ZodCheckMimeType`,(e,t)=>{rK.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),TK=q(`$ZodCheckOverwrite`,(e,t)=>{rK.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),DK,OK=o((()=>{DK=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`:``,i=` {`+r,a=r+`}`,o=R(de(e),function(t){return t+i+R(de(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(de(t),function(e){return`@keyframes `+e+i+R(de(t[e]),function(n){return n+i+R(de(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function NV(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function PV(e,t,n,r){return OV(`svg`,`root`,{width:e,height:t,xmlns:SV,"xmlns:xlink":CV,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var FV=0;function IV(){return FV++}var LV={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},RV=`transform-origin`;function zV(e,t,n){var r=F({},e.shape);F(r,t),e.buildPath(n,r);var i=new mV;return i.reset(Si(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function BV(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[RV]=n+`px `+r+`px`)}var VV={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function HV(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function UV(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=NV(n.zrId);t.animation=!0,GV(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=de(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=HV(i,n);return a.replace(o,s)}}function WV(e){return B(e)?LV[e]?`cubic-bezier(`+LV[e]+`)`:jr(e)?e:``:``}function GV(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Dd){var s=UV(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return HV(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+IV();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function KV(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};qV(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ri(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),qV(r,t,n,!0)}}}function qV(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+IV(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var JV=Math.round;function YV(e){return e&&B(e.src)}function XV(e){return e&&he(e.toDataURL)}function ZV(e,t,n,r){xV(function(i,a){var o=i===`fill`||i===`stroke`;o&&bi(a)?fH(t,e,i,r):o&&_i(a)?pH(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),dH(n,e,r)}function QV(e,t){var n=Bw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[EV+`silent`]=`true`))}function $V(e){return si(e[0]-1)&&si(e[1])&&si(e[2])&&si(e[3]-1)}function eH(e){return si(e[4])&&si(e[5])}function tH(e,t,n){if(t&&!(eH(t)&&$V(t))){var r=n?10:1e4;e.transform=$V(t)?`translate(`+JV(t[4]*r)/r+` `+JV(t[5]*r)/r+`)`:ui(t)}}function nH(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Oe(f,g),Oe(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=mt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=OV(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=N(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Ci(i);x&&(o.patternTransform=x);var S=OV(`pattern`,``,o,[d]),C=jV(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=OV(`pattern`,T,o,[d])),t[n]=xi(T)}}function mH(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=OV(`clipPath`,a,o,[sH(e,n)])}t[`clip-path`]=xi(a)}function hH(e){return document.createTextNode(e)}function gH(e,t,n){e.insertBefore(t,n)}function _H(e,t){e.removeChild(t)}function vH(e,t){e.appendChild(t)}function yH(e){return e.parentNode}function bH(e){return e.nextSibling}function xH(e,t){e.textContent=t}var SH=58,CH=120,wH=OV(``,``);function TH(e){return e===void 0}function EH(e){return e!==void 0}function DH(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function OH(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function kH(e){var t,n=e.children,r=e.tag;if(EH(r)){var i=e.elm=DV(r);if(MH(wH,e),z(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,AH(e,m,n,i,c)):jH(e,t,r,a))}function PH(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(MH(e,t),TH(t.text)?EH(r)&&EH(i)?r!==i&&NH(n,r,i):EH(i)?(EH(e.text)&&xH(n,``),AH(n,null,i,0,i.length-1)):EH(r)?jH(n,r,0,r.length-1):EH(e.text)&&xH(n,``):e.text!==t.text&&(EH(r)&&jH(n,r,0,r.length-1),xH(n,t.text)))}function FH(e,t){if(OH(e,t))PH(e,t);else{var n=e.elm,r=yH(n);kH(t),r!==null&&(gH(r,t.elm,bH(n)),jH(r,[e],0,0))}return t}var IH=0,LH=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=RH(`configLayer`),this.storage=t,this._opts=n=F({},n),this.root=e,this._id=`zr`+IH++,this._oldVNode=PV(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=DV(`svg`);MH(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,FH(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return uH(e,NV(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=NV(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=zH(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=OV(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(de(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(OV(`defs`,`defs`,{},c)),e.animation){var l=MV(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=OV(`style`,`stl`,{},[],l);a.push(u)}}return PV(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},jV(this.renderToVNode({animation:we(e.cssAnimation,!0),emphasis:we(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:we(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=BO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}var HH=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function UH(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function WH(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function GH(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function KH(e,t,n=!1){let r=new Date(e);if(Number.isNaN(r.valueOf()))return e;let[i,a]=t.split(`/`),o=new Date(i),s=new Date(a),c=!Number.isNaN(o.valueOf())&&!Number.isNaN(s.valueOf())&&s.valueOf()-o.valueOf()>864e5;return r.toLocaleString([],{...c?{month:`short`,day:`numeric`}:{},hour:`numeric`,minute:`2-digit`,...n?{second:`2-digit`}:{}})}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function qH(e){return e&&Object.assign($H,e),$H}var JH,YH,XH,ZH,QH,$H,eU=o((()=>{YH=Object.freeze({status:`aborted`}),XH=Symbol(`zod_brand`),ZH=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},QH=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(JH=globalThis).__zod_globalConfig??(JH.__zod_globalConfig={}),$H=globalThis.__zod_globalConfig})),tU=c({BIGINT_FORMAT_RANGES:()=>cW,Class:()=>lW,NUMBER_FORMAT_RANGES:()=>sW,aborted:()=>zU,allowsEval:()=>rW,assert:()=>oU,assertEqual:()=>nU,assertIs:()=>iU,assertNever:()=>aU,assertNotEqual:()=>rU,assignProp:()=>hU,base64ToUint8Array:()=>YU,base64urlToUint8Array:()=>ZU,cached:()=>lU,captureStackTrace:()=>nW,cleanEnum:()=>JU,cleanRegex:()=>dU,clone:()=>OU,cloneDef:()=>_U,createTransparentProxy:()=>kU,defineLazy:()=>pU,esc:()=>xU,escapeRegex:()=>DU,explicitlyAborted:()=>BU,extend:()=>PU,finalizeIssue:()=>UU,floatSafeRemainder:()=>fU,getElementAtPath:()=>vU,getEnumValues:()=>sU,getLengthableOrigin:()=>GU,getParsedType:()=>iW,getSizableOrigin:()=>WU,hexToUint8Array:()=>$U,isObject:()=>CU,isPlainObject:()=>wU,issue:()=>qU,joinValues:()=>J,jsonStringifyReplacer:()=>cU,merge:()=>IU,mergeDefs:()=>gU,normalizeParams:()=>Y,nullish:()=>uU,numKeys:()=>EU,objectClone:()=>mU,omit:()=>NU,optionalKeys:()=>jU,parsedType:()=>KU,partial:()=>LU,pick:()=>MU,prefixIssues:()=>VU,primitiveTypes:()=>oW,promiseAllObject:()=>yU,propertyKeyTypes:()=>aW,randomString:()=>bU,required:()=>RU,safeExtend:()=>FU,shallowClone:()=>TU,slugify:()=>SU,stringifyPrimitive:()=>AU,uint8ArrayToBase64:()=>XU,uint8ArrayToBase64url:()=>QU,uint8ArrayToHex:()=>eW,unwrapMessage:()=>HU});function nU(e){return e}function rU(e){return e}function iU(e){}function aU(e){throw Error(`Unexpected value in exhaustive check`)}function oU(e){}function sU(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>AU(e)).join(t)}function cU(e,t){return typeof t==`bigint`?t.toString():t}function lU(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function uU(e){return e==null}function dU(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function fU(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function yU(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function kU(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function AU(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function jU(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function MU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return OU(e,gU(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return hU(this,`shape`,e),e},checks:[]}))}function NU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return OU(e,gU(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return hU(this,`shape`,r),r},checks:[]}))}function PU(e,t){if(!wU(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return OU(e,gU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return hU(this,`shape`,n),n}}))}function FU(e,t){if(!wU(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return OU(e,gU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return hU(this,`shape`,n),n}}))}function IU(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return OU(e,gU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return hU(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function LU(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return OU(t,gU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return hU(this,`shape`,i),i},checks:[]}))}function RU(e,t,n){return OU(t,gU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return hU(this,`shape`,i),i}}))}function zU(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function HU(e){return typeof e==`string`?e:e?.message}function UU(e,t,n){let r=e.message?e.message:HU(e.inst?._zod.def?.error?.(e))??HU(t?.error?.(e))??HU(n.customError?.(e))??HU(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function WU(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function GU(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function KU(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function qU(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function JU(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function YU(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var tW,nW,rW,iW,aW,oW,sW,cW,lW,uW=o((()=>{eU(),tW=Symbol(`evaluating`),nW=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},rW=lU(()=>{if($H.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),iW=e=>{let t=typeof e;switch(t){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: ${t}`)}},aW=new Set([`string`,`number`,`symbol`]),oW=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),sW={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},cW={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},lW=class{constructor(...e){}}}));function dW(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function fW(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function hW(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${mW(e.path)}`);return t.join(` +`)}var gW,_W,vW,yW=o((()=>{eU(),uW(),gW=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,cU,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},_W=q(`$ZodError`,gW),vW=q(`$ZodError`,gW,{Parent:Error})})),bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW=o((()=>{eU(),yW(),uW(),bW=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ZH;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>UU(e,a,qH())));throw nW(t,i?.callee),t}return o.value},xW=bW(vW),SW=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>UU(e,a,qH())));throw nW(t,i?.callee),t}return o.value},CW=SW(vW),wW=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ZH;return a.issues.length?{success:!1,error:new(e??_W)(a.issues.map(e=>UU(e,i,qH())))}:{success:!0,data:a.value}},TW=wW(vW),EW=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>UU(e,i,qH())))}:{success:!0,data:a.value}},DW=EW(vW),OW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return bW(e)(t,n,i)},kW=OW(vW),AW=e=>(t,n,r)=>bW(e)(t,n,r),jW=AW(vW),MW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return SW(e)(t,n,i)},NW=MW(vW),PW=e=>async(t,n,r)=>SW(e)(t,n,r),FW=PW(vW),IW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return wW(e)(t,n,i)},LW=IW(vW),RW=e=>(t,n,r)=>wW(e)(t,n,r),zW=RW(vW),BW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return EW(e)(t,n,i)},VW=BW(vW),HW=e=>async(t,n,r)=>EW(e)(t,n,r),UW=HW(vW)})),GW=c({base64:()=>CG,base64url:()=>wG,bigint:()=>MG,boolean:()=>FG,browserEmail:()=>gG,cidrv4:()=>xG,cidrv6:()=>SG,cuid:()=>QW,cuid2:()=>$W,date:()=>AG,datetime:()=>YW,domain:()=>EG,duration:()=>iG,e164:()=>OG,email:()=>dG,emoji:()=>KW,extendedDuration:()=>aG,guid:()=>oG,hex:()=>BG,hostname:()=>TG,html5Email:()=>fG,httpProtocol:()=>DG,idnEmail:()=>hG,integer:()=>NG,ipv4:()=>vG,ipv6:()=>yG,ksuid:()=>nG,lowercase:()=>RG,mac:()=>bG,md5_base64:()=>HG,md5_base64url:()=>UG,md5_hex:()=>VG,nanoid:()=>rG,null:()=>IG,number:()=>PG,rfc5322Email:()=>pG,sha1_base64:()=>GG,sha1_base64url:()=>KG,sha1_hex:()=>WG,sha256_base64:()=>JG,sha256_base64url:()=>YG,sha256_hex:()=>qG,sha384_base64:()=>ZG,sha384_base64url:()=>QG,sha384_hex:()=>XG,sha512_base64:()=>eK,sha512_base64url:()=>tK,sha512_hex:()=>$G,string:()=>jG,time:()=>JW,ulid:()=>eG,undefined:()=>LG,unicodeEmail:()=>mG,uppercase:()=>zG,uuid:()=>sG,uuid4:()=>cG,uuid6:()=>lG,uuid7:()=>uG,xid:()=>tG});function KW(){return new RegExp(_G,`u`)}function qW(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function JW(e){return RegExp(`^${qW(e)}$`)}function YW(e){let t=qW({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${kG}T(?:${r})$`)}function XW(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ZW(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK=o((()=>{uW(),QW=/^[cC][0-9a-z]{6,}$/,$W=/^[0-9a-z]+$/,eG=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tG=/^[0-9a-vA-V]{20}$/,nG=/^[A-Za-z0-9]{27}$/,rG=/^[a-zA-Z0-9_-]{21}$/,iG=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,aG=/^[-+]?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)?)??$/,oG=/^([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})$/,sG=e=>e?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)$/,cG=sG(4),lG=sG(6),uG=sG(7),dG=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,fG=/^[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])?)*$/,pG=/^(([^<>()\[\]\\.,;:\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,}))$/,mG=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,hG=mG,gG=/^[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])?)*$/,_G=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,vG=/^(?:(?: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])$/,yG=/^(([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}|:))$/,bG=e=>{let t=DU(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},xG=/^((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])$/,SG=/^(([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])$/,CG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wG=/^[A-Za-z0-9_-]*$/,TG=/^(?=.{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])?)*\.?$/,EG=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,DG=/^https?$/,OG=/^\+[1-9]\d{6,14}$/,kG=`(?:(?:\\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])))`,AG=RegExp(`^${kG}$`),jG=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},MG=/^-?\d+n?$/,NG=/^-?\d+$/,PG=/^-?\d+(?:\.\d+)?$/,FG=/^(?:true|false)$/i,IG=/^null$/i,LG=/^undefined$/i,RG=/^[^A-Z]*$/,zG=/^[^a-z]*$/,BG=/^[0-9a-fA-F]*$/,VG=/^[0-9a-fA-F]{32}$/,HG=XW(22,`==`),UG=ZW(22),WG=/^[0-9a-fA-F]{40}$/,GG=XW(27,`=`),KG=ZW(27),qG=/^[0-9a-fA-F]{64}$/,JG=XW(43,`=`),YG=ZW(43),XG=/^[0-9a-fA-F]{96}$/,ZG=XW(64,``),QG=ZW(64),$G=/^[0-9a-fA-F]{128}$/,eK=XW(86,`==`),tK=ZW(86)}));function rK(e,t,n){e.issues.length&&t.issues.push(...VU(n,e.issues))}var iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK,DK=o((()=>{eU(),nK(),uW(),iK=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),aK={number:`number`,bigint:`bigint`,object:`date`},oK=q(`$ZodCheckLessThan`,(e,t)=>{iK.init(e,t);let n=aK[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{iK.init(e,t);let n=aK[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cK=q(`$ZodCheckMultipleOf`,(e,t)=>{iK.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):fU(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),lK=q(`$ZodCheckNumberFormat`,(e,t)=>{iK.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=sW[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=NG)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.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:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),uK=q(`$ZodCheckBigIntFormat`,(e,t)=>{iK.init(e,t);let[n,r]=cW[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),dK=q(`$ZodCheckMaxSize`,(e,t)=>{var n;iK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!uU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:WU(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fK=q(`$ZodCheckMinSize`,(e,t)=>{var n;iK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!uU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:WU(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),pK=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;iK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!uU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:WU(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),mK=q(`$ZodCheckMaxLength`,(e,t)=>{var n;iK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!uU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=GU(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),hK=q(`$ZodCheckMinLength`,(e,t)=>{var n;iK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!uU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=GU(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),gK=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;iK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!uU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=GU(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),_K=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;iK.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),vK=q(`$ZodCheckRegex`,(e,t)=>{_K.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),yK=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=RG,_K.init(e,t)}),bK=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=zG,_K.init(e,t)}),xK=q(`$ZodCheckIncludes`,(e,t)=>{iK.init(e,t);let n=DU(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),SK=q(`$ZodCheckStartsWith`,(e,t)=>{iK.init(e,t);let n=RegExp(`^${DU(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),CK=q(`$ZodCheckEndsWith`,(e,t)=>{iK.init(e,t);let n=RegExp(`.*${DU(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),wK=q(`$ZodCheckProperty`,(e,t)=>{iK.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>rK(n,e,t.property));rK(n,e,t.property)}}),TK=q(`$ZodCheckMimeType`,(e,t)=>{iK.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),EK=q(`$ZodCheckOverwrite`,(e,t)=>{iK.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),OK,kK=o((()=>{OK=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}}})),kK,AK=o((()=>{kK={major:4,minor:4,patch:3}}));function jK(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function MK(e){if(!CG.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return jK(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function NK(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function PK(e,t,n){e.issues.length&&t.issues.push(...BU(n,e.issues)),t.value[n]=e.value}function FK(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...BU(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function IK(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=AU(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function LK(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>FK(e,n,i,t,u,d))):FK(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function RK(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!RU(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>HU(e,r,KH())))}),t)}function zK(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>HU(e,r,KH())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function BK(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(CU(e)&&CU(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=BK(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),RU(e))return e;let o=BK(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function HK(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function UK(e,t,n){e.issues.length&&t.issues.push(...BU(n,e.issues)),t.value[n]=e.value}function WK(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...BU(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function GK(e,t,n,r,i,a,o){e.issues.length&&(iW.has(typeof r)?n.issues.push(...BU(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>HU(e,o,KH()))})),t.issues.length&&(iW.has(typeof r)?n.issues.push(...BU(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>HU(e,o,KH()))})),n.value.set(e.value,t.value)}function KK(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function qK(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function JK(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function YK(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function XK(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function ZK(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>QK(e,r,t.out,n)):QK(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>QK(e,r,t.in,n)):QK(e,r,t.in,n)}}function QK(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function $K(e){return e.value=Object.freeze(e.value),e}function eq(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(KU(e))}}var tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ=o((()=>{EK(),$H(),OK(),UW(),tK(),lW(),AK(),tq=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kK;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=RU(e),i;for(let a of t){if(a._zod.def.when){if(zU(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new XH;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=RU(e,t))});else{if(e.issues.length===t)continue;r||=RU(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(RU(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new XH;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new XH;return o.then(e=>t(e,r,a))}return t(o,r,a)}}fU(e,`~standard`,()=>({validate:t=>{try{let n=wW(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return EW(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),nq=q(`$ZodString`,(e,t)=>{tq.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??AG(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),rq=q(`$ZodStringFormat`,(e,t)=>{gK.init(e,t),nq.init(e,t)}),iq=q(`$ZodGUID`,(e,t)=>{t.pattern??=aG,rq.init(e,t)}),aq=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=oG(e)}else t.pattern??=oG();rq.init(e,t)}),oq=q(`$ZodEmail`,(e,t)=>{t.pattern??=uG,rq.init(e,t)}),sq=q(`$ZodURL`,(e,t)=>{rq.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===EG.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),cq=q(`$ZodEmoji`,(e,t)=>{t.pattern??=GW(),rq.init(e,t)}),lq=q(`$ZodNanoID`,(e,t)=>{t.pattern??=nG,rq.init(e,t)}),uq=q(`$ZodCUID`,(e,t)=>{t.pattern??=ZW,rq.init(e,t)}),dq=q(`$ZodCUID2`,(e,t)=>{t.pattern??=QW,rq.init(e,t)}),fq=q(`$ZodULID`,(e,t)=>{t.pattern??=$W,rq.init(e,t)}),pq=q(`$ZodXID`,(e,t)=>{t.pattern??=eG,rq.init(e,t)}),mq=q(`$ZodKSUID`,(e,t)=>{t.pattern??=tG,rq.init(e,t)}),hq=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=JW(t),rq.init(e,t)}),gq=q(`$ZodISODate`,(e,t)=>{t.pattern??=kG,rq.init(e,t)}),_q=q(`$ZodISOTime`,(e,t)=>{t.pattern??=qW(t),rq.init(e,t)}),vq=q(`$ZodISODuration`,(e,t)=>{t.pattern??=rG,rq.init(e,t)}),yq=q(`$ZodIPv4`,(e,t)=>{t.pattern??=_G,rq.init(e,t),e._zod.bag.format=`ipv4`}),bq=q(`$ZodIPv6`,(e,t)=>{t.pattern??=vG,rq.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),xq=q(`$ZodMAC`,(e,t)=>{t.pattern??=yG(t.delimiter),rq.init(e,t),e._zod.bag.format=`mac`}),Sq=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=bG,rq.init(e,t)}),Cq=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=xG,rq.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),wq=q(`$ZodBase64`,(e,t)=>{t.pattern??=SG,rq.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{jK(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Tq=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=CG,rq.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{MK(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Eq=q(`$ZodE164`,(e,t)=>{t.pattern??=DG,rq.init(e,t)}),Dq=q(`$ZodJWT`,(e,t)=>{rq.init(e,t),e._zod.check=n=>{NK(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Oq=q(`$ZodCustomStringFormat`,(e,t)=>{rq.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),kq=q(`$ZodNumber`,(e,t)=>{tq.init(e,t),e._zod.pattern=e._zod.bag.pattern??NG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Aq=q(`$ZodNumberFormat`,(e,t)=>{cK.init(e,t),kq.init(e,t)}),jq=q(`$ZodBoolean`,(e,t)=>{tq.init(e,t),e._zod.pattern=PG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Mq=q(`$ZodBigInt`,(e,t)=>{tq.init(e,t),e._zod.pattern=jG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Nq=q(`$ZodBigIntFormat`,(e,t)=>{lK.init(e,t),Mq.init(e,t)}),Pq=q(`$ZodSymbol`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Fq=q(`$ZodUndefined`,(e,t)=>{tq.init(e,t),e._zod.pattern=IG,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Iq=q(`$ZodNull`,(e,t)=>{tq.init(e,t),e._zod.pattern=FG,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Lq=q(`$ZodAny`,(e,t)=>{tq.init(e,t),e._zod.parse=e=>e}),Rq=q(`$ZodUnknown`,(e,t)=>{tq.init(e,t),e._zod.parse=e=>e}),zq=q(`$ZodNever`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Bq=q(`$ZodVoid`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Vq=q(`$ZodDate`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Hq=q(`$ZodArray`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ePK(t,n,e))):PK(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Uq=q(`$ZodObject`,(e,t)=>{if(tq.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=cU(()=>IK(t));fU(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=SU,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>FK(n,t,e,s,r,i))):FK(a,t,e,s,r,i)}return i?LK(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Wq=q(`$ZodObjectJIT`,(e,t)=>{Uq.init(e,t);let n=e._zod.parse,r=cU(()=>IK(t)),i=e=>{let t=new DK([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=bU(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=bU(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}}})),AK,jK=o((()=>{AK={major:4,minor:4,patch:3}}));function MK(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function NK(e){if(!wG.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return MK(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function PK(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function FK(e,t,n){e.issues.length&&t.issues.push(...VU(n,e.issues)),t.value[n]=e.value}function IK(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...VU(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function LK(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=jU(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function RK(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>IK(e,n,i,t,u,d))):IK(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function zK(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!zU(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>UU(e,r,qH())))}),t)}function BK(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>UU(e,r,qH())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function VK(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(wU(e)&&wU(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=VK(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),zU(e))return e;let o=VK(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function UK(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function WK(e,t,n){e.issues.length&&t.issues.push(...VU(n,e.issues)),t.value[n]=e.value}function GK(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...VU(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function KK(e,t,n,r,i,a,o){e.issues.length&&(aW.has(typeof r)?n.issues.push(...VU(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>UU(e,o,qH()))})),t.issues.length&&(aW.has(typeof r)?n.issues.push(...VU(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>UU(e,o,qH()))})),n.value.set(e.value,t.value)}function qK(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function JK(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function YK(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function XK(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function ZK(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function QK(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>$K(e,r,t.out,n)):$K(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>$K(e,r,t.in,n)):$K(e,r,t.in,n)}}function $K(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function eq(e){return e.value=Object.freeze(e.value),e}function tq(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(qU(e))}}var nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ=o((()=>{DK(),eU(),kK(),WW(),nK(),uW(),jK(),nq=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=AK;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=zU(e),i;for(let a of t){if(a._zod.def.when){if(BU(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ZH;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=zU(e,t))});else{if(e.issues.length===t)continue;r||=zU(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(zU(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ZH;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ZH;return o.then(e=>t(e,r,a))}return t(o,r,a)}}pU(e,`~standard`,()=>({validate:t=>{try{let n=TW(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return DW(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),rq=q(`$ZodString`,(e,t)=>{nq.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??jG(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),iq=q(`$ZodStringFormat`,(e,t)=>{_K.init(e,t),rq.init(e,t)}),aq=q(`$ZodGUID`,(e,t)=>{t.pattern??=oG,iq.init(e,t)}),oq=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=sG(e)}else t.pattern??=sG();iq.init(e,t)}),sq=q(`$ZodEmail`,(e,t)=>{t.pattern??=dG,iq.init(e,t)}),cq=q(`$ZodURL`,(e,t)=>{iq.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===DG.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),lq=q(`$ZodEmoji`,(e,t)=>{t.pattern??=KW(),iq.init(e,t)}),uq=q(`$ZodNanoID`,(e,t)=>{t.pattern??=rG,iq.init(e,t)}),dq=q(`$ZodCUID`,(e,t)=>{t.pattern??=QW,iq.init(e,t)}),fq=q(`$ZodCUID2`,(e,t)=>{t.pattern??=$W,iq.init(e,t)}),pq=q(`$ZodULID`,(e,t)=>{t.pattern??=eG,iq.init(e,t)}),mq=q(`$ZodXID`,(e,t)=>{t.pattern??=tG,iq.init(e,t)}),hq=q(`$ZodKSUID`,(e,t)=>{t.pattern??=nG,iq.init(e,t)}),gq=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=YW(t),iq.init(e,t)}),_q=q(`$ZodISODate`,(e,t)=>{t.pattern??=AG,iq.init(e,t)}),vq=q(`$ZodISOTime`,(e,t)=>{t.pattern??=JW(t),iq.init(e,t)}),yq=q(`$ZodISODuration`,(e,t)=>{t.pattern??=iG,iq.init(e,t)}),bq=q(`$ZodIPv4`,(e,t)=>{t.pattern??=vG,iq.init(e,t),e._zod.bag.format=`ipv4`}),xq=q(`$ZodIPv6`,(e,t)=>{t.pattern??=yG,iq.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Sq=q(`$ZodMAC`,(e,t)=>{t.pattern??=bG(t.delimiter),iq.init(e,t),e._zod.bag.format=`mac`}),Cq=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=xG,iq.init(e,t)}),wq=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=SG,iq.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),Tq=q(`$ZodBase64`,(e,t)=>{t.pattern??=CG,iq.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{MK(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Eq=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=wG,iq.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{NK(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Dq=q(`$ZodE164`,(e,t)=>{t.pattern??=OG,iq.init(e,t)}),Oq=q(`$ZodJWT`,(e,t)=>{iq.init(e,t),e._zod.check=n=>{PK(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),kq=q(`$ZodCustomStringFormat`,(e,t)=>{iq.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Aq=q(`$ZodNumber`,(e,t)=>{nq.init(e,t),e._zod.pattern=e._zod.bag.pattern??PG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),jq=q(`$ZodNumberFormat`,(e,t)=>{lK.init(e,t),Aq.init(e,t)}),Mq=q(`$ZodBoolean`,(e,t)=>{nq.init(e,t),e._zod.pattern=FG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Nq=q(`$ZodBigInt`,(e,t)=>{nq.init(e,t),e._zod.pattern=MG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Pq=q(`$ZodBigIntFormat`,(e,t)=>{uK.init(e,t),Nq.init(e,t)}),Fq=q(`$ZodSymbol`,(e,t)=>{nq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Iq=q(`$ZodUndefined`,(e,t)=>{nq.init(e,t),e._zod.pattern=LG,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Lq=q(`$ZodNull`,(e,t)=>{nq.init(e,t),e._zod.pattern=IG,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Rq=q(`$ZodAny`,(e,t)=>{nq.init(e,t),e._zod.parse=e=>e}),zq=q(`$ZodUnknown`,(e,t)=>{nq.init(e,t),e._zod.parse=e=>e}),Bq=q(`$ZodNever`,(e,t)=>{nq.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Vq=q(`$ZodVoid`,(e,t)=>{nq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Hq=q(`$ZodDate`,(e,t)=>{nq.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Uq=q(`$ZodArray`,(e,t)=>{nq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eFK(t,n,e))):FK(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Wq=q(`$ZodObject`,(e,t)=>{if(nq.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=lU(()=>LK(t));pU(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=CU,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>IK(n,t,e,s,r,i))):IK(a,t,e,s,r,i)}return i?RK(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Gq=q(`$ZodObjectJIT`,(e,t)=>{Wq.init(e,t);let n=e._zod.parse,r=lU(()=>LK(t)),i=e=>{let t=new OK([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=xU(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=xU(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -87,15 +87,15 @@ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=SU,s=!QH.jitless,c=s&&nW.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?LK([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Gq=q(`$ZodUnion`,(e,t)=>{tq.init(e,t),fU(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),fU(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),fU(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),fU(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>uU(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>RK(t,r,e,i)):RK(o,r,e,i)}}),Kq=q(`$ZodXor`,(e,t)=>{Gq.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>zK(t,r,e,i)):zK(o,r,e,i)}}),qq=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Gq.init(e,t);let n=e._zod.parse;fU(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=cU(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!SU(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Jq=q(`$ZodIntersection`,(e,t)=>{tq.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>VK(e,t,n)):VK(e,i,a)}}),Yq=q(`$ZodTuple`,(e,t)=>{tq.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=HK(n,`optin`),c=HK(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>UK(t,r,e))):UK(a,r,e)}}return o.length?Promise.all(o).then(()=>WK(l,r,n,a,c)):WK(l,r,n,a,c)}}),Xq=q(`$ZodRecord`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!CU(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>HU(e,r,KH())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...BU(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...BU(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&NG.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>HU(e,r,KH())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...BU(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...BU(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Zq=q(`$ZodMap`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{GK(t,a,n,o,i,e,r)})):GK(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Qq=q(`$ZodSet`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>KK(e,n))):KK(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),$q=q(`$ZodEnum`,(e,t)=>{tq.init(e,t);let n=oU(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>iW.has(typeof e)).map(e=>typeof e==`string`?EU(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),eJ=q(`$ZodLiteral`,(e,t)=>{if(tq.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?EU(e):e?EU(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),tJ=q(`$ZodFile`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),nJ=q(`$ZodTransform`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZH(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new XH;return n.value=i,n.fallback=!0,n}}),rJ=q(`$ZodOptional`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,fU(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),fU(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${uU(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>qK(e,r)):qK(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),iJ=q(`$ZodExactOptional`,(e,t)=>{rJ.init(e,t),fU(e._zod,`values`,()=>t.innerType._zod.values),fU(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),aJ=q(`$ZodNullable`,(e,t)=>{tq.init(e,t),fU(e._zod,`optin`,()=>t.innerType._zod.optin),fU(e._zod,`optout`,()=>t.innerType._zod.optout),fU(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${uU(e.source)}|null)$`):void 0}),fU(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),oJ=q(`$ZodDefault`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,fU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>JK(e,t)):JK(r,t)}}),sJ=q(`$ZodPrefault`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,fU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),cJ=q(`$ZodNonOptional`,(e,t)=>{tq.init(e,t),fU(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>YK(t,e)):YK(i,e)}}),lJ=q(`$ZodSuccess`,(e,t)=>{tq.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new ZH(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),uJ=q(`$ZodCatch`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,fU(e._zod,`optout`,()=>t.innerType._zod.optout),fU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>HU(e,n,KH()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>HU(e,n,KH()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),dJ=q(`$ZodNaN`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),fJ=q(`$ZodPipe`,(e,t)=>{tq.init(e,t),fU(e._zod,`values`,()=>t.in._zod.values),fU(e._zod,`optin`,()=>t.in._zod.optin),fU(e._zod,`optout`,()=>t.out._zod.optout),fU(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>XK(e,t.in,n)):XK(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>XK(e,t.out,n)):XK(r,t.out,n)}}),pJ=q(`$ZodCodec`,(e,t)=>{tq.init(e,t),fU(e._zod,`values`,()=>t.in._zod.values),fU(e._zod,`optin`,()=>t.in._zod.optin),fU(e._zod,`optout`,()=>t.out._zod.optout),fU(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ZK(e,t,n)):ZK(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ZK(e,t,n)):ZK(r,t,n)}}}),mJ=q(`$ZodPreprocess`,(e,t)=>{fJ.init(e,t)}),hJ=q(`$ZodReadonly`,(e,t)=>{tq.init(e,t),fU(e._zod,`propValues`,()=>t.innerType._zod.propValues),fU(e._zod,`values`,()=>t.innerType._zod.values),fU(e._zod,`optin`,()=>t.innerType?._zod?.optin),fU(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then($K):$K(r)}}),gJ=q(`$ZodTemplateLiteral`,(e,t)=>{tq.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||aW.has(typeof e))n.push(EU(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),_J=q(`$ZodFunction`,(e,t)=>(tq.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?bW(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?bW(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await SW(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await SW(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Yq({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),vJ=q(`$ZodPromise`,(e,t)=>{tq.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),yJ=q(`$ZodLazy`,(e,t)=>{tq.init(e,t),fU(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),fU(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),fU(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),fU(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),fU(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),bJ=q(`$ZodCustom`,(e,t)=>{rK.init(e,t),tq.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>eq(t,n,r,e));eq(i,n,r,e)}})}));function SJ(){return{localeError:CJ()}}var CJ,wJ=o((()=>{lW(),CJ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${kU(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function TJ(){return{localeError:EJ()}}var EJ,DJ=o((()=>{lW(),EJ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${kU(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function OJ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function kJ(){return{localeError:AJ()}}var AJ,jJ=o((()=>{lW(),AJ=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${kU(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=OJ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=OJ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function MJ(){return{localeError:NJ()}}var NJ,PJ=o((()=>{lW(),NJ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${kU(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function FJ(){return{localeError:IJ()}}var IJ,LJ=o((()=>{lW(),IJ=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,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ça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${kU(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function RJ(){return{localeError:zJ()}}var zJ,BJ=o((()=>{lW(),zJ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová 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 čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${kU(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function VJ(){return{localeError:HJ()}}var HJ,UJ=o((()=>{lW(),HJ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={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æt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${kU(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function WJ(){return{localeError:GJ()}}var GJ,KJ=o((()=>{lW(),GJ=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${kU(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function qJ(){return{localeError:JJ()}}var JJ,YJ=o((()=>{lW(),JJ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση 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:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${kU(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function XJ(){return{localeError:ZJ()}}var ZJ,QJ=o((()=>{lW(),ZJ=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${kU(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function $J(){return{localeError:eY()}}var eY,tY=o((()=>{lW(),eY=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,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ŭro`,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`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${kU(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function nY(){return{localeError:rY()}}var rY,iY=o((()=>{lW(),rY=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,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ón ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${kU(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function aY(){return{localeError:oY()}}var oY,sY=o((()=>{lW(),oY=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${kU(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function cY(){return{localeError:lY()}}var lY,uY=o((()=>{lW(),lY=()=>{let e={string:{unit:`merkkiä`,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äivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,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äivämäärä`,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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${kU(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.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öte`}}}}));function dY(){return{localeError:fY()}}var fY,pY=o((()=>{lW(),fY=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${kU(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function mY(){return{localeError:hY()}}var hY,gY=o((()=>{lW(),hY=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${kU(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function _Y(){return{localeError:vY()}}var vY,yY=o((()=>{lW(),vY=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,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:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=GU(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${kU(t.values[0])}`;let e=t.values.map(e=>kU(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function bY(){return{localeError:xY()}}var xY,SY=o((()=>{lW(),xY=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email 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:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${kU(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function CY(){return{localeError:wY()}}var wY,TY=o((()=>{lW(),wY=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,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őbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${kU(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function EY(e,t,n){return Math.abs(e)===1?t:n}function DY(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function OY(){return{localeError:kY()}}var kY,AY=o((()=>{lW(),kY=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${kU(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=EY(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${DY(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${DY(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=EY(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${DY(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${DY(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${DY(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${DY(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function jY(){return{localeError:MY()}}var MY,NY=o((()=>{lW(),MY=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${kU(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function PY(){return{localeError:FY()}}var FY,IY=o((()=>{lW(),FY=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,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ími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,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ölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${kU(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function LY(){return{localeError:RY()}}var RY,zY=o((()=>{lW(),RY=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${kU(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function BY(){return{localeError:VY()}}var VY,HY=o((()=>{lW(),VY=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${kU(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function UY(){return{localeError:WY()}}var WY,GY=o((()=>{lW(),WY=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${kU(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function KY(){return{localeError:qY()}}var qY,JY=o((()=>{lW(),qY=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${kU(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function YY(){return KY()}var XY=o((()=>{JY()}));function ZY(){return{localeError:QY()}}var QY,$Y=o((()=>{lW(),QY=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${kU(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function eX(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function tX(){return{localeError:rX()}}var nX,rX,iX=o((()=>{lW(),nX=e=>e.charAt(0).toUpperCase()+e.slice(1),rX=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto 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ė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${kU(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,eX(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${nX(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${nX(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,eX(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${nX(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${nX(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${nX(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function aX(){return{localeError:oX()}}var oX,sX=o((()=>{lW(),oX=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${kU(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function cX(){return{localeError:lX()}}var lX,uX=o((()=>{lW(),lX=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${kU(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function dX(){return{localeError:fX()}}var fX,pX=o((()=>{lW(),fX=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${kU(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function mX(){return{localeError:hX()}}var hX,gX=o((()=>{lW(),hX=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={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åde`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${kU(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function _X(){return{localeError:vX()}}var vX,yX=o((()=>{lW(),vX=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,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âmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${kU(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function bX(){return{localeError:xX()}}var xX,SX=o((()=>{lW(),xX=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${kU(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function CX(){return{localeError:wX()}}var wX,TX=o((()=>{lW(),wX=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,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ąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${kU(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function EX(){return{localeError:DX()}}var DX,OX=o((()=>{lW(),DX=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço 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ção ISO`,ipv4:`endereço IPv4`,ipv6:`endereço 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úmero E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${kU(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function kX(){return{localeError:AX()}}var AX,jX=o((()=>{lW(),AX=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de 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:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${kU(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function MX(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function NX(){return{localeError:PX()}}var PX,FX=o((()=>{lW(),PX=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${kU(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=MX(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=MX(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function IX(){return{localeError:LX()}}var LX,RX=o((()=>{lW(),LX=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni 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 čas`,date:`ISO datum`,time:`ISO čas`,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 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${kU(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function zX(){return{localeError:BX()}}var BX,VX=o((()=>{lW(),BX=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt 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äng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${kU(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function HX(){return{localeError:UX()}}var UX,WX=o((()=>{lW(),UX=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,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:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${kU(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function GX(){return{localeError:KX()}}var KX,qX=o((()=>{lW(),KX=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${kU(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function JX(){return{localeError:YX()}}var YX,XX=o((()=>{lW(),YX=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={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üre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${kU(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function ZX(){return{localeError:QX()}}var QX,$X=o((()=>{lW(),QX=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${kU(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function eZ(){return ZX()}var tZ=o((()=>{$X()}));function nZ(){return{localeError:rZ()}}var rZ,iZ=o((()=>{lW(),rZ=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${kU(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function aZ(){return{localeError:oZ()}}var oZ,sZ=o((()=>{lW(),oZ=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${kU(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function cZ(){return{localeError:lZ()}}var lZ,uZ=o((()=>{lW(),lZ=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ 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ày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${kU(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function dZ(){return{localeError:fZ()}}var fZ,pZ=o((()=>{lW(),fZ=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${kU(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function mZ(){return{localeError:hZ()}}var hZ,gZ=o((()=>{lW(),hZ=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,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:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${kU(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function _Z(){return{localeError:vZ()}}var vZ,yZ=o((()=>{lW(),vZ=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,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:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${kU(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),bZ=c({ar:()=>SJ,az:()=>TJ,be:()=>kJ,bg:()=>MJ,ca:()=>FJ,cs:()=>RJ,da:()=>VJ,de:()=>WJ,el:()=>qJ,en:()=>XJ,eo:()=>$J,es:()=>nY,fa:()=>aY,fi:()=>cY,fr:()=>dY,frCA:()=>mY,he:()=>_Y,hr:()=>bY,hu:()=>CY,hy:()=>OY,id:()=>jY,is:()=>PY,it:()=>LY,ja:()=>BY,ka:()=>UY,kh:()=>YY,km:()=>KY,ko:()=>ZY,lt:()=>tX,mk:()=>aX,ms:()=>cX,nl:()=>dX,no:()=>mX,ota:()=>_X,pl:()=>CX,ps:()=>bX,pt:()=>EX,ro:()=>kX,ru:()=>NX,sl:()=>IX,sv:()=>zX,ta:()=>HX,th:()=>GX,tr:()=>JX,ua:()=>eZ,uk:()=>ZX,ur:()=>nZ,uz:()=>aZ,vi:()=>cZ,yo:()=>_Z,zhCN:()=>dZ,zhTW:()=>mZ}),xZ=o((()=>{wJ(),DJ(),jJ(),PJ(),LJ(),BJ(),UJ(),KJ(),YJ(),QJ(),tY(),iY(),sY(),uY(),pY(),gY(),yY(),SY(),TY(),AY(),NY(),IY(),zY(),HY(),GY(),XY(),JY(),$Y(),iX(),sX(),uX(),pX(),gX(),yX(),SX(),TX(),OX(),jX(),FX(),RX(),VX(),WX(),qX(),XX(),tZ(),$X(),iZ(),sZ(),uZ(),pZ(),gZ(),yZ()}));function SZ(){return new EZ}var CZ,wZ,TZ,EZ,DZ,OZ=o((()=>{wZ=Symbol(`ZodOutput`),TZ=Symbol(`ZodInput`),EZ=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(CZ=globalThis).__zod_globalRegistry??(CZ.__zod_globalRegistry=SZ()),DZ=globalThis.__zod_globalRegistry}));function kZ(e,t){return new e({type:`string`,...Y(t)})}function AZ(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function jZ(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function MZ(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function NZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function PZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function FZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function IZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function LZ(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function RZ(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function zZ(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function BZ(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function VZ(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function HZ(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function UZ(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function WZ(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function GZ(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function KZ(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function qZ(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function JZ(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function YZ(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function XZ(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function ZZ(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function QZ(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function $Z(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function eQ(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function tQ(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function nQ(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function rQ(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function iQ(e,t){return new e({type:`number`,checks:[],...Y(t)})}function aQ(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function oQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function sQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function cQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function lQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function uQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function dQ(e,t){return new e({type:`boolean`,...Y(t)})}function fQ(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function pQ(e,t){return new e({type:`bigint`,...Y(t)})}function mQ(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function hQ(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function gQ(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function _Q(e,t){return new e({type:`symbol`,...Y(t)})}function vQ(e,t){return new e({type:`undefined`,...Y(t)})}function yQ(e,t){return new e({type:`null`,...Y(t)})}function bQ(e){return new e({type:`any`})}function xQ(e){return new e({type:`unknown`})}function SQ(e,t){return new e({type:`never`,...Y(t)})}function CQ(e,t){return new e({type:`void`,...Y(t)})}function wQ(e,t){return new e({type:`date`,...Y(t)})}function TQ(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function EQ(e,t){return new e({type:`nan`,...Y(t)})}function DQ(e,t){return new aK({check:`less_than`,...Y(t),value:e,inclusive:!1})}function OQ(e,t){return new aK({check:`less_than`,...Y(t),value:e,inclusive:!0})}function kQ(e,t){return new oK({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function AQ(e,t){return new oK({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function jQ(e){return kQ(0,e)}function MQ(e){return DQ(0,e)}function NQ(e){return OQ(0,e)}function PQ(e){return AQ(0,e)}function FQ(e,t){return new sK({check:`multiple_of`,...Y(t),value:e})}function IQ(e,t){return new uK({check:`max_size`,...Y(t),maximum:e})}function LQ(e,t){return new dK({check:`min_size`,...Y(t),minimum:e})}function RQ(e,t){return new fK({check:`size_equals`,...Y(t),size:e})}function zQ(e,t){return new pK({check:`max_length`,...Y(t),maximum:e})}function BQ(e,t){return new mK({check:`min_length`,...Y(t),minimum:e})}function VQ(e,t){return new hK({check:`length_equals`,...Y(t),length:e})}function HQ(e,t){return new _K({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function UQ(e){return new vK({check:`string_format`,format:`lowercase`,...Y(e)})}function WQ(e){return new yK({check:`string_format`,format:`uppercase`,...Y(e)})}function GQ(e,t){return new bK({check:`string_format`,format:`includes`,...Y(t),includes:e})}function KQ(e,t){return new xK({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function qQ(e,t){return new SK({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function JQ(e,t,n){return new CK({check:`property`,property:e,schema:t,...Y(n)})}function YQ(e,t){return new wK({check:`mime_type`,mime:e,...Y(t)})}function XQ(e){return new TK({check:`overwrite`,tx:e})}function ZQ(e){return XQ(t=>t.normalize(e))}function QQ(){return XQ(e=>e.trim())}function $Q(){return XQ(e=>e.toLowerCase())}function e$(){return XQ(e=>e.toUpperCase())}function t$(){return XQ(e=>xU(e))}function n$(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function r$(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function i$(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function a$(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function o$(e,t,n){return new e({type:`intersection`,left:t,right:n})}function s$(e,t,n,r){let i=n instanceof tq;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function c$(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function l$(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function u$(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function d$(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function f$(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function p$(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function m$(e,t){return new e({type:`file`,...Y(t)})}function h$(e,t){return new e({type:`transform`,transform:t})}function g$(e,t){return new e({type:`optional`,innerType:t})}function _$(e,t){return new e({type:`nullable`,innerType:t})}function v$(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():wU(n)}})}function y$(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function b$(e,t){return new e({type:`success`,innerType:t})}function x$(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function S$(e,t,n){return new e({type:`pipe`,in:t,out:n})}function C$(e,t){return new e({type:`readonly`,innerType:t})}function w$(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function T$(e,t){return new e({type:`lazy`,getter:t})}function E$(e,t){return new e({type:`promise`,innerType:t})}function D$(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function O$(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function k$(e,t){let n=A$(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(KU(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(KU(r))}},e(t.value,t)),t);return n}function A$(e,t){let n=new rK({check:`custom`,...Y(t)});return n._zod.check=e,n}function j$(e){let t=new rK({check:`describe`});return t._zod.onattach=[t=>{let n=DZ.get(t)??{};DZ.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function M$(e){let t=new rK({check:`meta`});return t._zod.onattach=[t=>{let n=DZ.get(t)??{};DZ.add(t,{...n,...e})}],t._zod.check=()=>{},t}function N$(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??pJ,c=e.Boolean??jq,l=new s({type:`pipe`,in:new(e.String??nq)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function P$(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var F$,I$=o((()=>{EK(),OZ(),xJ(),lW(),F$={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function L$(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??DZ,target:t,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 R$(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,R$(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&V$(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function z$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=CU,s=!$H.jitless,c=s&&rW.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?RK([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Kq=q(`$ZodUnion`,(e,t)=>{nq.init(e,t),pU(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),pU(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),pU(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),pU(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>dU(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>zK(t,r,e,i)):zK(o,r,e,i)}}),qq=q(`$ZodXor`,(e,t)=>{Kq.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>BK(t,r,e,i)):BK(o,r,e,i)}}),Jq=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Kq.init(e,t);let n=e._zod.parse;pU(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=lU(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!CU(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Yq=q(`$ZodIntersection`,(e,t)=>{nq.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>HK(e,t,n)):HK(e,i,a)}}),Xq=q(`$ZodTuple`,(e,t)=>{nq.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=UK(n,`optin`),c=UK(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>WK(t,r,e))):WK(a,r,e)}}return o.length?Promise.all(o).then(()=>GK(l,r,n,a,c)):GK(l,r,n,a,c)}}),Zq=q(`$ZodRecord`,(e,t)=>{nq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!wU(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>UU(e,r,qH())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...VU(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...VU(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&PG.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>UU(e,r,qH())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...VU(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...VU(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Qq=q(`$ZodMap`,(e,t)=>{nq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{KK(t,a,n,o,i,e,r)})):KK(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),$q=q(`$ZodSet`,(e,t)=>{nq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>qK(e,n))):qK(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),eJ=q(`$ZodEnum`,(e,t)=>{nq.init(e,t);let n=sU(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>aW.has(typeof e)).map(e=>typeof e==`string`?DU(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),tJ=q(`$ZodLiteral`,(e,t)=>{if(nq.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?DU(e):e?DU(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),nJ=q(`$ZodFile`,(e,t)=>{nq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),rJ=q(`$ZodTransform`,(e,t)=>{nq.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new QH(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new ZH;return n.value=i,n.fallback=!0,n}}),iJ=q(`$ZodOptional`,(e,t)=>{nq.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,pU(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),pU(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${dU(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>JK(e,r)):JK(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),aJ=q(`$ZodExactOptional`,(e,t)=>{iJ.init(e,t),pU(e._zod,`values`,()=>t.innerType._zod.values),pU(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),oJ=q(`$ZodNullable`,(e,t)=>{nq.init(e,t),pU(e._zod,`optin`,()=>t.innerType._zod.optin),pU(e._zod,`optout`,()=>t.innerType._zod.optout),pU(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${dU(e.source)}|null)$`):void 0}),pU(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),sJ=q(`$ZodDefault`,(e,t)=>{nq.init(e,t),e._zod.optin=`optional`,pU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>YK(e,t)):YK(r,t)}}),cJ=q(`$ZodPrefault`,(e,t)=>{nq.init(e,t),e._zod.optin=`optional`,pU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),lJ=q(`$ZodNonOptional`,(e,t)=>{nq.init(e,t),pU(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>XK(t,e)):XK(i,e)}}),uJ=q(`$ZodSuccess`,(e,t)=>{nq.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new QH(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),dJ=q(`$ZodCatch`,(e,t)=>{nq.init(e,t),e._zod.optin=`optional`,pU(e._zod,`optout`,()=>t.innerType._zod.optout),pU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>UU(e,n,qH()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>UU(e,n,qH()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),fJ=q(`$ZodNaN`,(e,t)=>{nq.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),pJ=q(`$ZodPipe`,(e,t)=>{nq.init(e,t),pU(e._zod,`values`,()=>t.in._zod.values),pU(e._zod,`optin`,()=>t.in._zod.optin),pU(e._zod,`optout`,()=>t.out._zod.optout),pU(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ZK(e,t.in,n)):ZK(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ZK(e,t.out,n)):ZK(r,t.out,n)}}),mJ=q(`$ZodCodec`,(e,t)=>{nq.init(e,t),pU(e._zod,`values`,()=>t.in._zod.values),pU(e._zod,`optin`,()=>t.in._zod.optin),pU(e._zod,`optout`,()=>t.out._zod.optout),pU(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>QK(e,t,n)):QK(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>QK(e,t,n)):QK(r,t,n)}}}),hJ=q(`$ZodPreprocess`,(e,t)=>{pJ.init(e,t)}),gJ=q(`$ZodReadonly`,(e,t)=>{nq.init(e,t),pU(e._zod,`propValues`,()=>t.innerType._zod.propValues),pU(e._zod,`values`,()=>t.innerType._zod.values),pU(e._zod,`optin`,()=>t.innerType?._zod?.optin),pU(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(eq):eq(r)}}),_J=q(`$ZodTemplateLiteral`,(e,t)=>{nq.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||oW.has(typeof e))n.push(DU(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),vJ=q(`$ZodFunction`,(e,t)=>(nq.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?xW(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?xW(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await CW(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await CW(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Xq({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),yJ=q(`$ZodPromise`,(e,t)=>{nq.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),bJ=q(`$ZodLazy`,(e,t)=>{nq.init(e,t),pU(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),pU(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),pU(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),pU(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),pU(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),xJ=q(`$ZodCustom`,(e,t)=>{iK.init(e,t),nq.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>tq(t,n,r,e));tq(i,n,r,e)}})}));function CJ(){return{localeError:wJ()}}var wJ,TJ=o((()=>{uW(),wJ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${AU(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function EJ(){return{localeError:DJ()}}var DJ,OJ=o((()=>{uW(),DJ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${AU(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function kJ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function AJ(){return{localeError:jJ()}}var jJ,MJ=o((()=>{uW(),jJ=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${AU(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=kJ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=kJ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function NJ(){return{localeError:PJ()}}var PJ,FJ=o((()=>{uW(),PJ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${AU(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function IJ(){return{localeError:LJ()}}var LJ,RJ=o((()=>{uW(),LJ=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,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ça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${AU(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function zJ(){return{localeError:BJ()}}var BJ,VJ=o((()=>{uW(),BJ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová 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 čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${AU(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function HJ(){return{localeError:UJ()}}var UJ,WJ=o((()=>{uW(),UJ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={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æt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${AU(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function GJ(){return{localeError:KJ()}}var KJ,qJ=o((()=>{uW(),KJ=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${AU(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function JJ(){return{localeError:YJ()}}var YJ,XJ=o((()=>{uW(),YJ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση 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:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${AU(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function ZJ(){return{localeError:QJ()}}var QJ,$J=o((()=>{uW(),QJ=()=>{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 t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${AU(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function eY(){return{localeError:tY()}}var tY,nY=o((()=>{uW(),tY=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,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ŭro`,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`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${AU(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function rY(){return{localeError:iY()}}var iY,aY=o((()=>{uW(),iY=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,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ón ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${AU(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function oY(){return{localeError:sY()}}var sY,cY=o((()=>{uW(),sY=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${AU(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function lY(){return{localeError:uY()}}var uY,dY=o((()=>{uW(),uY=()=>{let e={string:{unit:`merkkiä`,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äivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,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äivämäärä`,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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${AU(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.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öte`}}}}));function fY(){return{localeError:pY()}}var pY,mY=o((()=>{uW(),pY=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${AU(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function hY(){return{localeError:gY()}}var gY,_Y=o((()=>{uW(),gY=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,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ée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${AU(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function vY(){return{localeError:yY()}}var yY,bY=o((()=>{uW(),yY=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,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:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=KU(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${AU(t.values[0])}`;let e=t.values.map(e=>AU(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function xY(){return{localeError:SY()}}var SY,CY=o((()=>{uW(),SY=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email 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:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${AU(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function wY(){return{localeError:TY()}}var TY,EY=o((()=>{uW(),TY=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,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őbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${AU(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function DY(e,t,n){return Math.abs(e)===1?t:n}function OY(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function kY(){return{localeError:AY()}}var AY,jY=o((()=>{uW(),AY=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${AU(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=DY(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${OY(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${OY(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=DY(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${OY(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${OY(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${OY(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${OY(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function MY(){return{localeError:NY()}}var NY,PY=o((()=>{uW(),NY=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${AU(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function FY(){return{localeError:IY()}}var IY,LY=o((()=>{uW(),IY=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,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ími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,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ölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${AU(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function RY(){return{localeError:zY()}}var zY,BY=o((()=>{uW(),zY=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${AU(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function VY(){return{localeError:HY()}}var HY,UY=o((()=>{uW(),HY=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${AU(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function WY(){return{localeError:GY()}}var GY,KY=o((()=>{uW(),GY=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${AU(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function qY(){return{localeError:JY()}}var JY,YY=o((()=>{uW(),JY=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${AU(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function XY(){return qY()}var ZY=o((()=>{YY()}));function QY(){return{localeError:$Y()}}var $Y,eX=o((()=>{uW(),$Y=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${AU(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function tX(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function nX(){return{localeError:iX()}}var rX,iX,aX=o((()=>{uW(),rX=e=>e.charAt(0).toUpperCase()+e.slice(1),iX=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto 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ė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${AU(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,tX(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${rX(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${rX(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,tX(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${rX(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${rX(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${rX(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function oX(){return{localeError:sX()}}var sX,cX=o((()=>{uW(),sX=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${AU(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function lX(){return{localeError:uX()}}var uX,dX=o((()=>{uW(),uX=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${AU(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function fX(){return{localeError:pX()}}var pX,mX=o((()=>{uW(),pX=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${AU(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function hX(){return{localeError:gX()}}var gX,_X=o((()=>{uW(),gX=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={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åde`,ipv6:`IPv6-område`,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`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${AU(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function vX(){return{localeError:yX()}}var yX,bX=o((()=>{uW(),yX=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,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âmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${AU(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function xX(){return{localeError:SX()}}var SX,CX=o((()=>{uW(),SX=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${AU(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function wX(){return{localeError:TX()}}var TX,EX=o((()=>{uW(),TX=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,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ąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${AU(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function DX(){return{localeError:OX()}}var OX,kX=o((()=>{uW(),OX=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço 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ção ISO`,ipv4:`endereço IPv4`,ipv6:`endereço 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úmero E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${AU(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function AX(){return{localeError:jX()}}var jX,MX=o((()=>{uW(),jX=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de 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:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${AU(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function NX(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function PX(){return{localeError:FX()}}var FX,IX=o((()=>{uW(),FX=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${AU(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=NX(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=NX(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function LX(){return{localeError:RX()}}var RX,zX=o((()=>{uW(),RX=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni 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 čas`,date:`ISO datum`,time:`ISO čas`,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 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${AU(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function BX(){return{localeError:VX()}}var VX,HX=o((()=>{uW(),VX=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt 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äng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${AU(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function UX(){return{localeError:WX()}}var WX,GX=o((()=>{uW(),WX=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,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:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${AU(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function KX(){return{localeError:qX()}}var qX,JX=o((()=>{uW(),qX=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${AU(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function YX(){return{localeError:XX()}}var XX,ZX=o((()=>{uW(),XX=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={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üre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${AU(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function QX(){return{localeError:$X()}}var $X,eZ=o((()=>{uW(),$X=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${AU(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function tZ(){return QX()}var nZ=o((()=>{eZ()}));function rZ(){return{localeError:iZ()}}var iZ,aZ=o((()=>{uW(),iZ=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${AU(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function oZ(){return{localeError:sZ()}}var sZ,cZ=o((()=>{uW(),sZ=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={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`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${AU(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function lZ(){return{localeError:uZ()}}var uZ,dZ=o((()=>{uW(),uZ=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ 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ày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${AU(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function fZ(){return{localeError:pZ()}}var pZ,mZ=o((()=>{uW(),pZ=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${AU(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function hZ(){return{localeError:gZ()}}var gZ,_Z=o((()=>{uW(),gZ=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,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:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${AU(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function vZ(){return{localeError:yZ()}}var yZ,bZ=o((()=>{uW(),yZ=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,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:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=KU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${AU(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),xZ=c({ar:()=>CJ,az:()=>EJ,be:()=>AJ,bg:()=>NJ,ca:()=>IJ,cs:()=>zJ,da:()=>HJ,de:()=>GJ,el:()=>JJ,en:()=>ZJ,eo:()=>eY,es:()=>rY,fa:()=>oY,fi:()=>lY,fr:()=>fY,frCA:()=>hY,he:()=>vY,hr:()=>xY,hu:()=>wY,hy:()=>kY,id:()=>MY,is:()=>FY,it:()=>RY,ja:()=>VY,ka:()=>WY,kh:()=>XY,km:()=>qY,ko:()=>QY,lt:()=>nX,mk:()=>oX,ms:()=>lX,nl:()=>fX,no:()=>hX,ota:()=>vX,pl:()=>wX,ps:()=>xX,pt:()=>DX,ro:()=>AX,ru:()=>PX,sl:()=>LX,sv:()=>BX,ta:()=>UX,th:()=>KX,tr:()=>YX,ua:()=>tZ,uk:()=>QX,ur:()=>rZ,uz:()=>oZ,vi:()=>lZ,yo:()=>vZ,zhCN:()=>fZ,zhTW:()=>hZ}),SZ=o((()=>{TJ(),OJ(),MJ(),FJ(),RJ(),VJ(),WJ(),qJ(),XJ(),$J(),nY(),aY(),cY(),dY(),mY(),_Y(),bY(),CY(),EY(),jY(),PY(),LY(),BY(),UY(),KY(),ZY(),YY(),eX(),aX(),cX(),dX(),mX(),_X(),bX(),CX(),EX(),kX(),MX(),IX(),zX(),HX(),GX(),JX(),ZX(),nZ(),eZ(),aZ(),cZ(),dZ(),mZ(),_Z(),bZ()}));function CZ(){return new DZ}var wZ,TZ,EZ,DZ,OZ,kZ=o((()=>{TZ=Symbol(`ZodOutput`),EZ=Symbol(`ZodInput`),DZ=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(wZ=globalThis).__zod_globalRegistry??(wZ.__zod_globalRegistry=CZ()),OZ=globalThis.__zod_globalRegistry}));function AZ(e,t){return new e({type:`string`,...Y(t)})}function jZ(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function MZ(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function NZ(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function PZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function FZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function IZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function LZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function RZ(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function zZ(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function BZ(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function VZ(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function HZ(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function UZ(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function WZ(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function GZ(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function KZ(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function qZ(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function JZ(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function YZ(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function XZ(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function ZZ(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function QZ(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function $Z(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function eQ(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function tQ(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function nQ(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function rQ(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function iQ(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function aQ(e,t){return new e({type:`number`,checks:[],...Y(t)})}function oQ(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function sQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function cQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function lQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function uQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function dQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function fQ(e,t){return new e({type:`boolean`,...Y(t)})}function pQ(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function mQ(e,t){return new e({type:`bigint`,...Y(t)})}function hQ(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function gQ(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function _Q(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function vQ(e,t){return new e({type:`symbol`,...Y(t)})}function yQ(e,t){return new e({type:`undefined`,...Y(t)})}function bQ(e,t){return new e({type:`null`,...Y(t)})}function xQ(e){return new e({type:`any`})}function SQ(e){return new e({type:`unknown`})}function CQ(e,t){return new e({type:`never`,...Y(t)})}function wQ(e,t){return new e({type:`void`,...Y(t)})}function TQ(e,t){return new e({type:`date`,...Y(t)})}function EQ(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function DQ(e,t){return new e({type:`nan`,...Y(t)})}function OQ(e,t){return new oK({check:`less_than`,...Y(t),value:e,inclusive:!1})}function kQ(e,t){return new oK({check:`less_than`,...Y(t),value:e,inclusive:!0})}function AQ(e,t){return new sK({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function jQ(e,t){return new sK({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function MQ(e){return AQ(0,e)}function NQ(e){return OQ(0,e)}function PQ(e){return kQ(0,e)}function FQ(e){return jQ(0,e)}function IQ(e,t){return new cK({check:`multiple_of`,...Y(t),value:e})}function LQ(e,t){return new dK({check:`max_size`,...Y(t),maximum:e})}function RQ(e,t){return new fK({check:`min_size`,...Y(t),minimum:e})}function zQ(e,t){return new pK({check:`size_equals`,...Y(t),size:e})}function BQ(e,t){return new mK({check:`max_length`,...Y(t),maximum:e})}function VQ(e,t){return new hK({check:`min_length`,...Y(t),minimum:e})}function HQ(e,t){return new gK({check:`length_equals`,...Y(t),length:e})}function UQ(e,t){return new vK({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function WQ(e){return new yK({check:`string_format`,format:`lowercase`,...Y(e)})}function GQ(e){return new bK({check:`string_format`,format:`uppercase`,...Y(e)})}function KQ(e,t){return new xK({check:`string_format`,format:`includes`,...Y(t),includes:e})}function qQ(e,t){return new SK({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function JQ(e,t){return new CK({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function YQ(e,t,n){return new wK({check:`property`,property:e,schema:t,...Y(n)})}function XQ(e,t){return new TK({check:`mime_type`,mime:e,...Y(t)})}function ZQ(e){return new EK({check:`overwrite`,tx:e})}function QQ(e){return ZQ(t=>t.normalize(e))}function $Q(){return ZQ(e=>e.trim())}function e$(){return ZQ(e=>e.toLowerCase())}function t$(){return ZQ(e=>e.toUpperCase())}function n$(){return ZQ(e=>SU(e))}function r$(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function i$(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function a$(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function o$(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function s$(e,t,n){return new e({type:`intersection`,left:t,right:n})}function c$(e,t,n,r){let i=n instanceof nq;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function l$(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function u$(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function d$(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function f$(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function p$(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function m$(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function h$(e,t){return new e({type:`file`,...Y(t)})}function g$(e,t){return new e({type:`transform`,transform:t})}function _$(e,t){return new e({type:`optional`,innerType:t})}function v$(e,t){return new e({type:`nullable`,innerType:t})}function y$(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():TU(n)}})}function b$(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function x$(e,t){return new e({type:`success`,innerType:t})}function S$(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function C$(e,t,n){return new e({type:`pipe`,in:t,out:n})}function w$(e,t){return new e({type:`readonly`,innerType:t})}function T$(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function E$(e,t){return new e({type:`lazy`,getter:t})}function D$(e,t){return new e({type:`promise`,innerType:t})}function O$(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function k$(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function A$(e,t){let n=j$(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(qU(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(qU(r))}},e(t.value,t)),t);return n}function j$(e,t){let n=new iK({check:`custom`,...Y(t)});return n._zod.check=e,n}function M$(e){let t=new iK({check:`describe`});return t._zod.onattach=[t=>{let n=OZ.get(t)??{};OZ.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function N$(e){let t=new iK({check:`meta`});return t._zod.onattach=[t=>{let n=OZ.get(t)??{};OZ.add(t,{...n,...e})}],t._zod.check=()=>{},t}function P$(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??mJ,c=e.Boolean??Mq,l=new s({type:`pipe`,in:new(e.String??rq)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function F$(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var I$,L$=o((()=>{DK(),kZ(),SJ(),uW(),I$={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function R$(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??OZ,target:t,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 z$(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,z$(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&H$(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function B$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function B$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:U$(t,`input`,e.processors),output:U$(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function V$(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return V$(r.element,n);if(r.type===`set`)return V$(r.valueType,n);if(r.type===`lazy`)return V$(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return V$(r.innerType,n);if(r.type===`intersection`)return V$(r.left,n)||V$(r.right,n);if(r.type===`record`||r.type===`map`)return V$(r.keyType,n)||V$(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:V$(r.in,n)||V$(r.out,n);if(r.type===`object`){for(let e in r.shape)if(V$(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(V$(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(V$(e,n))return!0;return!!(r.rest&&V$(r.rest,n))}return!1}var H$,U$,W$=o((()=>{OZ(),H$=(e,t={})=>n=>{let r=L$({...n,processors:t});return R$(e,r),z$(r,e),B$(r,e)},U$=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=L$({...i??{},target:a,io:t,processors:n});return R$(e,o),z$(o,e),B$(o,e)}}));function G$(e,t){if(`_idmap`in e){let n=e,r=L$({...t,processors:M1}),i={};for(let e of n._idmap.entries()){let[t,n]=e;R$(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;z$(r,n),a[t]=B$(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=L$({...t,processors:M1});return R$(e,n),z$(n,e),B$(n,e)}var K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1=o((()=>{W$(),lW(),K$={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},q$=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=K$[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},J$=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Y$=(e,t,n,r)=>{n.type=`boolean`},X$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Z$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Q$=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},$$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},e1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},t1=(e,t,n,r)=>{n.not={}},n1=(e,t,n,r)=>{},r1=(e,t,n,r)=>{},i1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},a1=(e,t,n,r)=>{let i=e._zod.def,a=oU(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},o1=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},s1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},c1=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},l1=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},u1=(e,t,n,r)=>{n.type=`boolean`},d1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},f1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},p1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},m1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},h1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},g1=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=R$(a.element,t,{...r,path:[...r.path,`items`]})},_1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=R$(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=R$(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},v1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>R$(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},y1=(e,t,n,r)=>{let i=e._zod.def,a=R$(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=R$(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},b1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>R$(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?R$(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},x1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=R$(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=R$(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=R$(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},S1=(e,t,n,r)=>{let i=e._zod.def,a=R$(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},C1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},w1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},T1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},E1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},D1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;R$(o,t,r);let s=t.seen.get(e);s.ref=o},O1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},k1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},A1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},j1=(e,t,n,r)=>{let i=e._zod.innerType;R$(i,t,r);let a=t.seen.get(e);a.ref=i},M1={string:q$,number:J$,boolean:Y$,bigint:X$,symbol:Z$,null:Q$,undefined:$$,void:e1,never:t1,any:n1,unknown:r1,date:i1,enum:a1,literal:o1,nan:s1,template_literal:c1,file:l1,success:u1,custom:d1,function:f1,transform:p1,map:m1,set:h1,array:g1,object:_1,union:v1,intersection:y1,tuple:b1,record:x1,nullable:S1,nonoptional:C1,default:w1,prefault:T1,catch:E1,pipe:D1,readonly:O1,promise:k1,optional:A1,lazy:j1}})),P1,F1=o((()=>{N1(),W$(),P1=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=L$({processors:M1,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return R$(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),z$(this.ctx,e);let{"~standard":n,...r}=B$(this.ctx,e);return r}}})),I1=c({}),L1=o((()=>{})),R1=c({$ZodAny:()=>Lq,$ZodArray:()=>Hq,$ZodAsyncError:()=>XH,$ZodBase64:()=>wq,$ZodBase64URL:()=>Tq,$ZodBigInt:()=>Mq,$ZodBigIntFormat:()=>Nq,$ZodBoolean:()=>jq,$ZodCIDRv4:()=>Sq,$ZodCIDRv6:()=>Cq,$ZodCUID:()=>uq,$ZodCUID2:()=>dq,$ZodCatch:()=>uJ,$ZodCheck:()=>rK,$ZodCheckBigIntFormat:()=>lK,$ZodCheckEndsWith:()=>SK,$ZodCheckGreaterThan:()=>oK,$ZodCheckIncludes:()=>bK,$ZodCheckLengthEquals:()=>hK,$ZodCheckLessThan:()=>aK,$ZodCheckLowerCase:()=>vK,$ZodCheckMaxLength:()=>pK,$ZodCheckMaxSize:()=>uK,$ZodCheckMimeType:()=>wK,$ZodCheckMinLength:()=>mK,$ZodCheckMinSize:()=>dK,$ZodCheckMultipleOf:()=>sK,$ZodCheckNumberFormat:()=>cK,$ZodCheckOverwrite:()=>TK,$ZodCheckProperty:()=>CK,$ZodCheckRegex:()=>_K,$ZodCheckSizeEquals:()=>fK,$ZodCheckStartsWith:()=>xK,$ZodCheckStringFormat:()=>gK,$ZodCheckUpperCase:()=>yK,$ZodCodec:()=>pJ,$ZodCustom:()=>bJ,$ZodCustomStringFormat:()=>Oq,$ZodDate:()=>Vq,$ZodDefault:()=>oJ,$ZodDiscriminatedUnion:()=>qq,$ZodE164:()=>Eq,$ZodEmail:()=>oq,$ZodEmoji:()=>cq,$ZodEncodeError:()=>ZH,$ZodEnum:()=>$q,$ZodError:()=>gW,$ZodExactOptional:()=>iJ,$ZodFile:()=>tJ,$ZodFunction:()=>_J,$ZodGUID:()=>iq,$ZodIPv4:()=>yq,$ZodIPv6:()=>bq,$ZodISODate:()=>gq,$ZodISODateTime:()=>hq,$ZodISODuration:()=>vq,$ZodISOTime:()=>_q,$ZodIntersection:()=>Jq,$ZodJWT:()=>Dq,$ZodKSUID:()=>mq,$ZodLazy:()=>yJ,$ZodLiteral:()=>eJ,$ZodMAC:()=>xq,$ZodMap:()=>Zq,$ZodNaN:()=>dJ,$ZodNanoID:()=>lq,$ZodNever:()=>zq,$ZodNonOptional:()=>cJ,$ZodNull:()=>Iq,$ZodNullable:()=>aJ,$ZodNumber:()=>kq,$ZodNumberFormat:()=>Aq,$ZodObject:()=>Uq,$ZodObjectJIT:()=>Wq,$ZodOptional:()=>rJ,$ZodPipe:()=>fJ,$ZodPrefault:()=>sJ,$ZodPreprocess:()=>mJ,$ZodPromise:()=>vJ,$ZodReadonly:()=>hJ,$ZodRealError:()=>_W,$ZodRecord:()=>Xq,$ZodRegistry:()=>EZ,$ZodSet:()=>Qq,$ZodString:()=>nq,$ZodStringFormat:()=>rq,$ZodSuccess:()=>lJ,$ZodSymbol:()=>Pq,$ZodTemplateLiteral:()=>gJ,$ZodTransform:()=>nJ,$ZodTuple:()=>Yq,$ZodType:()=>tq,$ZodULID:()=>fq,$ZodURL:()=>sq,$ZodUUID:()=>aq,$ZodUndefined:()=>Fq,$ZodUnion:()=>Gq,$ZodUnknown:()=>Rq,$ZodVoid:()=>Bq,$ZodXID:()=>pq,$ZodXor:()=>Kq,$brand:()=>YH,$constructor:()=>q,$input:()=>TZ,$output:()=>wZ,Doc:()=>DK,JSONSchema:()=>I1,JSONSchemaGenerator:()=>P1,NEVER:()=>JH,TimePrecision:()=>F$,_any:()=>bQ,_array:()=>n$,_base64:()=>XZ,_base64url:()=>ZZ,_bigint:()=>pQ,_boolean:()=>dQ,_catch:()=>x$,_check:()=>A$,_cidrv4:()=>JZ,_cidrv6:()=>YZ,_coercedBigint:()=>mQ,_coercedBoolean:()=>fQ,_coercedDate:()=>TQ,_coercedNumber:()=>aQ,_coercedString:()=>AZ,_cuid:()=>BZ,_cuid2:()=>VZ,_custom:()=>D$,_date:()=>wQ,_decode:()=>kW,_decodeAsync:()=>NW,_default:()=>v$,_discriminatedUnion:()=>a$,_e164:()=>QZ,_email:()=>jZ,_emoji:()=>RZ,_encode:()=>DW,_encodeAsync:()=>jW,_endsWith:()=>qQ,_enum:()=>d$,_file:()=>m$,_float32:()=>sQ,_float64:()=>cQ,_gt:()=>kQ,_gte:()=>AQ,_guid:()=>MZ,_includes:()=>GQ,_int:()=>oQ,_int32:()=>lQ,_int64:()=>hQ,_intersection:()=>o$,_ipv4:()=>GZ,_ipv6:()=>KZ,_isoDate:()=>tQ,_isoDateTime:()=>eQ,_isoDuration:()=>rQ,_isoTime:()=>nQ,_jwt:()=>$Z,_ksuid:()=>WZ,_lazy:()=>T$,_length:()=>VQ,_literal:()=>p$,_lowercase:()=>UQ,_lt:()=>DQ,_lte:()=>OQ,_mac:()=>qZ,_map:()=>l$,_max:()=>OQ,_maxLength:()=>zQ,_maxSize:()=>IQ,_mime:()=>YQ,_min:()=>AQ,_minLength:()=>BQ,_minSize:()=>LQ,_multipleOf:()=>FQ,_nan:()=>EQ,_nanoid:()=>zZ,_nativeEnum:()=>f$,_negative:()=>MQ,_never:()=>SQ,_nonnegative:()=>PQ,_nonoptional:()=>y$,_nonpositive:()=>NQ,_normalize:()=>ZQ,_null:()=>yQ,_nullable:()=>_$,_number:()=>iQ,_optional:()=>g$,_overwrite:()=>XQ,_parse:()=>yW,_parseAsync:()=>xW,_pipe:()=>S$,_positive:()=>jQ,_promise:()=>E$,_property:()=>JQ,_readonly:()=>C$,_record:()=>c$,_refine:()=>O$,_regex:()=>HQ,_safeDecode:()=>LW,_safeDecodeAsync:()=>VW,_safeEncode:()=>FW,_safeEncodeAsync:()=>zW,_safeParse:()=>CW,_safeParseAsync:()=>TW,_set:()=>u$,_size:()=>RQ,_slugify:()=>t$,_startsWith:()=>KQ,_string:()=>kZ,_stringFormat:()=>P$,_stringbool:()=>N$,_success:()=>b$,_superRefine:()=>k$,_symbol:()=>_Q,_templateLiteral:()=>w$,_toLowerCase:()=>$Q,_toUpperCase:()=>e$,_transform:()=>h$,_trim:()=>QQ,_tuple:()=>s$,_uint32:()=>uQ,_uint64:()=>gQ,_ulid:()=>HZ,_undefined:()=>vQ,_union:()=>r$,_unknown:()=>xQ,_uppercase:()=>WQ,_url:()=>LZ,_uuid:()=>NZ,_uuidv4:()=>PZ,_uuidv6:()=>FZ,_uuidv7:()=>IZ,_void:()=>CQ,_xid:()=>UZ,_xor:()=>i$,clone:()=>DU,config:()=>KH,createStandardJSONSchemaMethod:()=>U$,createToJSONSchemaMethod:()=>H$,decode:()=>AW,decodeAsync:()=>PW,describe:()=>j$,encode:()=>OW,encodeAsync:()=>MW,extractDefs:()=>z$,finalize:()=>B$,flattenError:()=>uW,formatError:()=>dW,globalConfig:()=>QH,globalRegistry:()=>DZ,initializeContext:()=>L$,isValidBase64:()=>jK,isValidBase64URL:()=>MK,isValidJWT:()=>NK,locales:()=>bZ,meta:()=>M$,parse:()=>bW,parseAsync:()=>SW,prettifyError:()=>mW,process:()=>R$,regexes:()=>WW,registry:()=>SZ,safeDecode:()=>RW,safeDecodeAsync:()=>HW,safeEncode:()=>IW,safeEncodeAsync:()=>BW,safeParse:()=>wW,safeParseAsync:()=>EW,toDotPath:()=>pW,toJSONSchema:()=>G$,treeifyError:()=>fW,util:()=>eU,version:()=>kK}),z1=o((()=>{$H(),UW(),vW(),xJ(),EK(),AK(),lW(),tK(),xZ(),OZ(),OK(),I$(),W$(),N1(),F1(),L1()}));UW();function B1(e){return!!e._zod}function V1(e,t){return B1(e)?wW(e,t):e.safeParse(t)}function H1(e){if(!e)return;let t;if(t=B1(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function U1(e){if(B1(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var W1=c({endsWith:()=>qQ,gt:()=>kQ,gte:()=>AQ,includes:()=>GQ,length:()=>VQ,lowercase:()=>UQ,lt:()=>DQ,lte:()=>OQ,maxLength:()=>zQ,maxSize:()=>IQ,mime:()=>YQ,minLength:()=>BQ,minSize:()=>LQ,multipleOf:()=>FQ,negative:()=>MQ,nonnegative:()=>PQ,nonpositive:()=>NQ,normalize:()=>ZQ,overwrite:()=>XQ,positive:()=>jQ,property:()=>JQ,regex:()=>HQ,size:()=>RQ,slugify:()=>t$,startsWith:()=>KQ,toLowerCase:()=>$Q,toUpperCase:()=>e$,trim:()=>QQ,uppercase:()=>WQ}),G1=o((()=>{z1()})),K1=c({ZodISODate:()=>Q1,ZodISODateTime:()=>Z1,ZodISODuration:()=>e0,ZodISOTime:()=>$1,date:()=>J1,datetime:()=>q1,duration:()=>X1,time:()=>Y1});function q1(e){return eQ(Z1,e)}function J1(e){return tQ(Q1,e)}function Y1(e){return nQ($1,e)}function X1(e){return rQ(e0,e)}var Z1,Q1,$1,e0,t0=o((()=>{z1(),S3(),Z1=q(`ZodISODateTime`,(e,t)=>{hq.init(e,t),o4.init(e,t)}),Q1=q(`ZodISODate`,(e,t)=>{gq.init(e,t),o4.init(e,t)}),$1=q(`ZodISOTime`,(e,t)=>{_q.init(e,t),o4.init(e,t)}),e0=q(`ZodISODuration`,(e,t)=>{vq.init(e,t),o4.init(e,t)})})),n0,r0,i0,a0=o((()=>{z1(),lW(),n0=(e,t)=>{gW.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>dW(e,t)},flatten:{value:t=>uW(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,sU,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,sU,2)}},isEmpty:{get(){return e.issues.length===0}}})},r0=q(`ZodError`,n0),i0=q(`ZodError`,n0,{Parent:Error})})),o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0=o((()=>{z1(),a0(),o0=yW(i0),s0=xW(i0),c0=CW(i0),l0=TW(i0),u0=DW(i0),d0=kW(i0),f0=jW(i0),p0=NW(i0),m0=FW(i0),h0=LW(i0),g0=zW(i0),_0=VW(i0)})),y0=c({ZodAny:()=>I4,ZodArray:()=>V4,ZodBase64:()=>C4,ZodBase64URL:()=>w4,ZodBigInt:()=>j4,ZodBigIntFormat:()=>M4,ZodBoolean:()=>A4,ZodCIDRv4:()=>x4,ZodCIDRv6:()=>S4,ZodCUID:()=>p4,ZodCUID2:()=>m4,ZodCatch:()=>c3,ZodCodec:()=>d3,ZodCustom:()=>v3,ZodCustomStringFormat:()=>D4,ZodDate:()=>B4,ZodDefault:()=>i3,ZodDiscriminatedUnion:()=>G4,ZodE164:()=>T4,ZodEmail:()=>s4,ZodEmoji:()=>d4,ZodEnum:()=>Z4,ZodExactOptional:()=>n3,ZodFile:()=>$4,ZodFunction:()=>_3,ZodGUID:()=>c4,ZodIPv4:()=>v4,ZodIPv6:()=>b4,ZodIntersection:()=>K4,ZodJWT:()=>E4,ZodKSUID:()=>_4,ZodLazy:()=>h3,ZodLiteral:()=>Q4,ZodMAC:()=>y4,ZodMap:()=>Y4,ZodNaN:()=>l3,ZodNanoID:()=>f4,ZodNever:()=>R4,ZodNonOptional:()=>o3,ZodNull:()=>F4,ZodNullable:()=>r3,ZodNumber:()=>O4,ZodNumberFormat:()=>k4,ZodObject:()=>H4,ZodOptional:()=>t3,ZodPipe:()=>u3,ZodPrefault:()=>a3,ZodPreprocess:()=>f3,ZodPromise:()=>g3,ZodReadonly:()=>p3,ZodRecord:()=>J4,ZodSet:()=>X4,ZodString:()=>a4,ZodStringFormat:()=>o4,ZodSuccess:()=>s3,ZodSymbol:()=>N4,ZodTemplateLiteral:()=>m3,ZodTransform:()=>e3,ZodTuple:()=>q4,ZodType:()=>r4,ZodULID:()=>h4,ZodURL:()=>u4,ZodUUID:()=>l4,ZodUndefined:()=>P4,ZodUnion:()=>U4,ZodUnknown:()=>L4,ZodVoid:()=>z4,ZodXID:()=>g4,ZodXor:()=>W4,_ZodString:()=>i4,_default:()=>F2,_function:()=>J2,any:()=>c2,array:()=>p2,base64:()=>V0,base64url:()=>H0,bigint:()=>n2,boolean:()=>t2,catch:()=>z2,check:()=>Y2,cidrv4:()=>z0,cidrv6:()=>B0,codec:()=>H2,cuid:()=>j0,cuid2:()=>M0,custom:()=>X2,date:()=>f2,describe:()=>y3,discriminatedUnion:()=>y2,e164:()=>U0,email:()=>x0,emoji:()=>k0,enum:()=>D2,exactOptional:()=>M2,file:()=>k2,float32:()=>Z0,float64:()=>Q0,function:()=>J2,guid:()=>S0,hash:()=>J0,hex:()=>q0,hostname:()=>K0,httpUrl:()=>O0,instanceof:()=>$2,int:()=>X0,int32:()=>$0,int64:()=>r2,intersection:()=>b2,invertCodec:()=>U2,ipv4:()=>I0,ipv6:()=>R0,json:()=>e4,jwt:()=>W0,keyof:()=>m2,ksuid:()=>F0,lazy:()=>K2,literal:()=>Q,looseObject:()=>g2,looseRecord:()=>w2,mac:()=>L0,map:()=>T2,meta:()=>b3,nan:()=>B2,nanoid:()=>A0,nativeEnum:()=>O2,never:()=>u2,nonoptional:()=>L2,null:()=>s2,nullable:()=>N2,nullish:()=>P2,number:()=>Y0,object:()=>Z,optional:()=>j2,partialRecord:()=>C2,pipe:()=>V2,prefault:()=>I2,preprocess:()=>t4,promise:()=>q2,readonly:()=>W2,record:()=>S2,refine:()=>Z2,set:()=>E2,strictObject:()=>h2,string:()=>X,stringFormat:()=>G0,stringbool:()=>x3,success:()=>R2,superRefine:()=>Q2,symbol:()=>a2,templateLiteral:()=>G2,transform:()=>A2,tuple:()=>x2,uint32:()=>e2,uint64:()=>i2,ulid:()=>N0,undefined:()=>o2,union:()=>_2,unknown:()=>l2,url:()=>D0,uuid:()=>C0,uuidv4:()=>w0,uuidv6:()=>T0,uuidv7:()=>E0,void:()=>d2,xid:()=>P0,xor:()=>v2});function b0(e,t,n){let r=Object.getPrototypeOf(e),i=n4.get(r);if(i||(i=new Set,n4.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return kZ(a4,e)}function x0(e){return jZ(s4,e)}function S0(e){return MZ(c4,e)}function C0(e){return NZ(l4,e)}function w0(e){return PZ(l4,e)}function T0(e){return FZ(l4,e)}function E0(e){return IZ(l4,e)}function D0(e){return LZ(u4,e)}function O0(e){return LZ(u4,{protocol:EG,hostname:TG,...Y(e)})}function k0(e){return RZ(d4,e)}function A0(e){return zZ(f4,e)}function j0(e){return BZ(p4,e)}function M0(e){return VZ(m4,e)}function N0(e){return HZ(h4,e)}function P0(e){return UZ(g4,e)}function F0(e){return WZ(_4,e)}function I0(e){return GZ(v4,e)}function L0(e){return qZ(y4,e)}function R0(e){return KZ(b4,e)}function z0(e){return JZ(x4,e)}function B0(e){return YZ(S4,e)}function V0(e){return XZ(C4,e)}function H0(e){return ZZ(w4,e)}function U0(e){return QZ(T4,e)}function W0(e){return $Z(E4,e)}function G0(e,t,n={}){return P$(D4,e,t,n)}function K0(e){return P$(D4,`hostname`,wG,e)}function q0(e){return P$(D4,`hex`,zG,e)}function J0(e,t){let n=`${e}_${t?.enc??`hex`}`,r=WW[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return P$(D4,n,r,t)}function Y0(e){return iQ(O4,e)}function X0(e){return oQ(k4,e)}function Z0(e){return sQ(k4,e)}function Q0(e){return cQ(k4,e)}function $0(e){return lQ(k4,e)}function e2(e){return uQ(k4,e)}function t2(e){return dQ(A4,e)}function n2(e){return pQ(j4,e)}function r2(e){return hQ(M4,e)}function i2(e){return gQ(M4,e)}function a2(e){return _Q(N4,e)}function o2(e){return vQ(P4,e)}function s2(e){return yQ(F4,e)}function c2(){return bQ(I4)}function l2(){return xQ(L4)}function u2(e){return SQ(R4,e)}function d2(e){return CQ(z4,e)}function f2(e){return wQ(B4,e)}function p2(e,t){return n$(V4,e,t)}function m2(e){let t=e._zod.def.shape;return D2(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new H4(n)}function h2(e,t){return new H4({type:`object`,shape:e,catchall:u2(),...Y(t)})}function g2(e,t){return new H4({type:`object`,shape:e,catchall:l2(),...Y(t)})}function _2(e,t){return new U4({type:`union`,options:e,...Y(t)})}function v2(e,t){return new W4({type:`union`,options:e,inclusive:!1,...Y(t)})}function y2(e,t,n){return new G4({type:`union`,options:t,discriminator:e,...Y(n)})}function b2(e,t){return new K4({type:`intersection`,left:e,right:t})}function x2(e,t,n){let r=t instanceof tq;return new q4({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function S2(e,t,n){return!t||!t._zod?new J4({type:`record`,keyType:X(),valueType:e,...Y(t)}):new J4({type:`record`,keyType:e,valueType:t,...Y(n)})}function C2(e,t,n){let r=DU(e);return r._zod.values=void 0,new J4({type:`record`,keyType:r,valueType:t,...Y(n)})}function w2(e,t,n){return new J4({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function T2(e,t,n){return new Y4({type:`map`,keyType:e,valueType:t,...Y(n)})}function E2(e,t){return new X4({type:`set`,valueType:e,...Y(t)})}function D2(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Z4({type:`enum`,entries:n,...Y(t)})}function O2(e,t){return new Z4({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new Q4({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function k2(e){return m$($4,e)}function A2(e){return new e3({type:`transform`,transform:e})}function j2(e){return new t3({type:`optional`,innerType:e})}function M2(e){return new n3({type:`optional`,innerType:e})}function N2(e){return new r3({type:`nullable`,innerType:e})}function P2(e){return j2(N2(e))}function F2(e,t){return new i3({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():wU(t)}})}function I2(e,t){return new a3({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():wU(t)}})}function L2(e,t){return new o3({type:`nonoptional`,innerType:e,...Y(t)})}function R2(e){return new s3({type:`success`,innerType:e})}function z2(e,t){return new c3({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function B2(e){return EQ(l3,e)}function V2(e,t){return new u3({type:`pipe`,in:e,out:t})}function H2(e,t,n){return new d3({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function U2(e){let t=e._zod.def;return new d3({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function W2(e){return new p3({type:`readonly`,innerType:e})}function G2(e,t){return new m3({type:`template_literal`,parts:e,...Y(t)})}function K2(e){return new h3({type:`lazy`,getter:e})}function q2(e){return new g3({type:`promise`,innerType:e})}function J2(e){return new _3({type:`function`,input:Array.isArray(e?.input)?x2(e?.input):e?.input??p2(l2()),output:e?.output??l2()})}function Y2(e){let t=new rK({check:`custom`});return t._zod.check=e,t}function X2(e,t){return D$(v3,e??(()=>!0),t)}function Z2(e,t={}){return O$(v3,e,t)}function Q2(e,t){return k$(e,t)}function $2(e,t={}){let n=new v3({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function e4(e){let t=K2(()=>_2([X(e),Y0(),t2(),s2(),p2(t),S2(X(),t)]));return t}function t4(e,t){return new f3({type:`pipe`,in:A2(e),out:t})}var n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3,o3,s3,c3,l3,u3,d3,f3,p3,m3,h3,g3,_3,v3,y3,b3,x3,S3=o((()=>{z1(),N1(),W$(),G1(),t0(),v0(),n4=new WeakMap,r4=q(`ZodType`,(e,t)=>(tq.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:U$(e,`input`),output:U$(e,`output`)}}),e.toJSONSchema=H$(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>o0(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>c0(e,t,n),e.parseAsync=async(t,n)=>s0(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>l0(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>u0(e,t,n),e.decode=(t,n)=>d0(e,t,n),e.encodeAsync=async(t,n)=>f0(e,t,n),e.decodeAsync=async(t,n)=>p0(e,t,n),e.safeEncode=(t,n)=>m0(e,t,n),e.safeDecode=(t,n)=>h0(e,t,n),e.safeEncodeAsync=async(t,n)=>g0(e,t,n),e.safeDecodeAsync=async(t,n)=>_0(e,t,n),b0(e,`ZodType`,{check(...e){let t=this.def;return this.clone(hU(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return DU(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Z2(e,t))},superRefine(e,t){return this.check(Q2(e,t))},overwrite(e){return this.check(XQ(e))},optional(){return j2(this)},exactOptional(){return M2(this)},nullable(){return N2(this)},nullish(){return j2(N2(this))},nonoptional(e){return L2(this,e)},array(){return p2(this)},or(e){return _2([this,e])},and(e){return b2(this,e)},transform(e){return V2(this,A2(e))},default(e){return F2(this,e)},prefault(e){return I2(this,e)},catch(e){return z2(this,e)},pipe(e){return V2(this,e)},readonly(){return W2(this)},describe(e){let t=this.clone();return DZ.add(t,{description:e}),t},meta(...e){if(e.length===0)return DZ.get(this);let t=this.clone();return DZ.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return DZ.get(e)?.description},configurable:!0}),e)),i4=q(`_ZodString`,(e,t)=>{nq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q$(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,b0(e,`_ZodString`,{regex(...e){return this.check(HQ(...e))},includes(...e){return this.check(GQ(...e))},startsWith(...e){return this.check(KQ(...e))},endsWith(...e){return this.check(qQ(...e))},min(...e){return this.check(BQ(...e))},max(...e){return this.check(zQ(...e))},length(...e){return this.check(VQ(...e))},nonempty(...e){return this.check(BQ(1,...e))},lowercase(e){return this.check(UQ(e))},uppercase(e){return this.check(WQ(e))},trim(){return this.check(QQ())},normalize(...e){return this.check(ZQ(...e))},toLowerCase(){return this.check($Q())},toUpperCase(){return this.check(e$())},slugify(){return this.check(t$())}})}),a4=q(`ZodString`,(e,t)=>{nq.init(e,t),i4.init(e,t),e.email=t=>e.check(jZ(s4,t)),e.url=t=>e.check(LZ(u4,t)),e.jwt=t=>e.check($Z(E4,t)),e.emoji=t=>e.check(RZ(d4,t)),e.guid=t=>e.check(MZ(c4,t)),e.uuid=t=>e.check(NZ(l4,t)),e.uuidv4=t=>e.check(PZ(l4,t)),e.uuidv6=t=>e.check(FZ(l4,t)),e.uuidv7=t=>e.check(IZ(l4,t)),e.nanoid=t=>e.check(zZ(f4,t)),e.guid=t=>e.check(MZ(c4,t)),e.cuid=t=>e.check(BZ(p4,t)),e.cuid2=t=>e.check(VZ(m4,t)),e.ulid=t=>e.check(HZ(h4,t)),e.base64=t=>e.check(XZ(C4,t)),e.base64url=t=>e.check(ZZ(w4,t)),e.xid=t=>e.check(UZ(g4,t)),e.ksuid=t=>e.check(WZ(_4,t)),e.ipv4=t=>e.check(GZ(v4,t)),e.ipv6=t=>e.check(KZ(b4,t)),e.cidrv4=t=>e.check(JZ(x4,t)),e.cidrv6=t=>e.check(YZ(S4,t)),e.e164=t=>e.check(QZ(T4,t)),e.datetime=t=>e.check(q1(t)),e.date=t=>e.check(J1(t)),e.time=t=>e.check(Y1(t)),e.duration=t=>e.check(X1(t))}),o4=q(`ZodStringFormat`,(e,t)=>{rq.init(e,t),i4.init(e,t)}),s4=q(`ZodEmail`,(e,t)=>{oq.init(e,t),o4.init(e,t)}),c4=q(`ZodGUID`,(e,t)=>{iq.init(e,t),o4.init(e,t)}),l4=q(`ZodUUID`,(e,t)=>{aq.init(e,t),o4.init(e,t)}),u4=q(`ZodURL`,(e,t)=>{sq.init(e,t),o4.init(e,t)}),d4=q(`ZodEmoji`,(e,t)=>{cq.init(e,t),o4.init(e,t)}),f4=q(`ZodNanoID`,(e,t)=>{lq.init(e,t),o4.init(e,t)}),p4=q(`ZodCUID`,(e,t)=>{uq.init(e,t),o4.init(e,t)}),m4=q(`ZodCUID2`,(e,t)=>{dq.init(e,t),o4.init(e,t)}),h4=q(`ZodULID`,(e,t)=>{fq.init(e,t),o4.init(e,t)}),g4=q(`ZodXID`,(e,t)=>{pq.init(e,t),o4.init(e,t)}),_4=q(`ZodKSUID`,(e,t)=>{mq.init(e,t),o4.init(e,t)}),v4=q(`ZodIPv4`,(e,t)=>{yq.init(e,t),o4.init(e,t)}),y4=q(`ZodMAC`,(e,t)=>{xq.init(e,t),o4.init(e,t)}),b4=q(`ZodIPv6`,(e,t)=>{bq.init(e,t),o4.init(e,t)}),x4=q(`ZodCIDRv4`,(e,t)=>{Sq.init(e,t),o4.init(e,t)}),S4=q(`ZodCIDRv6`,(e,t)=>{Cq.init(e,t),o4.init(e,t)}),C4=q(`ZodBase64`,(e,t)=>{wq.init(e,t),o4.init(e,t)}),w4=q(`ZodBase64URL`,(e,t)=>{Tq.init(e,t),o4.init(e,t)}),T4=q(`ZodE164`,(e,t)=>{Eq.init(e,t),o4.init(e,t)}),E4=q(`ZodJWT`,(e,t)=>{Dq.init(e,t),o4.init(e,t)}),D4=q(`ZodCustomStringFormat`,(e,t)=>{Oq.init(e,t),o4.init(e,t)}),O4=q(`ZodNumber`,(e,t)=>{kq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J$(e,t,n,r),b0(e,`ZodNumber`,{gt(e,t){return this.check(kQ(e,t))},gte(e,t){return this.check(AQ(e,t))},min(e,t){return this.check(AQ(e,t))},lt(e,t){return this.check(DQ(e,t))},lte(e,t){return this.check(OQ(e,t))},max(e,t){return this.check(OQ(e,t))},int(e){return this.check(X0(e))},safe(e){return this.check(X0(e))},positive(e){return this.check(kQ(0,e))},nonnegative(e){return this.check(AQ(0,e))},negative(e){return this.check(DQ(0,e))},nonpositive(e){return this.check(OQ(0,e))},multipleOf(e,t){return this.check(FQ(e,t))},step(e,t){return this.check(FQ(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),k4=q(`ZodNumberFormat`,(e,t)=>{Aq.init(e,t),O4.init(e,t)}),A4=q(`ZodBoolean`,(e,t)=>{jq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y$(e,t,n,r)}),j4=q(`ZodBigInt`,(e,t)=>{Mq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X$(e,t,n,r),e.gte=(t,n)=>e.check(AQ(t,n)),e.min=(t,n)=>e.check(AQ(t,n)),e.gt=(t,n)=>e.check(kQ(t,n)),e.gte=(t,n)=>e.check(AQ(t,n)),e.min=(t,n)=>e.check(AQ(t,n)),e.lt=(t,n)=>e.check(DQ(t,n)),e.lte=(t,n)=>e.check(OQ(t,n)),e.max=(t,n)=>e.check(OQ(t,n)),e.positive=t=>e.check(kQ(BigInt(0),t)),e.negative=t=>e.check(DQ(BigInt(0),t)),e.nonpositive=t=>e.check(OQ(BigInt(0),t)),e.nonnegative=t=>e.check(AQ(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(FQ(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),M4=q(`ZodBigIntFormat`,(e,t)=>{Nq.init(e,t),j4.init(e,t)}),N4=q(`ZodSymbol`,(e,t)=>{Pq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z$(e,t,n,r)}),P4=q(`ZodUndefined`,(e,t)=>{Fq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$$(e,t,n,r)}),F4=q(`ZodNull`,(e,t)=>{Iq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q$(e,t,n,r)}),I4=q(`ZodAny`,(e,t)=>{Lq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n1(e,t,n,r)}),L4=q(`ZodUnknown`,(e,t)=>{Rq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>r1(e,t,n,r)}),R4=q(`ZodNever`,(e,t)=>{zq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t1(e,t,n,r)}),z4=q(`ZodVoid`,(e,t)=>{Bq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e1(e,t,n,r)}),B4=q(`ZodDate`,(e,t)=>{Vq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>i1(e,t,n,r),e.min=(t,n)=>e.check(AQ(t,n)),e.max=(t,n)=>e.check(OQ(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),V4=q(`ZodArray`,(e,t)=>{Hq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g1(e,t,n,r),e.element=t.element,b0(e,`ZodArray`,{min(e,t){return this.check(BQ(e,t))},nonempty(e){return this.check(BQ(1,e))},max(e,t){return this.check(zQ(e,t))},length(e,t){return this.check(VQ(e,t))},unwrap(){return this.element}})}),H4=q(`ZodObject`,(e,t)=>{Wq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_1(e,t,n,r),fU(e,`shape`,()=>t.shape),b0(e,`ZodObject`,{keyof(){return D2(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:l2()})},loose(){return this.clone({...this._zod.def,catchall:l2()})},strict(){return this.clone({...this._zod.def,catchall:u2()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return NU(this,e)},safeExtend(e){return PU(this,e)},merge(e){return FU(this,e)},pick(e){return jU(this,e)},omit(e){return MU(this,e)},partial(...e){return IU(t3,this,e[0])},required(...e){return LU(o3,this,e[0])}})}),U4=q(`ZodUnion`,(e,t)=>{Gq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v1(e,t,n,r),e.options=t.options}),W4=q(`ZodXor`,(e,t)=>{U4.init(e,t),Kq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v1(e,t,n,r),e.options=t.options}),G4=q(`ZodDiscriminatedUnion`,(e,t)=>{U4.init(e,t),qq.init(e,t)}),K4=q(`ZodIntersection`,(e,t)=>{Jq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y1(e,t,n,r)}),q4=q(`ZodTuple`,(e,t)=>{Yq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b1(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),J4=q(`ZodRecord`,(e,t)=>{Xq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Y4=q(`ZodMap`,(e,t)=>{Zq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(LQ(...t)),e.nonempty=t=>e.check(LQ(1,t)),e.max=(...t)=>e.check(IQ(...t)),e.size=(...t)=>e.check(RQ(...t))}),X4=q(`ZodSet`,(e,t)=>{Qq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h1(e,t,n,r),e.min=(...t)=>e.check(LQ(...t)),e.nonempty=t=>e.check(LQ(1,t)),e.max=(...t)=>e.check(IQ(...t)),e.size=(...t)=>e.check(RQ(...t))}),Z4=q(`ZodEnum`,(e,t)=>{$q.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a1(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Z4({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Z4({...t,checks:[],...Y(r),entries:i})}}),Q4=q(`ZodLiteral`,(e,t)=>{eJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>o1(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),$4=q(`ZodFile`,(e,t)=>{tJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l1(e,t,n,r),e.min=(t,n)=>e.check(LQ(t,n)),e.max=(t,n)=>e.check(IQ(t,n)),e.mime=(t,n)=>e.check(YQ(Array.isArray(t)?t:[t],n))}),e3=q(`ZodTransform`,(e,t)=>{nJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p1(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZH(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(KU(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(KU(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),t3=q(`ZodOptional`,(e,t)=>{rJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),n3=q(`ZodExactOptional`,(e,t)=>{iJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),r3=q(`ZodNullable`,(e,t)=>{aJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),i3=q(`ZodDefault`,(e,t)=>{oJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),a3=q(`ZodPrefault`,(e,t)=>{sJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),o3=q(`ZodNonOptional`,(e,t)=>{cJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),s3=q(`ZodSuccess`,(e,t)=>{lJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),c3=q(`ZodCatch`,(e,t)=>{uJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),l3=q(`ZodNaN`,(e,t)=>{dJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s1(e,t,n,r)}),u3=q(`ZodPipe`,(e,t)=>{fJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D1(e,t,n,r),e.in=t.in,e.out=t.out}),d3=q(`ZodCodec`,(e,t)=>{u3.init(e,t),pJ.init(e,t)}),f3=q(`ZodPreprocess`,(e,t)=>{u3.init(e,t),mJ.init(e,t)}),p3=q(`ZodReadonly`,(e,t)=>{hJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),m3=q(`ZodTemplateLiteral`,(e,t)=>{gJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c1(e,t,n,r)}),h3=q(`ZodLazy`,(e,t)=>{yJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j1(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),g3=q(`ZodPromise`,(e,t)=>{vJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),_3=q(`ZodFunction`,(e,t)=>{_J.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f1(e,t,n,r)}),v3=q(`ZodCustom`,(e,t)=>{bJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d1(e,t,n,r)}),y3=j$,b3=M$,x3=(...e)=>N$({Codec:d3,Boolean:A4,String:a4},...e)}));function C3(e){KH({customError:e})}function w3(){return KH().customError}var T3,E3,D3=o((()=>{z1(),T3={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`},E3||={}}));function O3(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function k3(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function A3(e,t){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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=j3(k3(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>A3({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){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))),r=t;break}case`number`:case`integer`:{let t=n===`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)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=j3(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=j3(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?j3(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=j3(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tj3(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?j3(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>j3(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?j3(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=j3(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function j3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=A3(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>j3(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>j3(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf)){if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:j3(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function M3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:O3(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??DZ};return j3(n,r)}var $,N3,P3=o((()=>{OZ(),G1(),t0(),S3(),$={...y0,...W1,iso:K1},N3=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`.split(`.`))})),F3=c({bigint:()=>z3,boolean:()=>R3,date:()=>B3,number:()=>L3,string:()=>I3});function I3(e){return AZ(a4,e)}function L3(e){return aQ(O4,e)}function R3(e){return fQ(A4,e)}function z3(e){return mQ(j4,e)}function B3(e){return TQ(B4,e)}var V3=o((()=>{z1(),S3()})),H3=c({$brand:()=>YH,$input:()=>TZ,$output:()=>wZ,NEVER:()=>JH,TimePrecision:()=>F$,ZodAny:()=>I4,ZodArray:()=>V4,ZodBase64:()=>C4,ZodBase64URL:()=>w4,ZodBigInt:()=>j4,ZodBigIntFormat:()=>M4,ZodBoolean:()=>A4,ZodCIDRv4:()=>x4,ZodCIDRv6:()=>S4,ZodCUID:()=>p4,ZodCUID2:()=>m4,ZodCatch:()=>c3,ZodCodec:()=>d3,ZodCustom:()=>v3,ZodCustomStringFormat:()=>D4,ZodDate:()=>B4,ZodDefault:()=>i3,ZodDiscriminatedUnion:()=>G4,ZodE164:()=>T4,ZodEmail:()=>s4,ZodEmoji:()=>d4,ZodEnum:()=>Z4,ZodError:()=>r0,ZodExactOptional:()=>n3,ZodFile:()=>$4,ZodFirstPartyTypeKind:()=>E3,ZodFunction:()=>_3,ZodGUID:()=>c4,ZodIPv4:()=>v4,ZodIPv6:()=>b4,ZodISODate:()=>Q1,ZodISODateTime:()=>Z1,ZodISODuration:()=>e0,ZodISOTime:()=>$1,ZodIntersection:()=>K4,ZodIssueCode:()=>T3,ZodJWT:()=>E4,ZodKSUID:()=>_4,ZodLazy:()=>h3,ZodLiteral:()=>Q4,ZodMAC:()=>y4,ZodMap:()=>Y4,ZodNaN:()=>l3,ZodNanoID:()=>f4,ZodNever:()=>R4,ZodNonOptional:()=>o3,ZodNull:()=>F4,ZodNullable:()=>r3,ZodNumber:()=>O4,ZodNumberFormat:()=>k4,ZodObject:()=>H4,ZodOptional:()=>t3,ZodPipe:()=>u3,ZodPrefault:()=>a3,ZodPreprocess:()=>f3,ZodPromise:()=>g3,ZodReadonly:()=>p3,ZodRealError:()=>i0,ZodRecord:()=>J4,ZodSet:()=>X4,ZodString:()=>a4,ZodStringFormat:()=>o4,ZodSuccess:()=>s3,ZodSymbol:()=>N4,ZodTemplateLiteral:()=>m3,ZodTransform:()=>e3,ZodTuple:()=>q4,ZodType:()=>r4,ZodULID:()=>h4,ZodURL:()=>u4,ZodUUID:()=>l4,ZodUndefined:()=>P4,ZodUnion:()=>U4,ZodUnknown:()=>L4,ZodVoid:()=>z4,ZodXID:()=>g4,ZodXor:()=>W4,_ZodString:()=>i4,_default:()=>F2,_function:()=>J2,any:()=>c2,array:()=>p2,base64:()=>V0,base64url:()=>H0,bigint:()=>n2,boolean:()=>t2,catch:()=>z2,check:()=>Y2,cidrv4:()=>z0,cidrv6:()=>B0,clone:()=>DU,codec:()=>H2,coerce:()=>F3,config:()=>KH,core:()=>R1,cuid:()=>j0,cuid2:()=>M0,custom:()=>X2,date:()=>f2,decode:()=>d0,decodeAsync:()=>p0,describe:()=>y3,discriminatedUnion:()=>y2,e164:()=>U0,email:()=>x0,emoji:()=>k0,encode:()=>u0,encodeAsync:()=>f0,endsWith:()=>qQ,enum:()=>D2,exactOptional:()=>M2,file:()=>k2,flattenError:()=>uW,float32:()=>Z0,float64:()=>Q0,formatError:()=>dW,fromJSONSchema:()=>M3,function:()=>J2,getErrorMap:()=>w3,globalRegistry:()=>DZ,gt:()=>kQ,gte:()=>AQ,guid:()=>S0,hash:()=>J0,hex:()=>q0,hostname:()=>K0,httpUrl:()=>O0,includes:()=>GQ,instanceof:()=>$2,int:()=>X0,int32:()=>$0,int64:()=>r2,intersection:()=>b2,invertCodec:()=>U2,ipv4:()=>I0,ipv6:()=>R0,iso:()=>K1,json:()=>e4,jwt:()=>W0,keyof:()=>m2,ksuid:()=>F0,lazy:()=>K2,length:()=>VQ,literal:()=>Q,locales:()=>bZ,looseObject:()=>g2,looseRecord:()=>w2,lowercase:()=>UQ,lt:()=>DQ,lte:()=>OQ,mac:()=>L0,map:()=>T2,maxLength:()=>zQ,maxSize:()=>IQ,meta:()=>b3,mime:()=>YQ,minLength:()=>BQ,minSize:()=>LQ,multipleOf:()=>FQ,nan:()=>B2,nanoid:()=>A0,nativeEnum:()=>O2,negative:()=>MQ,never:()=>u2,nonnegative:()=>PQ,nonoptional:()=>L2,nonpositive:()=>NQ,normalize:()=>ZQ,null:()=>s2,nullable:()=>N2,nullish:()=>P2,number:()=>Y0,object:()=>Z,optional:()=>j2,overwrite:()=>XQ,parse:()=>o0,parseAsync:()=>s0,partialRecord:()=>C2,pipe:()=>V2,positive:()=>jQ,prefault:()=>I2,preprocess:()=>t4,prettifyError:()=>mW,promise:()=>q2,property:()=>JQ,readonly:()=>W2,record:()=>S2,refine:()=>Z2,regex:()=>HQ,regexes:()=>WW,registry:()=>SZ,safeDecode:()=>h0,safeDecodeAsync:()=>_0,safeEncode:()=>m0,safeEncodeAsync:()=>g0,safeParse:()=>c0,safeParseAsync:()=>l0,set:()=>E2,setErrorMap:()=>C3,size:()=>RQ,slugify:()=>t$,startsWith:()=>KQ,strictObject:()=>h2,string:()=>X,stringFormat:()=>G0,stringbool:()=>x3,success:()=>R2,superRefine:()=>Q2,symbol:()=>a2,templateLiteral:()=>G2,toJSONSchema:()=>G$,toLowerCase:()=>$Q,toUpperCase:()=>e$,transform:()=>A2,treeifyError:()=>fW,trim:()=>QQ,tuple:()=>x2,uint32:()=>e2,uint64:()=>i2,ulid:()=>N0,undefined:()=>o2,union:()=>_2,unknown:()=>l2,uppercase:()=>WQ,url:()=>D0,util:()=>eU,uuid:()=>C0,uuidv4:()=>w0,uuidv6:()=>T0,uuidv7:()=>E0,void:()=>d2,xid:()=>P0,xor:()=>v2}),U3=o((()=>{z1(),S3(),G1(),a0(),v0(),D3(),QJ(),N1(),P3(),xZ(),t0(),V3(),KH(XJ())})),W3,G3=o((()=>{U3(),U3(),W3=H3})),K3=c({$brand:()=>YH,$input:()=>TZ,$output:()=>wZ,NEVER:()=>JH,TimePrecision:()=>F$,ZodAny:()=>I4,ZodArray:()=>V4,ZodBase64:()=>C4,ZodBase64URL:()=>w4,ZodBigInt:()=>j4,ZodBigIntFormat:()=>M4,ZodBoolean:()=>A4,ZodCIDRv4:()=>x4,ZodCIDRv6:()=>S4,ZodCUID:()=>p4,ZodCUID2:()=>m4,ZodCatch:()=>c3,ZodCodec:()=>d3,ZodCustom:()=>v3,ZodCustomStringFormat:()=>D4,ZodDate:()=>B4,ZodDefault:()=>i3,ZodDiscriminatedUnion:()=>G4,ZodE164:()=>T4,ZodEmail:()=>s4,ZodEmoji:()=>d4,ZodEnum:()=>Z4,ZodError:()=>r0,ZodExactOptional:()=>n3,ZodFile:()=>$4,ZodFirstPartyTypeKind:()=>E3,ZodFunction:()=>_3,ZodGUID:()=>c4,ZodIPv4:()=>v4,ZodIPv6:()=>b4,ZodISODate:()=>Q1,ZodISODateTime:()=>Z1,ZodISODuration:()=>e0,ZodISOTime:()=>$1,ZodIntersection:()=>K4,ZodIssueCode:()=>T3,ZodJWT:()=>E4,ZodKSUID:()=>_4,ZodLazy:()=>h3,ZodLiteral:()=>Q4,ZodMAC:()=>y4,ZodMap:()=>Y4,ZodNaN:()=>l3,ZodNanoID:()=>f4,ZodNever:()=>R4,ZodNonOptional:()=>o3,ZodNull:()=>F4,ZodNullable:()=>r3,ZodNumber:()=>O4,ZodNumberFormat:()=>k4,ZodObject:()=>H4,ZodOptional:()=>t3,ZodPipe:()=>u3,ZodPrefault:()=>a3,ZodPreprocess:()=>f3,ZodPromise:()=>g3,ZodReadonly:()=>p3,ZodRealError:()=>i0,ZodRecord:()=>J4,ZodSet:()=>X4,ZodString:()=>a4,ZodStringFormat:()=>o4,ZodSuccess:()=>s3,ZodSymbol:()=>N4,ZodTemplateLiteral:()=>m3,ZodTransform:()=>e3,ZodTuple:()=>q4,ZodType:()=>r4,ZodULID:()=>h4,ZodURL:()=>u4,ZodUUID:()=>l4,ZodUndefined:()=>P4,ZodUnion:()=>U4,ZodUnknown:()=>L4,ZodVoid:()=>z4,ZodXID:()=>g4,ZodXor:()=>W4,_ZodString:()=>i4,_default:()=>F2,_function:()=>J2,any:()=>c2,array:()=>p2,base64:()=>V0,base64url:()=>H0,bigint:()=>n2,boolean:()=>t2,catch:()=>z2,check:()=>Y2,cidrv4:()=>z0,cidrv6:()=>B0,clone:()=>DU,codec:()=>H2,coerce:()=>F3,config:()=>KH,core:()=>R1,cuid:()=>j0,cuid2:()=>M0,custom:()=>X2,date:()=>f2,decode:()=>d0,decodeAsync:()=>p0,default:()=>q3,describe:()=>y3,discriminatedUnion:()=>y2,e164:()=>U0,email:()=>x0,emoji:()=>k0,encode:()=>u0,encodeAsync:()=>f0,endsWith:()=>qQ,enum:()=>D2,exactOptional:()=>M2,file:()=>k2,flattenError:()=>uW,float32:()=>Z0,float64:()=>Q0,formatError:()=>dW,fromJSONSchema:()=>M3,function:()=>J2,getErrorMap:()=>w3,globalRegistry:()=>DZ,gt:()=>kQ,gte:()=>AQ,guid:()=>S0,hash:()=>J0,hex:()=>q0,hostname:()=>K0,httpUrl:()=>O0,includes:()=>GQ,instanceof:()=>$2,int:()=>X0,int32:()=>$0,int64:()=>r2,intersection:()=>b2,invertCodec:()=>U2,ipv4:()=>I0,ipv6:()=>R0,iso:()=>K1,json:()=>e4,jwt:()=>W0,keyof:()=>m2,ksuid:()=>F0,lazy:()=>K2,length:()=>VQ,literal:()=>Q,locales:()=>bZ,looseObject:()=>g2,looseRecord:()=>w2,lowercase:()=>UQ,lt:()=>DQ,lte:()=>OQ,mac:()=>L0,map:()=>T2,maxLength:()=>zQ,maxSize:()=>IQ,meta:()=>b3,mime:()=>YQ,minLength:()=>BQ,minSize:()=>LQ,multipleOf:()=>FQ,nan:()=>B2,nanoid:()=>A0,nativeEnum:()=>O2,negative:()=>MQ,never:()=>u2,nonnegative:()=>PQ,nonoptional:()=>L2,nonpositive:()=>NQ,normalize:()=>ZQ,null:()=>s2,nullable:()=>N2,nullish:()=>P2,number:()=>Y0,object:()=>Z,optional:()=>j2,overwrite:()=>XQ,parse:()=>o0,parseAsync:()=>s0,partialRecord:()=>C2,pipe:()=>V2,positive:()=>jQ,prefault:()=>I2,preprocess:()=>t4,prettifyError:()=>mW,promise:()=>q2,property:()=>JQ,readonly:()=>W2,record:()=>S2,refine:()=>Z2,regex:()=>HQ,regexes:()=>WW,registry:()=>SZ,safeDecode:()=>h0,safeDecodeAsync:()=>_0,safeEncode:()=>m0,safeEncodeAsync:()=>g0,safeParse:()=>c0,safeParseAsync:()=>l0,set:()=>E2,setErrorMap:()=>C3,size:()=>RQ,slugify:()=>t$,startsWith:()=>KQ,strictObject:()=>h2,string:()=>X,stringFormat:()=>G0,stringbool:()=>x3,success:()=>R2,superRefine:()=>Q2,symbol:()=>a2,templateLiteral:()=>G2,toJSONSchema:()=>G$,toLowerCase:()=>$Q,toUpperCase:()=>e$,transform:()=>A2,treeifyError:()=>fW,trim:()=>QQ,tuple:()=>x2,uint32:()=>e2,uint64:()=>i2,ulid:()=>N0,undefined:()=>o2,union:()=>_2,unknown:()=>l2,uppercase:()=>WQ,url:()=>D0,util:()=>eU,uuid:()=>C0,uuidv4:()=>w0,uuidv6:()=>T0,uuidv7:()=>E0,void:()=>d2,xid:()=>P0,xor:()=>v2,z:()=>H3}),q3,J3=o((()=>{G3(),G3(),q3=W3}));J3();var Y3=`io.modelcontextprotocol/related-task`,X3=X2(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Z3=_2([X(),Y0().int()]),Q3=X();g2({ttl:Y0().optional(),pollInterval:Y0().optional()});var $3=Z({ttl:Y0().optional()}),e6=Z({taskId:X()}),t6=g2({progressToken:Z3.optional(),[Y3]:e6.optional()}),n6=Z({_meta:t6.optional()}),r6=n6.extend({task:$3.optional()}),i6=e=>r6.safeParse(e).success,a6=Z({method:X(),params:n6.loose().optional()}),o6=Z({_meta:t6.optional()}),s6=Z({method:X(),params:o6.loose().optional()}),c6=g2({_meta:t6.optional()}),l6=_2([X(),Y0().int()]),u6=Z({jsonrpc:Q(`2.0`),id:l6,...a6.shape}).strict(),d6=e=>u6.safeParse(e).success,f6=Z({jsonrpc:Q(`2.0`),...s6.shape}).strict(),p6=e=>f6.safeParse(e).success,m6=Z({jsonrpc:Q(`2.0`),id:l6,result:c6}).strict(),h6=e=>m6.safeParse(e).success,g6;(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`})(g6||={});var _6=Z({jsonrpc:Q(`2.0`),id:l6.optional(),error:Z({code:Y0().int(),message:X(),data:l2().optional()})}).strict(),v6=e=>_6.safeParse(e).success,y6=_2([u6,f6,m6,_6]);_2([m6,_6]);var b6=c6.strict(),x6=o6.extend({requestId:l6.optional(),reason:X().optional()}),S6=s6.extend({method:Q(`notifications/cancelled`),params:x6}),C6=Z({icons:p2(Z({src:X(),mimeType:X().optional(),sizes:p2(X()).optional(),theme:D2([`light`,`dark`]).optional()})).optional()}),w6=Z({name:X(),title:X().optional()}),T6=w6.extend({...w6.shape,...C6.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),E6=t4(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,b2(Z({form:b2(Z({applyDefaults:t2().optional()}),S2(X(),l2())).optional(),url:X3.optional()}),S2(X(),l2()).optional())),D6=g2({list:X3.optional(),cancel:X3.optional(),requests:g2({sampling:g2({createMessage:X3.optional()}).optional(),elicitation:g2({create:X3.optional()}).optional()}).optional()}),O6=g2({list:X3.optional(),cancel:X3.optional(),requests:g2({tools:g2({call:X3.optional()}).optional()}).optional()}),k6=Z({experimental:S2(X(),X3).optional(),sampling:Z({context:X3.optional(),tools:X3.optional()}).optional(),elicitation:E6.optional(),roots:Z({listChanged:t2().optional()}).optional(),tasks:D6.optional(),extensions:S2(X(),X3).optional()}),A6=n6.extend({protocolVersion:X(),capabilities:k6,clientInfo:T6}),j6=a6.extend({method:Q(`initialize`),params:A6}),M6=Z({experimental:S2(X(),X3).optional(),logging:X3.optional(),completions:X3.optional(),prompts:Z({listChanged:t2().optional()}).optional(),resources:Z({subscribe:t2().optional(),listChanged:t2().optional()}).optional(),tools:Z({listChanged:t2().optional()}).optional(),tasks:O6.optional(),extensions:S2(X(),X3).optional()}),N6=c6.extend({protocolVersion:X(),capabilities:M6,serverInfo:T6,instructions:X().optional()}),P6=s6.extend({method:Q(`notifications/initialized`),params:o6.optional()}),F6=a6.extend({method:Q(`ping`),params:n6.optional()}),I6=Z({progress:Y0(),total:j2(Y0()),message:j2(X())}),L6=Z({...o6.shape,...I6.shape,progressToken:Z3}),R6=s6.extend({method:Q(`notifications/progress`),params:L6}),z6=n6.extend({cursor:Q3.optional()}),B6=a6.extend({params:z6.optional()}),V6=c6.extend({nextCursor:Q3.optional()}),H6=D2([`working`,`input_required`,`completed`,`failed`,`cancelled`]),U6=Z({taskId:X(),status:H6,ttl:_2([Y0(),s2()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:j2(Y0()),statusMessage:j2(X())}),W6=c6.extend({task:U6}),G6=o6.merge(U6),K6=s6.extend({method:Q(`notifications/tasks/status`),params:G6}),q6=a6.extend({method:Q(`tasks/get`),params:n6.extend({taskId:X()})}),J6=c6.merge(U6),Y6=a6.extend({method:Q(`tasks/result`),params:n6.extend({taskId:X()})});c6.loose();var X6=B6.extend({method:Q(`tasks/list`)}),Z6=V6.extend({tasks:p2(U6)}),Q6=a6.extend({method:Q(`tasks/cancel`),params:n6.extend({taskId:X()})}),$6=c6.merge(U6),e8=Z({uri:X(),mimeType:j2(X()),_meta:S2(X(),l2()).optional()}),t8=e8.extend({text:X()}),n8=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),r8=e8.extend({blob:n8}),i8=D2([`user`,`assistant`]),a8=Z({audience:p2(i8).optional(),priority:Y0().min(0).max(1).optional(),lastModified:q1({offset:!0}).optional()}),o8=Z({...w6.shape,...C6.shape,uri:X(),description:j2(X()),mimeType:j2(X()),size:j2(Y0()),annotations:a8.optional(),_meta:j2(g2({}))}),s8=Z({...w6.shape,...C6.shape,uriTemplate:X(),description:j2(X()),mimeType:j2(X()),annotations:a8.optional(),_meta:j2(g2({}))}),c8=B6.extend({method:Q(`resources/list`)}),l8=V6.extend({resources:p2(o8)}),u8=B6.extend({method:Q(`resources/templates/list`)}),d8=V6.extend({resourceTemplates:p2(s8)}),f8=n6.extend({uri:X()}),p8=f8,m8=a6.extend({method:Q(`resources/read`),params:p8}),h8=c6.extend({contents:p2(_2([t8,r8]))}),g8=s6.extend({method:Q(`notifications/resources/list_changed`),params:o6.optional()}),_8=f8,v8=a6.extend({method:Q(`resources/subscribe`),params:_8}),y8=f8,b8=a6.extend({method:Q(`resources/unsubscribe`),params:y8}),x8=o6.extend({uri:X()}),S8=s6.extend({method:Q(`notifications/resources/updated`),params:x8}),C8=Z({name:X(),description:j2(X()),required:j2(t2())}),w8=Z({...w6.shape,...C6.shape,description:j2(X()),arguments:j2(p2(C8)),_meta:j2(g2({}))}),T8=B6.extend({method:Q(`prompts/list`)}),E8=V6.extend({prompts:p2(w8)}),D8=n6.extend({name:X(),arguments:S2(X(),X()).optional()}),O8=a6.extend({method:Q(`prompts/get`),params:D8}),k8=Z({type:Q(`text`),text:X(),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),A8=Z({type:Q(`image`),data:n8,mimeType:X(),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),j8=Z({type:Q(`audio`),data:n8,mimeType:X(),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),M8=Z({type:Q(`tool_use`),name:X(),id:X(),input:S2(X(),l2()),_meta:S2(X(),l2()).optional()}),N8=Z({type:Q(`resource`),resource:_2([t8,r8]),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),P8=o8.extend({type:Q(`resource_link`)}),F8=_2([k8,A8,j8,P8,N8]),I8=Z({role:i8,content:F8}),L8=c6.extend({description:X().optional(),messages:p2(I8)}),R8=s6.extend({method:Q(`notifications/prompts/list_changed`),params:o6.optional()}),z8=Z({title:X().optional(),readOnlyHint:t2().optional(),destructiveHint:t2().optional(),idempotentHint:t2().optional(),openWorldHint:t2().optional()}),B8=Z({taskSupport:D2([`required`,`optional`,`forbidden`]).optional()}),V8=Z({...w6.shape,...C6.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:S2(X(),X3).optional(),required:p2(X()).optional()}).catchall(l2()),outputSchema:Z({type:Q(`object`),properties:S2(X(),X3).optional(),required:p2(X()).optional()}).catchall(l2()).optional(),annotations:z8.optional(),execution:B8.optional(),_meta:S2(X(),l2()).optional()}),H8=B6.extend({method:Q(`tools/list`)}),U8=V6.extend({tools:p2(V8)}),W8=c6.extend({content:p2(F8).default([]),structuredContent:S2(X(),l2()).optional(),isError:t2().optional()});W8.or(c6.extend({toolResult:l2()}));var G8=r6.extend({name:X(),arguments:S2(X(),l2()).optional()}),K8=a6.extend({method:Q(`tools/call`),params:G8}),q8=s6.extend({method:Q(`notifications/tools/list_changed`),params:o6.optional()});Z({autoRefresh:t2().default(!0),debounceMs:Y0().int().nonnegative().default(300)});var J8=D2([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Y8=n6.extend({level:J8}),X8=a6.extend({method:Q(`logging/setLevel`),params:Y8}),Z8=o6.extend({level:J8,logger:X().optional(),data:l2()}),Q8=s6.extend({method:Q(`notifications/message`),params:Z8}),$8=Z({hints:p2(Z({name:X().optional()})).optional(),costPriority:Y0().min(0).max(1).optional(),speedPriority:Y0().min(0).max(1).optional(),intelligencePriority:Y0().min(0).max(1).optional()}),e5=Z({mode:D2([`auto`,`required`,`none`]).optional()}),t5=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:p2(F8).default([]),structuredContent:Z({}).loose().optional(),isError:t2().optional(),_meta:S2(X(),l2()).optional()}),n5=y2(`type`,[k8,A8,j8]),r5=y2(`type`,[k8,A8,j8,M8,t5]),i5=Z({role:i8,content:_2([r5,p2(r5)]),_meta:S2(X(),l2()).optional()}),a5=r6.extend({messages:p2(i5),modelPreferences:$8.optional(),systemPrompt:X().optional(),includeContext:D2([`none`,`thisServer`,`allServers`]).optional(),temperature:Y0().optional(),maxTokens:Y0().int(),stopSequences:p2(X()).optional(),metadata:X3.optional(),tools:p2(V8).optional(),toolChoice:e5.optional()}),o5=a6.extend({method:Q(`sampling/createMessage`),params:a5}),s5=c6.extend({model:X(),stopReason:j2(D2([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:i8,content:n5}),c5=c6.extend({model:X(),stopReason:j2(D2([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:i8,content:_2([r5,p2(r5)])}),l5=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:t2().optional()}),u5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:Y0().optional(),maxLength:Y0().optional(),format:D2([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),d5=Z({type:D2([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:Y0().optional(),maximum:Y0().optional(),default:Y0().optional()}),f5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:p2(X()),default:X().optional()}),p5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:p2(Z({const:X(),title:X()})),default:X().optional()}),m5=_2([_2([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:p2(X()),enumNames:p2(X()).optional(),default:X().optional()}),_2([f5,p5]),_2([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:Y0().optional(),maxItems:Y0().optional(),items:Z({type:Q(`string`),enum:p2(X())}),default:p2(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:Y0().optional(),maxItems:Y0().optional(),items:Z({anyOf:p2(Z({const:X(),title:X()}))}),default:p2(X()).optional()})])]),l5,u5,d5]),h5=_2([r6.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:S2(X(),m5),required:p2(X()).optional()})}),r6.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),g5=a6.extend({method:Q(`elicitation/create`),params:h5}),_5=o6.extend({elicitationId:X()}),v5=s6.extend({method:Q(`notifications/elicitation/complete`),params:_5}),y5=c6.extend({action:D2([`accept`,`decline`,`cancel`]),content:t4(e=>e===null?void 0:e,S2(X(),_2([X(),Y0(),t2(),p2(X())])).optional())}),b5=Z({type:Q(`ref/resource`),uri:X()}),x5=Z({type:Q(`ref/prompt`),name:X()}),S5=n6.extend({ref:_2([x5,b5]),argument:Z({name:X(),value:X()}),context:Z({arguments:S2(X(),X()).optional()}).optional()}),C5=a6.extend({method:Q(`completion/complete`),params:S5}),w5=c6.extend({completion:g2({values:p2(X()).max(100),total:j2(Y0().int()),hasMore:j2(t2())})}),T5=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:S2(X(),l2()).optional()}),E5=a6.extend({method:Q(`roots/list`),params:n6.optional()}),D5=c6.extend({roots:p2(T5)}),O5=s6.extend({method:Q(`notifications/roots/list_changed`),params:o6.optional()});_2([F6,j6,C5,X8,O8,T8,c8,u8,m8,v8,b8,K8,H8,q6,Y6,X6,Q6]),_2([S6,R6,P6,O5,K6]),_2([b6,s5,c5,y5,D5,J6,Z6,W6]),_2([F6,o5,g5,E5,q6,Y6,X6,Q6]),_2([S6,R6,Q8,S8,g8,q8,R8,K6,v5]),_2([b6,N6,w5,L8,E8,l8,d8,h8,W8,U8,J6,Z6,W6]);var k5=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===g6.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new A5(e.elicitations,n)}return new e(t,n,r)}},A5=class extends k5{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(g6.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function j5(e){return e===`completed`||e===`failed`||e===`cancelled`}function M5(e){let t=H1(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=U1(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function N5(e,t){let n=V1(e,t);if(!n.success)throw n.error;return n.data}var P5=class{constructor(e){this._options=e,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(S6,e=>{this._oncancel(e)}),this.setNotificationHandler(R6,e=>{this._onprogress(e)}),this.setRequestHandler(F6,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(q6,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new k5(g6.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Y6,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r){if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new k5(e.error.code,e.error.message,e.error.data))}}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new k5(g6.InvalidParams,`Task not found: ${r}`);if(!j5(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(j5(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Y3]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(X6,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new k5(g6.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Q6,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new k5(g6.InvalidParams,`Task not found: ${e.params.taskId}`);if(j5(n.status))throw new k5(g6.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new k5(g6.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof k5?e:new k5(g6.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),k5.fromError(g6.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){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=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),h6(e)||v6(e)?this._onresponse(e):d6(e)?this._onrequest(e,t):p6(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=k5.fromError(g6.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Y3]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:g6.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=i6(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new k5(g6.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:g6.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),h6(e)?n(e):n(new k5(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(h6(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),h6(e)?r(e):r(k5.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof k5?e:new k5(g6.InternalError,String(e))}}return}let i;try{let r=await this.request(e,W6,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new k5(g6.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},j5(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new k5(g6.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new k5(g6.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof k5?e:new k5(g6.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Y3]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof k5?e:new k5(g6.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=V1(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(k5.fromError(g6.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},J6,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Z6,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},$6,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Y3]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Y3]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Y3]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=M5(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=N5(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=M5(e);this._notificationHandlers.set(n,n=>{let r=N5(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&d6(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new k5(g6.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new k5(g6.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new k5(g6.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new k5(g6.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=K6.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),j5(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new k5(g6.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(j5(a.status))throw new k5(g6.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=K6.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),j5(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function F5(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function I5(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=F5(a)&&F5(i)?{...a,...i}:i}return n}var L5=`modulepreload`,R5=function(e,t){return new URL(e,t).href},z5={},B5=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=R5(t,n),t=s(t),t in z5)return;z5[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:L5,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};J3(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var V5=class extends P5{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},H5=`2026-01-26`,U5=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=y6.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},W5=_2([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),G5=_2([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),K5=S2(_2([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function V$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:W$(t,`input`,e.processors),output:W$(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function H$(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return H$(r.element,n);if(r.type===`set`)return H$(r.valueType,n);if(r.type===`lazy`)return H$(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return H$(r.innerType,n);if(r.type===`intersection`)return H$(r.left,n)||H$(r.right,n);if(r.type===`record`||r.type===`map`)return H$(r.keyType,n)||H$(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:H$(r.in,n)||H$(r.out,n);if(r.type===`object`){for(let e in r.shape)if(H$(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(H$(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(H$(e,n))return!0;return!!(r.rest&&H$(r.rest,n))}return!1}var U$,W$,G$=o((()=>{kZ(),U$=(e,t={})=>n=>{let r=R$({...n,processors:t});return z$(e,r),B$(r,e),V$(r,e)},W$=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=R$({...i??{},target:a,io:t,processors:n});return z$(e,o),B$(o,e),V$(o,e)}}));function K$(e,t){if(`_idmap`in e){let n=e,r=R$({...t,processors:N1}),i={};for(let e of n._idmap.entries()){let[t,n]=e;z$(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;B$(r,n),a[t]=V$(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=R$({...t,processors:N1});return z$(e,n),B$(n,e),V$(n,e)}var q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1,P1=o((()=>{G$(),uW(),q$={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},J$=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=q$[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Y$=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},X$=(e,t,n,r)=>{n.type=`boolean`},Z$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Q$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},$$=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},e1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},t1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},n1=(e,t,n,r)=>{n.not={}},r1=(e,t,n,r)=>{},i1=(e,t,n,r)=>{},a1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},o1=(e,t,n,r)=>{let i=e._zod.def,a=sU(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},s1=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},c1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},l1=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},u1=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},d1=(e,t,n,r)=>{n.type=`boolean`},f1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},p1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},m1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},h1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},g1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},_1=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=z$(a.element,t,{...r,path:[...r.path,`items`]})},v1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=z$(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=z$(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},y1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>z$(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},b1=(e,t,n,r)=>{let i=e._zod.def,a=z$(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=z$(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},x1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>z$(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?z$(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},S1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=z$(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=z$(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=z$(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},C1=(e,t,n,r)=>{let i=e._zod.def,a=z$(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},w1=(e,t,n,r)=>{let i=e._zod.def;z$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},T1=(e,t,n,r)=>{let i=e._zod.def;z$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},E1=(e,t,n,r)=>{let i=e._zod.def;z$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},D1=(e,t,n,r)=>{let i=e._zod.def;z$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},O1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;z$(o,t,r);let s=t.seen.get(e);s.ref=o},k1=(e,t,n,r)=>{let i=e._zod.def;z$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},A1=(e,t,n,r)=>{let i=e._zod.def;z$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},j1=(e,t,n,r)=>{let i=e._zod.def;z$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},M1=(e,t,n,r)=>{let i=e._zod.innerType;z$(i,t,r);let a=t.seen.get(e);a.ref=i},N1={string:J$,number:Y$,boolean:X$,bigint:Z$,symbol:Q$,null:$$,undefined:e1,void:t1,never:n1,any:r1,unknown:i1,date:a1,enum:o1,literal:s1,nan:c1,template_literal:l1,file:u1,success:d1,custom:f1,function:p1,transform:m1,map:h1,set:g1,array:_1,object:v1,union:y1,intersection:b1,tuple:x1,record:S1,nullable:C1,nonoptional:w1,default:T1,prefault:E1,catch:D1,pipe:O1,readonly:k1,promise:A1,optional:j1,lazy:M1}})),F1,I1=o((()=>{P1(),G$(),F1=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=R$({processors:N1,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return z$(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),B$(this.ctx,e);let{"~standard":n,...r}=V$(this.ctx,e);return r}}})),L1=c({}),R1=o((()=>{})),z1=c({$ZodAny:()=>Rq,$ZodArray:()=>Uq,$ZodAsyncError:()=>ZH,$ZodBase64:()=>Tq,$ZodBase64URL:()=>Eq,$ZodBigInt:()=>Nq,$ZodBigIntFormat:()=>Pq,$ZodBoolean:()=>Mq,$ZodCIDRv4:()=>Cq,$ZodCIDRv6:()=>wq,$ZodCUID:()=>dq,$ZodCUID2:()=>fq,$ZodCatch:()=>dJ,$ZodCheck:()=>iK,$ZodCheckBigIntFormat:()=>uK,$ZodCheckEndsWith:()=>CK,$ZodCheckGreaterThan:()=>sK,$ZodCheckIncludes:()=>xK,$ZodCheckLengthEquals:()=>gK,$ZodCheckLessThan:()=>oK,$ZodCheckLowerCase:()=>yK,$ZodCheckMaxLength:()=>mK,$ZodCheckMaxSize:()=>dK,$ZodCheckMimeType:()=>TK,$ZodCheckMinLength:()=>hK,$ZodCheckMinSize:()=>fK,$ZodCheckMultipleOf:()=>cK,$ZodCheckNumberFormat:()=>lK,$ZodCheckOverwrite:()=>EK,$ZodCheckProperty:()=>wK,$ZodCheckRegex:()=>vK,$ZodCheckSizeEquals:()=>pK,$ZodCheckStartsWith:()=>SK,$ZodCheckStringFormat:()=>_K,$ZodCheckUpperCase:()=>bK,$ZodCodec:()=>mJ,$ZodCustom:()=>xJ,$ZodCustomStringFormat:()=>kq,$ZodDate:()=>Hq,$ZodDefault:()=>sJ,$ZodDiscriminatedUnion:()=>Jq,$ZodE164:()=>Dq,$ZodEmail:()=>sq,$ZodEmoji:()=>lq,$ZodEncodeError:()=>QH,$ZodEnum:()=>eJ,$ZodError:()=>_W,$ZodExactOptional:()=>aJ,$ZodFile:()=>nJ,$ZodFunction:()=>vJ,$ZodGUID:()=>aq,$ZodIPv4:()=>bq,$ZodIPv6:()=>xq,$ZodISODate:()=>_q,$ZodISODateTime:()=>gq,$ZodISODuration:()=>yq,$ZodISOTime:()=>vq,$ZodIntersection:()=>Yq,$ZodJWT:()=>Oq,$ZodKSUID:()=>hq,$ZodLazy:()=>bJ,$ZodLiteral:()=>tJ,$ZodMAC:()=>Sq,$ZodMap:()=>Qq,$ZodNaN:()=>fJ,$ZodNanoID:()=>uq,$ZodNever:()=>Bq,$ZodNonOptional:()=>lJ,$ZodNull:()=>Lq,$ZodNullable:()=>oJ,$ZodNumber:()=>Aq,$ZodNumberFormat:()=>jq,$ZodObject:()=>Wq,$ZodObjectJIT:()=>Gq,$ZodOptional:()=>iJ,$ZodPipe:()=>pJ,$ZodPrefault:()=>cJ,$ZodPreprocess:()=>hJ,$ZodPromise:()=>yJ,$ZodReadonly:()=>gJ,$ZodRealError:()=>vW,$ZodRecord:()=>Zq,$ZodRegistry:()=>DZ,$ZodSet:()=>$q,$ZodString:()=>rq,$ZodStringFormat:()=>iq,$ZodSuccess:()=>uJ,$ZodSymbol:()=>Fq,$ZodTemplateLiteral:()=>_J,$ZodTransform:()=>rJ,$ZodTuple:()=>Xq,$ZodType:()=>nq,$ZodULID:()=>pq,$ZodURL:()=>cq,$ZodUUID:()=>oq,$ZodUndefined:()=>Iq,$ZodUnion:()=>Kq,$ZodUnknown:()=>zq,$ZodVoid:()=>Vq,$ZodXID:()=>mq,$ZodXor:()=>qq,$brand:()=>XH,$constructor:()=>q,$input:()=>EZ,$output:()=>TZ,Doc:()=>OK,JSONSchema:()=>L1,JSONSchemaGenerator:()=>F1,NEVER:()=>YH,TimePrecision:()=>I$,_any:()=>xQ,_array:()=>r$,_base64:()=>ZZ,_base64url:()=>QZ,_bigint:()=>mQ,_boolean:()=>fQ,_catch:()=>S$,_check:()=>j$,_cidrv4:()=>YZ,_cidrv6:()=>XZ,_coercedBigint:()=>hQ,_coercedBoolean:()=>pQ,_coercedDate:()=>EQ,_coercedNumber:()=>oQ,_coercedString:()=>jZ,_cuid:()=>VZ,_cuid2:()=>HZ,_custom:()=>O$,_date:()=>TQ,_decode:()=>AW,_decodeAsync:()=>PW,_default:()=>y$,_discriminatedUnion:()=>o$,_e164:()=>$Z,_email:()=>MZ,_emoji:()=>zZ,_encode:()=>OW,_encodeAsync:()=>MW,_endsWith:()=>JQ,_enum:()=>f$,_file:()=>h$,_float32:()=>cQ,_float64:()=>lQ,_gt:()=>AQ,_gte:()=>jQ,_guid:()=>NZ,_includes:()=>KQ,_int:()=>sQ,_int32:()=>uQ,_int64:()=>gQ,_intersection:()=>s$,_ipv4:()=>KZ,_ipv6:()=>qZ,_isoDate:()=>nQ,_isoDateTime:()=>tQ,_isoDuration:()=>iQ,_isoTime:()=>rQ,_jwt:()=>eQ,_ksuid:()=>GZ,_lazy:()=>E$,_length:()=>HQ,_literal:()=>m$,_lowercase:()=>WQ,_lt:()=>OQ,_lte:()=>kQ,_mac:()=>JZ,_map:()=>u$,_max:()=>kQ,_maxLength:()=>BQ,_maxSize:()=>LQ,_mime:()=>XQ,_min:()=>jQ,_minLength:()=>VQ,_minSize:()=>RQ,_multipleOf:()=>IQ,_nan:()=>DQ,_nanoid:()=>BZ,_nativeEnum:()=>p$,_negative:()=>NQ,_never:()=>CQ,_nonnegative:()=>FQ,_nonoptional:()=>b$,_nonpositive:()=>PQ,_normalize:()=>QQ,_null:()=>bQ,_nullable:()=>v$,_number:()=>aQ,_optional:()=>_$,_overwrite:()=>ZQ,_parse:()=>bW,_parseAsync:()=>SW,_pipe:()=>C$,_positive:()=>MQ,_promise:()=>D$,_property:()=>YQ,_readonly:()=>w$,_record:()=>l$,_refine:()=>k$,_regex:()=>UQ,_safeDecode:()=>RW,_safeDecodeAsync:()=>HW,_safeEncode:()=>IW,_safeEncodeAsync:()=>BW,_safeParse:()=>wW,_safeParseAsync:()=>EW,_set:()=>d$,_size:()=>zQ,_slugify:()=>n$,_startsWith:()=>qQ,_string:()=>AZ,_stringFormat:()=>F$,_stringbool:()=>P$,_success:()=>x$,_superRefine:()=>A$,_symbol:()=>vQ,_templateLiteral:()=>T$,_toLowerCase:()=>e$,_toUpperCase:()=>t$,_transform:()=>g$,_trim:()=>$Q,_tuple:()=>c$,_uint32:()=>dQ,_uint64:()=>_Q,_ulid:()=>UZ,_undefined:()=>yQ,_union:()=>i$,_unknown:()=>SQ,_uppercase:()=>GQ,_url:()=>RZ,_uuid:()=>PZ,_uuidv4:()=>FZ,_uuidv6:()=>IZ,_uuidv7:()=>LZ,_void:()=>wQ,_xid:()=>WZ,_xor:()=>a$,clone:()=>OU,config:()=>qH,createStandardJSONSchemaMethod:()=>W$,createToJSONSchemaMethod:()=>U$,decode:()=>jW,decodeAsync:()=>FW,describe:()=>M$,encode:()=>kW,encodeAsync:()=>NW,extractDefs:()=>B$,finalize:()=>V$,flattenError:()=>dW,formatError:()=>fW,globalConfig:()=>$H,globalRegistry:()=>OZ,initializeContext:()=>R$,isValidBase64:()=>MK,isValidBase64URL:()=>NK,isValidJWT:()=>PK,locales:()=>xZ,meta:()=>N$,parse:()=>xW,parseAsync:()=>CW,prettifyError:()=>hW,process:()=>z$,regexes:()=>GW,registry:()=>CZ,safeDecode:()=>zW,safeDecodeAsync:()=>UW,safeEncode:()=>LW,safeEncodeAsync:()=>VW,safeParse:()=>TW,safeParseAsync:()=>DW,toDotPath:()=>mW,toJSONSchema:()=>K$,treeifyError:()=>pW,util:()=>tU,version:()=>AK}),B1=o((()=>{eU(),WW(),yW(),SJ(),DK(),jK(),uW(),nK(),SZ(),kZ(),kK(),L$(),G$(),P1(),I1(),R1()}));WW();function V1(e){return!!e._zod}function H1(e,t){return V1(e)?TW(e,t):e.safeParse(t)}function U1(e){if(!e)return;let t;if(t=V1(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function W1(e){if(V1(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var G1=c({endsWith:()=>JQ,gt:()=>AQ,gte:()=>jQ,includes:()=>KQ,length:()=>HQ,lowercase:()=>WQ,lt:()=>OQ,lte:()=>kQ,maxLength:()=>BQ,maxSize:()=>LQ,mime:()=>XQ,minLength:()=>VQ,minSize:()=>RQ,multipleOf:()=>IQ,negative:()=>NQ,nonnegative:()=>FQ,nonpositive:()=>PQ,normalize:()=>QQ,overwrite:()=>ZQ,positive:()=>MQ,property:()=>YQ,regex:()=>UQ,size:()=>zQ,slugify:()=>n$,startsWith:()=>qQ,toLowerCase:()=>e$,toUpperCase:()=>t$,trim:()=>$Q,uppercase:()=>GQ}),K1=o((()=>{B1()})),q1=c({ZodISODate:()=>$1,ZodISODateTime:()=>Q1,ZodISODuration:()=>t0,ZodISOTime:()=>e0,date:()=>Y1,datetime:()=>J1,duration:()=>Z1,time:()=>X1});function J1(e){return tQ(Q1,e)}function Y1(e){return nQ($1,e)}function X1(e){return rQ(e0,e)}function Z1(e){return iQ(t0,e)}var Q1,$1,e0,t0,n0=o((()=>{B1(),C3(),Q1=q(`ZodISODateTime`,(e,t)=>{gq.init(e,t),s4.init(e,t)}),$1=q(`ZodISODate`,(e,t)=>{_q.init(e,t),s4.init(e,t)}),e0=q(`ZodISOTime`,(e,t)=>{vq.init(e,t),s4.init(e,t)}),t0=q(`ZodISODuration`,(e,t)=>{yq.init(e,t),s4.init(e,t)})})),r0,i0,a0,o0=o((()=>{B1(),uW(),r0=(e,t)=>{_W.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>fW(e,t)},flatten:{value:t=>dW(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,cU,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,cU,2)}},isEmpty:{get(){return e.issues.length===0}}})},i0=q(`ZodError`,r0),a0=q(`ZodError`,r0,{Parent:Error})})),s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0=o((()=>{B1(),o0(),s0=bW(a0),c0=SW(a0),l0=wW(a0),u0=EW(a0),d0=OW(a0),f0=AW(a0),p0=MW(a0),m0=PW(a0),h0=IW(a0),g0=RW(a0),_0=BW(a0),v0=HW(a0)})),b0=c({ZodAny:()=>L4,ZodArray:()=>H4,ZodBase64:()=>w4,ZodBase64URL:()=>T4,ZodBigInt:()=>M4,ZodBigIntFormat:()=>N4,ZodBoolean:()=>j4,ZodCIDRv4:()=>S4,ZodCIDRv6:()=>C4,ZodCUID:()=>m4,ZodCUID2:()=>h4,ZodCatch:()=>l3,ZodCodec:()=>f3,ZodCustom:()=>y3,ZodCustomStringFormat:()=>O4,ZodDate:()=>V4,ZodDefault:()=>a3,ZodDiscriminatedUnion:()=>K4,ZodE164:()=>E4,ZodEmail:()=>c4,ZodEmoji:()=>f4,ZodEnum:()=>Q4,ZodExactOptional:()=>r3,ZodFile:()=>e3,ZodFunction:()=>v3,ZodGUID:()=>l4,ZodIPv4:()=>y4,ZodIPv6:()=>x4,ZodIntersection:()=>q4,ZodJWT:()=>D4,ZodKSUID:()=>v4,ZodLazy:()=>g3,ZodLiteral:()=>$4,ZodMAC:()=>b4,ZodMap:()=>X4,ZodNaN:()=>u3,ZodNanoID:()=>p4,ZodNever:()=>z4,ZodNonOptional:()=>s3,ZodNull:()=>I4,ZodNullable:()=>i3,ZodNumber:()=>k4,ZodNumberFormat:()=>A4,ZodObject:()=>U4,ZodOptional:()=>n3,ZodPipe:()=>d3,ZodPrefault:()=>o3,ZodPreprocess:()=>p3,ZodPromise:()=>_3,ZodReadonly:()=>m3,ZodRecord:()=>Y4,ZodSet:()=>Z4,ZodString:()=>o4,ZodStringFormat:()=>s4,ZodSuccess:()=>c3,ZodSymbol:()=>P4,ZodTemplateLiteral:()=>h3,ZodTransform:()=>t3,ZodTuple:()=>J4,ZodType:()=>i4,ZodULID:()=>g4,ZodURL:()=>d4,ZodUUID:()=>u4,ZodUndefined:()=>F4,ZodUnion:()=>W4,ZodUnknown:()=>R4,ZodVoid:()=>B4,ZodXID:()=>_4,ZodXor:()=>G4,_ZodString:()=>a4,_default:()=>I2,_function:()=>Y2,any:()=>l2,array:()=>m2,base64:()=>H0,base64url:()=>U0,bigint:()=>r2,boolean:()=>n2,catch:()=>B2,check:()=>X2,cidrv4:()=>B0,cidrv6:()=>V0,codec:()=>U2,cuid:()=>M0,cuid2:()=>N0,custom:()=>Z2,date:()=>p2,describe:()=>b3,discriminatedUnion:()=>b2,e164:()=>W0,email:()=>S0,emoji:()=>A0,enum:()=>O2,exactOptional:()=>N2,file:()=>A2,float32:()=>Q0,float64:()=>$0,function:()=>Y2,guid:()=>C0,hash:()=>Y0,hex:()=>J0,hostname:()=>q0,httpUrl:()=>k0,instanceof:()=>e4,int:()=>Z0,int32:()=>e2,int64:()=>i2,intersection:()=>x2,invertCodec:()=>W2,ipv4:()=>L0,ipv6:()=>z0,json:()=>t4,jwt:()=>G0,keyof:()=>h2,ksuid:()=>I0,lazy:()=>q2,literal:()=>Q,looseObject:()=>_2,looseRecord:()=>T2,mac:()=>R0,map:()=>E2,meta:()=>x3,nan:()=>V2,nanoid:()=>j0,nativeEnum:()=>k2,never:()=>d2,nonoptional:()=>R2,null:()=>c2,nullable:()=>P2,nullish:()=>F2,number:()=>X0,object:()=>Z,optional:()=>M2,partialRecord:()=>w2,pipe:()=>H2,prefault:()=>L2,preprocess:()=>n4,promise:()=>J2,readonly:()=>G2,record:()=>C2,refine:()=>Q2,set:()=>D2,strictObject:()=>g2,string:()=>X,stringFormat:()=>K0,stringbool:()=>S3,success:()=>z2,superRefine:()=>$2,symbol:()=>o2,templateLiteral:()=>K2,transform:()=>j2,tuple:()=>S2,uint32:()=>t2,uint64:()=>a2,ulid:()=>P0,undefined:()=>s2,union:()=>v2,unknown:()=>u2,url:()=>O0,uuid:()=>w0,uuidv4:()=>T0,uuidv6:()=>E0,uuidv7:()=>D0,void:()=>f2,xid:()=>F0,xor:()=>y2});function x0(e,t,n){let r=Object.getPrototypeOf(e),i=r4.get(r);if(i||(i=new Set,r4.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return AZ(o4,e)}function S0(e){return MZ(c4,e)}function C0(e){return NZ(l4,e)}function w0(e){return PZ(u4,e)}function T0(e){return FZ(u4,e)}function E0(e){return IZ(u4,e)}function D0(e){return LZ(u4,e)}function O0(e){return RZ(d4,e)}function k0(e){return RZ(d4,{protocol:DG,hostname:EG,...Y(e)})}function A0(e){return zZ(f4,e)}function j0(e){return BZ(p4,e)}function M0(e){return VZ(m4,e)}function N0(e){return HZ(h4,e)}function P0(e){return UZ(g4,e)}function F0(e){return WZ(_4,e)}function I0(e){return GZ(v4,e)}function L0(e){return KZ(y4,e)}function R0(e){return JZ(b4,e)}function z0(e){return qZ(x4,e)}function B0(e){return YZ(S4,e)}function V0(e){return XZ(C4,e)}function H0(e){return ZZ(w4,e)}function U0(e){return QZ(T4,e)}function W0(e){return $Z(E4,e)}function G0(e){return eQ(D4,e)}function K0(e,t,n={}){return F$(O4,e,t,n)}function q0(e){return F$(O4,`hostname`,TG,e)}function J0(e){return F$(O4,`hex`,BG,e)}function Y0(e,t){let n=`${e}_${t?.enc??`hex`}`,r=GW[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return F$(O4,n,r,t)}function X0(e){return aQ(k4,e)}function Z0(e){return sQ(A4,e)}function Q0(e){return cQ(A4,e)}function $0(e){return lQ(A4,e)}function e2(e){return uQ(A4,e)}function t2(e){return dQ(A4,e)}function n2(e){return fQ(j4,e)}function r2(e){return mQ(M4,e)}function i2(e){return gQ(N4,e)}function a2(e){return _Q(N4,e)}function o2(e){return vQ(P4,e)}function s2(e){return yQ(F4,e)}function c2(e){return bQ(I4,e)}function l2(){return xQ(L4)}function u2(){return SQ(R4)}function d2(e){return CQ(z4,e)}function f2(e){return wQ(B4,e)}function p2(e){return TQ(V4,e)}function m2(e,t){return r$(H4,e,t)}function h2(e){let t=e._zod.def.shape;return O2(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new U4(n)}function g2(e,t){return new U4({type:`object`,shape:e,catchall:d2(),...Y(t)})}function _2(e,t){return new U4({type:`object`,shape:e,catchall:u2(),...Y(t)})}function v2(e,t){return new W4({type:`union`,options:e,...Y(t)})}function y2(e,t){return new G4({type:`union`,options:e,inclusive:!1,...Y(t)})}function b2(e,t,n){return new K4({type:`union`,options:t,discriminator:e,...Y(n)})}function x2(e,t){return new q4({type:`intersection`,left:e,right:t})}function S2(e,t,n){let r=t instanceof nq;return new J4({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function C2(e,t,n){return!t||!t._zod?new Y4({type:`record`,keyType:X(),valueType:e,...Y(t)}):new Y4({type:`record`,keyType:e,valueType:t,...Y(n)})}function w2(e,t,n){let r=OU(e);return r._zod.values=void 0,new Y4({type:`record`,keyType:r,valueType:t,...Y(n)})}function T2(e,t,n){return new Y4({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function E2(e,t,n){return new X4({type:`map`,keyType:e,valueType:t,...Y(n)})}function D2(e,t){return new Z4({type:`set`,valueType:e,...Y(t)})}function O2(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Q4({type:`enum`,entries:n,...Y(t)})}function k2(e,t){return new Q4({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new $4({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function A2(e){return h$(e3,e)}function j2(e){return new t3({type:`transform`,transform:e})}function M2(e){return new n3({type:`optional`,innerType:e})}function N2(e){return new r3({type:`optional`,innerType:e})}function P2(e){return new i3({type:`nullable`,innerType:e})}function F2(e){return M2(P2(e))}function I2(e,t){return new a3({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():TU(t)}})}function L2(e,t){return new o3({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():TU(t)}})}function R2(e,t){return new s3({type:`nonoptional`,innerType:e,...Y(t)})}function z2(e){return new c3({type:`success`,innerType:e})}function B2(e,t){return new l3({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function V2(e){return DQ(u3,e)}function H2(e,t){return new d3({type:`pipe`,in:e,out:t})}function U2(e,t,n){return new f3({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function W2(e){let t=e._zod.def;return new f3({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function G2(e){return new m3({type:`readonly`,innerType:e})}function K2(e,t){return new h3({type:`template_literal`,parts:e,...Y(t)})}function q2(e){return new g3({type:`lazy`,getter:e})}function J2(e){return new _3({type:`promise`,innerType:e})}function Y2(e){return new v3({type:`function`,input:Array.isArray(e?.input)?S2(e?.input):e?.input??m2(u2()),output:e?.output??u2()})}function X2(e){let t=new iK({check:`custom`});return t._zod.check=e,t}function Z2(e,t){return O$(y3,e??(()=>!0),t)}function Q2(e,t={}){return k$(y3,e,t)}function $2(e,t){return A$(e,t)}function e4(e,t={}){let n=new y3({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function t4(e){let t=q2(()=>v2([X(e),X0(),n2(),c2(),m2(t),C2(X(),t)]));return t}function n4(e,t){return new p3({type:`pipe`,in:j2(e),out:t})}var r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3,o3,s3,c3,l3,u3,d3,f3,p3,m3,h3,g3,_3,v3,y3,b3,x3,S3,C3=o((()=>{B1(),P1(),G$(),K1(),n0(),y0(),r4=new WeakMap,i4=q(`ZodType`,(e,t)=>(nq.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:W$(e,`input`),output:W$(e,`output`)}}),e.toJSONSchema=U$(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>s0(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>l0(e,t,n),e.parseAsync=async(t,n)=>c0(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>u0(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>d0(e,t,n),e.decode=(t,n)=>f0(e,t,n),e.encodeAsync=async(t,n)=>p0(e,t,n),e.decodeAsync=async(t,n)=>m0(e,t,n),e.safeEncode=(t,n)=>h0(e,t,n),e.safeDecode=(t,n)=>g0(e,t,n),e.safeEncodeAsync=async(t,n)=>_0(e,t,n),e.safeDecodeAsync=async(t,n)=>v0(e,t,n),x0(e,`ZodType`,{check(...e){let t=this.def;return this.clone(gU(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return OU(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Q2(e,t))},superRefine(e,t){return this.check($2(e,t))},overwrite(e){return this.check(ZQ(e))},optional(){return M2(this)},exactOptional(){return N2(this)},nullable(){return P2(this)},nullish(){return M2(P2(this))},nonoptional(e){return R2(this,e)},array(){return m2(this)},or(e){return v2([this,e])},and(e){return x2(this,e)},transform(e){return H2(this,j2(e))},default(e){return I2(this,e)},prefault(e){return L2(this,e)},catch(e){return B2(this,e)},pipe(e){return H2(this,e)},readonly(){return G2(this)},describe(e){let t=this.clone();return OZ.add(t,{description:e}),t},meta(...e){if(e.length===0)return OZ.get(this);let t=this.clone();return OZ.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return OZ.get(e)?.description},configurable:!0}),e)),a4=q(`_ZodString`,(e,t)=>{rq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J$(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,x0(e,`_ZodString`,{regex(...e){return this.check(UQ(...e))},includes(...e){return this.check(KQ(...e))},startsWith(...e){return this.check(qQ(...e))},endsWith(...e){return this.check(JQ(...e))},min(...e){return this.check(VQ(...e))},max(...e){return this.check(BQ(...e))},length(...e){return this.check(HQ(...e))},nonempty(...e){return this.check(VQ(1,...e))},lowercase(e){return this.check(WQ(e))},uppercase(e){return this.check(GQ(e))},trim(){return this.check($Q())},normalize(...e){return this.check(QQ(...e))},toLowerCase(){return this.check(e$())},toUpperCase(){return this.check(t$())},slugify(){return this.check(n$())}})}),o4=q(`ZodString`,(e,t)=>{rq.init(e,t),a4.init(e,t),e.email=t=>e.check(MZ(c4,t)),e.url=t=>e.check(RZ(d4,t)),e.jwt=t=>e.check(eQ(D4,t)),e.emoji=t=>e.check(zZ(f4,t)),e.guid=t=>e.check(NZ(l4,t)),e.uuid=t=>e.check(PZ(u4,t)),e.uuidv4=t=>e.check(FZ(u4,t)),e.uuidv6=t=>e.check(IZ(u4,t)),e.uuidv7=t=>e.check(LZ(u4,t)),e.nanoid=t=>e.check(BZ(p4,t)),e.guid=t=>e.check(NZ(l4,t)),e.cuid=t=>e.check(VZ(m4,t)),e.cuid2=t=>e.check(HZ(h4,t)),e.ulid=t=>e.check(UZ(g4,t)),e.base64=t=>e.check(ZZ(w4,t)),e.base64url=t=>e.check(QZ(T4,t)),e.xid=t=>e.check(WZ(_4,t)),e.ksuid=t=>e.check(GZ(v4,t)),e.ipv4=t=>e.check(KZ(y4,t)),e.ipv6=t=>e.check(qZ(x4,t)),e.cidrv4=t=>e.check(YZ(S4,t)),e.cidrv6=t=>e.check(XZ(C4,t)),e.e164=t=>e.check($Z(E4,t)),e.datetime=t=>e.check(J1(t)),e.date=t=>e.check(Y1(t)),e.time=t=>e.check(X1(t)),e.duration=t=>e.check(Z1(t))}),s4=q(`ZodStringFormat`,(e,t)=>{iq.init(e,t),a4.init(e,t)}),c4=q(`ZodEmail`,(e,t)=>{sq.init(e,t),s4.init(e,t)}),l4=q(`ZodGUID`,(e,t)=>{aq.init(e,t),s4.init(e,t)}),u4=q(`ZodUUID`,(e,t)=>{oq.init(e,t),s4.init(e,t)}),d4=q(`ZodURL`,(e,t)=>{cq.init(e,t),s4.init(e,t)}),f4=q(`ZodEmoji`,(e,t)=>{lq.init(e,t),s4.init(e,t)}),p4=q(`ZodNanoID`,(e,t)=>{uq.init(e,t),s4.init(e,t)}),m4=q(`ZodCUID`,(e,t)=>{dq.init(e,t),s4.init(e,t)}),h4=q(`ZodCUID2`,(e,t)=>{fq.init(e,t),s4.init(e,t)}),g4=q(`ZodULID`,(e,t)=>{pq.init(e,t),s4.init(e,t)}),_4=q(`ZodXID`,(e,t)=>{mq.init(e,t),s4.init(e,t)}),v4=q(`ZodKSUID`,(e,t)=>{hq.init(e,t),s4.init(e,t)}),y4=q(`ZodIPv4`,(e,t)=>{bq.init(e,t),s4.init(e,t)}),b4=q(`ZodMAC`,(e,t)=>{Sq.init(e,t),s4.init(e,t)}),x4=q(`ZodIPv6`,(e,t)=>{xq.init(e,t),s4.init(e,t)}),S4=q(`ZodCIDRv4`,(e,t)=>{Cq.init(e,t),s4.init(e,t)}),C4=q(`ZodCIDRv6`,(e,t)=>{wq.init(e,t),s4.init(e,t)}),w4=q(`ZodBase64`,(e,t)=>{Tq.init(e,t),s4.init(e,t)}),T4=q(`ZodBase64URL`,(e,t)=>{Eq.init(e,t),s4.init(e,t)}),E4=q(`ZodE164`,(e,t)=>{Dq.init(e,t),s4.init(e,t)}),D4=q(`ZodJWT`,(e,t)=>{Oq.init(e,t),s4.init(e,t)}),O4=q(`ZodCustomStringFormat`,(e,t)=>{kq.init(e,t),s4.init(e,t)}),k4=q(`ZodNumber`,(e,t)=>{Aq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y$(e,t,n,r),x0(e,`ZodNumber`,{gt(e,t){return this.check(AQ(e,t))},gte(e,t){return this.check(jQ(e,t))},min(e,t){return this.check(jQ(e,t))},lt(e,t){return this.check(OQ(e,t))},lte(e,t){return this.check(kQ(e,t))},max(e,t){return this.check(kQ(e,t))},int(e){return this.check(Z0(e))},safe(e){return this.check(Z0(e))},positive(e){return this.check(AQ(0,e))},nonnegative(e){return this.check(jQ(0,e))},negative(e){return this.check(OQ(0,e))},nonpositive(e){return this.check(kQ(0,e))},multipleOf(e,t){return this.check(IQ(e,t))},step(e,t){return this.check(IQ(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),A4=q(`ZodNumberFormat`,(e,t)=>{jq.init(e,t),k4.init(e,t)}),j4=q(`ZodBoolean`,(e,t)=>{Mq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X$(e,t,n,r)}),M4=q(`ZodBigInt`,(e,t)=>{Nq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z$(e,t,n,r),e.gte=(t,n)=>e.check(jQ(t,n)),e.min=(t,n)=>e.check(jQ(t,n)),e.gt=(t,n)=>e.check(AQ(t,n)),e.gte=(t,n)=>e.check(jQ(t,n)),e.min=(t,n)=>e.check(jQ(t,n)),e.lt=(t,n)=>e.check(OQ(t,n)),e.lte=(t,n)=>e.check(kQ(t,n)),e.max=(t,n)=>e.check(kQ(t,n)),e.positive=t=>e.check(AQ(BigInt(0),t)),e.negative=t=>e.check(OQ(BigInt(0),t)),e.nonpositive=t=>e.check(kQ(BigInt(0),t)),e.nonnegative=t=>e.check(jQ(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(IQ(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),N4=q(`ZodBigIntFormat`,(e,t)=>{Pq.init(e,t),M4.init(e,t)}),P4=q(`ZodSymbol`,(e,t)=>{Fq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q$(e,t,n,r)}),F4=q(`ZodUndefined`,(e,t)=>{Iq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e1(e,t,n,r)}),I4=q(`ZodNull`,(e,t)=>{Lq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$$(e,t,n,r)}),L4=q(`ZodAny`,(e,t)=>{Rq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>r1(e,t,n,r)}),R4=q(`ZodUnknown`,(e,t)=>{zq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>i1(e,t,n,r)}),z4=q(`ZodNever`,(e,t)=>{Bq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n1(e,t,n,r)}),B4=q(`ZodVoid`,(e,t)=>{Vq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t1(e,t,n,r)}),V4=q(`ZodDate`,(e,t)=>{Hq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a1(e,t,n,r),e.min=(t,n)=>e.check(jQ(t,n)),e.max=(t,n)=>e.check(kQ(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),H4=q(`ZodArray`,(e,t)=>{Uq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_1(e,t,n,r),e.element=t.element,x0(e,`ZodArray`,{min(e,t){return this.check(VQ(e,t))},nonempty(e){return this.check(VQ(1,e))},max(e,t){return this.check(BQ(e,t))},length(e,t){return this.check(HQ(e,t))},unwrap(){return this.element}})}),U4=q(`ZodObject`,(e,t)=>{Gq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v1(e,t,n,r),pU(e,`shape`,()=>t.shape),x0(e,`ZodObject`,{keyof(){return O2(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:u2()})},loose(){return this.clone({...this._zod.def,catchall:u2()})},strict(){return this.clone({...this._zod.def,catchall:d2()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return PU(this,e)},safeExtend(e){return FU(this,e)},merge(e){return IU(this,e)},pick(e){return MU(this,e)},omit(e){return NU(this,e)},partial(...e){return LU(n3,this,e[0])},required(...e){return RU(s3,this,e[0])}})}),W4=q(`ZodUnion`,(e,t)=>{Kq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y1(e,t,n,r),e.options=t.options}),G4=q(`ZodXor`,(e,t)=>{W4.init(e,t),qq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y1(e,t,n,r),e.options=t.options}),K4=q(`ZodDiscriminatedUnion`,(e,t)=>{W4.init(e,t),Jq.init(e,t)}),q4=q(`ZodIntersection`,(e,t)=>{Yq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b1(e,t,n,r)}),J4=q(`ZodTuple`,(e,t)=>{Xq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x1(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Y4=q(`ZodRecord`,(e,t)=>{Zq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),X4=q(`ZodMap`,(e,t)=>{Qq.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(RQ(...t)),e.nonempty=t=>e.check(RQ(1,t)),e.max=(...t)=>e.check(LQ(...t)),e.size=(...t)=>e.check(zQ(...t))}),Z4=q(`ZodSet`,(e,t)=>{$q.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g1(e,t,n,r),e.min=(...t)=>e.check(RQ(...t)),e.nonempty=t=>e.check(RQ(1,t)),e.max=(...t)=>e.check(LQ(...t)),e.size=(...t)=>e.check(zQ(...t))}),Q4=q(`ZodEnum`,(e,t)=>{eJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>o1(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Q4({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Q4({...t,checks:[],...Y(r),entries:i})}}),$4=q(`ZodLiteral`,(e,t)=>{tJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s1(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),e3=q(`ZodFile`,(e,t)=>{nJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u1(e,t,n,r),e.min=(t,n)=>e.check(RQ(t,n)),e.max=(t,n)=>e.check(LQ(t,n)),e.mime=(t,n)=>e.check(XQ(Array.isArray(t)?t:[t],n))}),t3=q(`ZodTransform`,(e,t)=>{rJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m1(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new QH(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(qU(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(qU(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),n3=q(`ZodOptional`,(e,t)=>{iJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),r3=q(`ZodExactOptional`,(e,t)=>{aJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),i3=q(`ZodNullable`,(e,t)=>{oJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),a3=q(`ZodDefault`,(e,t)=>{sJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),o3=q(`ZodPrefault`,(e,t)=>{cJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),s3=q(`ZodNonOptional`,(e,t)=>{lJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),c3=q(`ZodSuccess`,(e,t)=>{uJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),l3=q(`ZodCatch`,(e,t)=>{dJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),u3=q(`ZodNaN`,(e,t)=>{fJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c1(e,t,n,r)}),d3=q(`ZodPipe`,(e,t)=>{pJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O1(e,t,n,r),e.in=t.in,e.out=t.out}),f3=q(`ZodCodec`,(e,t)=>{d3.init(e,t),mJ.init(e,t)}),p3=q(`ZodPreprocess`,(e,t)=>{d3.init(e,t),hJ.init(e,t)}),m3=q(`ZodReadonly`,(e,t)=>{gJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),h3=q(`ZodTemplateLiteral`,(e,t)=>{_J.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l1(e,t,n,r)}),g3=q(`ZodLazy`,(e,t)=>{bJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M1(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),_3=q(`ZodPromise`,(e,t)=>{yJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),v3=q(`ZodFunction`,(e,t)=>{vJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p1(e,t,n,r)}),y3=q(`ZodCustom`,(e,t)=>{xJ.init(e,t),i4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f1(e,t,n,r)}),b3=M$,x3=N$,S3=(...e)=>P$({Codec:f3,Boolean:j4,String:o4},...e)}));function w3(e){qH({customError:e})}function T3(){return qH().customError}var E3,D3,O3=o((()=>{B1(),E3={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`},D3||={}}));function k3(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function A3(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function j3(e,t){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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=M3(A3(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>j3({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){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))),r=t;break}case`number`:case`integer`:{let t=n===`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)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=M3(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=M3(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?M3(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=M3(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tM3(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?M3(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>M3(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?M3(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=M3(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function M3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=j3(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>M3(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>M3(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf)){if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:M3(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function N3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:k3(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??OZ};return M3(n,r)}var $,P3,F3=o((()=>{kZ(),K1(),n0(),C3(),$={...b0,...G1,iso:q1},P3=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`.split(`.`))})),I3=c({bigint:()=>B3,boolean:()=>z3,date:()=>V3,number:()=>R3,string:()=>L3});function L3(e){return jZ(o4,e)}function R3(e){return oQ(k4,e)}function z3(e){return pQ(j4,e)}function B3(e){return hQ(M4,e)}function V3(e){return EQ(V4,e)}var H3=o((()=>{B1(),C3()})),U3=c({$brand:()=>XH,$input:()=>EZ,$output:()=>TZ,NEVER:()=>YH,TimePrecision:()=>I$,ZodAny:()=>L4,ZodArray:()=>H4,ZodBase64:()=>w4,ZodBase64URL:()=>T4,ZodBigInt:()=>M4,ZodBigIntFormat:()=>N4,ZodBoolean:()=>j4,ZodCIDRv4:()=>S4,ZodCIDRv6:()=>C4,ZodCUID:()=>m4,ZodCUID2:()=>h4,ZodCatch:()=>l3,ZodCodec:()=>f3,ZodCustom:()=>y3,ZodCustomStringFormat:()=>O4,ZodDate:()=>V4,ZodDefault:()=>a3,ZodDiscriminatedUnion:()=>K4,ZodE164:()=>E4,ZodEmail:()=>c4,ZodEmoji:()=>f4,ZodEnum:()=>Q4,ZodError:()=>i0,ZodExactOptional:()=>r3,ZodFile:()=>e3,ZodFirstPartyTypeKind:()=>D3,ZodFunction:()=>v3,ZodGUID:()=>l4,ZodIPv4:()=>y4,ZodIPv6:()=>x4,ZodISODate:()=>$1,ZodISODateTime:()=>Q1,ZodISODuration:()=>t0,ZodISOTime:()=>e0,ZodIntersection:()=>q4,ZodIssueCode:()=>E3,ZodJWT:()=>D4,ZodKSUID:()=>v4,ZodLazy:()=>g3,ZodLiteral:()=>$4,ZodMAC:()=>b4,ZodMap:()=>X4,ZodNaN:()=>u3,ZodNanoID:()=>p4,ZodNever:()=>z4,ZodNonOptional:()=>s3,ZodNull:()=>I4,ZodNullable:()=>i3,ZodNumber:()=>k4,ZodNumberFormat:()=>A4,ZodObject:()=>U4,ZodOptional:()=>n3,ZodPipe:()=>d3,ZodPrefault:()=>o3,ZodPreprocess:()=>p3,ZodPromise:()=>_3,ZodReadonly:()=>m3,ZodRealError:()=>a0,ZodRecord:()=>Y4,ZodSet:()=>Z4,ZodString:()=>o4,ZodStringFormat:()=>s4,ZodSuccess:()=>c3,ZodSymbol:()=>P4,ZodTemplateLiteral:()=>h3,ZodTransform:()=>t3,ZodTuple:()=>J4,ZodType:()=>i4,ZodULID:()=>g4,ZodURL:()=>d4,ZodUUID:()=>u4,ZodUndefined:()=>F4,ZodUnion:()=>W4,ZodUnknown:()=>R4,ZodVoid:()=>B4,ZodXID:()=>_4,ZodXor:()=>G4,_ZodString:()=>a4,_default:()=>I2,_function:()=>Y2,any:()=>l2,array:()=>m2,base64:()=>H0,base64url:()=>U0,bigint:()=>r2,boolean:()=>n2,catch:()=>B2,check:()=>X2,cidrv4:()=>B0,cidrv6:()=>V0,clone:()=>OU,codec:()=>U2,coerce:()=>I3,config:()=>qH,core:()=>z1,cuid:()=>M0,cuid2:()=>N0,custom:()=>Z2,date:()=>p2,decode:()=>f0,decodeAsync:()=>m0,describe:()=>b3,discriminatedUnion:()=>b2,e164:()=>W0,email:()=>S0,emoji:()=>A0,encode:()=>d0,encodeAsync:()=>p0,endsWith:()=>JQ,enum:()=>O2,exactOptional:()=>N2,file:()=>A2,flattenError:()=>dW,float32:()=>Q0,float64:()=>$0,formatError:()=>fW,fromJSONSchema:()=>N3,function:()=>Y2,getErrorMap:()=>T3,globalRegistry:()=>OZ,gt:()=>AQ,gte:()=>jQ,guid:()=>C0,hash:()=>Y0,hex:()=>J0,hostname:()=>q0,httpUrl:()=>k0,includes:()=>KQ,instanceof:()=>e4,int:()=>Z0,int32:()=>e2,int64:()=>i2,intersection:()=>x2,invertCodec:()=>W2,ipv4:()=>L0,ipv6:()=>z0,iso:()=>q1,json:()=>t4,jwt:()=>G0,keyof:()=>h2,ksuid:()=>I0,lazy:()=>q2,length:()=>HQ,literal:()=>Q,locales:()=>xZ,looseObject:()=>_2,looseRecord:()=>T2,lowercase:()=>WQ,lt:()=>OQ,lte:()=>kQ,mac:()=>R0,map:()=>E2,maxLength:()=>BQ,maxSize:()=>LQ,meta:()=>x3,mime:()=>XQ,minLength:()=>VQ,minSize:()=>RQ,multipleOf:()=>IQ,nan:()=>V2,nanoid:()=>j0,nativeEnum:()=>k2,negative:()=>NQ,never:()=>d2,nonnegative:()=>FQ,nonoptional:()=>R2,nonpositive:()=>PQ,normalize:()=>QQ,null:()=>c2,nullable:()=>P2,nullish:()=>F2,number:()=>X0,object:()=>Z,optional:()=>M2,overwrite:()=>ZQ,parse:()=>s0,parseAsync:()=>c0,partialRecord:()=>w2,pipe:()=>H2,positive:()=>MQ,prefault:()=>L2,preprocess:()=>n4,prettifyError:()=>hW,promise:()=>J2,property:()=>YQ,readonly:()=>G2,record:()=>C2,refine:()=>Q2,regex:()=>UQ,regexes:()=>GW,registry:()=>CZ,safeDecode:()=>g0,safeDecodeAsync:()=>v0,safeEncode:()=>h0,safeEncodeAsync:()=>_0,safeParse:()=>l0,safeParseAsync:()=>u0,set:()=>D2,setErrorMap:()=>w3,size:()=>zQ,slugify:()=>n$,startsWith:()=>qQ,strictObject:()=>g2,string:()=>X,stringFormat:()=>K0,stringbool:()=>S3,success:()=>z2,superRefine:()=>$2,symbol:()=>o2,templateLiteral:()=>K2,toJSONSchema:()=>K$,toLowerCase:()=>e$,toUpperCase:()=>t$,transform:()=>j2,treeifyError:()=>pW,trim:()=>$Q,tuple:()=>S2,uint32:()=>t2,uint64:()=>a2,ulid:()=>P0,undefined:()=>s2,union:()=>v2,unknown:()=>u2,uppercase:()=>GQ,url:()=>O0,util:()=>tU,uuid:()=>w0,uuidv4:()=>T0,uuidv6:()=>E0,uuidv7:()=>D0,void:()=>f2,xid:()=>F0,xor:()=>y2}),W3=o((()=>{B1(),C3(),K1(),o0(),y0(),O3(),$J(),P1(),F3(),SZ(),n0(),H3(),qH(ZJ())})),G3,K3=o((()=>{W3(),W3(),G3=U3})),q3=c({$brand:()=>XH,$input:()=>EZ,$output:()=>TZ,NEVER:()=>YH,TimePrecision:()=>I$,ZodAny:()=>L4,ZodArray:()=>H4,ZodBase64:()=>w4,ZodBase64URL:()=>T4,ZodBigInt:()=>M4,ZodBigIntFormat:()=>N4,ZodBoolean:()=>j4,ZodCIDRv4:()=>S4,ZodCIDRv6:()=>C4,ZodCUID:()=>m4,ZodCUID2:()=>h4,ZodCatch:()=>l3,ZodCodec:()=>f3,ZodCustom:()=>y3,ZodCustomStringFormat:()=>O4,ZodDate:()=>V4,ZodDefault:()=>a3,ZodDiscriminatedUnion:()=>K4,ZodE164:()=>E4,ZodEmail:()=>c4,ZodEmoji:()=>f4,ZodEnum:()=>Q4,ZodError:()=>i0,ZodExactOptional:()=>r3,ZodFile:()=>e3,ZodFirstPartyTypeKind:()=>D3,ZodFunction:()=>v3,ZodGUID:()=>l4,ZodIPv4:()=>y4,ZodIPv6:()=>x4,ZodISODate:()=>$1,ZodISODateTime:()=>Q1,ZodISODuration:()=>t0,ZodISOTime:()=>e0,ZodIntersection:()=>q4,ZodIssueCode:()=>E3,ZodJWT:()=>D4,ZodKSUID:()=>v4,ZodLazy:()=>g3,ZodLiteral:()=>$4,ZodMAC:()=>b4,ZodMap:()=>X4,ZodNaN:()=>u3,ZodNanoID:()=>p4,ZodNever:()=>z4,ZodNonOptional:()=>s3,ZodNull:()=>I4,ZodNullable:()=>i3,ZodNumber:()=>k4,ZodNumberFormat:()=>A4,ZodObject:()=>U4,ZodOptional:()=>n3,ZodPipe:()=>d3,ZodPrefault:()=>o3,ZodPreprocess:()=>p3,ZodPromise:()=>_3,ZodReadonly:()=>m3,ZodRealError:()=>a0,ZodRecord:()=>Y4,ZodSet:()=>Z4,ZodString:()=>o4,ZodStringFormat:()=>s4,ZodSuccess:()=>c3,ZodSymbol:()=>P4,ZodTemplateLiteral:()=>h3,ZodTransform:()=>t3,ZodTuple:()=>J4,ZodType:()=>i4,ZodULID:()=>g4,ZodURL:()=>d4,ZodUUID:()=>u4,ZodUndefined:()=>F4,ZodUnion:()=>W4,ZodUnknown:()=>R4,ZodVoid:()=>B4,ZodXID:()=>_4,ZodXor:()=>G4,_ZodString:()=>a4,_default:()=>I2,_function:()=>Y2,any:()=>l2,array:()=>m2,base64:()=>H0,base64url:()=>U0,bigint:()=>r2,boolean:()=>n2,catch:()=>B2,check:()=>X2,cidrv4:()=>B0,cidrv6:()=>V0,clone:()=>OU,codec:()=>U2,coerce:()=>I3,config:()=>qH,core:()=>z1,cuid:()=>M0,cuid2:()=>N0,custom:()=>Z2,date:()=>p2,decode:()=>f0,decodeAsync:()=>m0,default:()=>J3,describe:()=>b3,discriminatedUnion:()=>b2,e164:()=>W0,email:()=>S0,emoji:()=>A0,encode:()=>d0,encodeAsync:()=>p0,endsWith:()=>JQ,enum:()=>O2,exactOptional:()=>N2,file:()=>A2,flattenError:()=>dW,float32:()=>Q0,float64:()=>$0,formatError:()=>fW,fromJSONSchema:()=>N3,function:()=>Y2,getErrorMap:()=>T3,globalRegistry:()=>OZ,gt:()=>AQ,gte:()=>jQ,guid:()=>C0,hash:()=>Y0,hex:()=>J0,hostname:()=>q0,httpUrl:()=>k0,includes:()=>KQ,instanceof:()=>e4,int:()=>Z0,int32:()=>e2,int64:()=>i2,intersection:()=>x2,invertCodec:()=>W2,ipv4:()=>L0,ipv6:()=>z0,iso:()=>q1,json:()=>t4,jwt:()=>G0,keyof:()=>h2,ksuid:()=>I0,lazy:()=>q2,length:()=>HQ,literal:()=>Q,locales:()=>xZ,looseObject:()=>_2,looseRecord:()=>T2,lowercase:()=>WQ,lt:()=>OQ,lte:()=>kQ,mac:()=>R0,map:()=>E2,maxLength:()=>BQ,maxSize:()=>LQ,meta:()=>x3,mime:()=>XQ,minLength:()=>VQ,minSize:()=>RQ,multipleOf:()=>IQ,nan:()=>V2,nanoid:()=>j0,nativeEnum:()=>k2,negative:()=>NQ,never:()=>d2,nonnegative:()=>FQ,nonoptional:()=>R2,nonpositive:()=>PQ,normalize:()=>QQ,null:()=>c2,nullable:()=>P2,nullish:()=>F2,number:()=>X0,object:()=>Z,optional:()=>M2,overwrite:()=>ZQ,parse:()=>s0,parseAsync:()=>c0,partialRecord:()=>w2,pipe:()=>H2,positive:()=>MQ,prefault:()=>L2,preprocess:()=>n4,prettifyError:()=>hW,promise:()=>J2,property:()=>YQ,readonly:()=>G2,record:()=>C2,refine:()=>Q2,regex:()=>UQ,regexes:()=>GW,registry:()=>CZ,safeDecode:()=>g0,safeDecodeAsync:()=>v0,safeEncode:()=>h0,safeEncodeAsync:()=>_0,safeParse:()=>l0,safeParseAsync:()=>u0,set:()=>D2,setErrorMap:()=>w3,size:()=>zQ,slugify:()=>n$,startsWith:()=>qQ,strictObject:()=>g2,string:()=>X,stringFormat:()=>K0,stringbool:()=>S3,success:()=>z2,superRefine:()=>$2,symbol:()=>o2,templateLiteral:()=>K2,toJSONSchema:()=>K$,toLowerCase:()=>e$,toUpperCase:()=>t$,transform:()=>j2,treeifyError:()=>pW,trim:()=>$Q,tuple:()=>S2,uint32:()=>t2,uint64:()=>a2,ulid:()=>P0,undefined:()=>s2,union:()=>v2,unknown:()=>u2,uppercase:()=>GQ,url:()=>O0,util:()=>tU,uuid:()=>w0,uuidv4:()=>T0,uuidv6:()=>E0,uuidv7:()=>D0,void:()=>f2,xid:()=>F0,xor:()=>y2,z:()=>U3}),J3,Y3=o((()=>{K3(),K3(),J3=G3}));Y3();var X3=`io.modelcontextprotocol/related-task`,Z3=Z2(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Q3=v2([X(),X0().int()]),$3=X();_2({ttl:X0().optional(),pollInterval:X0().optional()});var e6=Z({ttl:X0().optional()}),t6=Z({taskId:X()}),n6=_2({progressToken:Q3.optional(),[X3]:t6.optional()}),r6=Z({_meta:n6.optional()}),i6=r6.extend({task:e6.optional()}),a6=e=>i6.safeParse(e).success,o6=Z({method:X(),params:r6.loose().optional()}),s6=Z({_meta:n6.optional()}),c6=Z({method:X(),params:s6.loose().optional()}),l6=_2({_meta:n6.optional()}),u6=v2([X(),X0().int()]),d6=Z({jsonrpc:Q(`2.0`),id:u6,...o6.shape}).strict(),f6=e=>d6.safeParse(e).success,p6=Z({jsonrpc:Q(`2.0`),...c6.shape}).strict(),m6=e=>p6.safeParse(e).success,h6=Z({jsonrpc:Q(`2.0`),id:u6,result:l6}).strict(),g6=e=>h6.safeParse(e).success,_6;(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`})(_6||={});var v6=Z({jsonrpc:Q(`2.0`),id:u6.optional(),error:Z({code:X0().int(),message:X(),data:u2().optional()})}).strict(),y6=e=>v6.safeParse(e).success,b6=v2([d6,p6,h6,v6]);v2([h6,v6]);var x6=l6.strict(),S6=s6.extend({requestId:u6.optional(),reason:X().optional()}),C6=c6.extend({method:Q(`notifications/cancelled`),params:S6}),w6=Z({icons:m2(Z({src:X(),mimeType:X().optional(),sizes:m2(X()).optional(),theme:O2([`light`,`dark`]).optional()})).optional()}),T6=Z({name:X(),title:X().optional()}),E6=T6.extend({...T6.shape,...w6.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),D6=n4(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,x2(Z({form:x2(Z({applyDefaults:n2().optional()}),C2(X(),u2())).optional(),url:Z3.optional()}),C2(X(),u2()).optional())),O6=_2({list:Z3.optional(),cancel:Z3.optional(),requests:_2({sampling:_2({createMessage:Z3.optional()}).optional(),elicitation:_2({create:Z3.optional()}).optional()}).optional()}),k6=_2({list:Z3.optional(),cancel:Z3.optional(),requests:_2({tools:_2({call:Z3.optional()}).optional()}).optional()}),A6=Z({experimental:C2(X(),Z3).optional(),sampling:Z({context:Z3.optional(),tools:Z3.optional()}).optional(),elicitation:D6.optional(),roots:Z({listChanged:n2().optional()}).optional(),tasks:O6.optional(),extensions:C2(X(),Z3).optional()}),j6=r6.extend({protocolVersion:X(),capabilities:A6,clientInfo:E6}),M6=o6.extend({method:Q(`initialize`),params:j6}),N6=Z({experimental:C2(X(),Z3).optional(),logging:Z3.optional(),completions:Z3.optional(),prompts:Z({listChanged:n2().optional()}).optional(),resources:Z({subscribe:n2().optional(),listChanged:n2().optional()}).optional(),tools:Z({listChanged:n2().optional()}).optional(),tasks:k6.optional(),extensions:C2(X(),Z3).optional()}),P6=l6.extend({protocolVersion:X(),capabilities:N6,serverInfo:E6,instructions:X().optional()}),F6=c6.extend({method:Q(`notifications/initialized`),params:s6.optional()}),I6=o6.extend({method:Q(`ping`),params:r6.optional()}),L6=Z({progress:X0(),total:M2(X0()),message:M2(X())}),R6=Z({...s6.shape,...L6.shape,progressToken:Q3}),z6=c6.extend({method:Q(`notifications/progress`),params:R6}),B6=r6.extend({cursor:$3.optional()}),V6=o6.extend({params:B6.optional()}),H6=l6.extend({nextCursor:$3.optional()}),U6=O2([`working`,`input_required`,`completed`,`failed`,`cancelled`]),W6=Z({taskId:X(),status:U6,ttl:v2([X0(),c2()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:M2(X0()),statusMessage:M2(X())}),G6=l6.extend({task:W6}),K6=s6.merge(W6),q6=c6.extend({method:Q(`notifications/tasks/status`),params:K6}),J6=o6.extend({method:Q(`tasks/get`),params:r6.extend({taskId:X()})}),Y6=l6.merge(W6),X6=o6.extend({method:Q(`tasks/result`),params:r6.extend({taskId:X()})});l6.loose();var Z6=V6.extend({method:Q(`tasks/list`)}),Q6=H6.extend({tasks:m2(W6)}),$6=o6.extend({method:Q(`tasks/cancel`),params:r6.extend({taskId:X()})}),e8=l6.merge(W6),t8=Z({uri:X(),mimeType:M2(X()),_meta:C2(X(),u2()).optional()}),n8=t8.extend({text:X()}),r8=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),i8=t8.extend({blob:r8}),a8=O2([`user`,`assistant`]),o8=Z({audience:m2(a8).optional(),priority:X0().min(0).max(1).optional(),lastModified:J1({offset:!0}).optional()}),s8=Z({...T6.shape,...w6.shape,uri:X(),description:M2(X()),mimeType:M2(X()),size:M2(X0()),annotations:o8.optional(),_meta:M2(_2({}))}),c8=Z({...T6.shape,...w6.shape,uriTemplate:X(),description:M2(X()),mimeType:M2(X()),annotations:o8.optional(),_meta:M2(_2({}))}),l8=V6.extend({method:Q(`resources/list`)}),u8=H6.extend({resources:m2(s8)}),d8=V6.extend({method:Q(`resources/templates/list`)}),f8=H6.extend({resourceTemplates:m2(c8)}),p8=r6.extend({uri:X()}),m8=p8,h8=o6.extend({method:Q(`resources/read`),params:m8}),g8=l6.extend({contents:m2(v2([n8,i8]))}),_8=c6.extend({method:Q(`notifications/resources/list_changed`),params:s6.optional()}),v8=p8,y8=o6.extend({method:Q(`resources/subscribe`),params:v8}),b8=p8,x8=o6.extend({method:Q(`resources/unsubscribe`),params:b8}),S8=s6.extend({uri:X()}),C8=c6.extend({method:Q(`notifications/resources/updated`),params:S8}),w8=Z({name:X(),description:M2(X()),required:M2(n2())}),T8=Z({...T6.shape,...w6.shape,description:M2(X()),arguments:M2(m2(w8)),_meta:M2(_2({}))}),E8=V6.extend({method:Q(`prompts/list`)}),D8=H6.extend({prompts:m2(T8)}),O8=r6.extend({name:X(),arguments:C2(X(),X()).optional()}),k8=o6.extend({method:Q(`prompts/get`),params:O8}),A8=Z({type:Q(`text`),text:X(),annotations:o8.optional(),_meta:C2(X(),u2()).optional()}),j8=Z({type:Q(`image`),data:r8,mimeType:X(),annotations:o8.optional(),_meta:C2(X(),u2()).optional()}),M8=Z({type:Q(`audio`),data:r8,mimeType:X(),annotations:o8.optional(),_meta:C2(X(),u2()).optional()}),N8=Z({type:Q(`tool_use`),name:X(),id:X(),input:C2(X(),u2()),_meta:C2(X(),u2()).optional()}),P8=Z({type:Q(`resource`),resource:v2([n8,i8]),annotations:o8.optional(),_meta:C2(X(),u2()).optional()}),F8=s8.extend({type:Q(`resource_link`)}),I8=v2([A8,j8,M8,F8,P8]),L8=Z({role:a8,content:I8}),R8=l6.extend({description:X().optional(),messages:m2(L8)}),z8=c6.extend({method:Q(`notifications/prompts/list_changed`),params:s6.optional()}),B8=Z({title:X().optional(),readOnlyHint:n2().optional(),destructiveHint:n2().optional(),idempotentHint:n2().optional(),openWorldHint:n2().optional()}),V8=Z({taskSupport:O2([`required`,`optional`,`forbidden`]).optional()}),H8=Z({...T6.shape,...w6.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:C2(X(),Z3).optional(),required:m2(X()).optional()}).catchall(u2()),outputSchema:Z({type:Q(`object`),properties:C2(X(),Z3).optional(),required:m2(X()).optional()}).catchall(u2()).optional(),annotations:B8.optional(),execution:V8.optional(),_meta:C2(X(),u2()).optional()}),U8=V6.extend({method:Q(`tools/list`)}),W8=H6.extend({tools:m2(H8)}),G8=l6.extend({content:m2(I8).default([]),structuredContent:C2(X(),u2()).optional(),isError:n2().optional()});G8.or(l6.extend({toolResult:u2()}));var K8=i6.extend({name:X(),arguments:C2(X(),u2()).optional()}),q8=o6.extend({method:Q(`tools/call`),params:K8}),J8=c6.extend({method:Q(`notifications/tools/list_changed`),params:s6.optional()});Z({autoRefresh:n2().default(!0),debounceMs:X0().int().nonnegative().default(300)});var Y8=O2([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),X8=r6.extend({level:Y8}),Z8=o6.extend({method:Q(`logging/setLevel`),params:X8}),Q8=s6.extend({level:Y8,logger:X().optional(),data:u2()}),$8=c6.extend({method:Q(`notifications/message`),params:Q8}),e5=Z({hints:m2(Z({name:X().optional()})).optional(),costPriority:X0().min(0).max(1).optional(),speedPriority:X0().min(0).max(1).optional(),intelligencePriority:X0().min(0).max(1).optional()}),t5=Z({mode:O2([`auto`,`required`,`none`]).optional()}),n5=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:m2(I8).default([]),structuredContent:Z({}).loose().optional(),isError:n2().optional(),_meta:C2(X(),u2()).optional()}),r5=b2(`type`,[A8,j8,M8]),i5=b2(`type`,[A8,j8,M8,N8,n5]),a5=Z({role:a8,content:v2([i5,m2(i5)]),_meta:C2(X(),u2()).optional()}),o5=i6.extend({messages:m2(a5),modelPreferences:e5.optional(),systemPrompt:X().optional(),includeContext:O2([`none`,`thisServer`,`allServers`]).optional(),temperature:X0().optional(),maxTokens:X0().int(),stopSequences:m2(X()).optional(),metadata:Z3.optional(),tools:m2(H8).optional(),toolChoice:t5.optional()}),s5=o6.extend({method:Q(`sampling/createMessage`),params:o5}),c5=l6.extend({model:X(),stopReason:M2(O2([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:a8,content:r5}),l5=l6.extend({model:X(),stopReason:M2(O2([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:a8,content:v2([i5,m2(i5)])}),u5=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:n2().optional()}),d5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:X0().optional(),maxLength:X0().optional(),format:O2([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),f5=Z({type:O2([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:X0().optional(),maximum:X0().optional(),default:X0().optional()}),p5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:m2(X()),default:X().optional()}),m5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:m2(Z({const:X(),title:X()})),default:X().optional()}),h5=v2([v2([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:m2(X()),enumNames:m2(X()).optional(),default:X().optional()}),v2([p5,m5]),v2([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:X0().optional(),maxItems:X0().optional(),items:Z({type:Q(`string`),enum:m2(X())}),default:m2(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:X0().optional(),maxItems:X0().optional(),items:Z({anyOf:m2(Z({const:X(),title:X()}))}),default:m2(X()).optional()})])]),u5,d5,f5]),g5=v2([i6.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:C2(X(),h5),required:m2(X()).optional()})}),i6.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),_5=o6.extend({method:Q(`elicitation/create`),params:g5}),v5=s6.extend({elicitationId:X()}),y5=c6.extend({method:Q(`notifications/elicitation/complete`),params:v5}),b5=l6.extend({action:O2([`accept`,`decline`,`cancel`]),content:n4(e=>e===null?void 0:e,C2(X(),v2([X(),X0(),n2(),m2(X())])).optional())}),x5=Z({type:Q(`ref/resource`),uri:X()}),S5=Z({type:Q(`ref/prompt`),name:X()}),C5=r6.extend({ref:v2([S5,x5]),argument:Z({name:X(),value:X()}),context:Z({arguments:C2(X(),X()).optional()}).optional()}),w5=o6.extend({method:Q(`completion/complete`),params:C5}),T5=l6.extend({completion:_2({values:m2(X()).max(100),total:M2(X0().int()),hasMore:M2(n2())})}),E5=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:C2(X(),u2()).optional()}),D5=o6.extend({method:Q(`roots/list`),params:r6.optional()}),O5=l6.extend({roots:m2(E5)}),k5=c6.extend({method:Q(`notifications/roots/list_changed`),params:s6.optional()});v2([I6,M6,w5,Z8,k8,E8,l8,d8,h8,y8,x8,q8,U8,J6,X6,Z6,$6]),v2([C6,z6,F6,k5,q6]),v2([x6,c5,l5,b5,O5,Y6,Q6,G6]),v2([I6,s5,_5,D5,J6,X6,Z6,$6]),v2([C6,z6,$8,C8,_8,J8,z8,q6,y5]),v2([x6,P6,T5,R8,D8,u8,f8,g8,G8,W8,Y6,Q6,G6]);var A5=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===_6.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new j5(e.elicitations,n)}return new e(t,n,r)}},j5=class extends A5{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(_6.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function M5(e){return e===`completed`||e===`failed`||e===`cancelled`}function N5(e){let t=U1(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=W1(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function P5(e,t){let n=H1(e,t);if(!n.success)throw n.error;return n.data}var F5=class{constructor(e){this._options=e,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(C6,e=>{this._oncancel(e)}),this.setNotificationHandler(z6,e=>{this._onprogress(e)}),this.setRequestHandler(I6,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(J6,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new A5(_6.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(X6,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r){if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new A5(e.error.code,e.error.message,e.error.data))}}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new A5(_6.InvalidParams,`Task not found: ${r}`);if(!M5(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(M5(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[X3]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Z6,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new A5(_6.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler($6,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new A5(_6.InvalidParams,`Task not found: ${e.params.taskId}`);if(M5(n.status))throw new A5(_6.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new A5(_6.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof A5?e:new A5(_6.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),A5.fromError(_6.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){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=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),g6(e)||y6(e)?this._onresponse(e):f6(e)?this._onrequest(e,t):m6(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=A5.fromError(_6.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[X3]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:_6.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=a6(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new A5(_6.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:_6.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),g6(e)?n(e):n(new A5(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(g6(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),g6(e)?r(e):r(A5.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof A5?e:new A5(_6.InternalError,String(e))}}return}let i;try{let r=await this.request(e,G6,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new A5(_6.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},M5(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new A5(_6.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new A5(_6.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof A5?e:new A5(_6.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[X3]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof A5?e:new A5(_6.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=H1(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(A5.fromError(_6.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Y6,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Q6,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},e8,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[X3]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[X3]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[X3]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=N5(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=P5(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=N5(e);this._notificationHandlers.set(n,n=>{let r=P5(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&f6(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new A5(_6.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new A5(_6.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new A5(_6.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new A5(_6.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=q6.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),M5(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new A5(_6.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(M5(a.status))throw new A5(_6.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=q6.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),M5(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function I5(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function L5(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=I5(a)&&I5(i)?{...a,...i}:i}return n}var R5=`modulepreload`,z5=function(e,t){return new URL(e,t).href},B5={},V5=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=z5(t,n),t=s(t),t in B5)return;B5[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:R5,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};Y3(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var H5=class extends F5{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},U5=`2026-01-26`,W5=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=b6.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},G5=v2([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),K5=v2([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),q5=C2(v2([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).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\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),_2([X(),o2()]).describe(`Style variables for theming MCP apps. +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),v2([X(),s2()]).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.). @@ -107,10 +107,10 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var q5=Z({isError:t2().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),J5=Z({isError:t2().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Y5=Z({isError:t2().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var X5=Z({connectDomains:p2(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var J5=Z({isError:n2().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Y5=Z({isError:n2().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),X5=Z({isError:n2().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var Z5=Z({connectDomains:m2(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:p2(X()).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 → no network resources (secure default)"),frameDomains:p2(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:p2(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Z5=Z({camera:Z({}).optional().describe(`Request camera access. +- Empty or omitted → no network connections (secure default)`),resourceDomains:m2(X()).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 → no network resources (secure default)"),frameDomains:m2(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:m2(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Q5=Z({camera:Z({}).optional().describe(`Request camera access. Maps to Permission Policy \`camera\` feature.`),microphone:Z({}).optional().describe(`Request microphone access. @@ -118,7 +118,7 @@ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:Z({}).optional().describe(`Request clipboard write access. -Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:Y0().optional().describe(`New width in pixels.`),height:Y0().optional().describe(`New height in pixels.`)})});var Q5=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:S2(X(),l2().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),$5=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:S2(X(),l2().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),e7=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),t7=Z({fonts:X().optional()}),n7=Z({variables:K5.optional().describe(`CSS variables for theming the app.`),css:t7.optional().describe(`CSS blocks that apps can inject.`)}),r7=Z({method:Q(`ui/resource-teardown`),params:Z({})});S2(X(),l2());var i7=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var a7=Z({experimental:S2(X(),S2(X(),c2()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:t2().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:t2().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:Z5.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:X5.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:i7.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:i7.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).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.")}),o7=Z({experimental:S2(X(),S2(X(),c2()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:t2().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:p2(G5).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:X5.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Z5.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. +Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:X0().optional().describe(`New width in pixels.`),height:X0().optional().describe(`New height in pixels.`)})});var $5=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:C2(X(),u2().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),e7=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:C2(X(),u2().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),t7=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),n7=Z({fonts:X().optional()}),r7=Z({variables:q5.optional().describe(`CSS variables for theming the app.`),css:n7.optional().describe(`CSS blocks that apps can inject.`)}),i7=Z({method:Q(`ui/resource-teardown`),params:Z({})});C2(X(),u2());var a7=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var o7=Z({experimental:C2(X(),C2(X(),l2()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:n2().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:n2().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:Q5.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Z5.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:a7.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:a7.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).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.")}),s7=Z({experimental:C2(X(),C2(X(),l2()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:n2().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:m2(K5).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:Z5.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Q5.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. @@ -126,16 +126,16 @@ - 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:t2().optional().describe(`Visual boundary preference - true if view prefers a visible border. +If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:n2().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`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:G5.describe(`The display mode being requested.`)})});var s7=Z({mode:G5.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),c7=_2([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:p2(c7).optional().describe(`Who can access this tool. Default: ["model", "app"] +- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:K5.describe(`The display mode being requested.`)})});var c7=Z({mode:K5.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),l7=v2([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:m2(l7).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:u2().optional(),permissions:u2().optional()}),Z({mimeTypes:p2(X()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Z({method:Q(`ui/download-file`),params:Z({contents:p2(_2([N8,P8])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Z({method:Q(`ui/message`),params:Z({role:Q(`user`).describe(`Message role, currently only "user" is supported.`),content:p2(F8).describe(`Message content blocks (text, image, etc.).`)})}),Z({method:Q(`ui/notifications/sandbox-resource-ready`),params:Z({html:X().describe(`HTML content to load into the inner iframe.`),sandbox:X().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:X5.optional().describe(`CSP configuration from resource metadata.`),permissions:Z5.optional().describe(`Sandbox permissions from resource metadata.`)})});var l7=Z({method:Q(`ui/notifications/tool-result`),params:W8.describe(`Standard MCP tool execution result.`)}),u7=Z({toolInfo:Z({id:l6.optional().describe(`JSON-RPC id of the tools/call request.`),tool:V8.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:W5.optional().describe(`Current color theme preference.`),styles:n7.optional().describe(`Style configuration for theming the app.`),displayMode:G5.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:p2(G5).optional().describe(`Display modes the host supports.`),containerDimensions:_2([Z({height:Y0().describe(`Fixed container height in pixels.`)}),Z({maxHeight:_2([Y0(),o2()]).optional().describe(`Maximum container height in pixels.`)})]).and(_2([Z({width:Y0().describe(`Fixed container width in pixels.`)}),Z({maxWidth:_2([Y0(),o2()]).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:X().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:X().optional().describe(`User's timezone in IANA format.`),userAgent:X().optional().describe(`Host application identifier.`),platform:_2([Q(`web`),Q(`desktop`),Q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:Z({touch:t2().optional().describe(`Whether the device supports touch input.`),hover:t2().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:Z({top:Y0().describe(`Top safe area inset in pixels.`),right:Y0().describe(`Right safe area inset in pixels.`),bottom:Y0().describe(`Bottom safe area inset in pixels.`),left:Y0().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),d7=Z({method:Q(`ui/notifications/host-context-changed`),params:u7.describe(`Partial context update containing only changed fields.`)});Z({method:Q(`ui/update-model-context`),params:Z({content:p2(F8).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:S2(X(),l2().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),Z({method:Q(`ui/initialize`),params:Z({appInfo:T6.describe(`App identification (name and version).`),appCapabilities:o7.describe(`Features and capabilities this app provides.`),protocolVersion:X().describe(`Protocol version this app supports.`)})});var f7=Z({protocolVersion:X().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:T6.describe(`Host application identification and version.`),hostCapabilities:a7.describe(`Features and capabilities provided by the host.`),hostContext:u7.describe(`Rich context about the host environment.`)}).passthrough(),p7={target:`draft-2020-12`};async function m7(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](p7);if(n.vendor===`zod`){let{z:n}=await B5(async()=>{let{z:e}=await Promise.resolve().then(()=>(J3(),K3));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.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 h7(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var g7=class e extends V5{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() 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(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Q5,toolinputpartial:$5,toolresult:l7,toolcancelled:e7,hostcontextchanged:d7};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" 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(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||KH({jitless:!0}),this.setRequestHandler(F6,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=I5(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await h7(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await h7(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await m7(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await m7(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(r7,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(K8,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(H8,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},W8,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},h8,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},l8,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?c5:s5;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Y5,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},b6,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},q5,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},J5,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},s7,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new U5(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:H5}},f7,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function _7({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(!1),[l,u]=(0,G.useState)(null);return(0,G.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new U5(window.parent,window.parent);if(s=new g7(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function v7(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)({}),[a,o]=(0,G.useState)(),[s,c]=(0,G.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=_7({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,G.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function y7(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}ok([Zb,zA]);function b7(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=v7(`Fanout service performance`),[o,s]=(0,G.useState)(`activity`),c=r?.theme===`dark`;return(0,K.jsxs)(YL,{dark:c,children:[(0,K.jsx)(XL,{eyebrow:`Trends and latency`,title:i?.data.service||`System performance`,summary:i?`Traffic, latency, and errors ${i.data.service?`for ${i.data.service}`:`across all services`}`:void 0,onRefresh:()=>t(`service_performance`),disabled:!e}),(0,K.jsx)(ZL,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Loading performance signals…`:void 0}),i&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(QL,{active:o,onChange:s,items:[{id:`activity`,label:`Activity`},{id:`latency`,label:`Latency map`},{id:`endpoints`,label:`Endpoints`,count:i.data.endpoints.length},{id:`compare`,label:`Compare`}]}),o===`activity`&&(0,K.jsx)(x7,{data:i.data,dark:c}),o===`latency`&&(0,K.jsx)(C7,{data:i.data,dark:c}),o===`endpoints`&&(0,K.jsx)(w7,{endpoints:i.data.endpoints,onEndpoint:t=>y7(e,`Investigate ${t.method} ${t.path}. Explain its latency and errors.`)}),o===`compare`&&(0,K.jsx)(T7,{data:i.data}),(0,K.jsx)(eR,{left:GH(i.provenance.window),right:`Updated ${new Date(i.provenance.generated_at).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`})]})]})}function x7({data:e,dark:t}){let n=e.points.at(-1);if(!n)return(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(ML,{size:20,weight:`duotone`}),title:`No activity in this window`,children:`Trends will appear as activity is recorded.`});let r=e.points.map(e=>e.time);return(0,K.jsxs)(AI,{px:{base:`md`,sm:`lg`},pb:`md`,children:[(0,K.jsxs)(EI,{cols:{base:1,xs:3},spacing:`sm`,children:[(0,K.jsx)(tR,{label:`Operations`,value:HH.format(n.spans)}),(0,K.jsx)(tR,{label:`P95 latency`,value:WH(n.p95_ms),color:n.p95_ms>=750?`warn`:`ok`}),(0,K.jsx)(tR,{label:`Error rate`,value:UH(n.error_rate),color:n.error_rate>=.01?`bad`:`ok`})]}),(0,K.jsx)(S7,{dark:t,labels:r,title:`Traffic and logs`,series:[{name:`Operations`,data:e.points.map(e=>e.spans),color:sR(`operations`,t)},{name:`Logs`,data:e.points.map(e=>e.log_count),color:sR(`logs`,t)}]}),(0,K.jsx)(S7,{dark:t,labels:r,title:`Latency and error correlation`,series:[{name:`P95 latency`,data:e.points.map(e=>e.p95_ms),color:oR(t).warn},{name:`Error rate × 1000`,data:e.points.map(e=>e.error_rate*1e3),color:oR(t).bad}]})]})}function S7({labels:e,title:t,series:n,dark:r}){let i=(0,G.useMemo)(()=>{let t=aR(r);return{color:n.map(e=>e.color),grid:{left:42,right:18,top:42,bottom:30},legend:{top:5,left:0,textStyle:{color:t.muted,fontSize:10},icon:`circle`,itemWidth:7,itemHeight:7},tooltip:{trigger:`axis`,backgroundColor:t.surface,borderColor:t.border,textStyle:{color:t.text,fontSize:10}},xAxis:{type:`category`,data:e.map(e=>new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})),boundaryGap:!1,axisLine:{lineStyle:{color:t.border}},axisTick:{show:!1},axisLabel:{color:t.muted,fontSize:9,hideOverlap:!0}},yAxis:{type:`value`,splitLine:{lineStyle:{color:t.grid}},axisLabel:{color:t.muted,fontSize:9}},series:n.map(e=>({name:e.name,type:`line`,data:e.data,smooth:.22,showSymbol:!1,lineStyle:{width:2},areaStyle:{opacity:.045}}))}},[r,e,n]);return(0,K.jsxs)($P,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,K.jsx)(jF,{fw:650,size:`sm`,mb:`xs`,children:t}),(0,K.jsx)(VH,{option:i,height:210,label:t})]})}function C7({data:e,dark:t}){let n=(0,G.useMemo)(()=>({services:[...new Set(e.heatmap.map(e=>e.service))],times:[...new Set(e.heatmap.map(e=>e.time))],values:new Map(e.heatmap.map(e=>[`${e.service}\u0000${e.time}`,e.p95_ms])),max:Math.max(...e.heatmap.map(e=>e.p95_ms),1)}),[e.heatmap]);if(n.services.length===0)return(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(AL,{size:20,weight:`duotone`}),title:`No latency samples yet`,children:`The heatmap will compare service latency across time buckets.`});let r=aR(t),i={grid:{left:105,right:20,top:20,bottom:45},tooltip:{position:`top`,backgroundColor:r.surface,borderColor:r.border,textStyle:{color:r.text,fontSize:10},formatter:e=>`${n.services[e.data[1]]}
${WH(e.data[2])}`},xAxis:{type:`category`,data:n.times.map(e=>new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})),splitArea:{show:!0},axisLabel:{color:r.muted,fontSize:9,hideOverlap:!0},axisLine:{lineStyle:{color:r.border}}},yAxis:{type:`category`,data:n.services,splitArea:{show:!0},axisLabel:{color:r.text,fontSize:9},axisLine:{lineStyle:{color:r.border}}},visualMap:{min:0,max:n.max,calculable:!0,orient:`horizontal`,left:`center`,bottom:0,textStyle:{color:r.muted,fontSize:8},inRange:{color:[r.grid,oR(t).warn,oR(t).bad]}},series:[{type:`heatmap`,data:n.services.flatMap((e,t)=>n.times.map((r,i)=>[i,t,n.values.get(`${e}\u0000${r}`)??0]))}]};return(0,K.jsx)($P,{withBorder:!0,radius:`md`,mx:{base:`md`,sm:`lg`},mb:`md`,p:`xs`,children:(0,K.jsx)(VH,{option:i,height:Math.max(280,n.services.length*32+110),label:`Service P95 latency heatmap`})})}function w7({endpoints:e,onEndpoint:t}){let n=nR(e,8);return e.length===0?(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(EL,{size:20,weight:`duotone`}),title:`No endpoints detected`,children:`HTTP routes and span operations will appear here as traffic arrives.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(YI.ScrollContainer,{minWidth:700,children:(0,K.jsxs)(YI,{striped:!0,highlightOnHover:!0,verticalSpacing:`sm`,children:[(0,K.jsx)(YI.Thead,{children:(0,K.jsxs)(YI.Tr,{children:[(0,K.jsx)(YI.Th,{children:`Endpoint`}),(0,K.jsx)(YI.Th,{children:`Calls`}),(0,K.jsx)(YI.Th,{children:`P50`}),(0,K.jsx)(YI.Th,{children:`P95`}),(0,K.jsx)(YI.Th,{children:`P99`}),(0,K.jsx)(YI.Th,{children:`Errors`})]})}),(0,K.jsx)(YI.Tbody,{children:n.pageItems.map(e=>(0,K.jsxs)(YI.Tr,{tabIndex:0,onClick:()=>t(e),onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&t(e)},style:{cursor:`pointer`},children:[(0,K.jsxs)(YI.Td,{children:[(0,K.jsx)(PF,{variant:`light`,mr:`xs`,children:e.method}),(0,K.jsx)(jF,{component:`code`,size:`sm`,children:e.path})]}),(0,K.jsx)(YI.Td,{children:HH.format(e.calls)}),(0,K.jsx)(YI.Td,{children:WH(e.p50_ms)}),(0,K.jsx)(YI.Td,{children:WH(e.p95_ms)}),(0,K.jsx)(YI.Td,{children:WH(e.p99_ms)}),(0,K.jsx)(YI.Td,{children:(0,K.jsx)(jF,{c:iR(e.health),children:UH(e.error_rate)})})]},`${e.method}-${e.path}`))})]})}),(0,K.jsx)(rR,{...n,onChange:n.setPage})]})}function T7({data:e}){return e.comparison.length===0?(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(OL,{size:20,weight:`duotone`}),title:`Nothing to compare yet`,children:`Fanout compares the first and second half of the selected window.`}):(0,K.jsx)(YI.ScrollContainer,{minWidth:620,children:(0,K.jsxs)(YI,{striped:!0,verticalSpacing:`sm`,children:[(0,K.jsx)(YI.Thead,{children:(0,K.jsxs)(YI.Tr,{children:[(0,K.jsx)(YI.Th,{children:`Signal`}),(0,K.jsx)(YI.Th,{children:`Earlier`}),(0,K.jsx)(YI.Th,{children:`Change`}),(0,K.jsx)(YI.Th,{children:`Recent`})]})}),(0,K.jsx)(YI.Tbody,{children:e.comparison.map(e=>(0,K.jsxs)(YI.Tr,{children:[(0,K.jsxs)(YI.Td,{children:[(0,K.jsx)(jF,{fw:650,children:e.label}),(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,children:e.unit})]}),(0,K.jsx)(YI.Td,{children:E7(e.before,e.unit)}),(0,K.jsxs)(YI.Td,{children:[(0,K.jsxs)(PF,{color:e.direction===`improvement`?`ok`:e.direction===`regression`?`bad`:`gray`,variant:`light`,children:[e.change_pct>0?`↑`:e.change_pct<0?`↓`:`→`,` `,Math.abs(e.change_pct).toFixed(1),`%`]}),e.significant&&(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,mt:3,children:`notable`})]}),(0,K.jsx)(YI.Td,{children:E7(e.after,e.unit)})]},e.label))})]})})}function E7(e,t){return t===`ms`?WH(e):t===`%`?`${e.toFixed(2)}%`:HH.format(e)}(0,IL.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(b7,{})})); +- "app": Tool callable by the app from this server only`),csp:d2().optional(),permissions:d2().optional()}),Z({mimeTypes:m2(X()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Z({method:Q(`ui/download-file`),params:Z({contents:m2(v2([P8,F8])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Z({method:Q(`ui/message`),params:Z({role:Q(`user`).describe(`Message role, currently only "user" is supported.`),content:m2(I8).describe(`Message content blocks (text, image, etc.).`)})}),Z({method:Q(`ui/notifications/sandbox-resource-ready`),params:Z({html:X().describe(`HTML content to load into the inner iframe.`),sandbox:X().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Z5.optional().describe(`CSP configuration from resource metadata.`),permissions:Q5.optional().describe(`Sandbox permissions from resource metadata.`)})});var u7=Z({method:Q(`ui/notifications/tool-result`),params:G8.describe(`Standard MCP tool execution result.`)}),d7=Z({toolInfo:Z({id:u6.optional().describe(`JSON-RPC id of the tools/call request.`),tool:H8.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:G5.optional().describe(`Current color theme preference.`),styles:r7.optional().describe(`Style configuration for theming the app.`),displayMode:K5.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:m2(K5).optional().describe(`Display modes the host supports.`),containerDimensions:v2([Z({height:X0().describe(`Fixed container height in pixels.`)}),Z({maxHeight:v2([X0(),s2()]).optional().describe(`Maximum container height in pixels.`)})]).and(v2([Z({width:X0().describe(`Fixed container width in pixels.`)}),Z({maxWidth:v2([X0(),s2()]).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:X().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:X().optional().describe(`User's timezone in IANA format.`),userAgent:X().optional().describe(`Host application identifier.`),platform:v2([Q(`web`),Q(`desktop`),Q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:Z({touch:n2().optional().describe(`Whether the device supports touch input.`),hover:n2().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:Z({top:X0().describe(`Top safe area inset in pixels.`),right:X0().describe(`Right safe area inset in pixels.`),bottom:X0().describe(`Bottom safe area inset in pixels.`),left:X0().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),f7=Z({method:Q(`ui/notifications/host-context-changed`),params:d7.describe(`Partial context update containing only changed fields.`)});Z({method:Q(`ui/update-model-context`),params:Z({content:m2(I8).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:C2(X(),u2().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),Z({method:Q(`ui/initialize`),params:Z({appInfo:E6.describe(`App identification (name and version).`),appCapabilities:s7.describe(`Features and capabilities this app provides.`),protocolVersion:X().describe(`Protocol version this app supports.`)})});var p7=Z({protocolVersion:X().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:E6.describe(`Host application identification and version.`),hostCapabilities:o7.describe(`Features and capabilities provided by the host.`),hostContext:d7.describe(`Rich context about the host environment.`)}).passthrough(),m7={target:`draft-2020-12`};async function h7(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](m7);if(n.vendor===`zod`){let{z:n}=await V5(async()=>{let{z:e}=await Promise.resolve().then(()=>(Y3(),q3));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.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 g7(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var _7=class e extends H5{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() 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(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:$5,toolinputpartial:e7,toolresult:u7,toolcancelled:t7,hostcontextchanged:f7};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" 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(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||qH({jitless:!0}),this.setRequestHandler(I6,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=L5(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await g7(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await g7(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await h7(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await h7(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(i7,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(q8,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(U8,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},G8,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},g8,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},u8,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?l5:c5;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},X5,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},x6,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},J5,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Y5,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},c7,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new W5(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:U5}},p7,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function v7({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(!1),[l,u]=(0,G.useState)(null);return(0,G.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new W5(window.parent,window.parent);if(s=new _7(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function y7(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)({}),[a,o]=(0,G.useState)(),[s,c]=(0,G.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=v7({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,G.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function b7(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}ok([Zb,zA]);function x7(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=y7(`Fanout service performance`),[o,s]=(0,G.useState)(`activity`),c=r?.theme===`dark`;return(0,K.jsxs)(YL,{dark:c,children:[(0,K.jsx)(XL,{eyebrow:`Trends and latency`,title:i?.data.service||`System performance`,summary:i?`Traffic, latency, and errors ${i.data.service?`for ${i.data.service}`:`across all services`}`:void 0,onRefresh:()=>t(`service_performance`),disabled:!e}),(0,K.jsx)(ZL,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Loading performance signals…`:void 0}),i&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(QL,{active:o,onChange:s,items:[{id:`activity`,label:`Activity`},{id:`latency`,label:`Latency map`},{id:`endpoints`,label:`Endpoints`,count:i.data.endpoints.length},{id:`compare`,label:`Compare`}]}),o===`activity`&&(0,K.jsx)(S7,{data:i.data,dark:c,window:i.provenance.window}),o===`latency`&&(0,K.jsx)(w7,{data:i.data,dark:c,window:i.provenance.window}),o===`endpoints`&&(0,K.jsx)(T7,{endpoints:i.data.endpoints,onEndpoint:t=>b7(e,`Investigate ${t.method} ${t.path}. Explain its latency and errors.`)}),o===`compare`&&(0,K.jsx)(E7,{data:i.data}),(0,K.jsx)(eR,{left:GH(i.provenance.window),right:`Updated ${new Date(i.provenance.generated_at).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`})]})]})}function S7({data:e,dark:t,window:n}){let r=e.points.at(-1);if(!r)return(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(ML,{size:20,weight:`duotone`}),title:`No activity in this window`,children:`Trends will appear as activity is recorded.`});let i=e.points.map(e=>e.time);return(0,K.jsxs)(AI,{px:{base:`md`,sm:`lg`},pb:`md`,children:[(0,K.jsxs)(EI,{cols:{base:1,xs:3},spacing:`sm`,children:[(0,K.jsx)(tR,{label:`Operations`,value:HH.format(r.spans)}),(0,K.jsx)(tR,{label:`P95 latency`,value:WH(r.p95_ms),color:r.p95_ms>=750?`warn`:`ok`}),(0,K.jsx)(tR,{label:`Error rate`,value:UH(r.error_rate),color:r.error_rate>=.01?`bad`:`ok`})]}),(0,K.jsx)(C7,{dark:t,labels:i,title:`Traffic and logs`,window:n,series:[{name:`Operations`,data:e.points.map(e=>e.spans),color:sR(`operations`,t)},{name:`Logs`,data:e.points.map(e=>e.log_count),color:sR(`logs`,t)}]}),(0,K.jsx)(C7,{dark:t,labels:i,title:`Latency and error correlation`,window:n,series:[{name:`P95 latency`,data:e.points.map(e=>e.p95_ms),color:oR(t).warn},{name:`Error rate × 1000`,data:e.points.map(e=>e.error_rate*1e3),color:oR(t).bad}]})]})}function C7({labels:e,title:t,series:n,dark:r,window:i}){let a=(0,G.useMemo)(()=>{let t=aR(r);return{color:n.map(e=>e.color),grid:{left:42,right:18,top:42,bottom:30},legend:{top:5,left:0,textStyle:{color:t.muted,fontSize:10},icon:`circle`,itemWidth:7,itemHeight:7},tooltip:{trigger:`axis`,backgroundColor:t.surface,borderColor:t.border,textStyle:{color:t.text,fontSize:10}},xAxis:{type:`category`,data:e.map(e=>KH(e,i)),boundaryGap:!1,axisLine:{lineStyle:{color:t.border}},axisTick:{show:!1},axisLabel:{color:t.muted,fontSize:9,hideOverlap:!0}},yAxis:{type:`value`,splitLine:{lineStyle:{color:t.grid}},axisLabel:{color:t.muted,fontSize:9}},series:n.map(e=>({name:e.name,type:`line`,data:e.data,smooth:.22,showSymbol:!1,lineStyle:{width:2},areaStyle:{opacity:.045}}))}},[r,e,n,i]);return(0,K.jsxs)($P,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,K.jsx)(jF,{fw:650,size:`sm`,mb:`xs`,children:t}),(0,K.jsx)(VH,{option:a,height:210,label:t})]})}function w7({data:e,dark:t,window:n}){let r=(0,G.useMemo)(()=>({services:[...new Set(e.heatmap.map(e=>e.service))],times:[...new Set(e.heatmap.map(e=>e.time))],values:new Map(e.heatmap.map(e=>[`${e.service}\u0000${e.time}`,e.p95_ms])),max:Math.max(...e.heatmap.map(e=>e.p95_ms),1)}),[e.heatmap]);if(r.services.length===0)return(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(AL,{size:20,weight:`duotone`}),title:`No latency samples yet`,children:`The heatmap will compare service latency across time buckets.`});let i=aR(t),a={grid:{left:105,right:20,top:20,bottom:45},tooltip:{position:`top`,backgroundColor:i.surface,borderColor:i.border,textStyle:{color:i.text,fontSize:10},formatter:e=>`${r.services[e.data[1]]}
${WH(e.data[2])}`},xAxis:{type:`category`,data:r.times.map(e=>KH(e,n)),splitArea:{show:!0},axisLabel:{color:i.muted,fontSize:9,hideOverlap:!0},axisLine:{lineStyle:{color:i.border}}},yAxis:{type:`category`,data:r.services,splitArea:{show:!0},axisLabel:{color:i.text,fontSize:9},axisLine:{lineStyle:{color:i.border}}},visualMap:{min:0,max:r.max,calculable:!0,orient:`horizontal`,left:`center`,bottom:0,textStyle:{color:i.muted,fontSize:8},inRange:{color:[i.grid,oR(t).warn,oR(t).bad]}},series:[{type:`heatmap`,data:r.services.flatMap((e,t)=>r.times.map((n,i)=>[i,t,r.values.get(`${e}\u0000${n}`)??0]))}]};return(0,K.jsx)($P,{withBorder:!0,radius:`md`,mx:{base:`md`,sm:`lg`},mb:`md`,p:`xs`,children:(0,K.jsx)(VH,{option:a,height:Math.max(280,r.services.length*32+110),label:`Service P95 latency heatmap`})})}function T7({endpoints:e,onEndpoint:t}){let n=nR(e,8);return e.length===0?(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(EL,{size:20,weight:`duotone`}),title:`No endpoints detected`,children:`HTTP routes and span operations will appear here as traffic arrives.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(YI.ScrollContainer,{minWidth:700,children:(0,K.jsxs)(YI,{striped:!0,highlightOnHover:!0,verticalSpacing:`sm`,children:[(0,K.jsx)(YI.Thead,{children:(0,K.jsxs)(YI.Tr,{children:[(0,K.jsx)(YI.Th,{children:`Endpoint`}),(0,K.jsx)(YI.Th,{children:`Calls`}),(0,K.jsx)(YI.Th,{children:`P50`}),(0,K.jsx)(YI.Th,{children:`P95`}),(0,K.jsx)(YI.Th,{children:`P99`}),(0,K.jsx)(YI.Th,{children:`Errors`})]})}),(0,K.jsx)(YI.Tbody,{children:n.pageItems.map(e=>(0,K.jsxs)(YI.Tr,{tabIndex:0,onClick:()=>t(e),onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&t(e)},style:{cursor:`pointer`},children:[(0,K.jsxs)(YI.Td,{children:[(0,K.jsx)(PF,{variant:`light`,mr:`xs`,children:e.method}),(0,K.jsx)(jF,{component:`code`,size:`sm`,children:e.path})]}),(0,K.jsx)(YI.Td,{children:HH.format(e.calls)}),(0,K.jsx)(YI.Td,{children:WH(e.p50_ms)}),(0,K.jsx)(YI.Td,{children:WH(e.p95_ms)}),(0,K.jsx)(YI.Td,{children:WH(e.p99_ms)}),(0,K.jsx)(YI.Td,{children:(0,K.jsx)(jF,{c:iR(e.health),children:UH(e.error_rate)})})]},`${e.method}-${e.path}`))})]})}),(0,K.jsx)(rR,{...n,onChange:n.setPage})]})}function E7({data:e}){return e.comparison.length===0?(0,K.jsx)($L,{tall:!0,icon:(0,K.jsx)(OL,{size:20,weight:`duotone`}),title:`Nothing to compare yet`,children:`Fanout compares the first and second half of the selected window.`}):(0,K.jsx)(YI.ScrollContainer,{minWidth:620,children:(0,K.jsxs)(YI,{striped:!0,verticalSpacing:`sm`,children:[(0,K.jsx)(YI.Thead,{children:(0,K.jsxs)(YI.Tr,{children:[(0,K.jsx)(YI.Th,{children:`Signal`}),(0,K.jsx)(YI.Th,{children:`Earlier`}),(0,K.jsx)(YI.Th,{children:`Change`}),(0,K.jsx)(YI.Th,{children:`Recent`})]})}),(0,K.jsx)(YI.Tbody,{children:e.comparison.map(e=>(0,K.jsxs)(YI.Tr,{children:[(0,K.jsxs)(YI.Td,{children:[(0,K.jsx)(jF,{fw:650,children:e.label}),(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,children:e.unit})]}),(0,K.jsx)(YI.Td,{children:D7(e.before,e.unit)}),(0,K.jsxs)(YI.Td,{children:[(0,K.jsxs)(PF,{color:e.direction===`improvement`?`ok`:e.direction===`regression`?`bad`:`gray`,variant:`light`,children:[e.change_pct>0?`↑`:e.change_pct<0?`↓`:`→`,` `,Math.abs(e.change_pct).toFixed(1),`%`]}),e.significant&&(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,mt:3,children:`notable`})]}),(0,K.jsx)(YI.Td,{children:D7(e.after,e.unit)})]},e.label))})]})})}function D7(e,t){return t===`ms`?WH(e):t===`%`?`${e.toFixed(2)}%`:HH.format(e)}(0,IL.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(x7,{})}));
diff --git a/internal/mcp/describe.go b/internal/mcp/describe.go index fe380db49..77e849a28 100644 --- a/internal/mcp/describe.go +++ b/internal/mcp/describe.go @@ -78,7 +78,7 @@ func DescribeTools(ctx context.Context) ([]ToolDoc, error) { ctx, cancel := context.WithTimeout(ctx, 30*time.Second) defer cancel() - server := NewWithIntelligence(nil, dashboard.New(nil), describeIntelligence{}, "docgen") + server := NewWithIntelligence(nil, dashboard.New(nil, 30), describeIntelligence{}, "docgen") serverTransport, clientTransport := mcp.NewInMemoryTransports() diff --git a/internal/mcp/describe_test.go b/internal/mcp/describe_test.go index 6c6a30d28..517c2dc23 100644 --- a/internal/mcp/describe_test.go +++ b/internal/mcp/describe_test.go @@ -15,7 +15,7 @@ func TestDescribeToolsMatchesWhatAClientIsServed(t *testing.T) { t.Fatalf("DescribeTools: %v", err) } - server := NewWithIntelligence(nil, dashboard.New(nil), describeIntelligence{}, "test") + server := NewWithIntelligence(nil, dashboard.New(nil, 30), describeIntelligence{}, "test") session := connectTestClient(t, server, nil) listed, err := session.ListTools(context.Background(), nil) if err != nil { diff --git a/internal/mcp/server_test.go b/internal/mcp/server_test.go index 1193644fa..0feac6a79 100644 --- a/internal/mcp/server_test.go +++ b/internal/mcp/server_test.go @@ -36,7 +36,7 @@ func TestDashboardToolsUseAuthenticatedOwner(t *testing.T) { if _, err := database.DB.ExecContext(ctx, `INSERT INTO users(id,email,name,role,active) VALUES('owner','owner@example.test','Owner','admin',1)`); err != nil { t.Fatal(err) } - server := New(&fakeObservability{}, dashboard.New(database.DB), "test") + server := New(&fakeObservability{}, dashboard.New(database.DB, 30), "test") req := &mcp.CallToolRequest{Params: &mcp.CallToolParamsRaw{}, Extra: &mcp.RequestExtra{TokenInfo: &mcpgoauth.TokenInfo{UserID: "owner", Scopes: []string{dashboard.OAuthScope}}}} state := dashboard.State{Filters: dashboard.Filters{Window: "1h"}, Widgets: []dashboard.Widget{{ID: "health", Type: "overview", Title: "System health", Enabled: true}}, Layout: []dashboard.Layout{{I: "health", X: 0, Y: 0, W: 12, H: 3}}} _, output, err := server.dashboardCreate(ctx, req, DashboardCreateInput{Name: "AI overview", State: state}) @@ -70,7 +70,7 @@ func TestDashboardOwnerIgnoresSpoofedMetaWhenTokenPresent(t *testing.T) { t.Fatal(err) } } - server := New(&fakeObservability{}, dashboard.New(database.DB), "test") + server := New(&fakeObservability{}, dashboard.New(database.DB, 30), "test") // A remote client always carries TokenInfo (ProtectMCP guarantees it), so a // spoofed _meta owner key must lose to the token identity. req := &mcp.CallToolRequest{ diff --git a/ui/apps/src/format.ts b/ui/apps/src/format.ts index e0dc9922c..ad11aeb31 100644 --- a/ui/apps/src/format.ts +++ b/ui/apps/src/format.ts @@ -18,3 +18,18 @@ export function windowLabel(window: string) { if (minutes >= 60 && minutes % 60 === 0) return `Last ${minutes / 60}h`; return `Last ${Math.max(minutes, 1)}m`; } + +export function timelineTimestamp(value: string, window: string, seconds = false) { + const date = new Date(value); + if (Number.isNaN(date.valueOf())) return value; + const [startValue, endValue] = window.split("/"); + const start = new Date(startValue); + const end = new Date(endValue); + const multiDay = !Number.isNaN(start.valueOf()) && !Number.isNaN(end.valueOf()) && end.valueOf() - start.valueOf() > 24 * 60 * 60 * 1000; + return date.toLocaleString([], { + ...(multiDay ? { month: "short", day: "numeric" } as const : {}), + hour: "numeric", + minute: "2-digit", + ...(seconds ? { second: "2-digit" } as const : {}), + }); +} diff --git a/ui/apps/src/logs.tsx b/ui/apps/src/logs.tsx index bd4c1ab4c..a3397ae28 100644 --- a/ui/apps/src/logs.tsx +++ b/ui/apps/src/logs.tsx @@ -6,7 +6,7 @@ import { createRoot } from "react-dom/client"; import { EmptyState, MetaFooter, PageControls, ViewHeader, ViewShell, ViewStatus, chartTheme, statusHex, usePagedItems } from "./components"; import type { LogEntry, Logs, Result } from "./contracts"; import { EChart, useECharts } from "./echart"; -import { windowLabel } from "./format"; +import { timelineTimestamp, windowLabel } from "./format"; import { askAbout, useFanoutApp } from "./use-fanout-app"; import "./app.css"; @@ -23,34 +23,34 @@ function LogsApp() { {result && result.data.entries.length === 0 && <>} title="No logs matched">Try a wider time window, a different service, or a less restrictive search.} {result && result.data.entries.length > 0 && <> - + setSearch(event.currentTarget.value)} placeholder="Filter visible logs…" leftSection={} w={{ base: "100%", xs: 250 }} /> - askAbout(app, `Investigate trace ${entry.trace_id} related to this ${entry.severity} log from ${entry.service}.`)} /> + askAbout(app, `Investigate trace ${entry.trace_id} related to this ${entry.severity} log from ${entry.service}.`)} /> } ; } -function LogHistogram({ data, dark }: { data: Logs; dark: boolean }) { +function LogHistogram({ data, dark, window }: { data: Logs; dark: boolean; window: string }) { const option = useMemo(() => { const colors = chartTheme(dark); const times = [...new Set(data.buckets.map((bucket) => bucket.time))]; const severities = [...new Set(data.buckets.map((bucket) => bucket.severity))]; const values = new Map(data.buckets.map((bucket) => [`${bucket.time}\u0000${bucket.severity}`, bucket.count])); - return { color: severities.map((severity) => severityHex(severity, dark)), grid: { left: 42, right: 18, top: 30, bottom: 28 }, tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, legend: { top: 0, right: 0, textStyle: { color: colors.muted, fontSize: 9 }, itemWidth: 7, itemHeight: 7, icon: "circle" }, xAxis: { type: "category", data: times.map((time) => new Date(time).toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })), axisLabel: { color: colors.muted, fontSize: 8, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "value", minInterval: 1, splitLine: { lineStyle: { color: colors.grid } }, axisLabel: { color: colors.muted, fontSize: 8 } }, series: severities.map((severity) => ({ name: severity, type: "bar", stack: "logs", barMaxWidth: 22, data: times.map((time) => values.get(`${time}\u0000${severity}`) ?? 0), itemStyle: { borderRadius: [2, 2, 0, 0] } })) }; - }, [dark, data.buckets]); + return { color: severities.map((severity) => severityHex(severity, dark)), grid: { left: 42, right: 18, top: 30, bottom: 28 }, tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, legend: { top: 0, right: 0, textStyle: { color: colors.muted, fontSize: 9 }, itemWidth: 7, itemHeight: 7, icon: "circle" }, xAxis: { type: "category", data: times.map((time) => timelineTimestamp(time, window)), axisLabel: { color: colors.muted, fontSize: 8, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "value", minInterval: 1, splitLine: { lineStyle: { color: colors.grid } }, axisLabel: { color: colors.muted, fontSize: 8 } }, series: severities.map((severity) => ({ name: severity, type: "bar", stack: "logs", barMaxWidth: 22, data: times.map((time) => values.get(`${time}\u0000${severity}`) ?? 0), itemStyle: { borderRadius: [2, 2, 0, 0] } })) }; + }, [dark, data.buckets, window]); return ; } -function LogList({ entries, onTrace }: { entries: LogEntry[]; onTrace: (entry: LogEntry) => void }) { +function LogList({ entries, onTrace, window }: { entries: LogEntry[]; onTrace: (entry: LogEntry) => void; window: string }) { const logs = usePagedItems(entries, 6); if (entries.length === 0) return } title="No visible matches">Adjust the local severity or text filter.; return <>TimeLevelServiceMessage - {logs.pageItems.map((entry, index) => {new Date(entry.time).toLocaleTimeString([], { hour: "numeric", minute: "2-digit", second: "2-digit" })}{entry.severity || "LOG"}{entry.service}{entry.body}{entry.trace_id && onTrace(entry)}>})} + {logs.pageItems.map((entry, index) => {timelineTimestamp(entry.time, window, true)}{entry.severity || "LOG"}{entry.service}{entry.body}{entry.trace_id && onTrace(entry)}>})}
; } diff --git a/ui/apps/src/performance.tsx b/ui/apps/src/performance.tsx index 0ae096dd7..0fbce4d23 100644 --- a/ui/apps/src/performance.tsx +++ b/ui/apps/src/performance.tsx @@ -6,7 +6,7 @@ import { createRoot } from "react-dom/client"; import { EmptyState, MetaFooter, Metric, PageControls, Tabs, ViewHeader, ViewShell, ViewStatus, chartTheme, healthColor, seriesColor, statusHex, usePagedItems } from "./components"; import type { Endpoint, Performance, Result } from "./contracts"; import { EChart, useECharts } from "./echart"; -import { duration, integer, percent, windowLabel } from "./format"; +import { duration, integer, percent, timelineTimestamp, windowLabel } from "./format"; import { askAbout, useFanoutApp } from "./use-fanout-app"; import "./app.css"; @@ -22,8 +22,8 @@ function PerformanceApp() { {result && <> - {view === "activity" && } - {view === "latency" && } + {view === "activity" && } + {view === "latency" && } {view === "endpoints" && askAbout(app, `Investigate ${endpoint.method} ${endpoint.path}. Explain its latency and errors.`)} />} {view === "compare" && } @@ -31,26 +31,26 @@ function PerformanceApp() { ; } -function ActivityView({ data, dark }: { data: Performance; dark: boolean }) { +function ActivityView({ data, dark, window }: { data: Performance; dark: boolean; window: string }) { const last = data.points.at(-1); if (!last) return } title="No activity in this window">Trends will appear as activity is recorded.; const labels = data.points.map((point) => point.time); return = 750 ? "warn" : "ok"} />= .01 ? "bad" : "ok"} /> - point.spans), color: seriesColor("operations", dark) }, { name: "Logs", data: data.points.map((point) => point.log_count), color: seriesColor("logs", dark) }]} /> - point.p95_ms), color: statusHex(dark).warn }, { name: "Error rate × 1000", data: data.points.map((point) => point.error_rate * 1000), color: statusHex(dark).bad }]} /> + point.spans), color: seriesColor("operations", dark) }, { name: "Logs", data: data.points.map((point) => point.log_count), color: seriesColor("logs", dark) }]} /> + point.p95_ms), color: statusHex(dark).warn }, { name: "Error rate × 1000", data: data.points.map((point) => point.error_rate * 1000), color: statusHex(dark).bad }]} /> ; } -function PerformanceChart({ labels, title, series, dark }: { labels: string[]; title: string; series: Array<{ name: string; data: number[]; color: string }>; dark: boolean }) { +function PerformanceChart({ labels, title, series, dark, window }: { labels: string[]; title: string; series: Array<{ name: string; data: number[]; color: string }>; dark: boolean; window: string }) { const option = useMemo(() => { const colors = chartTheme(dark); - return { color: series.map((item) => item.color), grid: { left: 42, right: 18, top: 42, bottom: 30 }, legend: { top: 5, left: 0, textStyle: { color: colors.muted, fontSize: 10 }, icon: "circle", itemWidth: 7, itemHeight: 7 }, tooltip: { trigger: "axis", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, xAxis: { type: "category", data: labels.map((value) => new Date(value).toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })), boundaryGap: false, axisLine: { lineStyle: { color: colors.border } }, axisTick: { show: false }, axisLabel: { color: colors.muted, fontSize: 9, hideOverlap: true } }, yAxis: { type: "value", splitLine: { lineStyle: { color: colors.grid } }, axisLabel: { color: colors.muted, fontSize: 9 } }, series: series.map((item) => ({ name: item.name, type: "line", data: item.data, smooth: .22, showSymbol: false, lineStyle: { width: 2 }, areaStyle: { opacity: .045 } })) }; - }, [dark, labels, series]); + return { color: series.map((item) => item.color), grid: { left: 42, right: 18, top: 42, bottom: 30 }, legend: { top: 5, left: 0, textStyle: { color: colors.muted, fontSize: 10 }, icon: "circle", itemWidth: 7, itemHeight: 7 }, tooltip: { trigger: "axis", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, xAxis: { type: "category", data: labels.map((value) => timelineTimestamp(value, window)), boundaryGap: false, axisLine: { lineStyle: { color: colors.border } }, axisTick: { show: false }, axisLabel: { color: colors.muted, fontSize: 9, hideOverlap: true } }, yAxis: { type: "value", splitLine: { lineStyle: { color: colors.grid } }, axisLabel: { color: colors.muted, fontSize: 9 } }, series: series.map((item) => ({ name: item.name, type: "line", data: item.data, smooth: .22, showSymbol: false, lineStyle: { width: 2 }, areaStyle: { opacity: .045 } })) }; + }, [dark, labels, series, window]); return {title}; } -function HeatmapView({ data, dark }: { data: Performance; dark: boolean }) { +function HeatmapView({ data, dark, window }: { data: Performance; dark: boolean; window: string }) { const model = useMemo(() => { const services = [...new Set(data.heatmap.map((point) => point.service))]; const times = [...new Set(data.heatmap.map((point) => point.time))]; @@ -59,7 +59,7 @@ function HeatmapView({ data, dark }: { data: Performance; dark: boolean }) { }, [data.heatmap]); if (model.services.length === 0) return } title="No latency samples yet">The heatmap will compare service latency across time buckets.; const colors = chartTheme(dark); - const option = { grid: { left: 105, right: 20, top: 20, bottom: 45 }, tooltip: { position: "top", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 }, formatter: (params: { data: [number, number, number] }) => `${model.services[params.data[1]]}
${duration(params.data[2])}` }, xAxis: { type: "category", data: model.times.map((time) => new Date(time).toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })), splitArea: { show: true }, axisLabel: { color: colors.muted, fontSize: 9, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "category", data: model.services, splitArea: { show: true }, axisLabel: { color: colors.text, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, visualMap: { min: 0, max: model.max, calculable: true, orient: "horizontal", left: "center", bottom: 0, textStyle: { color: colors.muted, fontSize: 8 }, inRange: { color: [colors.grid, statusHex(dark).warn, statusHex(dark).bad] } }, series: [{ type: "heatmap", data: model.services.flatMap((service, y) => model.times.map((time, x) => [x, y, model.values.get(`${service}\u0000${time}`) ?? 0])) }] }; + const option = { grid: { left: 105, right: 20, top: 20, bottom: 45 }, tooltip: { position: "top", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 }, formatter: (params: { data: [number, number, number] }) => `${model.services[params.data[1]]}
${duration(params.data[2])}` }, xAxis: { type: "category", data: model.times.map((time) => timelineTimestamp(time, window)), splitArea: { show: true }, axisLabel: { color: colors.muted, fontSize: 9, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "category", data: model.services, splitArea: { show: true }, axisLabel: { color: colors.text, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, visualMap: { min: 0, max: model.max, calculable: true, orient: "horizontal", left: "center", bottom: 0, textStyle: { color: colors.muted, fontSize: 8 }, inRange: { color: [colors.grid, statusHex(dark).warn, statusHex(dark).bad] } }, series: [{ type: "heatmap", data: model.services.flatMap((service, y) => model.times.map((time, x) => [x, y, model.values.get(`${service}\u0000${time}`) ?? 0])) }] }; return ; }