@omnitron-dev/omnitron 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +35 -0
- package/dist/cli/omnitron.d.ts +9 -0
- package/dist/cli/omnitron.d.ts.map +1 -0
- package/dist/cli/omnitron.js +768 -0
- package/dist/cli/omnitron.js.map +1 -0
- package/dist/cluster/cluster.rpc-service.d.ts +48 -0
- package/dist/cluster/cluster.rpc-service.d.ts.map +1 -0
- package/dist/cluster/cluster.rpc-service.js +105 -0
- package/dist/cluster/cluster.rpc-service.js.map +1 -0
- package/dist/cluster/config-sync.d.ts +89 -0
- package/dist/cluster/config-sync.d.ts.map +1 -0
- package/dist/cluster/config-sync.js +162 -0
- package/dist/cluster/config-sync.js.map +1 -0
- package/dist/cluster/index.d.ts +9 -0
- package/dist/cluster/index.d.ts.map +1 -0
- package/dist/cluster/index.js +7 -0
- package/dist/cluster/index.js.map +1 -0
- package/dist/cluster/leader-election.d.ts +145 -0
- package/dist/cluster/leader-election.d.ts.map +1 -0
- package/dist/cluster/leader-election.js +410 -0
- package/dist/cluster/leader-election.js.map +1 -0
- package/dist/cluster/slave-connector.d.ts +104 -0
- package/dist/cluster/slave-connector.d.ts.map +1 -0
- package/dist/cluster/slave-connector.js +316 -0
- package/dist/cluster/slave-connector.js.map +1 -0
- package/dist/commands/backup.d.ts +9 -0
- package/dist/commands/backup.d.ts.map +1 -0
- package/dist/commands/backup.js +81 -0
- package/dist/commands/backup.js.map +1 -0
- package/dist/commands/cluster.d.ts +9 -0
- package/dist/commands/cluster.d.ts.map +1 -0
- package/dist/commands/cluster.js +148 -0
- package/dist/commands/cluster.js.map +1 -0
- package/dist/commands/daemon-cmd.d.ts +11 -0
- package/dist/commands/daemon-cmd.d.ts.map +1 -0
- package/dist/commands/daemon-cmd.js +182 -0
- package/dist/commands/daemon-cmd.js.map +1 -0
- package/dist/commands/deploy.d.ts +17 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +110 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dev.d.ts +23 -0
- package/dist/commands/dev.d.ts.map +1 -0
- package/dist/commands/dev.js +76 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/discover.d.ts +9 -0
- package/dist/commands/discover.d.ts.map +1 -0
- package/dist/commands/discover.js +124 -0
- package/dist/commands/discover.js.map +1 -0
- package/dist/commands/env.d.ts +5 -0
- package/dist/commands/env.d.ts.map +1 -0
- package/dist/commands/env.js +30 -0
- package/dist/commands/env.js.map +1 -0
- package/dist/commands/exec.d.ts +5 -0
- package/dist/commands/exec.d.ts.map +1 -0
- package/dist/commands/exec.js +36 -0
- package/dist/commands/exec.js.map +1 -0
- package/dist/commands/fleet.d.ts +9 -0
- package/dist/commands/fleet.d.ts.map +1 -0
- package/dist/commands/fleet.js +136 -0
- package/dist/commands/fleet.js.map +1 -0
- package/dist/commands/health-check.d.ts +12 -0
- package/dist/commands/health-check.d.ts.map +1 -0
- package/dist/commands/health-check.js +91 -0
- package/dist/commands/health-check.js.map +1 -0
- package/dist/commands/health.d.ts +7 -0
- package/dist/commands/health.d.ts.map +1 -0
- package/dist/commands/health.js +44 -0
- package/dist/commands/health.js.map +1 -0
- package/dist/commands/infra.d.ts +32 -0
- package/dist/commands/infra.d.ts.map +1 -0
- package/dist/commands/infra.js +179 -0
- package/dist/commands/infra.js.map +1 -0
- package/dist/commands/init.d.ts +5 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +78 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/inspect.d.ts +7 -0
- package/dist/commands/inspect.d.ts.map +1 -0
- package/dist/commands/inspect.js +95 -0
- package/dist/commands/inspect.js.map +1 -0
- package/dist/commands/k8s.d.ts +7 -0
- package/dist/commands/k8s.d.ts.map +1 -0
- package/dist/commands/k8s.js +74 -0
- package/dist/commands/k8s.js.map +1 -0
- package/dist/commands/kb.d.ts +21 -0
- package/dist/commands/kb.d.ts.map +1 -0
- package/dist/commands/kb.js +137 -0
- package/dist/commands/kb.js.map +1 -0
- package/dist/commands/list.d.ts +7 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +77 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/logs.d.ts +17 -0
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/commands/logs.js +287 -0
- package/dist/commands/logs.js.map +1 -0
- package/dist/commands/metrics.d.ts +7 -0
- package/dist/commands/metrics.d.ts.map +1 -0
- package/dist/commands/metrics.js +64 -0
- package/dist/commands/metrics.js.map +1 -0
- package/dist/commands/monit.d.ts +7 -0
- package/dist/commands/monit.d.ts.map +1 -0
- package/dist/commands/monit.js +90 -0
- package/dist/commands/monit.js.map +1 -0
- package/dist/commands/node.d.ts +33 -0
- package/dist/commands/node.d.ts.map +1 -0
- package/dist/commands/node.js +169 -0
- package/dist/commands/node.js.map +1 -0
- package/dist/commands/pipeline.d.ts +9 -0
- package/dist/commands/pipeline.d.ts.map +1 -0
- package/dist/commands/pipeline.js +89 -0
- package/dist/commands/pipeline.js.map +1 -0
- package/dist/commands/project.d.ts +11 -0
- package/dist/commands/project.d.ts.map +1 -0
- package/dist/commands/project.js +54 -0
- package/dist/commands/project.js.map +1 -0
- package/dist/commands/reload.d.ts +5 -0
- package/dist/commands/reload.d.ts.map +1 -0
- package/dist/commands/reload.js +31 -0
- package/dist/commands/reload.js.map +1 -0
- package/dist/commands/remote.d.ts +13 -0
- package/dist/commands/remote.d.ts.map +1 -0
- package/dist/commands/remote.js +88 -0
- package/dist/commands/remote.js.map +1 -0
- package/dist/commands/restart.d.ts +5 -0
- package/dist/commands/restart.d.ts.map +1 -0
- package/dist/commands/restart.js +31 -0
- package/dist/commands/restart.js.map +1 -0
- package/dist/commands/scale.d.ts +5 -0
- package/dist/commands/scale.d.ts.map +1 -0
- package/dist/commands/scale.js +29 -0
- package/dist/commands/scale.js.map +1 -0
- package/dist/commands/secret.d.ts +14 -0
- package/dist/commands/secret.d.ts.map +1 -0
- package/dist/commands/secret.js +148 -0
- package/dist/commands/secret.js.map +1 -0
- package/dist/commands/stack.d.ts +18 -0
- package/dist/commands/stack.d.ts.map +1 -0
- package/dist/commands/stack.js +252 -0
- package/dist/commands/stack.js.map +1 -0
- package/dist/commands/start.d.ts +7 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +43 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/status.d.ts +9 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +70 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/stop.d.ts +10 -0
- package/dist/commands/stop.d.ts.map +1 -0
- package/dist/commands/stop.js +69 -0
- package/dist/commands/stop.js.map +1 -0
- package/dist/commands/up.d.ts +47 -0
- package/dist/commands/up.d.ts.map +1 -0
- package/dist/commands/up.js +278 -0
- package/dist/commands/up.js.map +1 -0
- package/dist/commands/webapp.d.ts +17 -0
- package/dist/commands/webapp.d.ts.map +1 -0
- package/dist/commands/webapp.js +103 -0
- package/dist/commands/webapp.js.map +1 -0
- package/dist/config/defaults.d.ts +22 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +76 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/config/define-app.d.ts +6 -0
- package/dist/config/define-app.d.ts.map +1 -0
- package/dist/config/define-app.js +38 -0
- package/dist/config/define-app.js.map +1 -0
- package/dist/config/define-ecosystem.d.ts +6 -0
- package/dist/config/define-ecosystem.d.ts.map +1 -0
- package/dist/config/define-ecosystem.js +21 -0
- package/dist/config/define-ecosystem.js.map +1 -0
- package/dist/config/define-system.d.ts +9 -0
- package/dist/config/define-system.d.ts.map +1 -0
- package/dist/config/define-system.js +106 -0
- package/dist/config/define-system.js.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +11 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +68 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/omnitron-config.schema.d.ts +14 -0
- package/dist/config/omnitron-config.schema.d.ts.map +1 -0
- package/dist/config/omnitron-config.schema.js +35 -0
- package/dist/config/omnitron-config.schema.js.map +1 -0
- package/dist/config/types.d.ts +807 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +7 -0
- package/dist/config/types.js.map +1 -0
- package/dist/daemon/daemon-client.d.ts +147 -0
- package/dist/daemon/daemon-client.d.ts.map +1 -0
- package/dist/daemon/daemon-client.js +256 -0
- package/dist/daemon/daemon-client.js.map +1 -0
- package/dist/daemon/daemon-entry.d.ts +9 -0
- package/dist/daemon/daemon-entry.d.ts.map +1 -0
- package/dist/daemon/daemon-entry.js +62 -0
- package/dist/daemon/daemon-entry.js.map +1 -0
- package/dist/daemon/daemon-scheduler.d.ts +32 -0
- package/dist/daemon/daemon-scheduler.d.ts.map +1 -0
- package/dist/daemon/daemon-scheduler.js +93 -0
- package/dist/daemon/daemon-scheduler.js.map +1 -0
- package/dist/daemon/daemon.d.ts +115 -0
- package/dist/daemon/daemon.d.ts.map +1 -0
- package/dist/daemon/daemon.js +1202 -0
- package/dist/daemon/daemon.js.map +1 -0
- package/dist/daemon/daemon.module.d.ts +50 -0
- package/dist/daemon/daemon.module.d.ts.map +1 -0
- package/dist/daemon/daemon.module.js +506 -0
- package/dist/daemon/daemon.module.js.map +1 -0
- package/dist/daemon/daemon.rpc-service.d.ts +122 -0
- package/dist/daemon/daemon.rpc-service.d.ts.map +1 -0
- package/dist/daemon/daemon.rpc-service.js +452 -0
- package/dist/daemon/daemon.rpc-service.js.map +1 -0
- package/dist/daemon/pid-manager.d.ts +43 -0
- package/dist/daemon/pid-manager.d.ts.map +1 -0
- package/dist/daemon/pid-manager.js +103 -0
- package/dist/daemon/pid-manager.js.map +1 -0
- package/dist/daemon/state-store.d.ts +26 -0
- package/dist/daemon/state-store.d.ts.map +1 -0
- package/dist/daemon/state-store.js +34 -0
- package/dist/daemon/state-store.js.map +1 -0
- package/dist/database/index.d.ts +10 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +10 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/migrate.d.ts +11 -0
- package/dist/database/migrate.d.ts.map +1 -0
- package/dist/database/migrate.js +62 -0
- package/dist/database/migrate.js.map +1 -0
- package/dist/database/migrations/001_initial_schema.d.ts +12 -0
- package/dist/database/migrations/001_initial_schema.d.ts.map +1 -0
- package/dist/database/migrations/001_initial_schema.js +246 -0
- package/dist/database/migrations/001_initial_schema.js.map +1 -0
- package/dist/database/migrations/002_metrics_raw.d.ts +17 -0
- package/dist/database/migrations/002_metrics_raw.d.ts.map +1 -0
- package/dist/database/migrations/002_metrics_raw.js +44 -0
- package/dist/database/migrations/002_metrics_raw.js.map +1 -0
- package/dist/database/migrations/003_pipelines_traces.d.ts +14 -0
- package/dist/database/migrations/003_pipelines_traces.d.ts.map +1 -0
- package/dist/database/migrations/003_pipelines_traces.js +108 -0
- package/dist/database/migrations/003_pipelines_traces.js.map +1 -0
- package/dist/database/migrations/004_sync_buffer.d.ts +17 -0
- package/dist/database/migrations/004_sync_buffer.d.ts.map +1 -0
- package/dist/database/migrations/004_sync_buffer.js +59 -0
- package/dist/database/migrations/004_sync_buffer.js.map +1 -0
- package/dist/database/migrations/005_node_health_checks.d.ts +11 -0
- package/dist/database/migrations/005_node_health_checks.d.ts.map +1 -0
- package/dist/database/migrations/005_node_health_checks.js +71 -0
- package/dist/database/migrations/005_node_health_checks.js.map +1 -0
- package/dist/database/schema.d.ts +217 -0
- package/dist/database/schema.d.ts.map +1 -0
- package/dist/database/schema.js +9 -0
- package/dist/database/schema.js.map +1 -0
- package/dist/execution/execution.service.d.ts +72 -0
- package/dist/execution/execution.service.d.ts.map +1 -0
- package/dist/execution/execution.service.js +191 -0
- package/dist/execution/execution.service.js.map +1 -0
- package/dist/execution/index.d.ts +3 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +2 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/config-normalizer.d.ts +13 -0
- package/dist/infrastructure/config-normalizer.d.ts.map +1 -0
- package/dist/infrastructure/config-normalizer.js +84 -0
- package/dist/infrastructure/config-normalizer.js.map +1 -0
- package/dist/infrastructure/container-runtime.d.ts +63 -0
- package/dist/infrastructure/container-runtime.d.ts.map +1 -0
- package/dist/infrastructure/container-runtime.js +304 -0
- package/dist/infrastructure/container-runtime.js.map +1 -0
- package/dist/infrastructure/gateway-generator.d.ts +63 -0
- package/dist/infrastructure/gateway-generator.d.ts.map +1 -0
- package/dist/infrastructure/gateway-generator.js +253 -0
- package/dist/infrastructure/gateway-generator.js.map +1 -0
- package/dist/infrastructure/index.d.ts +5 -0
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/infrastructure/index.js +5 -0
- package/dist/infrastructure/index.js.map +1 -0
- package/dist/infrastructure/infrastructure-gate.d.ts +48 -0
- package/dist/infrastructure/infrastructure-gate.d.ts.map +1 -0
- package/dist/infrastructure/infrastructure-gate.js +92 -0
- package/dist/infrastructure/infrastructure-gate.js.map +1 -0
- package/dist/infrastructure/infrastructure.service.d.ts +84 -0
- package/dist/infrastructure/infrastructure.service.d.ts.map +1 -0
- package/dist/infrastructure/infrastructure.service.js +502 -0
- package/dist/infrastructure/infrastructure.service.js.map +1 -0
- package/dist/infrastructure/presets/gateway-openresty.d.ts +10 -0
- package/dist/infrastructure/presets/gateway-openresty.d.ts.map +1 -0
- package/dist/infrastructure/presets/gateway-openresty.js +30 -0
- package/dist/infrastructure/presets/gateway-openresty.js.map +1 -0
- package/dist/infrastructure/presets/index.d.ts +14 -0
- package/dist/infrastructure/presets/index.d.ts.map +1 -0
- package/dist/infrastructure/presets/index.js +24 -0
- package/dist/infrastructure/presets/index.js.map +1 -0
- package/dist/infrastructure/presets/minio.d.ts +10 -0
- package/dist/infrastructure/presets/minio.d.ts.map +1 -0
- package/dist/infrastructure/presets/minio.js +60 -0
- package/dist/infrastructure/presets/minio.js.map +1 -0
- package/dist/infrastructure/presets/postgres.d.ts +9 -0
- package/dist/infrastructure/presets/postgres.d.ts.map +1 -0
- package/dist/infrastructure/presets/postgres.js +80 -0
- package/dist/infrastructure/presets/postgres.js.map +1 -0
- package/dist/infrastructure/presets/redis.d.ts +9 -0
- package/dist/infrastructure/presets/redis.d.ts.map +1 -0
- package/dist/infrastructure/presets/redis.js +32 -0
- package/dist/infrastructure/presets/redis.js.map +1 -0
- package/dist/infrastructure/presets/registry.d.ts +21 -0
- package/dist/infrastructure/presets/registry.d.ts.map +1 -0
- package/dist/infrastructure/presets/registry.js +87 -0
- package/dist/infrastructure/presets/registry.js.map +1 -0
- package/dist/infrastructure/presets/types.d.ts +88 -0
- package/dist/infrastructure/presets/types.d.ts.map +1 -0
- package/dist/infrastructure/presets/types.js +14 -0
- package/dist/infrastructure/presets/types.js.map +1 -0
- package/dist/infrastructure/runtime/types.d.ts +35 -0
- package/dist/infrastructure/runtime/types.d.ts.map +1 -0
- package/dist/infrastructure/runtime/types.js +9 -0
- package/dist/infrastructure/runtime/types.js.map +1 -0
- package/dist/infrastructure/server-registry.d.ts +16 -0
- package/dist/infrastructure/server-registry.d.ts.map +1 -0
- package/dist/infrastructure/server-registry.js +45 -0
- package/dist/infrastructure/server-registry.js.map +1 -0
- package/dist/infrastructure/service-resolver.d.ts +93 -0
- package/dist/infrastructure/service-resolver.d.ts.map +1 -0
- package/dist/infrastructure/service-resolver.js +419 -0
- package/dist/infrastructure/service-resolver.js.map +1 -0
- package/dist/infrastructure/stack-infra-manager.d.ts +81 -0
- package/dist/infrastructure/stack-infra-manager.d.ts.map +1 -0
- package/dist/infrastructure/stack-infra-manager.js +309 -0
- package/dist/infrastructure/stack-infra-manager.js.map +1 -0
- package/dist/infrastructure/types.d.ts +413 -0
- package/dist/infrastructure/types.d.ts.map +1 -0
- package/dist/infrastructure/types.js +10 -0
- package/dist/infrastructure/types.js.map +1 -0
- package/dist/mcp/mcp-bridge.d.ts +21 -0
- package/dist/mcp/mcp-bridge.d.ts.map +1 -0
- package/dist/mcp/mcp-bridge.js +126 -0
- package/dist/mcp/mcp-bridge.js.map +1 -0
- package/dist/mcp/tool-groups/apps.tools.d.ts +7 -0
- package/dist/mcp/tool-groups/apps.tools.d.ts.map +1 -0
- package/dist/mcp/tool-groups/apps.tools.js +104 -0
- package/dist/mcp/tool-groups/apps.tools.js.map +1 -0
- package/dist/mcp/tool-groups/infra.tools.d.ts +7 -0
- package/dist/mcp/tool-groups/infra.tools.d.ts.map +1 -0
- package/dist/mcp/tool-groups/infra.tools.js +80 -0
- package/dist/mcp/tool-groups/infra.tools.js.map +1 -0
- package/dist/mcp/tool-groups/kb.tools.d.ts +7 -0
- package/dist/mcp/tool-groups/kb.tools.d.ts.map +1 -0
- package/dist/mcp/tool-groups/kb.tools.js +147 -0
- package/dist/mcp/tool-groups/kb.tools.js.map +1 -0
- package/dist/mcp/tool-groups/management.tools.d.ts +7 -0
- package/dist/mcp/tool-groups/management.tools.d.ts.map +1 -0
- package/dist/mcp/tool-groups/management.tools.js +263 -0
- package/dist/mcp/tool-groups/management.tools.js.map +1 -0
- package/dist/mcp/tool-groups/monitoring.tools.d.ts +6 -0
- package/dist/mcp/tool-groups/monitoring.tools.d.ts.map +1 -0
- package/dist/mcp/tool-groups/monitoring.tools.js +52 -0
- package/dist/mcp/tool-groups/monitoring.tools.js.map +1 -0
- package/dist/mcp/types.d.ts +23 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/mcp/types.js +2 -0
- package/dist/mcp/types.js.map +1 -0
- package/dist/monitoring/app-health.indicator.d.ts +16 -0
- package/dist/monitoring/app-health.indicator.d.ts.map +1 -0
- package/dist/monitoring/app-health.indicator.js +45 -0
- package/dist/monitoring/app-health.indicator.js.map +1 -0
- package/dist/monitoring/docker-health.indicator.d.ts +19 -0
- package/dist/monitoring/docker-health.indicator.d.ts.map +1 -0
- package/dist/monitoring/docker-health.indicator.js +52 -0
- package/dist/monitoring/docker-health.indicator.js.map +1 -0
- package/dist/monitoring/health.service.d.ts +14 -0
- package/dist/monitoring/health.service.d.ts.map +1 -0
- package/dist/monitoring/health.service.js +50 -0
- package/dist/monitoring/health.service.js.map +1 -0
- package/dist/monitoring/log-manager.d.ts +88 -0
- package/dist/monitoring/log-manager.d.ts.map +1 -0
- package/dist/monitoring/log-manager.js +353 -0
- package/dist/monitoring/log-manager.js.map +1 -0
- package/dist/monitoring/metrics.service.d.ts +14 -0
- package/dist/monitoring/metrics.service.d.ts.map +1 -0
- package/dist/monitoring/metrics.service.js +40 -0
- package/dist/monitoring/metrics.service.js.map +1 -0
- package/dist/orchestrator/app-handle.d.ts +51 -0
- package/dist/orchestrator/app-handle.d.ts.map +1 -0
- package/dist/orchestrator/app-handle.js +90 -0
- package/dist/orchestrator/app-handle.js.map +1 -0
- package/dist/orchestrator/bootstrap-loader.d.ts +36 -0
- package/dist/orchestrator/bootstrap-loader.d.ts.map +1 -0
- package/dist/orchestrator/bootstrap-loader.js +118 -0
- package/dist/orchestrator/bootstrap-loader.js.map +1 -0
- package/dist/orchestrator/bootstrap-process.d.ts +73 -0
- package/dist/orchestrator/bootstrap-process.d.ts.map +1 -0
- package/dist/orchestrator/bootstrap-process.js +342 -0
- package/dist/orchestrator/bootstrap-process.js.map +1 -0
- package/dist/orchestrator/bootstrap-runner.d.ts +15 -0
- package/dist/orchestrator/bootstrap-runner.d.ts.map +1 -0
- package/dist/orchestrator/bootstrap-runner.js +152 -0
- package/dist/orchestrator/bootstrap-runner.js.map +1 -0
- package/dist/orchestrator/build-service.d.ts +70 -0
- package/dist/orchestrator/build-service.d.ts.map +1 -0
- package/dist/orchestrator/build-service.js +313 -0
- package/dist/orchestrator/build-service.js.map +1 -0
- package/dist/orchestrator/classic-launcher.d.ts +17 -0
- package/dist/orchestrator/classic-launcher.d.ts.map +1 -0
- package/dist/orchestrator/classic-launcher.js +111 -0
- package/dist/orchestrator/classic-launcher.js.map +1 -0
- package/dist/orchestrator/dependency-resolver.d.ts +14 -0
- package/dist/orchestrator/dependency-resolver.d.ts.map +1 -0
- package/dist/orchestrator/dependency-resolver.js +56 -0
- package/dist/orchestrator/dependency-resolver.js.map +1 -0
- package/dist/orchestrator/file-watcher.d.ts +53 -0
- package/dist/orchestrator/file-watcher.d.ts.map +1 -0
- package/dist/orchestrator/file-watcher.js +307 -0
- package/dist/orchestrator/file-watcher.js.map +1 -0
- package/dist/orchestrator/module-worker-process.d.ts +37 -0
- package/dist/orchestrator/module-worker-process.d.ts.map +1 -0
- package/dist/orchestrator/module-worker-process.js +187 -0
- package/dist/orchestrator/module-worker-process.js.map +1 -0
- package/dist/orchestrator/orchestrator.service.d.ts +170 -0
- package/dist/orchestrator/orchestrator.service.d.ts.map +1 -0
- package/dist/orchestrator/orchestrator.service.js +1146 -0
- package/dist/orchestrator/orchestrator.service.js.map +1 -0
- package/dist/orchestrator/service-router.d.ts +78 -0
- package/dist/orchestrator/service-router.d.ts.map +1 -0
- package/dist/orchestrator/service-router.js +148 -0
- package/dist/orchestrator/service-router.js.map +1 -0
- package/dist/orchestrator/topology-proxy.d.ts +65 -0
- package/dist/orchestrator/topology-proxy.d.ts.map +1 -0
- package/dist/orchestrator/topology-proxy.js +209 -0
- package/dist/orchestrator/topology-proxy.js.map +1 -0
- package/dist/orchestrator/topology-relay.d.ts +111 -0
- package/dist/orchestrator/topology-relay.d.ts.map +1 -0
- package/dist/orchestrator/topology-relay.js +255 -0
- package/dist/orchestrator/topology-relay.js.map +1 -0
- package/dist/orchestrator/ts-compiler.d.ts +55 -0
- package/dist/orchestrator/ts-compiler.d.ts.map +1 -0
- package/dist/orchestrator/ts-compiler.js +166 -0
- package/dist/orchestrator/ts-compiler.js.map +1 -0
- package/dist/project/artifact-builder.d.ts +63 -0
- package/dist/project/artifact-builder.d.ts.map +1 -0
- package/dist/project/artifact-builder.js +193 -0
- package/dist/project/artifact-builder.js.map +1 -0
- package/dist/project/config-resolver.d.ts +110 -0
- package/dist/project/config-resolver.d.ts.map +1 -0
- package/dist/project/config-resolver.js +563 -0
- package/dist/project/config-resolver.js.map +1 -0
- package/dist/project/dependency-analyzer.d.ts +53 -0
- package/dist/project/dependency-analyzer.d.ts.map +1 -0
- package/dist/project/dependency-analyzer.js +135 -0
- package/dist/project/dependency-analyzer.js.map +1 -0
- package/dist/project/index.d.ts +10 -0
- package/dist/project/index.d.ts.map +1 -0
- package/dist/project/index.js +6 -0
- package/dist/project/index.js.map +1 -0
- package/dist/project/registry.d.ts +28 -0
- package/dist/project/registry.d.ts.map +1 -0
- package/dist/project/registry.js +117 -0
- package/dist/project/registry.js.map +1 -0
- package/dist/project/requirements-scanner.d.ts +65 -0
- package/dist/project/requirements-scanner.d.ts.map +1 -0
- package/dist/project/requirements-scanner.js +217 -0
- package/dist/project/requirements-scanner.js.map +1 -0
- package/dist/services/alert.rpc-service.d.ts +41 -0
- package/dist/services/alert.rpc-service.d.ts.map +1 -0
- package/dist/services/alert.rpc-service.js +102 -0
- package/dist/services/alert.rpc-service.js.map +1 -0
- package/dist/services/alert.service.d.ts +83 -0
- package/dist/services/alert.service.d.ts.map +1 -0
- package/dist/services/alert.service.js +277 -0
- package/dist/services/alert.service.js.map +1 -0
- package/dist/services/auth-context.d.ts +39 -0
- package/dist/services/auth-context.d.ts.map +1 -0
- package/dist/services/auth-context.js +66 -0
- package/dist/services/auth-context.js.map +1 -0
- package/dist/services/auth-middleware.d.ts +47 -0
- package/dist/services/auth-middleware.d.ts.map +1 -0
- package/dist/services/auth-middleware.js +158 -0
- package/dist/services/auth-middleware.js.map +1 -0
- package/dist/services/auth.rpc-service.d.ts +61 -0
- package/dist/services/auth.rpc-service.d.ts.map +1 -0
- package/dist/services/auth.rpc-service.js +131 -0
- package/dist/services/auth.rpc-service.js.map +1 -0
- package/dist/services/auth.service.d.ts +70 -0
- package/dist/services/auth.service.d.ts.map +1 -0
- package/dist/services/auth.service.js +310 -0
- package/dist/services/auth.service.js.map +1 -0
- package/dist/services/backup.rpc-service.d.ts +37 -0
- package/dist/services/backup.rpc-service.d.ts.map +1 -0
- package/dist/services/backup.rpc-service.js +85 -0
- package/dist/services/backup.rpc-service.js.map +1 -0
- package/dist/services/backup.service.d.ts +45 -0
- package/dist/services/backup.service.d.ts.map +1 -0
- package/dist/services/backup.service.js +299 -0
- package/dist/services/backup.service.js.map +1 -0
- package/dist/services/deploy.rpc-service.d.ts +26 -0
- package/dist/services/deploy.rpc-service.d.ts.map +1 -0
- package/dist/services/deploy.rpc-service.js +61 -0
- package/dist/services/deploy.rpc-service.js.map +1 -0
- package/dist/services/deploy.service.d.ts +85 -0
- package/dist/services/deploy.service.d.ts.map +1 -0
- package/dist/services/deploy.service.js +269 -0
- package/dist/services/deploy.service.js.map +1 -0
- package/dist/services/discovery.rpc-service.d.ts +16 -0
- package/dist/services/discovery.rpc-service.d.ts.map +1 -0
- package/dist/services/discovery.rpc-service.js +55 -0
- package/dist/services/discovery.rpc-service.js.map +1 -0
- package/dist/services/discovery.service.d.ts +43 -0
- package/dist/services/discovery.service.d.ts.map +1 -0
- package/dist/services/discovery.service.js +178 -0
- package/dist/services/discovery.service.js.map +1 -0
- package/dist/services/environment.rpc-service.d.ts +22 -0
- package/dist/services/environment.rpc-service.d.ts.map +1 -0
- package/dist/services/environment.rpc-service.js +65 -0
- package/dist/services/environment.rpc-service.js.map +1 -0
- package/dist/services/environment.service.d.ts +87 -0
- package/dist/services/environment.service.d.ts.map +1 -0
- package/dist/services/environment.service.js +220 -0
- package/dist/services/environment.service.js.map +1 -0
- package/dist/services/event-broadcaster.rpc-service.d.ts +44 -0
- package/dist/services/event-broadcaster.rpc-service.d.ts.map +1 -0
- package/dist/services/event-broadcaster.rpc-service.js +84 -0
- package/dist/services/event-broadcaster.rpc-service.js.map +1 -0
- package/dist/services/event-broadcaster.service.d.ts +42 -0
- package/dist/services/event-broadcaster.service.d.ts.map +1 -0
- package/dist/services/event-broadcaster.service.js +87 -0
- package/dist/services/event-broadcaster.service.js.map +1 -0
- package/dist/services/fleet.rpc-service.d.ts +37 -0
- package/dist/services/fleet.rpc-service.d.ts.map +1 -0
- package/dist/services/fleet.rpc-service.js +104 -0
- package/dist/services/fleet.rpc-service.js.map +1 -0
- package/dist/services/fleet.service.d.ts +104 -0
- package/dist/services/fleet.service.d.ts.map +1 -0
- package/dist/services/fleet.service.js +243 -0
- package/dist/services/fleet.service.js.map +1 -0
- package/dist/services/health-check.rpc-service.d.ts +18 -0
- package/dist/services/health-check.rpc-service.d.ts.map +1 -0
- package/dist/services/health-check.rpc-service.js +64 -0
- package/dist/services/health-check.rpc-service.js.map +1 -0
- package/dist/services/health-check.service.d.ts +53 -0
- package/dist/services/health-check.service.d.ts.map +1 -0
- package/dist/services/health-check.service.js +232 -0
- package/dist/services/health-check.service.js.map +1 -0
- package/dist/services/infrastructure.rpc-service.d.ts +18 -0
- package/dist/services/infrastructure.rpc-service.d.ts.map +1 -0
- package/dist/services/infrastructure.rpc-service.js +64 -0
- package/dist/services/infrastructure.rpc-service.js.map +1 -0
- package/dist/services/kubernetes.rpc-service.d.ts +54 -0
- package/dist/services/kubernetes.rpc-service.d.ts.map +1 -0
- package/dist/services/kubernetes.rpc-service.js +112 -0
- package/dist/services/kubernetes.rpc-service.js.map +1 -0
- package/dist/services/kubernetes.service.d.ts +71 -0
- package/dist/services/kubernetes.service.d.ts.map +1 -0
- package/dist/services/kubernetes.service.js +244 -0
- package/dist/services/kubernetes.service.js.map +1 -0
- package/dist/services/log-collector.rpc-service.d.ts +38 -0
- package/dist/services/log-collector.rpc-service.d.ts.map +1 -0
- package/dist/services/log-collector.rpc-service.js +74 -0
- package/dist/services/log-collector.rpc-service.js.map +1 -0
- package/dist/services/log-collector.service.d.ts +96 -0
- package/dist/services/log-collector.service.d.ts.map +1 -0
- package/dist/services/log-collector.service.js +303 -0
- package/dist/services/log-collector.service.js.map +1 -0
- package/dist/services/metrics-collector.service.d.ts +103 -0
- package/dist/services/metrics-collector.service.d.ts.map +1 -0
- package/dist/services/metrics-collector.service.js +235 -0
- package/dist/services/metrics-collector.service.js.map +1 -0
- package/dist/services/metrics.rpc-service.d.ts +41 -0
- package/dist/services/metrics.rpc-service.d.ts.map +1 -0
- package/dist/services/metrics.rpc-service.js +90 -0
- package/dist/services/metrics.rpc-service.js.map +1 -0
- package/dist/services/metrics.service.d.ts +72 -0
- package/dist/services/metrics.service.d.ts.map +1 -0
- package/dist/services/metrics.service.js +185 -0
- package/dist/services/metrics.service.js.map +1 -0
- package/dist/services/netron-telemetry-transport.d.ts +42 -0
- package/dist/services/netron-telemetry-transport.d.ts.map +1 -0
- package/dist/services/netron-telemetry-transport.js +97 -0
- package/dist/services/netron-telemetry-transport.js.map +1 -0
- package/dist/services/node-health.repository.d.ts +65 -0
- package/dist/services/node-health.repository.d.ts.map +1 -0
- package/dist/services/node-health.repository.js +132 -0
- package/dist/services/node-health.repository.js.map +1 -0
- package/dist/services/node-manager.rpc-service.d.ts +66 -0
- package/dist/services/node-manager.rpc-service.d.ts.map +1 -0
- package/dist/services/node-manager.rpc-service.js +229 -0
- package/dist/services/node-manager.rpc-service.js.map +1 -0
- package/dist/services/node-manager.service.d.ts +149 -0
- package/dist/services/node-manager.service.d.ts.map +1 -0
- package/dist/services/node-manager.service.js +547 -0
- package/dist/services/node-manager.service.js.map +1 -0
- package/dist/services/pipeline.rpc-service.d.ts +37 -0
- package/dist/services/pipeline.rpc-service.d.ts.map +1 -0
- package/dist/services/pipeline.rpc-service.js +102 -0
- package/dist/services/pipeline.rpc-service.js.map +1 -0
- package/dist/services/pipeline.service.d.ts +77 -0
- package/dist/services/pipeline.service.d.ts.map +1 -0
- package/dist/services/pipeline.service.js +278 -0
- package/dist/services/pipeline.service.js.map +1 -0
- package/dist/services/project.rpc-service.d.ts +73 -0
- package/dist/services/project.rpc-service.d.ts.map +1 -0
- package/dist/services/project.rpc-service.js +184 -0
- package/dist/services/project.rpc-service.js.map +1 -0
- package/dist/services/project.service.d.ts +123 -0
- package/dist/services/project.service.d.ts.map +1 -0
- package/dist/services/project.service.js +1112 -0
- package/dist/services/project.service.js.map +1 -0
- package/dist/services/remote-deployer.service.d.ts +85 -0
- package/dist/services/remote-deployer.service.d.ts.map +1 -0
- package/dist/services/remote-deployer.service.js +332 -0
- package/dist/services/remote-deployer.service.js.map +1 -0
- package/dist/services/remote-ops.service.d.ts +72 -0
- package/dist/services/remote-ops.service.d.ts.map +1 -0
- package/dist/services/remote-ops.service.js +132 -0
- package/dist/services/remote-ops.service.js.map +1 -0
- package/dist/services/secrets.rpc-service.d.ts +45 -0
- package/dist/services/secrets.rpc-service.d.ts.map +1 -0
- package/dist/services/secrets.rpc-service.js +81 -0
- package/dist/services/secrets.rpc-service.js.map +1 -0
- package/dist/services/secrets.service.d.ts +57 -0
- package/dist/services/secrets.service.d.ts.map +1 -0
- package/dist/services/secrets.service.js +211 -0
- package/dist/services/secrets.service.js.map +1 -0
- package/dist/services/slave-storage.service.d.ts +69 -0
- package/dist/services/slave-storage.service.d.ts.map +1 -0
- package/dist/services/slave-storage.service.js +131 -0
- package/dist/services/slave-storage.service.js.map +1 -0
- package/dist/services/sync.rpc-service.d.ts +37 -0
- package/dist/services/sync.rpc-service.d.ts.map +1 -0
- package/dist/services/sync.rpc-service.js +72 -0
- package/dist/services/sync.rpc-service.js.map +1 -0
- package/dist/services/sync.service.d.ts +121 -0
- package/dist/services/sync.service.d.ts.map +1 -0
- package/dist/services/sync.service.js +440 -0
- package/dist/services/sync.service.js.map +1 -0
- package/dist/services/system-info.rpc-service.d.ts +12 -0
- package/dist/services/system-info.rpc-service.d.ts.map +1 -0
- package/dist/services/system-info.rpc-service.js +37 -0
- package/dist/services/system-info.rpc-service.js.map +1 -0
- package/dist/services/system-info.service.d.ts +89 -0
- package/dist/services/system-info.service.d.ts.map +1 -0
- package/dist/services/system-info.service.js +151 -0
- package/dist/services/system-info.service.js.map +1 -0
- package/dist/services/telemetry.rpc-service.d.ts +27 -0
- package/dist/services/telemetry.rpc-service.d.ts.map +1 -0
- package/dist/services/telemetry.rpc-service.js +56 -0
- package/dist/services/telemetry.rpc-service.js.map +1 -0
- package/dist/services/telemetry.service.d.ts +31 -0
- package/dist/services/telemetry.service.d.ts.map +1 -0
- package/dist/services/telemetry.service.js +134 -0
- package/dist/services/telemetry.service.js.map +1 -0
- package/dist/services/trace-collector.rpc-service.d.ts +24 -0
- package/dist/services/trace-collector.rpc-service.d.ts.map +1 -0
- package/dist/services/trace-collector.rpc-service.js +75 -0
- package/dist/services/trace-collector.rpc-service.js.map +1 -0
- package/dist/services/trace-collector.service.d.ts +76 -0
- package/dist/services/trace-collector.service.d.ts.map +1 -0
- package/dist/services/trace-collector.service.js +201 -0
- package/dist/services/trace-collector.service.js.map +1 -0
- package/dist/shared/dto/project.d.ts +156 -0
- package/dist/shared/dto/project.d.ts.map +1 -0
- package/dist/shared/dto/project.js +8 -0
- package/dist/shared/dto/project.js.map +1 -0
- package/dist/shared/dto/services.d.ts +254 -0
- package/dist/shared/dto/services.d.ts.map +1 -0
- package/dist/shared/dto/services.js +7 -0
- package/dist/shared/dto/services.js.map +1 -0
- package/dist/shared/dto/types.d.ts +5 -0
- package/dist/shared/dto/types.d.ts.map +1 -0
- package/dist/shared/dto/types.js +5 -0
- package/dist/shared/dto/types.js.map +1 -0
- package/dist/shared/events.d.ts +215 -0
- package/dist/shared/events.d.ts.map +1 -0
- package/dist/shared/events.js +101 -0
- package/dist/shared/events.js.map +1 -0
- package/dist/shared/format.d.ts +18 -0
- package/dist/shared/format.d.ts.map +1 -0
- package/dist/shared/format.js +93 -0
- package/dist/shared/format.js.map +1 -0
- package/dist/shared/roles.d.ts +31 -0
- package/dist/shared/roles.d.ts.map +1 -0
- package/dist/shared/roles.js +39 -0
- package/dist/shared/roles.js.map +1 -0
- package/dist/shared/tokens.d.ts +70 -0
- package/dist/shared/tokens.d.ts.map +1 -0
- package/dist/shared/tokens.js +46 -0
- package/dist/shared/tokens.js.map +1 -0
- package/dist/shared/xec-loader.d.ts +17 -0
- package/dist/shared/xec-loader.d.ts.map +1 -0
- package/dist/shared/xec-loader.js +41 -0
- package/dist/shared/xec-loader.js.map +1 -0
- package/dist/supervisor/omnitron-supervisor.d.ts +21 -0
- package/dist/supervisor/omnitron-supervisor.d.ts.map +1 -0
- package/dist/supervisor/omnitron-supervisor.js +43 -0
- package/dist/supervisor/omnitron-supervisor.js.map +1 -0
- package/dist/supervisor/restart-policy.d.ts +11 -0
- package/dist/supervisor/restart-policy.d.ts.map +1 -0
- package/dist/supervisor/restart-policy.js +33 -0
- package/dist/supervisor/restart-policy.js.map +1 -0
- package/dist/webapp/static-server.d.ts +24 -0
- package/dist/webapp/static-server.d.ts.map +1 -0
- package/dist/webapp/static-server.js +152 -0
- package/dist/webapp/static-server.js.map +1 -0
- package/dist/webapp/webapp.service.d.ts +55 -0
- package/dist/webapp/webapp.service.d.ts.map +1 -0
- package/dist/webapp/webapp.service.js +233 -0
- package/dist/webapp/webapp.service.js.map +1 -0
- package/dist/workers/health-monitor-process.d.ts +41 -0
- package/dist/workers/health-monitor-process.d.ts.map +1 -0
- package/dist/workers/health-monitor-process.js +128 -0
- package/dist/workers/health-monitor-process.js.map +1 -0
- package/dist/workers/health-monitor.module.d.ts +11 -0
- package/dist/workers/health-monitor.module.d.ts.map +1 -0
- package/dist/workers/health-monitor.module.js +29 -0
- package/dist/workers/health-monitor.module.js.map +1 -0
- package/dist/workers/health-monitor.service.d.ts +55 -0
- package/dist/workers/health-monitor.service.d.ts.map +1 -0
- package/dist/workers/health-monitor.service.js +402 -0
- package/dist/workers/health-monitor.service.js.map +1 -0
- package/dist/workers/system-worker-manager.d.ts +47 -0
- package/dist/workers/system-worker-manager.d.ts.map +1 -0
- package/dist/workers/system-worker-manager.js +98 -0
- package/dist/workers/system-worker-manager.js.map +1 -0
- package/dist/workers/types.d.ts +80 -0
- package/dist/workers/types.d.ts.map +1 -0
- package/dist/workers/types.js +8 -0
- package/dist/workers/types.js.map +1 -0
- package/package.json +85 -0
- package/webapp/dist/assets/Chip-BySxTjyN.js +1 -0
- package/webapp/dist/assets/DialogContentText-YQWiAVrU.js +1 -0
- package/webapp/dist/assets/DialogTitle-CDkgUIwp.js +1 -0
- package/webapp/dist/assets/FormControlLabel-Bu3CCsBM.js +1 -0
- package/webapp/dist/assets/Grid-BFY8hAzL.js +1 -0
- package/webapp/dist/assets/InputAdornment-_Dayk-3y.js +3 -0
- package/webapp/dist/assets/Skeleton-BGj6Sw8m.js +37 -0
- package/webapp/dist/assets/Switch-CA6682vv.js +1 -0
- package/webapp/dist/assets/TableContainer-4epq10KJ.js +1 -0
- package/webapp/dist/assets/TextField-C73KHMVN.js +1 -0
- package/webapp/dist/assets/alerts-JEQALS7Y.js +1 -0
- package/webapp/dist/assets/apps-DMPysEKB.js +1 -0
- package/webapp/dist/assets/client-DlGPter5.js +110 -0
- package/webapp/dist/assets/constants-DqFQJ27U.js +1 -0
- package/webapp/dist/assets/containers-CvkC7do8.js +1 -0
- package/webapp/dist/assets/dashboard-C0Fre9pC.js +1 -0
- package/webapp/dist/assets/dashboard-builder-DAghqdpE.js +1 -0
- package/webapp/dist/assets/deployments-Cg1lI1uT.js +1 -0
- package/webapp/dist/assets/detail-CyFtEson.js +1 -0
- package/webapp/dist/assets/detail-DqoSGKT1.js +8 -0
- package/webapp/dist/assets/formatters-J3Xqn6BQ.js +1 -0
- package/webapp/dist/assets/fs-uP8eiZAR.js +1 -0
- package/webapp/dist/assets/icons-ynIWYfBP.js +3 -0
- package/webapp/dist/assets/index-CHVXOsTS.css +1 -0
- package/webapp/dist/assets/index-vKrDmEA_.js +259 -0
- package/webapp/dist/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/webapp/dist/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- package/webapp/dist/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
- package/webapp/dist/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
- package/webapp/dist/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
- package/webapp/dist/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/webapp/dist/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/webapp/dist/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- package/webapp/dist/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- package/webapp/dist/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
- package/webapp/dist/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
- package/webapp/dist/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
- package/webapp/dist/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
- package/webapp/dist/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/webapp/dist/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/webapp/dist/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- package/webapp/dist/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- package/webapp/dist/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
- package/webapp/dist/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
- package/webapp/dist/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
- package/webapp/dist/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/webapp/dist/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/webapp/dist/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
- package/webapp/dist/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
- package/webapp/dist/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/webapp/dist/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- package/webapp/dist/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
- package/webapp/dist/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
- package/webapp/dist/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
- package/webapp/dist/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/webapp/dist/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/webapp/dist/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/webapp/dist/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- package/webapp/dist/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
- package/webapp/dist/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- package/webapp/dist/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
- package/webapp/dist/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
- package/webapp/dist/assets/isMuiElement-BRL3YuCT.js +1 -0
- package/webapp/dist/assets/logs-IovIij1C.js +11 -0
- package/webapp/dist/assets/metrics-Dufwtwjq.js +1 -0
- package/webapp/dist/assets/nodes-Brvu8W3j.js +7 -0
- package/webapp/dist/assets/pipelines-t40X4MuC.js +4 -0
- package/webapp/dist/assets/prop-types-CvVtHxp4.js +1 -0
- package/webapp/dist/assets/react-apexcharts.esm-CLO6gala.js +954 -0
- package/webapp/dist/assets/settings-DTAIST3v.js +1 -0
- package/webapp/dist/assets/sign-in-DQEAkJum.js +1 -0
- package/webapp/dist/assets/stacks-BjM1f45N.js +1 -0
- package/webapp/dist/assets/system-info-BQSbSEK-.js +1 -0
- package/webapp/dist/assets/topology-6N8-Az_Z.js +12 -0
- package/webapp/dist/assets/topology-CHpVij2M.css +1 -0
- package/webapp/dist/assets/traces-DVXyb-4m.js +1 -0
- package/webapp/dist/assets/use-stack-context-CbE8fxBA.js +1 -0
- package/webapp/dist/favicon.png +0 -0
- package/webapp/dist/index.html +19 -0
- package/webapp/dist/logo.svg +80 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/react-apexcharts.esm-CLO6gala.js","assets/prop-types-CvVtHxp4.js","assets/sign-in-DQEAkJum.js","assets/InputAdornment-_Dayk-3y.js","assets/icons-ynIWYfBP.js","assets/client-DlGPter5.js","assets/TextField-C73KHMVN.js","assets/isMuiElement-BRL3YuCT.js","assets/dashboard-C0Fre9pC.js","assets/use-stack-context-CbE8fxBA.js","assets/formatters-J3Xqn6BQ.js","assets/Chip-BySxTjyN.js","assets/Skeleton-BGj6Sw8m.js","assets/Grid-BFY8hAzL.js","assets/apps-DMPysEKB.js","assets/constants-DqFQJ27U.js","assets/TableContainer-4epq10KJ.js","assets/detail-DqoSGKT1.js","assets/logs-IovIij1C.js","assets/topology-6N8-Az_Z.js","assets/DialogTitle-CDkgUIwp.js","assets/topology-CHpVij2M.css","assets/alerts-JEQALS7Y.js","assets/Switch-CA6682vv.js","assets/containers-CvkC7do8.js","assets/deployments-Cg1lI1uT.js","assets/metrics-Dufwtwjq.js","assets/settings-DTAIST3v.js","assets/FormControlLabel-Bu3CCsBM.js","assets/pipelines-t40X4MuC.js","assets/traces-DVXyb-4m.js","assets/dashboard-builder-DAghqdpE.js","assets/stacks-BjM1f45N.js","assets/DialogContentText-YQWiAVrU.js","assets/detail-CyFtEson.js","assets/system-info-BQSbSEK-.js","assets/nodes-Brvu8W3j.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,n as t,o as n,r}from"./prop-types-CvVtHxp4.js";import{A as i,At as a,B as o,C as s,Ct as c,Dt as l,E as u,Et as d,G as f,H as p,I as m,J as h,K as g,M as _,Ot as v,Q as y,S as b,St as x,Tt as S,U as C,W as w,X as T,Y as E,Z as D,a as O,at as k,b as A,bt as j,c as M,ct as N,dt as P,et as F,f as I,ft as ee,h as te,ht as ne,j as re,jt as ie,k as ae,kt as oe,l as se,lt as ce,n as le,t as ue,tt as de,u as fe,ut as pe,vt as me,w as he,wt as ge,x as _e,xt as ve,yt as ye,z as be}from"./icons-ynIWYfBP.js";import{a as xe,c as Se,i as Ce,l as we,n as Te,o as Ee,p as De,r as Oe,s as ke,t as Ae,u as je}from"./InputAdornment-_Dayk-3y.js";import{$ as L,At as Me,B as Ne,Bt as Pe,C as Fe,D as Ie,Dt as Le,Et as Re,F as ze,Ft as Be,G as Ve,H as He,I as Ue,It as We,J as Ge,K as Ke,Lt as qe,M as Je,Mt as Ye,Nt as Xe,Ot as Ze,P as Qe,Pt as $e,Q as et,Rt as tt,S as nt,St as R,T as z,U as rt,V as it,Vt as at,W as ot,X as st,Y as ct,Z as lt,_t as ut,a as dt,at as ft,b as B,bt as V,ct as H,dt as pt,et as U,ft as mt,g as ht,gt,h as _t,ht as vt,i as yt,it as bt,j as xt,kt as St,l as Ct,lt as wt,mt as Tt,o as Et,ot as Dt,p as Ot,pt as W,q as kt,r as At,rt as jt,st as Mt,t as Nt,tt as Pt,ut as Ft,w as It,wt as Lt,x as Rt,xt as zt,y as Bt,yt as Vt,z as Ht,zt as Ut}from"./client-DlGPter5.js";import{c as Wt,i as Gt,l as Kt,n as qt,o as Jt,r as Yt,s as Xt,t as Zt,u as Qt}from"./Skeleton-BGj6Sw8m.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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var $t=r((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(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()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&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||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(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}}}})),en=r(((e,t)=>{t.exports=$t()})),tn=r((e=>{var n=en(),r=t(),i=ie();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ee=[],te=-1;function ne(e){return{current:e}}function re(e){0>te||(e.current=ee[te],ee[te]=null,te--)}function ae(e,t){te++,ee[te]=e.current,e.current=t}var oe=ne(null),se=ne(null),ce=ne(null),le=ne(null);function ue(e,t){switch(ae(ce,t),ae(se,e),ae(oe,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}}re(oe),ae(oe,e)}function de(){re(oe),re(se),re(ce)}function fe(e){e.memoizedState!==null&&ae(le,e);var t=oe.current,n=Xd(t,e.type);t!==n&&(ae(se,e),ae(oe,n))}function pe(e){se.current===e&&(re(oe),re(se)),le.current===e&&(re(le),op._currentValue=I)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+me+e+he}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{_e=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ge(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return e.child!==t&&t!==null?ge(`Suspense Fallback`):ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return ge(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=n.unstable_scheduleCallback,Ce=n.unstable_cancelCallback,we=n.unstable_shouldYield,Te=n.unstable_requestPaint,Ee=n.unstable_now,De=n.unstable_getCurrentPriorityLevel,Oe=n.unstable_ImmediatePriority,ke=n.unstable_UserBlockingPriority,Ae=n.unstable_NormalPriority,je=n.unstable_LowPriority,L=n.unstable_IdlePriority,Me=n.log,Ne=n.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(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 Ge(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=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(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 Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(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 Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(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<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function R(){var e=F.p;return e===0?(e=window.event,e===void 0?32:Sp(e.type)):e}function z(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var rt=Math.random().toString(36).slice(2),it=`__reactFiber$`+rt,at=`__reactProps$`+rt,ot=`__reactContainer$`+rt,st=`__reactEvents$`+rt,ct=`__reactListeners$`+rt,lt=`__reactHandles$`+rt,ut=`__reactResources$`+rt,dt=`__reactMarker$`+rt;function ft(e){delete e[it],delete e[at],delete e[st],delete e[ct],delete e[lt]}function B(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ot]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[it])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function V(e){if(e=e[it]||e[ot]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function H(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function pt(e){var t=e[ut];return t||=e[ut]={hoistableStyles:new Map,hoistableScripts:new Map},t}function U(e){e[dt]=!0}var mt=new Set,ht={};function gt(e,t){_t(e,t),_t(e+`Capture`,t)}function _t(e,t){for(ht[e]=t,e=0;e<t.length;e++)mt.add(t[e])}var vt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),yt={},bt={};function xt(e){return xe.call(bt,e)?!0:xe.call(yt,e)?!1:vt.test(e)?bt[e]=!0:(yt[e]=!0,!1)}function St(e,t,n){if(xt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ct(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Tt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Et(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ot(e){if(!e._valueTracker){var t=Et(e)?`checked`:`value`;e._valueTracker=Dt(e,t,``+e[t])}}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Et(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function kt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var At=/[\n"\\]/g;function jt(e){return e.replace(At,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Mt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Tt(t)):e.value!==``+Tt(t)&&(e.value=``+Tt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Pt(e,o,Tt(n)):Pt(e,o,Tt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Tt(s):e.removeAttribute(`name`)}function Nt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ot(e);return}n=n==null?``:``+Tt(n),t=t==null?n:``+Tt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ot(e)}function Pt(e,t,n){t===`number`&&kt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ft(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Tt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function It(e,t,n){if(t!=null&&(t=``+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Tt(n)}function Lt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(N(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=Tt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ot(e)}function Rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Bt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Vt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Bt(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&Bt(e,o,t[o])}function Ht(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ut=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Wt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Gt(e){return Wt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Kt(){}var qt=null;function Jt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yt=null,Xt=null;function Zt(e){var t=V(e);if(t&&(e=t.stateNode)){var n=e[at]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Mt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+jt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[at]||null;if(!i)throw Error(a(90));Mt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&W(r)}break a;case`textarea`:It(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ft(e,!!n.multiple,t,!1)}}}var Qt=!1;function $t(e,t,n){if(Qt)return e(t,n);Qt=!0;try{return e(t)}finally{if(Qt=!1,(Yt!==null||Xt!==null)&&(Tu(),Yt&&(t=Yt,e=Xt,Xt=Yt=null,Zt(t),e)))for(t=0;t<e.length;t++)Zt(e[t])}}function tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[at]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var nn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),G=!1;if(nn)try{var rn={};Object.defineProperty(rn,`passive`,{get:function(){G=!0}}),window.addEventListener(`test`,rn,rn),window.removeEventListener(`test`,rn,rn)}catch{G=!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<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return sn=i.slice(e,1<r?1-r:void 0)}function ln(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function un(){return!0}function dn(){return!1}function K(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?un:dn,this.isPropagationStopped=dn,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=un)},persist:function(){},isPersistent:un}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=K(fn),mn=p({},fn,{view:0,detail:0}),hn=K(mn),gn,_n,vn,yn=p({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==vn&&(vn&&e.type===`mousemove`?(gn=e.screenX-vn.screenX,_n=e.screenY-vn.screenY):_n=gn=0,vn=e),gn)},movementY:function(e){return`movementY`in e?e.movementY:_n}}),bn=K(yn),xn=K(p({},yn,{dataTransfer:0})),Sn=K(p({},mn,{relatedTarget:0})),Cn=K(p({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=K(p({},fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Tn=K(p({},fn,{data:0})),En={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Dn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},On={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=On[e])?!!t[e]:!1}function An(){return kn}var jn=K(p({},mn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=ln(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Dn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return e.type===`keypress`?ln(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?ln(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Mn=K(p({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=K(p({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Pn=K(p({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Fn=K(p({},yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=K(p({},fn,{newState:0,oldState:0})),Ln=[9,13,27,32],Rn=nn&&`CompositionEvent`in window,zn=null;nn&&`documentMode`in document&&(zn=document.documentMode);var Bn=nn&&`TextEvent`in window&&!zn,Vn=nn&&(!Rn||zn&&8<zn&&11>=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function Jn(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=cn(),sn=on=an=null,Kn=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Vn&&t.locale!==`ko`?null:t.data;default:return null}}var Yn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Yn[e.type]:t===`textarea`}function Zn(e,t,n,r){Yt?Xt?Xt.push(r):Xt=[r]:Yt=r,t=Nd(t,`onChange`),0<t.length&&(n=new pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Qn=null,$n=null;function er(e){Td(e,0)}function tr(e){if(W(H(e)))return e}function nr(e,t){if(e===`change`)return t}var rr=!1;if(nn){var ir;if(nn){var ar=`oninput`in document;if(!ar){var or=document.createElement(`div`);or.setAttribute(`oninput`,`return;`),ar=typeof or.oninput==`function`}ir=ar}else ir=!1;rr=ir&&(!document.documentMode||9<document.documentMode)}function sr(){Qn&&(Qn.detachEvent(`onpropertychange`,cr),$n=Qn=null)}function cr(e){if(e.propertyName===`value`&&tr($n)){var t=[];Zn(t,$n,e,Jt(e)),$t(er,t)}}function lr(e,t,n){e===`focusin`?(sr(),Qn=t,$n=n,Qn.attachEvent(`onpropertychange`,cr)):e===`focusout`&&sr()}function ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return tr($n)}function dr(e,t){if(e===`click`)return tr(t)}function fr(e,t){if(e===`input`||e===`change`)return tr(t)}function pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var mr=typeof Object.is==`function`?Object.is:pr;function hr(e,t){if(mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!xe.call(t,i)||!mr(e[i],t[i]))return!1}return!0}function gr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _r(e,t){var n=gr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=gr(n)}}function vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yr(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 br(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 xr=nn&&`documentMode`in document&&11>=document.documentMode,Sr=null,Cr=null,wr=null,Tr=!1;function Er(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||Sr==null||Sr!==kt(r)||(r=Sr,`selectionStart`in r&&br(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}),wr&&hr(wr,r)||(wr=r,r=Nd(Cr,`onSelect`),0<r.length&&(t=new pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function Dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Or={animationend:Dr(`Animation`,`AnimationEnd`),animationiteration:Dr(`Animation`,`AnimationIteration`),animationstart:Dr(`Animation`,`AnimationStart`),transitionrun:Dr(`Transition`,`TransitionRun`),transitionstart:Dr(`Transition`,`TransitionStart`),transitioncancel:Dr(`Transition`,`TransitionCancel`),transitionend:Dr(`Transition`,`TransitionEnd`)},kr={},Ar={};nn&&(Ar=document.createElement(`div`).style,`AnimationEvent`in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),`TransitionEvent`in window||delete Or.transitionend.transition);function jr(e){if(kr[e])return kr[e];if(!Or[e])return e;var t=Or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ar)return kr[e]=t[n];return e}var Mr=jr(`animationend`),Nr=jr(`animationiteration`),Pr=jr(`animationstart`),Fr=jr(`transitionrun`),Ir=jr(`transitionstart`),Lr=jr(`transitioncancel`),Rr=jr(`transitionend`),zr=new Map,Br=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Br.push(`scrollEnd`);function Vr(e,t){zr.set(e,t),gt(t,[e])}var Hr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ur=[],Wr=0,Gr=0;function Kr(){for(var e=Wr,t=Gr=Wr=0;t<e;){var n=Ur[t];Ur[t++]=null;var r=Ur[t];Ur[t++]=null;var i=Ur[t];Ur[t++]=null;var a=Ur[t];if(Ur[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Xr(n,i,a)}}function qr(e,t,n,r){Ur[Wr++]=e,Ur[Wr++]=t,Ur[Wr++]=n,Ur[Wr++]=r,Gr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Jr(e,t,n,r){return qr(e,t,n,r),Zr(e)}function Yr(e,t){return qr(e,null,null,t),Zr(e)}function Xr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Zr(e){if(50<gu)throw gu=0,_u=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qr={};function $r(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,n,r){return new $r(e,t,n,r)}function ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ni(e,t){var n=e.alternate;return n===null?(n=ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ri(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ii(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)ti(e)&&(s=1);else if(typeof e==`string`)s=Zf(e,n,oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=ei(31,n,t,i),e.elementType=D,e.lanes=o,e;case _:return ai(n.children,i,o,t);case v:s=8,i|=24;break;case y:return e=ei(12,n,t,i|2),e.elementType=y,e.lanes=o,e;case C:return e=ei(13,n,t,i),e.elementType=C,e.lanes=o,e;case w:return e=ei(19,n,t,i),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=ei(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ai(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function oi(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function si(e){var t=ei(18,null,null,0);return t.stateNode=e,t}function ci(e,t,n){return t=ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var li=new WeakMap;function ui(e,t){if(typeof e==`object`&&e){var n=li.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},li.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}var di=[],fi=0,pi=null,mi=0,hi=[],gi=0,_i=null,vi=1,yi=``;function bi(e,t){di[fi++]=mi,di[fi++]=pi,pi=e,mi=t}function xi(e,t,n){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,_i=e;var r=vi;e=yi;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,vi=1<<32-Le(t)+i|n<<i|r,yi=a+e}else vi=1<<a|n<<i|r,yi=e}function Si(e){e.return!==null&&(bi(e,1),xi(e,1,0))}function Ci(e){for(;e===pi;)pi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null;for(;e===_i;)_i=hi[--gi],hi[gi]=null,yi=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null}function wi(e,t){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,vi=t.id,yi=t.overflow,_i=e}var Ti=null,Ei=null,Di=!1,Oi=null,ki=!1,Ai=Error(a(519));function ji(e){throw Li(ui(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ai}function Mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[it]=e,t[at]=r,n){case`dialog`:Ed(`cancel`,t),Ed(`close`,t);break;case`iframe`:case`object`:case`embed`:Ed(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)Ed(Cd[n],t);break;case`source`:Ed(`error`,t);break;case`img`:case`image`:case`link`:Ed(`error`,t),Ed(`load`,t);break;case`details`:Ed(`toggle`,t);break;case`input`:Ed(`invalid`,t),Nt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ed(`invalid`,t);break;case`textarea`:Ed(`invalid`,t),Lt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||zd(t.textContent,n)?(r.popover!=null&&(Ed(`beforetoggle`,t),Ed(`toggle`,t)),r.onScroll!=null&&Ed(`scroll`,t),r.onScrollEnd!=null&&Ed(`scrollend`,t),r.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||ji(e,!0)}function Ni(e){for(Ti=e.return;Ti;)switch(Ti.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:Ti=Ti.return}}function Pi(e){if(e!==Ti)return!1;if(!Di)return Ni(e),Di=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Zd(e.type,e.memoizedProps)),n=!n),n&&Ei&&ji(e),Ni(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Ei=vf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Ei=vf(e)}else t===27?(t=Ei,of(e.type)?(e=_f,_f=null,Ei=e):Ei=t):Ei=Ti?gf(e.stateNode.nextSibling):null;return!0}function Fi(){Ei=Ti=null,Di=!1}function Ii(){var e=Oi;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),Oi=null),e}function Li(e){Oi===null?Oi=[e]:Oi.push(e)}var Ri=ne(null),zi=null,Bi=null;function Vi(e,t,n){ae(Ri,t._currentValue),t._currentValue=n}function Hi(e){e._currentValue=Ri.current,re(Ri)}function Ui(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Wi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ui(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ui(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Gi(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;mr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===le.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[op]:e.push(op))}i=i.return}e!==null&&Wi(t,e,n,r),t.flags|=262144}function Ki(e){for(e=e.firstContext;e!==null;){if(!mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){zi=e,Bi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ji(e){return Xi(zi,e)}function Yi(e,t){return zi===null&&qi(e),Xi(e,t)}function Xi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Bi===null){if(e===null)throw Error(a(308));Bi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bi=Bi.next=t;return n}var Zi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Qi=n.unstable_scheduleCallback,$i=n.unstable_NormalPriority,ea={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ta(){return{controller:new Zi,data:new Map,refCount:0}}function na(e){e.refCount--,e.refCount===0&&Qi($i,function(){e.controller.abort()})}var ra=null,ia=0,aa=0,oa=null;function sa(e,t){if(ra===null){var n=ra=[];ia=0,aa=_d(),oa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ia++,t.then(ca,ca),t}function ca(){if(--ia===0&&ra!==null){oa!==null&&(oa.status=`fulfilled`);var e=ra;ra=null,aa=0,oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function la(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ua=P.S;P.S=function(e,t){au=Ee(),typeof t==`object`&&t&&typeof t.then==`function`&&sa(e,t),ua!==null&&ua(e,t)};var da=ne(null);function fa(){var e=da.current;return e===null?Bl.pooledCache:e}function pa(e,t){t===null?ae(da,da.current):ae(da,t.pool)}function ma(){var e=fa();return e===null?null:{parent:ea._currentValue,pool:e}}var ha=Error(a(460)),ga=Error(a(474)),_a=Error(a(542)),va={then:function(){}};function ya(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ba(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Kt,Kt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e;default:if(typeof t.status==`string`)t.then(Kt,Kt);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e}throw Sa=t,ha}}function xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Sa=e,ha):e}}var Sa=null;function Ca(){if(Sa===null)throw Error(a(459));var e=Sa;return Sa=null,e}function wa(e){if(e===ha||e===_a)throw Error(a(483))}var Ta=null,Ea=0;function Da(e){var t=Ea;return Ea+=1,Ta===null&&(Ta=[]),ba(Ta,e,t)}function Oa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ka(e,t){throw t.$$typeof===m?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Aa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ni(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=oi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===E&&xa(a)===t.type)?(t=i(t,n.props),Oa(t,n),t.return=e,t):(t=ii(n.type,n.key,n.props,null,e.mode,r),Oa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ci(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ai(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=oi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=ii(t.type,t.key,t.props,null,e.mode,n),Oa(n,t),n.return=e,n;case g:return t=ci(t,e.mode,n),t.return=e,t;case E:return t=xa(t),f(e,t,n)}if(N(t)||A(t))return t=ai(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Da(t),n);if(t.$$typeof===x)return f(e,Yi(e,t),n);ka(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case E:return n=xa(n),p(e,t,n,r)}if(N(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Da(n),r);if(n.$$typeof===x)return p(e,t,Yi(e,n),r);ka(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=xa(r),m(e,t,n,r,i)}if(N(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Da(r),i);if(r.$$typeof===x)return m(e,t,n,Yi(t,r),i);ka(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Di&&bi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Di&&bi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Di&&bi(i,h),l}function y(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Di&&bi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Di&&bi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Di&&bi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&xa(l)===r.type){n(e,r.sibling),c=i(r,o.props),Oa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ai(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ii(o.type,o.key,o.props,null,e.mode,c),Oa(c,o),c.return=e,e=c)}return s(e);case g: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=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ci(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=xa(o),b(e,r,o,c)}if(N(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Da(o),c);if(o.$$typeof===x)return b(e,r,Yi(e,o),c);ka(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=i(r,o),c.return=e,e=c):(n(e,r),c=oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ea=0;var i=b(e,t,n,r);return Ta=null,i}catch(t){if(t===ha||t===_a)throw t;var a=ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=Aa(!0),Ma=Aa(!1),Na=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(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 Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(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=Zr(e),Xr(e,null,n),t}return qr(e,r,t,n),Zr(e)}function Ra(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,$e(e,n)}}function za(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 Ba=!1;function Va(){if(Ba){var e=oa;if(e!==null)throw e}}function Ha(e,t,n,r){Ba=!1;var i=e.updateQueue;Na=!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 f=s.lane&-536870913,m=f!==s.lane;if(m?(Hl&f)===f:(r&f)===f){f!==0&&f===aa&&(Ba=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Na=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;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 Ua(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Wa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ua(n[e],t)}var Ga=ne(null),Ka=ne(0);function qa(e,t){e=Jl,ae(Ka,e),ae(Ga,t),Jl=e|t.baseLanes}function Ja(){ae(Ka,Jl),ae(Ga,Ga.current)}function Ya(){Jl=Ka.current,re(Ga),re(Ka)}var Xa=ne(null),Za=null;function Qa(e){var t=e.alternate;ae(ro,ro.current&1),ae(Xa,e),Za===null&&(t===null||Ga.current!==null||t.memoizedState!==null)&&(Za=e)}function $a(e){ae(ro,ro.current),ae(Xa,e),Za===null&&(Za=e)}function eo(e){e.tag===22?(ae(ro,ro.current),ae(Xa,e),Za===null&&(Za=e)):to(e)}function to(){ae(ro,ro.current),ae(Xa,Xa.current)}function no(e){re(Xa),Za===e&&(Za=null),re(ro)}var ro=ne(0);function io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||mf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ao=0,oo=null,so=null,co=null,lo=!1,uo=!1,fo=!1,po=0,mo=0,ho=null,go=0;function _o(){throw Error(a(321))}function vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function yo(e,t,n,r,i,a){return ao=a,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ls:Rs,fo=!1,a=n(r,i),fo=!1,uo&&(a=xo(t,n,r,i)),bo(e),a}function bo(e){P.H=Is;var t=so!==null&&so.next!==null;if(ao=0,co=so=oo=null,lo=!1,mo=0,ho=null,t)throw Error(a(300));e===null||tc||(e=e.dependencies,e!==null&&Ki(e)&&(tc=!0))}function xo(e,t,n,r){oo=e;var i=0;do{if(uo&&(ho=null),mo=0,uo=!1,25<=i)throw Error(a(301));if(i+=1,co=so=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=zs,o=t(n,r)}while(uo);return o}function So(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?ko(t):t,e=e.useState()[0],(so===null?null:so.memoizedState)!==e&&(oo.flags|=1024),t}function Co(){var e=po!==0;return po=0,e}function wo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function To(e){if(lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lo=!1}ao=0,co=so=oo=null,uo=!1,mo=po=0,ho=null}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return co===null?oo.memoizedState=co=e:co=co.next=e,co}function Do(){if(so===null){var e=oo.alternate;e=e===null?null:e.memoizedState}else e=so.next;var t=co===null?oo.memoizedState:co.next;if(t!==null)co=t,so=e;else{if(e===null)throw oo.alternate===null?Error(a(467)):Error(a(310));so=e,e={memoizedState:so.memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},co===null?oo.memoizedState=co=e:co=co.next=e}return co}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ko(e){var t=mo;return mo+=1,ho===null&&(ho=[]),e=ba(ho,e,t),t=oo,(co===null?t.memoizedState:co.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ls:Rs),e}function Ao(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ko(e);if(e.$$typeof===x)return Ji(e)}throw Error(a(438,String(e)))}function jo(e){var t=null,n=oo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=oo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Oo(),oo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function Mo(e,t){return typeof t==`function`?t(e):t}function No(e){return Po(Do(),so,e)}function Po(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ao&f)===f:(Hl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===aa&&(d=!0);else if((ao&p)===p){u=u.next,p===aa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,oo.lanes|=p,Xl|=p;f=u.action,fo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,oo.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!mr(o,e.memoizedState)&&(tc=!0,d&&(n=oa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Fo(e){var t=Do(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);mr(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Io(e,t,n){var r=oo,i=Do(),o=Di;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!mr((so||i).memoizedState,n);if(s&&(i.memoizedState=n,tc=!0),i=i.queue,cs(zo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||co!==null&&co.memoizedState.tag&1){if(r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,i,n,t),null),Bl===null)throw Error(a(349));o||ao&127||Lo(r,t,n)}return n}function Lo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oo.updateQueue,t===null?(t=Oo(),oo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ro(e,t,n,r){t.value=n,t.getSnapshot=r,Bo(t)&&Vo(e)}function zo(e,t,n){return n(function(){Bo(t)&&Vo(e)})}function Bo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mr(e,n)}catch{return!0}}function Vo(e){var t=Yr(e,2);t!==null&&bu(t,e,2)}function Ho(e){var t=Eo();if(typeof e==`function`){var n=e;if(e=n(),fo){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t}function Uo(e,t,n,r){return e.baseState=n,Po(e,so,typeof r==`function`?r:Mo)}function Wo(e,t,n,r,i){if(Ns(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Go(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Go(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Ko(e,t,s)}catch(n){Jo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Ko(e,t,a)}catch(n){Jo(e,t,n)}}function Ko(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){qo(e,t,n)},function(n){return Jo(e,t,n)}):qo(e,t,n)}function qo(e,t,n){t.status=`fulfilled`,t.value=n,Yo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Go(e,n)))}function Jo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Yo(t),t=t.next;while(t!==r)}e.action=null}function Yo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xo(e,t){return t}function Zo(e,t){if(Di){var n=Bl.formState;if(n!==null){a:{var r=oo;if(Di){if(Ei){b:{for(var i=Ei,a=ki;i.nodeType!==8;){if(!a){i=null;break b}if(i=gf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ei=gf(i.nextSibling),r=i.data===`F!`;break a}}ji(r)}r=!1}r&&(t=n[0])}}return n=Eo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t},n.queue=r,n=As.bind(null,oo,r),r.dispatch=n,r=Ho(!1),a=Ms.bind(null,oo,!1,r.queue),r=Eo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Wo.bind(null,oo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Qo(e){return $o(Do(),so,e)}function $o(e,t,n){if(t=Po(e,t,Xo)[0],e=No(Mo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ko(t)}catch(e){throw e===ha?_a:e}else r=t;t=Do();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(oo.flags|=2048,ns(9,{destroy:void 0},es.bind(null,i,n),null)),[r,a,e]}function es(e,t){e.action=t}function ts(e){var t=Do(),n=so;if(n!==null)return $o(t,n,e);Do(),t=t.memoizedState,n=Do();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=oo.updateQueue,t===null&&(t=Oo(),oo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function rs(){return Do().memoizedState}function is(e,t,n,r){var i=Eo();oo.flags|=e,i.memoizedState=ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function as(e,t,n,r){var i=Do();r=r===void 0?null:r;var a=i.memoizedState.inst;so!==null&&r!==null&&vo(r,so.memoizedState.deps)?i.memoizedState=ns(t,a,n,r):(oo.flags|=e,i.memoizedState=ns(1|t,a,n,r))}function ss(e,t){is(8390656,8,e,t)}function cs(e,t){as(2048,8,e,t)}function ls(e){oo.flags|=4;var t=oo.updateQueue;if(t===null)t=Oo(),oo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=Do().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return as(4,2,e,t)}function fs(e,t){return as(4,4,e,t)}function ps(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ms(e,t,n){n=n==null?null:n.concat([e]),as(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&vo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&vo(t,r[1]))return r[0];if(r=e(),fo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||ao&1073741824&&!(Hl&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),oo.lanes|=e,Xl|=e,n)}function ys(e,t,n,r){return mr(n,t)?n:Ga.current===null?!(ao&42)||ao&1073741824&&!(Hl&261930)?(tc=!0,e.memoizedState=n):(e=yu(),oo.lanes|=e,Xl|=e,t):(e=vs(e,n,r),mr(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Ms(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,la(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Cs(e).queue;bs(e,i,t,I,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,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 Ji(op)}function Es(){return Do().memoizedState}function Ds(){return Do().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ia(n);var r=La(t,e,n);r!==null&&(bu(r,t,n),Ra(r,t,n)),t={cache:ta()},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=Jr(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,mr(s,o))return qr(e,t,i,0),Bl===null&&Kr(),!1}catch{}if(n=Jr(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(a(479))}else t=Jr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===oo||t!==null&&t===oo}function Ps(e,t){uo=lo=!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,$e(e,n)}}var Is={readContext:Ji,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Is.useEffectEvent=_o;var Ls={readContext:Ji,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Ji,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),is(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){is(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Ie(!0);try{n(t)}finally{Ie(!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,oo,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=As.bind(null,oo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=bs.bind(null,oo,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=oo,i=Eo();if(Di){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Bl===null)throw Error(a(349));Hl&127||Lo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ss(zo.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=Bl.identifierPrefix;if(Di){var n=yi,r=vi;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Zo,useActionState:Zo,useOptimistic:function(e){var t=Eo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,oo,!0,n),n.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return Eo().memoizedState=Os.bind(null,oo)},useEffectEvent:function(e){var t=Eo(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Ji,use:Ao,useCallback:gs,useContext:Ji,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:No,useRef:rs,useState:function(){return No(Mo)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(Do(),so.memoizedState,e,t)},useTransition:function(){var e=No(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Es,useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){return Uo(Do(),so,e,t)},useMemoCache:jo,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Ji,use:Ao,useCallback:gs,useContext:Ji,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Fo,useRef:rs,useState:function(){return Fo(Mo)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Do();return so===null?vs(n,e,t):ys(n,so.memoizedState,e,t)},useTransition:function(){var e=Fo(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Es,useHostTransitionStatus:Ts,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){var n=Do();return so===null?(n.baseState=e,[e,n.queue.dispatch]):Uo(n,so,e,t)},useMemoCache:jo,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ia(r);i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(bu(t,e,r),Ra(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ia(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(bu(t,e,r),Ra(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=Ia(n);r.tag=2,t!=null&&(r.callback=t),t=La(e,r,n),t!==null&&(bu(t,e,n),Ra(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!hr(n,r)||!hr(i,a):!0}function Us(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Hr(e)}function Ks(e){console.error(e)}function qs(e){Hr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=Ia(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=Ia(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Gi(t,n,i,!0),n=Xa.current,n!==null){switch(n.tag){case 31:case 13:return Za===null?Mu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===va?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,i)),!1;case 22:return n.flags|=65536,r===va?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,i)),!1}throw Error(a(435,n.tag))}return Zu(e,r,i),Mu(),!1}if(Di)return t=Xa.current,t===null?(r!==Ai&&(t=Error(a(423),{cause:r}),Li(ui(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ui(r,n),i=Xs(e.stateNode,r,i),za(e,i),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ai&&(e=Error(a(422),{cause:r}),Li(ui(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=ui(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=ui(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Xs(n.stateNode,r,e),za(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(cu===null||!cu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Zs(i),Qs(i,e,n,r),za(n,i),!1}n=n.return}while(n!==null);return!1}var ec=Error(a(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Ma(t,null,n,r):ja(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return qi(t),r=yo(e,t,n,o,a,i),s=Co(),e!==null&&!tc?(wo(e,t,i),Dc(e,t,i)):(Di&&s&&Si(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ti(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?hr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(hr(a,r)&&e.ref===t.ref)if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pa(t,a===null?null:a.cachePool),a===null?Ja():qa(t,a),eo(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&pa(t,null),Ja(),to(t)):(pa(t,a.cachePool),qa(t,a),to(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=fa();return a=a===null?null:{parent:ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&pa(t,null),Ja(),eo(t),e!==null&&Gi(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return ja(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,no(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Di){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if($a(t),(e=Ei)?(e=ff(e,ki),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if($a(t),i)if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(tc||Gi(e,t,n,!1),i=(n&e.childLanes)!==0,tc||i){if(r=Bl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Yr(e,s),bu(r,e,s),ec;Mu(),t=uc(e,t,n)}else e=o.treeContext,Ei=gf(s.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=lc(t,r),t.flags|=4096;return t}return e=ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return qi(t),n=yo(e,t,n,r,void 0,i),r=Co(),e!==null&&!tc?(wo(e,t,i),Dc(e,t,i)):(Di&&r&&Si(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return qi(t),t.updateQueue=null,n=xo(t,r,n,i),bo(e),r=Co(),e!==null&&!tc?(wo(e,t,a),Dc(e,t,a)):(Di&&r&&Si(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(qi(t),t.stateNode===null){var a=Qr,o=n.contextType;typeof o==`object`&&o&&(a=Ji(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Pa(t),o=n.contextType,a.context=typeof o==`object`&&o?Ji(o):Qr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),Ha(t,r,a,i),Va(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=Qr,typeof u==`object`&&u&&(o=Ji(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Na=!1;var f=t.memoizedState;a.state=f,Ha(t,r,a,i),Va(),l=t.memoizedState,s||f!==l||Na?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Na||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fa(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Qr,typeof l==`object`&&l&&(c=Ji(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Na=!1,f=t.memoizedState,a.state=f,Ha(t,r,a,i),Va();var p=t.memoizedState;o!==d||f!==p||Na||e!==null&&e.dependencies!==null&&Ki(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Na||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ki(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ja(t,e.child,null,i),t.child=ja(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Fi(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:ma()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function bc(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ro.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Di){if(i?Qa(t):to(t),(e=Ei)?(e=ff(e,ki),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return mf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(to(t),i=t.mode,c=Sc({mode:`hidden`,children:c},i),r=ai(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):(Qa(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Qa(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(to(t),c=r.fallback,i=t.mode,r=Sc({mode:`visible`,children:r.children},i),c=ai(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,ja(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(to(t),t.child=e.child,t.flags|=128,t=null);else if(Qa(t),mf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Li({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Gi(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=Bl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Yr(e,r),bu(s,e,r),ec;pf(c)||Mu(),t=Cc(e,t,n)}else pf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ei=gf(c.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=xc(t,r.children),t.flags|=4096);return t}return i?(to(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ni(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ai(c,i,n,null),c.flags|=2):c=ni(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(i=c.cachePool,i===null?i=ma():(l=ea._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):(Qa(t),n=e.child,e=n.sibling,n=ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=ei(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return ja(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ui(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ro.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,ae(ro,o),nc(e,t,r,n),r=Di?mi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&io(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Gi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ki(e))):!0}function kc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Vi(t,ea,e.memoizedState.cache),Fi();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Vi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$a(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Qa(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(Qa(t),t.flags|=128,null);Qa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Gi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(ro,ro.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Vi(t,ea,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}else tc=!1,Di&&t.flags&1048576&&xi(t,mi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=xa(t.elementType),t.type=e,typeof e==`function`)ti(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===S){t.tag=11,t=rc(null,t,e,r,n);break a}else if(i===T){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=M(e)||e,Error(a(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ws(r,t.pendingProps),hc(e,t,r,i,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Fa(e,t),Ha(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Vi(t,ea,r),r!==o.cache&&Wi(t,[ea],n,!0),Va(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gc(e,t,r,n);break a}else if(r!==i){i=ui(Error(a(424)),t),Li(i),t=gc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ei=gf(e.firstChild),Ti=t,Di=!0,Oi=null,ki=!0,n=Ma(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fi(),r===i){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=Lf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Di||(n=t.type,e=t.pendingProps,r=Jd(ce.current).createElement(n),r[it]=t,r[at]=e,Hd(r,n,e),U(r),t.stateNode=r):t.memoizedState=Lf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&Di&&(r=t.stateNode=bf(t.type,t.pendingProps,ce.current),Ti=t,ki=!0,i=Ei,of(t.type)?(_f=i,Ei=gf(r.firstChild)):Ei=i),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Di&&((i=r=Ei)&&(r=uf(r,t.type,t.pendingProps,ki),r===null?i=!1:(t.stateNode=r,Ti=t,Ei=gf(r.firstChild),ki=!1,i=!0)),i||ji(t)),fe(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Zd(i,o)?r=null:s!==null&&Zd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=yo(e,t,So,null,null,n),op._currentValue=i),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&Di&&((e=n=Ei)&&(n=df(n,t.pendingProps,ki),n===null?e=!1:(t.stateNode=n,Ti=t,Ei=null,e=!0)),e||ji(t)),null;case 13:return bc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ja(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Vi(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,qi(t),i=Ji(i),r=r(i),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return qi(t),r=Ji(ea),e===null?(i=fa(),i===null&&(i=Bl,o=ta(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Pa(t),Vi(t,ea,i)):((e.lanes&n)!==0&&(Fa(e,t),Ha(t,null,null,n),Va()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,Vi(t,ea,r),r!==i.cache&&Wi(t,[ea],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Vi(t,ea,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw Sa=va,ga}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qf(t))if(ku())e.flags|=8192;else throw Sa=va,ga}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,eu|=t)}function Fc(e,t){if(!Di)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hi(ea),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pi(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii())),Ic(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,i,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,i,e,r,n)),null;case 27:if(pe(t),n=ce.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Ic(t),null}e=oe.current,Pi(t)?Mi(t,e):(e=bf(i,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(pe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Ic(t),null}if(o=oe.current,Pi(t))Mi(t,o);else{var s=Jd(ce.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/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(i,{is:r.is}):s.createElement(i)}}o[it]=t,o[at]=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,i,r),i){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(a(166));if(e=ce.current,Pi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ti,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||ji(t,!0)}else e=Jd(e).createTextNode(r),e[it]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[it]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(no(t),t):(no(t),null);if(t.flags&128)throw Error(a(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[it]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),i=!1}else i=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(no(t),t):(no(t),null)}return no(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return de(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Hi(t.type),Ic(t),null;case 19:if(re(ro),r=t.memoizedState,r===null)return Ic(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=io(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;)ri(n,e),n=n.sibling;return ae(ro,ro.current&1|2),Di&&bi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>ou&&(t.flags|=128,i=!0,Fc(r,!1),t.lanes=4194304)}else{if(!i)if(e=io(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Di)return Ic(t),null}else 2*Ee()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,i=!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=Ee(),e.sibling=null,n=ro.current,ae(ro,i?n&1|2:n&1),Di&&bi(t,r.treeForkCount),e);case 22:case 23:return no(t),Ya(),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&&re(da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hi(ea),Ic(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Rc(e,t){switch(Ci(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(ea),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(no(t),t.alternate===null)throw Error(a(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(no(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ro),null;case 4:return de(),null;case 10:return Hi(t.type),null;case 22:case 23:return no(t),Ya(),e!==null&&re(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(ea),null;case 25:return null;default:return null}}function zc(e,t){switch(Ci(t),t.tag){case 3:Hi(ea),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&no(t);break;case 13:no(t);break;case 19:re(ro);break;case 10:Hi(t.type);break;case 22:case 23:no(t),Ya(),e!==null&&re(da);break;case 24:Hi(ea)}}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{Wa(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[at]=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[it]=e,t[at]=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=yr(e),br(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 i=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||i!==0&&f.nodeType!==3||(c=s+i),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===i&&(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<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:lf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Wa(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),hf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,(n.subtreeFlags&8772)!=0):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ft(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;of(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),xf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,sf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Vp(e)):sf(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vp(e)}catch(e){Xu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vp(e)}catch(e){Xu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(a(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(of(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(a(160));ul(o,s,i),sl=null,cl=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[dt]||o[it]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Hd(o,r,n),o[it]=e,U(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=i.createElement(r),Hd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Yf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=i.createElement(r),Hd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[it]=e,U(o),r=o}e.stateNode=r}else Xf(i,e.type,e.stateNode);else e.stateNode=Wf(i,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Xf(i,e.type,e.stateNode):Wf(i,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){i=e.stateNode;try{Rt(i,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,qc(e,i,n===null?i:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(Jf=null,i=gl,gl=wf(t.containerInfo),hl(t,e),gl=i,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(t){Xu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=wf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=Ee()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||i,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?cf(m,!0):cf(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;Zc(e,Yc(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(Rt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(a(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:xf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ua(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&na(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&$f(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=wf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:na(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Ji(ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ji(ea).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,Bl=null,Vl=null,Hl=0,Ul=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return zl&2&&Hl!==0?Hl&-Hl:P.T===null?R():_d()}function yu(){if($l===0)if(!(Hl&536870912)||Di){var e=He;He<<=1,!(He&3932160)&&(He=262144),$l=e}else $l=536870912;return e=Xa.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Bl&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)&&(Du(e,0),wu(e,Hl,$l,!1)),Xe(e,n),(!(zl&2)||e!==Bl)&&(e===Bl&&(!(zl&2)&&(Zl|=n),Yl===4&&wu(e,Hl,$l,!1)),ld(e))}function xu(e,t,n){if(zl&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ke(e,t),i=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(i===0){Kl&&!r&&wu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Cu(n)){i=Nu(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,i=4;break a}o=nu,nu=i,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Du(e,0),wu(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:wu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=iu+300-Ee(),10<i)){if(wu(r,t,$l,!Gl),Ge(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=ef(Su.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),i);break a}Su(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}}break}while(1);ld(e)}function Su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},jl(t,a,d);var m=(a&62914560)===a?iu-Ee():(a&4194048)===a?au-Ee():0;if(m=tp(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),wu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function Cu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!mr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function Tu(){return zl&6?!0:(ud(0,!1),!1)}function Eu(){if(Vl!==null){if(Ul===0)var e=Vl.return;else e=Vl,Bi=zi=null,To(e),Ta=null,Ea=0,e=Vl;for(;e!==null;)zc(e.alternate,e),e=e.return;Vl=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Eu(),Bl=e,Vl=n=ni(e.current,null),Hl=t,Ul=0,Wl=null,Gl=!1,Kl=Ke(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,Kr(),n}function Ou(e,t){oo=null,P.H=Is,t===ha||t===_a?(t=Ca(),Ul=3):t===ga?(t=Ca(),Ul=4):Ul=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,Vl===null&&(Yl=1,Js(e,ui(t,e.current)))}function ku(){var e=Xa.current;return e===null?!0:(Hl&4194048)===Hl?Za===null:(Hl&62914560)===Hl||Hl&536870912?e===Za:!1}function Au(){var e=P.H;return P.H=Is,e===null?Is:e}function ju(){var e=P.A;return P.A=Ll,e}function Mu(){Yl=4,Gl||(Hl&4194048)!==Hl&&Xa.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Bl===null||wu(Bl,Hl,$l,!1)}function Nu(e,t,n){var r=zl;zl|=2;var i=Au(),a=ju();(Bl!==e||Hl!==t)&&(su=null,Du(e,t)),t=!1;var o=Yl;a:do try{if(Ul!==0&&Vl!==null){var s=Vl,c=Wl;switch(Ul){case 8:Eu(),o=6;break a;case 3:case 2:case 9:case 6:Xa.current===null&&(t=!0);var l=Ul;if(Ul=0,Wl=null,zu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=Ul,Ul=0,Wl=null,zu(e,s,c,l)}}Pu(),o=Yl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,Bi=zi=null,zl=r,P.H=i,P.A=a,Vl===null&&(Bl=null,Hl=0,Kr()),o}function Pu(){for(;Vl!==null;)Lu(Vl)}function Fu(e,t){var n=zl;zl|=2;var r=Au(),i=ju();Bl!==e||Hl!==t?(su=null,ou=Ee()+500,Du(e,t)):Kl=Ke(e,t);a:do try{if(Ul!==0&&Vl!==null){t=Vl;var o=Wl;b:switch(Ul){case 1:Ul=0,Wl=null,zu(e,t,o,1);break;case 2:case 9:if(ya(o)){Ul=0,Wl=null,Ru(t);break}t=function(){Ul!==2&&Ul!==9||Bl!==e||(Ul=7),ld(e)},o.then(t,t);break a;case 3:Ul=7;break a;case 4:Ul=5;break a;case 7:ya(o)?(Ul=0,Wl=null,Ru(t)):(Ul=0,Wl=null,zu(e,t,o,7));break;case 5:var s=null;switch(Vl.tag){case 26:s=Vl.memoizedState;case 5:case 27:var c=Vl;if(s?Qf(s):c.stateNode.complete){Ul=0,Wl=null;var l=c.sibling;if(l!==null)Vl=l;else{var u=c.return;u===null?Vl=null:(Vl=u,Bu(u))}break b}}Ul=0,Wl=null,zu(e,t,o,5);break;case 6:Ul=0,Wl=null,zu(e,t,o,6);break;case 8:Eu(),Yl=6;break a;default:throw Error(a(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return Bi=zi=null,P.H=r,P.A=i,zl=n,Vl===null?(Bl=null,Hl=0,Kr(),Yl):0}function Iu(){for(;Vl!==null&&!we();)Lu(Vl)}function Lu(e){var t=Ac(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Hl);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Hl);break;case 5:To(t);default:zc(n,t),t=Vl=ri(t,Jl),t=Ac(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function zu(e,t,n,r){Bi=zi=null,To(t),Ta=null,Ea=0;var i=t.return;try{if($s(e,i,t,n,Hl)){Yl=1,Js(e,ui(n,e.current)),Vl=null;return}}catch(t){if(i!==null)throw Vl=i,t;Yl=1,Js(e,ui(n,e.current)),Vl=null;return}t.flags&32768?(Di||r===1?e=!0:Kl||Hl&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Xa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,Gl);return}e=t.return;var n=Lc(t.alternate,t,Jl);if(n!==null){Vl=n;return}if(t=t.sibling,t!==null){Vl=t;return}Vl=t=e}while(t!==null);Yl===0&&(Yl=5)}function Vu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,Vl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Vl=e;return}Vl=e=n}while(e!==null);Yl=6,Vl=null}function Hu(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do qu();while(lu!==0);if(zl&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=Gr,Ze(e,n,o,s,c,l),e===Bl&&(Vl=Bl=null,Hl=0),du=t,uu=e,fu=n,pu=o,mu=i,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(Ae,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,i=F.p,F.p=2,s=zl,zl|=4;try{il(e,t,n)}finally{zl=s,F.p=i,P.T=r}}lu=1,Uu(),Wu(),Gu()}}function Uu(){if(lu===1){lu=0;var e=uu,t=du,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=zl;zl|=4;try{_l(t,e);var a=qd,o=yr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&vr(s.ownerDocument.documentElement,s)){if(c!==null&&br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=_r(s,h),v=_r(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;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}hp=!!Kd,qd=Kd=null}finally{zl=i,F.p=r,P.T=n}}e.current=t,lu=2}}function Wu(){if(lu===2){lu=0;var e=uu,t=du,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=zl;zl|=4;try{al(e,t.alternate,t)}finally{zl=i,F.p=r,P.T=n}}lu=3}}function Gu(){if(lu===4||lu===3){lu=0,Te();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),nt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}fu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,na(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=nt(fu),r=P.T,i=F.p;try{F.p=32>n?32:n,P.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(a(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{F.p=i,P.T=r,Ku(e,t)}}function Yu(e,t,n){t=ui(n,t),t=Xs(e.stateNode,t,2),e=La(e,t,2),e!==null&&(Xe(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}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=ui(n,e),n=Zs(2),r=La(t,n,2),r!==null&&(Qs(n,r,t,e),Xe(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>Ee()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=Je()),e=Yr(e,t),e!==null&&(Xe(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,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return Se(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-Le(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=Ge(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(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=Ee(),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;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=Hl,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),nt(n)){case 2:case 8:n=ke;break;case 32:n=Ae;break;case 268435456:n=L;break;default:n=Ae}return r=md.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=Hl;return r=Ge(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),pd(e,Ee()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;xu(e,t,!0)}function gd(){rf(function(){zl&6?Se(Oe,dd):fd()})}function _d(){if(cd===0){var e=aa;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Gt(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[at]||null).action),o=r.submitter;o&&(t=(t=o[at]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<Br.length;xd++){var Sd=Br[xd];Vr(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}Vr(Mr,`onAnimationEnd`),Vr(Nr,`onAnimationIteration`),Vr(Pr,`onAnimationStart`),Vr(`dblclick`,`onDoubleClick`),Vr(`focusin`,`onFocus`),Vr(`focusout`,`onBlur`),Vr(Fr,`onTransitionRun`),Vr(Ir,`onTransitionStart`),Vr(Lr,`onTransitionCancel`),Vr(Rr,`onTransitionEnd`),_t(`onMouseEnter`,[`mouseout`,`mouseover`]),_t(`onMouseLeave`,[`mouseout`,`mouseover`]),_t(`onPointerEnter`,[`pointerout`,`pointerover`]),_t(`onPointerLeave`,[`pointerout`,`pointerover`]),gt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),gt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),gt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),gt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),wd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function Td(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}}}}function Ed(e,t){var n=t[st];n===void 0&&(n=t[st]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,mt.forEach(function(t){t!==`selectionchange`&&(wd.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(Sp(t)){case 2:var i=gp;break;case 8:i=_p;break;default:i=vp}n=i.bind(null,t,n,e),i=void 0,!G||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=B(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}$t(function(){var r=a,i=Jt(n),o=[];a:{var c=zr.get(e);if(c!==void 0){var l=pn,u=e;switch(e){case`keypress`:if(ln(n)===0)break a;case`keydown`:case`keyup`:l=jn;break;case`focusin`:u=`focus`,l=Sn;break;case`focusout`:u=`blur`,l=Sn;break;case`beforeblur`:case`afterblur`:l=Sn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Nn;break;case Mr:case Nr:case Pr:l=Cn;break;case Rr:l=Pn;break;case`scroll`:case`scrollend`:l=hn;break;case`wheel`:l=Fn;break;case`copy`:case`cut`:case`paste`:l=wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Mn;break;case`toggle`:case`beforetoggle`:l=In}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=tn(m,p),g!=null&&d.push(Md(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==qt&&(u=n.relatedTarget||n.fromElement)&&(B(u)||u[ot]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?B(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Mn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:H(l),h=u==null?c:H(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,B(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Pd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Fd(o,c,l,d,!1),u!==null&&f!==null&&Fd(o,f,u,d,!0)}}a:{if(c=r?H(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=nr;else if(Xn(c))if(rr)v=fr;else{v=ur;var y=lr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Ht(r.elementType)&&(v=nr):v=dr;if(v&&=v(e,r)){Zn(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Pt(c,`number`,c.value)}switch(y=r?H(r):window,e){case`focusin`:(Xn(y)||y.contentEditable===`true`)&&(Sr=y,Cr=r,wr=null);break;case`focusout`:wr=Cr=Sr=null;break;case`mousedown`:Tr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Tr=!1,Er(o,n,i);break;case`selectionchange`:if(xr)break;case`keydown`:case`keyup`:Er(o,n,i)}var b;if(Rn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Kn?Wn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Vn&&n.locale!==`ko`&&(Kn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Kn&&(b=cn()):(an=i,on=`value`in an?an.value:an.textContent,Kn=!0)),y=Nd(r,x),0<y.length&&(x=new Tn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Gn(n),b!==null&&(x.data=b)))),(b=Bn?qn(e,n):Jn(e,n))&&(x=Nd(r,`onBeforeInput`),0<x.length&&(y=new Tn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),bd(o,e,r,n,i)}Td(o,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=tn(e,n),i!=null&&r.unshift(Md(e,i,a)),i=tn(e,t),i!=null&&r.push(Md(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=tn(n,a),l!=null&&o.unshift(Md(n,l,c))):i||(l=tn(n,a),l!=null&&o.push(Md(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Id=/\r\n?/g,Ld=/\u0000|\uFFFD/g;function Rd(e){return(typeof e==`string`?e:``+e).replace(Id,`
|
|
10
|
+
`).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,i,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`:Ct(e,`class`,r);break;case`tabIndex`:Ct(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ct(e,n,r);break;case`style`:Vt(e,r,o);break;case`data`:if(t!==`object`){Ct(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}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,i.name,i,null),Bd(e,t,`formEncType`,i.formEncType,i,null),Bd(e,t,`formMethod`,i.formMethod,i,null),Bd(e,t,`formTarget`,i.formTarget,i,null)):(Bd(e,t,`encType`,i.encType,i,null),Bd(e,t,`method`,i.method,i,null),Bd(e,t,`target`,i.target,i,null)));if(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(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(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),St(e,`popover`,r);break;case`xlinkActuate`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:St(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Ut.get(n)||n,St(e,n,r))}}function Vd(e,t,n,r,i,o){switch(n){case`style`:Vt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Rt(e,``+r);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Kt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!ht.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[at]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):St(e,n,r)}}}function Hd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ed(`error`,e),Ed(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Bd(e,t,o,s,n,null)}}i&&Bd(e,t,`srcSet`,n.srcSet,n,null),r&&Bd(e,t,`src`,n.src,n,null);return;case`input`:Ed(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:Bd(e,t,r,d,n,null)}}Nt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Ed(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Bd(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ft(e,!!r,n,!0):Ft(e,!!r,t,!1);return;case`textarea`:for(s in Ed(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:Bd(e,t,s,c,n,null)}Lt(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Bd(e,t,l,r,n,null)}return;case`dialog`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ed(`cancel`,e),Ed(`close`,e);break;case`iframe`:case`object`:Ed(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)Ed(Cd[r],e);break;case`image`:Ed(`error`,e),Ed(`load`,e);break;case`details`:Ed(`toggle`,e);break;case`embed`:case`source`:case`link`:Ed(`error`,e),Ed(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Bd(e,t,u,r,n,null)}return;default:if(Ht(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Vd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Bd(e,t,c,r,n,null))}function Ud(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Bd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&Bd(e,t,p,m,r,f)}}Mt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Bd(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Bd(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ft(e,!!n,n?[]:``,!1):Ft(e,!!n,t,!0)):Ft(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Bd(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&Bd(e,t,s,i,r,o)}It(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Bd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Bd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Bd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:Bd(e,t,u,p,r,m)}return;default:if(Ht(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Vd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Vd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Bd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Bd(e,t,f,p,r,m)}function Wd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Gd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Wd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Kd=null,qd=null;function Jd(e){return e.nodeType===9?e:e.ownerDocument}function Yd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Xd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Zd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qd=null;function $d(){var e=window.event;return e&&e.type===`popstate`?e===Qd?!1:(Qd=e,!0):(Qd=null,!1)}var ef=typeof setTimeout==`function`?setTimeout:void 0,tf=typeof clearTimeout==`function`?clearTimeout:void 0,nf=typeof Promise==`function`?Promise:void 0,rf=typeof queueMicrotask==`function`?queueMicrotask:nf===void 0?ef:function(e){return nf.resolve(null).then(e).catch(af)};function af(e){setTimeout(function(){throw e})}function of(e){return e===`head`}function sf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Vp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[dt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xf(e.ownerDocument.body);n=i}while(n);Vp(t)}function cf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lf(n),ft(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function uf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[dt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gf(e.nextSibling),e===null)break}return null}function df(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gf(e.nextSibling),e===null))return null;return e}function ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gf(e.nextSibling),e===null))return null;return e}function pf(e){return e.data===`$?`||e.data===`$~`}function mf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var _f=null;function vf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bf(e,t,n){switch(t=Jd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function xf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ft(e)}var Sf=new Map,Cf=new Set;function wf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tf=F.d;F.d={f:Ef,r:Df,D:Af,C:jf,L:Mf,m:Nf,X:Ff,S:Pf,M:If};function Ef(){var e=Tf.f(),t=Tu();return e||t}function Df(e){var t=V(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):Tf.r(e)}var Of=typeof document>`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),U(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=p({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),U(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=p({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),U(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=pt(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=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);U(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=pt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=p({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),U(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=pt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),U(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 i=(i=ce.current)?wf(i):null;if(!i)throw Error(a(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=pt(i).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=pt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.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(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(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=pt(i).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(a(444,e))}}function Rf(e){return`href="`+jt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return p({},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),U(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,U(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),U(r),Hd(r,`style`,i),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Rf(n.href);var o=e.querySelector(zf(i));if(o)return t.state.loading|=4,t.instance=o,U(o),o;r=Bf(n),(i=Sf.get(i))&&Kf(r,i),o=(e.ownerDocument||e).createElement(`link`),U(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),(i=e.querySelector(Uf(o)))?(t.instance=i,U(i),i):(r=n,(i=Sf.get(o))&&(r=p({},n),qf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),U(i),Hd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(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<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jf=null;function Yf(e,t,n){if(Jf===null){var r=new Map,i=Jf=new Map;i.set(n,r)}else i=Jf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[dt]||a[it]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > 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,U(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),U(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),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ep===0&&(ep=62500*Gd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ep?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<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=np.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var op={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function sp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function cp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new sp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ei(3,null,null,t),e.current=a,a.stateNode=e,t=ta(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Pa(a),e}function lp(e){return e?(e=Qr,e):Qr}function up(e,t,n,r,i,a){i=lp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ia(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=La(e,r,t),n!==null&&(bu(n,e,t),Ra(n,e,t))}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fp(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function pp(e){if(e.tag===13||e.tag===31){var t=Yr(e,67108864);t!==null&&bu(t,e,67108864),fp(e,67108864)}}function mp(e){if(e.tag===13||e.tag===31){var t=vu();t=tt(t);var n=Yr(e,t);n!==null&&bu(n,e,t),fp(e,t)}}var hp=!0;function gp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,vp(e,t,n,r)}finally{F.p=a,P.T=i}}function _p(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,vp(e,t,n,r)}finally{F.p=a,P.T=i}}function vp(e,t,n,r){if(hp){var i=yp(r);if(i===null)jd(e,t,r,bp,n),jp(e,r);else if(Np(i,e,t,n,r))r.stopPropagation();else if(jp(e,r),t&4&&-1<Ap.indexOf(e)){for(;i!==null;){var a=V(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}ld(a),!(zl&6)&&(ou=Ee()+500,ud(0,!1))}}break;case 31:case 13:s=Yr(a,2),s!==null&&bu(s,a,2),Tu(),fp(a,2)}if(a=yp(r),a===null&&jd(e,t,r,bp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function yp(e){return e=Jt(e),xp(e)}var bp=null;function xp(e){if(bp=null,e=B(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bp=e,null}function Sp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(De()){case Oe:return 2;case ke:return 8;case Ae:case je:return 32;case L:return 268435456;default:return 32}default:return 32}}var Cp=!1,wp=null,Tp=null,Ep=null,Dp=new Map,Op=new Map,kp=[],Ap=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function jp(e,t){switch(e){case`focusin`:case`focusout`:wp=null;break;case`dragenter`:case`dragleave`:Tp=null;break;case`mouseover`:case`mouseout`:Ep=null;break;case`pointerover`:case`pointerout`:Dp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Op.delete(t.pointerId)}}function Mp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=V(t),t!==null&&pp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Np(e,t,n,r,i){switch(t){case`focusin`:return wp=Mp(wp,e,t,n,r,i),!0;case`dragenter`:return Tp=Mp(Tp,e,t,n,r,i),!0;case`mouseover`:return Ep=Mp(Ep,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Dp.set(a,Mp(Dp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Op.set(a,Mp(Op.get(a)||null,e,t,n,r,i)),!0}return!1}function Pp(e){var t=B(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,z(e.priority,function(){mp(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,z(e.priority,function(){mp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qt=r,n.target.dispatchEvent(r),qt=null}else return t=V(n),t!==null&&pp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ip(e,t,n){Fp(e)&&n.delete(t)}function Lp(){Cp=!1,wp!==null&&Fp(wp)&&(wp=null),Tp!==null&&Fp(Tp)&&(Tp=null),Ep!==null&&Fp(Ep)&&(Ep=null),Dp.forEach(Ip),Op.forEach(Ip)}function Rp(e,t){e.blockedOn===t&&(e.blockedOn=null,Cp||(Cp=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Lp)))}var zp=null;function Bp(e){zp!==e&&(zp=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){zp===e&&(zp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(xp(r||n)===null)continue;break}var a=V(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Vp(e){function t(t){return Rp(t,e)}wp!==null&&Rp(wp,e),Tp!==null&&Rp(Tp,e),Ep!==null&&Rp(Ep,e),Dp.forEach(t),Op.forEach(t);for(var n=0;n<kp.length;n++){var r=kp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<kp.length&&(n=kp[0],n.blockedOn===null);)Pp(n),n.blockedOn===null&&kp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[at]||null;if(typeof a==`function`)o||Bp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[at]||null)s=o.formAction;else if(xp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Bp(n)}}}function Hp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Up(e){this._internalRoot=e}Wp.prototype.render=Up.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;up(n,vu(),e,t,null,null)},Wp.prototype.unmount=Up.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;up(e.current,2,null,e,null,null),Tu(),t[ot]=null}};function Wp(e){this._internalRoot=e}Wp.prototype.unstable_scheduleHydration=function(e){if(e){var t=R();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kp.length&&t!==0&&t<kp[n].priority;n++);kp.splice(n,0,e),n===0&&Pp(e)}};var Gp=r.version;if(Gp!==`19.2.4`)throw Error(a(527,Gp,`19.2.4`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Kp={bundleType:0,version:`19.2.4`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.4`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qp.isDisabled&&qp.supportsFiber)try{Pe=qp.inject(Kp),Fe=qp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(a(299));var n=!1,r=``,i=Gs,s=Ks,c=qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=cp(e,1,!1,null,null,n,r,null,i,s,c,Hp),e[ot]=t.current,kd(e),new Up(t)}})),nn=r(((e,t)=>{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=tn()})),G=n(t()),rn=nn();function an(e,t,n,r,i){let[a,o]=G.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return vt(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var on={...G}.useSyncExternalStore;function sn(e,t,n,r,i){let a=G.useCallback(()=>t,[t]),o=G.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=G.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return on(c,s,o)}function cn(e={}){let{themeId:t}=e;return function(e,n={}){let r=Re();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0,{defaultMatches:a=!1,matchMedia:o=i?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:c=!1}=ut({name:`MuiUseMediaQuery`,props:n,theme:r}),l=typeof e==`function`?e(r):e;return l=l.replace(/^@media( ?)/m,``),l.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
11
|
+
`)),(on===void 0?an:sn)(l,a,o,s,c)}}cn();var ln=G.createContext(null);function un(){return G.useContext(ln)}var dn=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`,K=Xe();function fn(e,t){return typeof t==`function`?t(e):{...e,...t}}function pn(e){let{children:t,theme:n}=e,r=un(),i=G.useMemo(()=>{let e=r===null?{...n}:fn(r,n);return e!=null&&(e[dn]=r!==null),e},[n,r]);return(0,K.jsx)(ln.Provider,{value:i,children:t})}function mn(e){let t=Re(),n=wt()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,vt(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,K.jsx)(Lt,{styles:i}):null}var hn={};function gn(e,t,n,r=!1){return G.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function _n(e){let{children:t,theme:n,themeId:r}=e,i=Re(hn),a=un()||hn,o=gn(r,i,n),s=gn(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=mn(o);return(0,K.jsx)(pn,{theme:s,children:(0,K.jsx)(qe.Provider,{value:o,children:(0,K.jsx)(pt,{value:c,children:(0,K.jsxs)(Ft,{value:r?o[r].components:o.components,children:[l,t]})})})})}var vn=`mode`,yn=`color-scheme`,bn=`data-color-scheme`;function xn(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=vn,colorSchemeStorageKey:a=yn,attribute:o=bn,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
|
|
12
|
+
${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
|
|
13
|
+
${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
|
|
14
|
+
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,K.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
|
|
15
|
+
try {
|
|
16
|
+
let colorScheme = '';
|
|
17
|
+
const mode = localStorage.getItem('${i}') || '${t}';
|
|
18
|
+
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
19
|
+
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
20
|
+
if (mode === 'system') {
|
|
21
|
+
// handle system mode
|
|
22
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
23
|
+
if (mql.matches) {
|
|
24
|
+
colorScheme = dark
|
|
25
|
+
} else {
|
|
26
|
+
colorScheme = light
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (mode === 'light') {
|
|
30
|
+
colorScheme = light;
|
|
31
|
+
}
|
|
32
|
+
if (mode === 'dark') {
|
|
33
|
+
colorScheme = dark;
|
|
34
|
+
}
|
|
35
|
+
if (colorScheme) {
|
|
36
|
+
${l}
|
|
37
|
+
}
|
|
38
|
+
} catch(e){}})();`}},`mui-color-scheme-init`)}function Sn(){}var Cn=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Sn;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function wn(){}function Tn(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function En(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Dn(e){return En(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function On(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=vn,colorSchemeStorageKey:o=yn,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Cn,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=G.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=G.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=G.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=G.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Tn(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=G.useState(l||!d);G.useEffect(()=>{v(!0)},[]);let y=Dn(h),b=G.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Tn(r)}})},[f,t]),x=G.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return En(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=G.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=G.useRef(S);return C.current=S,G.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),G.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||wn,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||wn,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||wn;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var kn=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function An(e){let{themeId:t,theme:n={},modeStorageKey:r=vn,colorSchemeStorageKey:i=yn,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=G.createContext(void 0),u=()=>G.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=G.useRef(!1),E=un(),D=G.useContext(l),O=!!D&&!b,k=G.useMemo(()=>u||(typeof n==`function`?n():n),[u]),A=k[t],j=A||k,{colorSchemes:M=d,components:N=f,cssVarPrefix:P}=j,F=Object.keys(M).filter(e=>!!M[e]).join(`,`),I=G.useMemo(()=>F.split(`,`),[F]),ee=typeof o==`string`?o:o.light,te=typeof o==`string`?o:o.dark,{mode:ne,setMode:re,systemMode:ie,lightColorScheme:ae,darkColorScheme:oe,colorScheme:se,setColorScheme:ce}=On({supportedColorSchemes:I,defaultLightColorScheme:ee,defaultDarkColorScheme:te,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:M[ee]&&M[te]?S:M[j.defaultColorScheme]?.palette?.mode||j.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),le=ne,ue=se;O&&(le=D.mode,ue=D.colorScheme);let de=ue||j.defaultColorScheme;j.vars&&!C&&(de=j.defaultColorScheme);let fe=G.useMemo(()=>{let e=j.generateThemeVars?.()||j.vars,t={...j,components:N,colorSchemes:M,cssVarPrefix:P,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),de){let e=M[de];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[j,de,N,M,P]),pe=j.colorSchemeSelector;vt(()=>{if(ue&&y&&pe&&pe!==`media`){let e=pe,t=pe;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...I.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,ue));else{let e=t.replace(`%s`,ue).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||I.forEach(e=>{y.removeAttribute(t.replace(ue,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,ue)}}},[ue,pe,y,I]),G.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(kn)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ue,h,v]),G.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let me=G.useMemo(()=>({allColorSchemes:I,colorScheme:ue,darkColorScheme:oe,lightColorScheme:ae,mode:le,setColorScheme:ce,setMode:re,systemMode:ie}),[I,ue,oe,ae,le,ce,re,ie,fe.colorSchemeSelector]),he=!0;(x||j.cssVariables===!1||O&&E?.cssVarPrefix===P)&&(he=!1);let ge=(0,K.jsxs)(G.Fragment,{children:[(0,K.jsx)(_n,{themeId:A?t:void 0,theme:fe,children:c}),he&&(0,K.jsx)(Ye,{styles:fe.generateStyleSheets?.()||[]})]});return O?ge:(0,K.jsx)(l.Provider,{value:me,children:ge})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>xn({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}var jn=Le(),Mn=Vt(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${Me(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Nn=e=>gt({props:e,name:`MuiContainer`,defaultTheme:jn}),Pn=(e,t)=>{let n=e=>zt(t,e),{classes:r,fixed:i,disableGutters:a,maxWidth:o}=e;return H({root:[`root`,o&&`maxWidth${Me(String(o))}`,i&&`fixed`,a&&`disableGutters`]},n,r)};function Fn(e={}){let{createStyledComponent:t=Mn,useThemeProps:n=Nn,componentName:r=`MuiContainer`}=e,i=t(({theme:e,ownerState:t})=>({width:`100%`,marginLeft:`auto`,boxSizing:`border-box`,marginRight:`auto`,...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=n,i=e.breakpoints.values[r];return i!==0&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({...t.maxWidth===`xs`&&{[e.breakpoints.up(`xs`)]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&t.maxWidth!==`xs`&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return G.forwardRef(function(e,t){let a=n(e),{className:o,component:s=`div`,disableGutters:c=!1,fixed:l=!1,maxWidth:u=`lg`,classes:d,...f}=a,p={...a,component:s,disableGutters:c,fixed:l,maxWidth:u};return(0,K.jsx)(i,{as:s,ownerState:p,className:R(Pn(p,r).root,o),ref:t,...f})})}function In(e,t={}){let{breakpoints:n=[`sm`,`md`,`lg`],disableAlign:r=!1,factor:i=2,variants:a=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`caption`,`button`,`overline`]}=t,o={...e};o.typography={...o.typography};let s=o.typography,c=Xt(s.htmlFontSize),l=n.map(e=>o.breakpoints.values[e]);return a.forEach(e=>{let t=s[e];if(!t)return;let n=parseFloat(c(t.fontSize,`rem`));if(n<=1)return;let a=n,o=1+(a-1)/i,{lineHeight:u}=t;if(!Kt(u)&&!r)throw Error(at(6));Kt(u)||(u=parseFloat(c(u,`rem`))/parseFloat(n));let d=null;r||(d=e=>Jt({size:e,grid:Wt({pixels:4,lineHeight:u,htmlFontSize:s.htmlFontSize})})),s[e]={...t,...Qt({cssProperty:`fontSize`,min:o,max:a,unit:`rem`,breakpoints:l,transform:d})}}),o}function Ln({props:e,name:t}){return gt({props:e,name:t,defaultTheme:bt,themeId:Pe})}function Rn({theme:e,...t}){let n=`$$material`in e?e[Pe]:void 0;return(0,K.jsx)(_n,{...t,themeId:n?Pe:void 0,theme:n||e})}var zn={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Bn,useColorScheme:Vn,getInitColorSchemeScript:Hn}=An({themeId:Pe,theme:()=>ft({cssVariables:!0}),colorSchemeStorageKey:zn.colorSchemeStorageKey,modeStorageKey:zn.modeStorageKey,defaultColorScheme:{light:zn.defaultLightColorScheme,dark:zn.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Mt(e.palette,e.typography)};return t.unstable_sx=function(e){return Ze({sx:e,theme:this})},t}}),Un=Bn;function Wn({theme:e,...t}){let n=G.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Pe]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,K.jsx)(Rn,{theme:n,...t}):(0,K.jsx)(Un,{theme:e,...t})}var Gn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`መንገድ አሳይ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ወደ መጀመሪያው ገጽ ይሂዱ`:e===`last`?`ወደ መጨረሻው ገጽ ይሂዱ`:e===`next`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`,labelRowsPerPage:`ረድፎች በአንድ ገጽ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t} ከ ${n===-1?`${t} በላይ`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ኮከ${e===1?`ብ`:`ቦች`}`,emptyLabelText:`ባዶ`}},MuiAutocomplete:{defaultProps:{clearText:`አጽዳ`,closeText:`ዝጋ`,loadingText:`በመጫን ላይ…`,noOptionsText:`አማራጮች የሉም`,openText:`ክፈት`}},MuiAlert:{defaultProps:{closeText:`ዝጋ`}},MuiPagination:{defaultProps:{"aria-label":`የገጽ አሰሳ`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ወደ `}ገጽ ${t}${n?``:` ሂድ`}`:e===`first`?`ወደ መጀመሪያው ገጽ ይሂዱ`:e===`last`?`ወደ መጨረሻው ገጽ ይሂዱ`:e===`next`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`}}}},Kn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${n===-1?` أكثر من${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا يوجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`انتقل إلى `} صفحة ${t}`:e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},qn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`الانتقال إلى الصفحة الأولى`:e===`last`?`الانتقال إلى الصفحة الأخيرة`:e===`next`?`الانتقال إلى الصفحة التالية`:`الانتقال إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${n===-1?` أكثر من${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا توجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`الانتقال إلى `} صفحة ${t}`:e===`first`?`الانتقال إلى الصفحة الأولى`:e===`last`?`الانتقال الي الصفحة الأخيرة`:e===`next`?`الانتقال إلى الصفحة التالية`:`الانتقال إلى الصفحة السابقة`}}}},Jn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${n===-1?` أكثر من${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا يوجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`انتقل إلى `} صفحة ${t}`:e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل الي الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},Yn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Yolu göstər`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Birinci səhifəyə keç`:e===`last`?`Sonuncu səhifəyə keç`:e===`next`?`Növbəti səhifəyə keç`:`Əvvəlki səhifəyə keç`,labelRowsPerPage:`Səhifəyə düşən sətrlər:`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Ulduz`,n=e%10;return n>1&&n<5&&(t=`Ulduzlar`),`${e} ${t}`},emptyLabelText:`Boş`}},MuiAutocomplete:{defaultProps:{clearText:`Silmək`,closeText:`Bağlamaq`,loadingText:`Yüklənir…`,noOptionsText:`Seçimlər mövcud deyil`,openText:`Открыть`}},MuiAlert:{defaultProps:{closeText:`Bağlamaq`}},MuiPagination:{defaultProps:{"aria-label":`Səhifənin naviqasiyası`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t} ${n?`səhifə`:`səhifəyə keç`}`:e===`first`?`Birinci səhifəyə keç`:e===`last`?`Sonuncu səhifəyə keç`:e===`next`?`Növbəti səhifəyə keç`:`Əvvəlki səhifəyə keç`}}}},Xn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Паказаць шлях`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перайсці на першую старонку`:e===`last`?`Перайсці на апошнюю старонку`:e===`next`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`,labelRowsPerPage:`Радкоў на старонцы:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} з ${n===-1?`больш чым ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Зорак`,n=e%10;return n>1&&n<5&&(e<10||e>20)?t=`Зоркі`:n===1&&e%100!=11&&(t=`Зорка`),`${e} ${t}`},emptyLabelText:`Рэйтынг адсутнічае`}},MuiAutocomplete:{defaultProps:{clearText:`Ачысціць`,closeText:`Закрыць`,loadingText:`Загрузка…`,noOptionsText:`Няма варыянтаў`,openText:`Адкрыць`}},MuiAlert:{defaultProps:{closeText:`Закрыць`}},MuiPagination:{defaultProps:{"aria-label":`Навігацыя па старонкам`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} старонка`:`Перайсці на ${t} старонку`:e===`first`?`Перайсці на першую старонку`:e===`last`?`Перайсці на апошнюю старонку`:e===`next`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`}}}},Zn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показване на пътя`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Отиди на първата страница`:e===`last`?`Отиди на последната страница`:e===`next`?`Отиди на следващата страница`:`Отиди на предишната страница`,labelRowsPerPage:`Редове на страница:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Звезд${e===1?`а`:`и`}`,emptyLabelText:`Изчисти`}},MuiAutocomplete:{defaultProps:{clearText:`Изчисти`,closeText:`Затвори`,loadingText:`Зареждане…`,noOptionsText:`Няма налични опции`,openText:`Отвори`}},MuiAlert:{defaultProps:{closeText:`Затвори`}},MuiPagination:{defaultProps:{"aria-label":`Пагинация`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Към `}страница ${t}`:e===`first`?`Отиди на първата страница`:e===`last`?`Отиди на последната страница`:e===`next`?`Отиди на следващата страница`:`Отиди на предишната страница`}}}},Qn={components:{MuiBreadcrumbs:{defaultProps:{expandText:`পথ দেখান`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`প্রথম পৃষ্ঠায় যান`:e===`last`?`শেষ পৃষ্ঠায় যান`:e===`next`?`পরবর্তী পৃষ্ঠায় যান`:`আগের পৃষ্ঠায় যান`,labelRowsPerPage:`প্রতি পৃষ্ঠায় সারি:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n===-1?`${t} থেকে বেশি`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} স্টার`,emptyLabelText:`খালি`}},MuiAutocomplete:{defaultProps:{clearText:`পরিষ্কার করুন`,closeText:`বন্ধ করুন`,loadingText:`লোড হচ্ছে…`,noOptionsText:`কোন অপশন নেই`,openText:`ওপেন করুন`}},MuiAlert:{defaultProps:{closeText:`বন্ধ করুন`}},MuiPagination:{defaultProps:{"aria-label":`পেজিনেশন নেভিগেশন`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`যান `}পৃষ্ঠা ${t}-এ`:e===`first`?`প্রথম পৃষ্ঠায় যান`:e===`last`?`শেষ পৃষ্ঠায় যান`:e===`next`?`পরবর্তী পৃষ্ঠায় যান`:`আগের পৃষ্ঠায় যান`}}}},$n={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostra el camí`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ves a la primera pàgina`:e===`last`?`Ves a l'última pàgina`:e===`next`?`Ves a la pàgina següent`:`Ves a la pàgina anterior`,labelRowsPerPage:`Files per pàgina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} de ${n===-1?`més de ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Estrella`:`Estrelles`}`,emptyLabelText:`Buit`}},MuiAutocomplete:{defaultProps:{clearText:`Netejar`,closeText:`Tancar`,loadingText:`Carregant…`,noOptionsText:`Sense opcions`,openText:`Obert`}},MuiAlert:{defaultProps:{closeText:`Tancat`}},MuiPagination:{defaultProps:{"aria-label":`Navegació entre pàgines`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ves a la `}pàgina ${t}`:e===`first`?`Ves a la primera pàgina`:e===`last`?`Ves a l'última pàgina`:e===`next`?`Ves a la pàgina següent`:`Ves a la pàgina anterior`}}}},er={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ukázat cestu`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Jít na první stránku`:e===`last`?`Jít na poslední stránku`:e===`next`?`Jít na další stránku`:`Jít na předchozí stránku`,labelRowsPerPage:`Řádků na stránce:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} z ${n===-1?`více než ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hvězdička`:e>=2&&e<=4?`${e} hvězdičky`:`${e} hvězdiček`,emptyLabelText:`Prázdné`}},MuiAutocomplete:{defaultProps:{clearText:`Vymazat`,closeText:`Zavřít`,loadingText:`Načítání…`,noOptionsText:`Žádné možnosti`,openText:`Otevřít`}},MuiAlert:{defaultProps:{closeText:`Zavřít`}},MuiPagination:{defaultProps:{"aria-label":`Navigace stránkováním`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Jít na `}${t}. stránku`:e===`first`?`Jít na první stránku`:e===`last`?`Jít na poslední stránku`:e===`next`?`Jít na další stránku`:`Jít na předchozí stránku`}}}},tr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til den første side`:e===`last`?`Gå til den sidste side`:e===`next`?`Gå til den næste side`:`Gå til den forrige side`,labelRowsPerPage:`Rækker pr side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t} af ${n===-1?`mere end ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjern${e===1?``:`er`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Slet`,closeText:`Luk`,loadingText:`Indlæser…`,noOptionsText:`Ingen muligheder`,openText:`Åben`}},MuiAlert:{defaultProps:{closeText:`Luk`}},MuiPagination:{defaultProps:{"aria-label":`Sideinddelings navigation`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Go to `}page ${t}`:e===`first`?`Gå til den første side`:e===`last`?`Gå til den sidste side`:e===`next`?`Gå til den næste side`:`Gå til den forrige side`}}}},nr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pfad anzeigen`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Zur ersten Seite`:e===`last`?`Zur letzten Seite`:e===`next`?`Zur nächsten Seite`:`Zur vorherigen Seite`,labelRowsPerPage:`Zeilen pro Seite:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} von ${n===-1?`mehr als ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Stern`:`Sterne`}`,emptyLabelText:`Keine Wertung`}},MuiAutocomplete:{defaultProps:{clearText:`Leeren`,closeText:`Schließen`,loadingText:`Wird geladen…`,noOptionsText:`Keine Optionen`,openText:`Öffnen`}},MuiAlert:{defaultProps:{closeText:`Schließen`}},MuiPagination:{defaultProps:{"aria-label":`Navigation via Seitennummerierung`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gehe zu `}Seite ${t}`:e===`first`?`Zur ersten Seite`:e===`last`?`Zur letzten Seite`:e===`next`?`Zur nächsten Seite`:`Zur vorherigen Seite`}}}},rr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Εμφάνιση διαδρομής`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Πρώτη σελίδα`:e===`last`?`Τελευταία σελίδα`:e===`next`?`Επόμενη σελίδα`:`Προηγούμενη σελίδα`,labelRowsPerPage:`Γραμμές ανα σελίδα:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} από ${n===-1?`πάνω από ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Αστέρι${e===1?``:`α`}`,emptyLabelText:`Χωρίς βαθμολόγηση`}},MuiAutocomplete:{defaultProps:{clearText:`Καθαρισμός`,closeText:`Κλείσιμο`,loadingText:`Φόρτωση…`,noOptionsText:`Δεν υπάρχουν επιλογές`,openText:`Άνοιγμα`}},MuiAlert:{defaultProps:{closeText:`Κλείσιμο`}},MuiPagination:{defaultProps:{"aria-label":`Πλοήγηση σε σελίδες`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Μετάβαση `}σελίδα ${t}`:e===`first`?`Πρώτη σελίδα`:e===`last`?`Τελευταία σελίδα`:e===`next`?`Επόμενη σελίδα`:`Προηγούμενη σελίδα`}}}},ir={},ar={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar ruta`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ir a la primera página`:e===`last`?`Ir a la última página`:e===`next`?`Ir a la página siguiente`:`Ir a la página anterior`,labelRowsPerPage:`Filas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} de ${n===-1?`más de ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrella${e===1?``:`s`}`,emptyLabelText:`Vacío`}},MuiAutocomplete:{defaultProps:{clearText:`Limpiar`,closeText:`Cerrar`,loadingText:`Cargando…`,noOptionsText:`Sin opciones`,openText:`Abierto`}},MuiAlert:{defaultProps:{closeText:`Cerrar`}},MuiPagination:{defaultProps:{"aria-label":`Paginador`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir a la `}página ${t}`:e===`first`?`Ir a la primera página`:e===`last`?`Ir a la última página`:e===`next`?`Ir a la página siguiente`:`Ir a la página anterior`}}}},or={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Näita teed`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Vali esimene lehekülg`:e===`last`?`Vali viimane lehekülg`:e===`next`?`Vali järgmine lehekülg`:`Vali eelmine lehekülg`,labelRowsPerPage:`Ridu leheküljel:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n===-1?`rohkem kui ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Tärn${e===1?``:`i`}`,emptyLabelText:`Tühi`}},MuiAutocomplete:{defaultProps:{clearText:`Tühjenda`,closeText:`Sulge`,loadingText:`Laen…`,noOptionsText:`Valikuid ei ole`,openText:`Ava`}},MuiAlert:{defaultProps:{closeText:`Sulge`}},MuiPagination:{defaultProps:{"aria-label":`Lehekülgede valik`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Vali `}lehekülg ${t}`:e===`first`?`Vali esimene lehekülg`:e===`last`?`Vali viimane lehekülg`:e===`next`?`Vali järgmine lehekülg`:`Vali eelmine lehekülg`}}}},sr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`نمایش مسیر`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحهی بعدی`:`رفتن به صفحهی قبلی`,labelRowsPerPage:`تعداد سطرهای هر صفحه:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} از ${n===-1?`بیشتر از ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستاره`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`پاککردن`,closeText:`بستن`,loadingText:`در حال بارگذاری…`,noOptionsText:`بینتیجه`,openText:`بازکردن`}},MuiAlert:{defaultProps:{closeText:`بستن`}},MuiPagination:{defaultProps:{"aria-label":`ناوبری صفحه`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`رفتن به `}صفحهٔ ${t}`:e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحهی بعدی`:`رفتن به صفحهی قبلی`}}}},cr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Näytä reitti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Mene ensimmäiselle sivulle`:e===`last`?`Mene viimeiselle sivulle`:e===`next`?`Mene seuraavalle sivulle`:`Mene edelliselle sivulle`,labelRowsPerPage:`Rivejä per sivu:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n===-1?`enemmän kuin ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Täht${e===1?`i`:`eä`}`,emptyLabelText:`Tyhjä`}},MuiAutocomplete:{defaultProps:{clearText:`Tyhjennä`,closeText:`Sulje`,loadingText:`Ladataan…`,noOptionsText:`Ei valintoja`,openText:`Avaa`}},MuiAlert:{defaultProps:{closeText:`Sulje`}},MuiPagination:{defaultProps:{"aria-label":`Sivutus navigaatio`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?`sivu`:`Mene sivulle`} ${t}`:e===`first`?`Mene ensimmäiselle sivulle`:e===`last`?`Mene viimeiselle sivulle`:e===`next`?`Mene seuraavalle sivulle`:`Mene edelliselle sivulle`}}}},lr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Montrer le chemin`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Aller à la première page`:e===`last`?`Aller à la dernière page`:e===`next`?`Aller à la page suivante`:`Aller à la page précédente`,labelRowsPerPage:`Lignes par page :`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} sur ${n===-1?`plus que ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Etoile${e===1?``:`s`}`,emptyLabelText:`Vide`}},MuiAutocomplete:{defaultProps:{clearText:`Vider`,closeText:`Fermer`,loadingText:`Chargement…`,noOptionsText:`Pas de résultats`,openText:`Ouvrir`}},MuiAlert:{defaultProps:{closeText:`Fermer`}},MuiPagination:{defaultProps:{"aria-label":`navigation de pagination`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Aller à la `}page ${t}`:e===`first`?`Aller à la première page`:e===`last`?`Aller à la dernière page`:e===`next`?`Aller à la page suivante`:`Aller à la page précédente`}}}},ur={components:{MuiBreadcrumbs:{defaultProps:{expandText:`הצג נתיב`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`לעמוד הראשון`:e===`last`?`לעמוד האחרון`:e===`next`?`לעמוד הבא`:`לעמוד הקודם`,labelRowsPerPage:`שורות בעמוד:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} מתוך ${n===-1?`יותר מ ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} כוכב${e===1?``:`ים`}`,emptyLabelText:`ריק`}},MuiAutocomplete:{defaultProps:{clearText:`נקה`,closeText:`סגור`,loadingText:`טוען…`,noOptionsText:`אין אופציות`,openText:`פתח`}},MuiAlert:{defaultProps:{closeText:`סגור`}},MuiPagination:{defaultProps:{"aria-label":`ניווט בעמודים`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ל `}עמוד ${t}`:e===`first`?`לעמוד הראשון`:e===`last`?`לעמוד האחרון`:e===`next`?`לעמוד הבא`:`לעמוד הקודם`}}}},dr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`रास्ता दिखायें`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहले पृष्ठ पर जाएँ`:e===`last`?`अंतिम पृष्ठ पर जाएँ`:e===`next`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`,labelRowsPerPage:`पंक्तियाँ प्रति पृष्ठ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t===-1?n:t} कुल ${n} में`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तार${e===1?`ा`:`े`}`,emptyLabelText:`रिक्त`}},MuiAutocomplete:{defaultProps:{clearText:`हटायें`,closeText:`बंद करें`,loadingText:`लोड हो रहा है…`,noOptionsText:`कोई विकल्प नहीं`,openText:`खोलें`}},MuiAlert:{defaultProps:{closeText:`बंद करें`}},MuiPagination:{defaultProps:{"aria-label":`पृस्ठानुसार संचालन`,getItemAriaLabel:(e,t,n)=>e===`page`?`पृष्ठ ${t} ${n?``:` पर जाएँ`}`:e===`first`?`पहले पृष्ठ पर जाएँ`:e===`last`?`अंतिम पृष्ठ पर जाएँ`:e===`next`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`}}}},fr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaži putanju`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na posljednju stranicu`:e===`next`?`Idi na sljedeću stranicu`:`Idi na prethodnu stranicu`,labelRowsPerPage:`Redova po stranici:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} od ${n===-1?`više nego ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?`Zvijezde`:`Zvijezda`},emptyLabelText:`Prazno`}},MuiAutocomplete:{defaultProps:{clearText:`Briši`,closeText:`Zatvori`,loadingText:`Učitavanje…`,noOptionsText:`Nema opcija`,openText:`Otvori`}},MuiAlert:{defaultProps:{closeText:`Zatvori`}},MuiPagination:{defaultProps:{"aria-label":`Navigacija po stranicama`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Idi na `}stranicu ${t}`:e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na zadnju stranicu`:e===`next`?`Idi na sljedeću stranicu`:`Idi na prethodnu stranicu`}}}},pr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Útvonal`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Első oldalra`:e===`last`?`Utolsó oldalra`:e===`next`?`Következő oldalra`:`Előző oldalra`,labelRowsPerPage:`Sorok száma:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Csillag`,emptyLabelText:`Üres`}},MuiAutocomplete:{defaultProps:{clearText:`Törlés`,closeText:`Bezárás`,loadingText:`Töltés…`,noOptionsText:`Nincs találat`,openText:`Megnyitás`}},MuiAlert:{defaultProps:{closeText:`Bezárás`}},MuiPagination:{defaultProps:{"aria-label":`Lapozás`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t}. oldal${n?``:`ra`}`:e===`first`?`Első oldalra`:e===`last`?`Utolsó oldalra`:e===`next`?`Következő oldalra`:`Előző oldalra`}}}},mr={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Տողեր մեկ էջում`"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Աստղ`,emptyLabelText:`Դատարկ`}},MuiAutocomplete:{defaultProps:{clearText:`Մաքրել`,closeText:`Փակել`,loadingText:`Բեռնում…`,noOptionsText:`Տարբերակներ չկան`,openText:`Բացել`}},MuiAlert:{defaultProps:{closeText:`Փակել`}}}},hr={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:`Baris per halaman:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang`}},MuiAutocomplete:{defaultProps:{clearText:`Hapus`,closeText:`Tutup`,loadingText:`Memuat…`,noOptionsText:`Tidak ada opsi`,openText:`Buka`}},MuiAlert:{defaultProps:{closeText:`Tutup`}}}},gr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Sýna slóð`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Fara á fyrstu síðu`:e===`last`?`Fara á síðustu síðu`:e===`next`?`Fara á næstu síðu`:`Fara á fyrri síðu`,labelRowsPerPage:`Raðir á síðu:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} af ${n===-1?`fleiri en ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`stjarna`:`stjörnur`}`,emptyLabelText:`Tómt`}},MuiAutocomplete:{defaultProps:{clearText:`Hreinsa`,closeText:`Loka`,loadingText:`Hlaða…`,noOptionsText:`Engar niðurstöður`,openText:`Opna`}},MuiAlert:{defaultProps:{closeText:`Loka`}},MuiPagination:{defaultProps:{"aria-label":`Síðuflakk`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?`Síða`:`Fara á síðu`} ${t}`:e===`first`?`Fara á fyrstu síðu`:e===`last`?`Fara á síðustu síðu`:e===`next`?`Fara á næstu síðu`:`Fara á fyrri síðu`}}}},_r={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Visualizza percorso`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Vai alla prima pagina`:e===`last`?`Vai all'ultima pagina`:e===`next`?`Vai alla pagina successiva`:`Vai alla pagina precedente`,labelRowsPerPage:`Righe per pagina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} di ${n===-1?`più di ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stell${e===1?`a`:`e`}`,emptyLabelText:`Vuoto`}},MuiAutocomplete:{defaultProps:{clearText:`Svuota`,closeText:`Chiudi`,loadingText:`Caricamento in corso…`,noOptionsText:`Nessuna opzione`,openText:`Apri`}},MuiAlert:{defaultProps:{closeText:`Chiudi`}},MuiPagination:{defaultProps:{"aria-label":`Navigazione impaginata`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Vai alla `}pagina ${t}`:e===`first`?`Vai alla prima pagina`:e===`last`?`Vai all'ultima pagina`:e===`next`?`Vai alla pagina successiva`:`Vai alla pagina precedente`}}}},vr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`すべて表示`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`最初のページへ`:e===`last`?`最後のページへ`:e===`next`?`次のページへ`:`前のページへ`,labelRowsPerPage:`ページあたりの行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}~${t} / ${n===-1?`${t}以上`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`星${e}`,emptyLabelText:`星なし`}},MuiAutocomplete:{defaultProps:{clearText:`クリア`,closeText:`閉じる`,loadingText:`読み込み中…`,noOptionsText:`データがありません`,openText:`開く`}},MuiAlert:{defaultProps:{closeText:`閉じる`}},MuiPagination:{defaultProps:{"aria-label":`ページ選択`,getItemAriaLabel:(e,t,n)=>e===`page`?`ページ${t}${n?``:`へ`}`:e===`first`?`最初のページへ`:e===`last`?`最後のページへ`:e===`next`?`次のページへ`:`前のページへ`}}}},yr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`បង្ហាញផ្លូវ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ទៅទំព័រដំបូង`:e===`last`?`ទៅទំព័រចុងក្រោយ`:e===`next`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`,labelRowsPerPage:`ចំនួនជួរដេកក្នុងមួយទំព័រ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e} - ${t} នៃ ${n===-1?`ច្រើនជាង ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ផ្កាយ`,emptyLabelText:`ទទេ`}},MuiAutocomplete:{defaultProps:{clearText:`លុបចោល`,closeText:`បិទ`,loadingText:`កំពុងលោត…`,noOptionsText:`គ្មានជម្រើស`,openText:`បើក`}},MuiAlert:{defaultProps:{closeText:`បិទ`}},MuiPagination:{defaultProps:{"aria-label":`រុករកទំព័រ`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ទៅ `}ទំព័រ ${t}`:e===`first`?`ទៅទំព័រដំបូង`:e===`last`?`ទៅទំព័រចុងក្រោយ`:e===`next`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`}}}},br={components:{MuiBreadcrumbs:{defaultProps:{expandText:`경로 보기`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`첫 번째 페이지로 이동`:e===`last`?`마지막 페이지로 이동`:e===`next`?`다음 페이지로 이동`:`이전 페이지로 이동`,labelRowsPerPage:`페이지 당 행:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n===-1?`${t}개 이상`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 점`,emptyLabelText:`빈 텍스트`}},MuiAutocomplete:{defaultProps:{clearText:`지우기`,closeText:`닫기`,loadingText:`불러오는 중…`,noOptionsText:`옵션 없음`,openText:`열기`}},MuiAlert:{defaultProps:{closeText:`닫기`}},MuiPagination:{defaultProps:{"aria-label":`페이지네이션 네비게이션`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t} 번째 페이지${n?``:`로 이동`}`:e===`first`?`첫 번째 페이지로 이동`:e===`last`?`마지막 페이지로 이동`:e===`next`?`다음 페이지로 이동`:`이전 페이지로 이동`}}}},xr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ڕێچکە پیشان بدە`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`چوونە یەکەم پەڕە`:e===`last`?`چوونە کۆتا پەڕە`:e===`next`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`,labelRowsPerPage:`ژمارەی ڕیزەکان لە هەر پەڕەیەک:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} لە ${n===-1?` زیاترە لە${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`ئەستێرە`:`ئەستێرەکان`}`,emptyLabelText:`خاڵیە`}},MuiAutocomplete:{defaultProps:{clearText:`سڕینەوە`,closeText:`داخستن`,loadingText:`لە بارکردندایە…`,noOptionsText:`هیچ بژاردەیەک نیە`,openText:`کردنەوە`}},MuiAlert:{defaultProps:{closeText:`داخستن`}},MuiPagination:{defaultProps:{"aria-label":`گەڕان لە پەڕەکان`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`چوون بۆ `} پەڕەی ${t}`:e===`first`?`چوونە یەکەم پەڕە`:e===`last`?`چوونە کۆتا پەڕە`:e===`next`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`}}}},Sr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Rê nîşan bide`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Biçe rûpela yekem`:e===`last`?`Biçe rûpela dawî`:e===`next`?`Biçe rûpela din`:`Biçe rûpela berê`,labelRowsPerPage:`Rêz li ser rûpelê:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} of ${n===-1?`zêdetir ji ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stêrk`,emptyLabelText:`Vala`}},MuiAutocomplete:{defaultProps:{clearText:`Paqij bike`,closeText:`Bigre`,loadingText:`Tê barkirin…`,noOptionsText:`Vebijêrk tune`,openText:`Veke`}},MuiAlert:{defaultProps:{closeText:`Bigre`}},MuiPagination:{defaultProps:{"aria-label":`Navîgasyona rûpelan`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Biçe `}rûpel ${t}`:e===`first`?`Biçe rûpela yekem`:e===`last`?`Biçe rûpela dawî`:e===`next`?`Biçe rûpela din`:`Biçe rûpela berê`}}}},Cr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Толық жолды көрсету`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Бірінші бетке өту`:e===`last`?`Соңғы бетке өту`:e===`next`?`Келесі бетке өту`:`Алдыңғы бетке өту`,labelRowsPerPage:`Беттегі қатарлар:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`+${t}`:n} қатардың ішінен ${e}–${t}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} жұлдыз`,emptyLabelText:`Рейтинг жоқ`}},MuiAutocomplete:{defaultProps:{clearText:`Тазарту`,closeText:`Жабу`,loadingText:`Жүктелуде…`,noOptionsText:`Қол жетімді нұсқалар жоқ`,openText:`Ашу`}},MuiAlert:{defaultProps:{closeText:`Жабу`}},MuiPagination:{defaultProps:{"aria-label":`Беттерді шарлау`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} — бет`:`${t} — бетке өту`:e===`first`?`Бірінші бетке өту`:e===`last`?`Соңғы бетке өту`:e===`next`?`Келесі бетке өту`:`Алдыңғы бетке өту`}}}},wr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Прикажи патека`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Оди на прва страница`:e===`last`?`Оди на последна страница`:e===`next`?`Оди на следна страница`:`Оди на предходна страница`,labelRowsPerPage:`Редови по страница:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} од ${n===-1?`повеќе од ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ѕвезд${e%10==1?`а`:`и`}`,emptyLabelText:`Празно`}},MuiAutocomplete:{defaultProps:{clearText:`Избриши`,closeText:`Затвори`,loadingText:`Се презема`,noOptionsText:`Нема опција`,openText:`Отвори`}},MuiAlert:{defaultProps:{closeText:`Затвори`}},MuiPagination:{defaultProps:{"aria-label":`Навигација низ страници`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Оди на `}страница ${t}`:e===`first`?`Оди на прва страница`:e===`last`?`Оди на последна страница`:e===`next`?`Оди на следна страница`:`Оди на предходна страница`}}}},Tr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Tunjukkan laluan`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Pergi ke halaman pertama`:e===`last`?`Pergi ke halaman terakhir`:e===`next`?`Pergi ke halaman seterusnya`:`Pergi ke halaman sebelumnya`,labelRowsPerPage:`Baris setiap halaman:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} daripada ${n===-1?`lebih daripada ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang${e%10==1?`s`:``}`,emptyLabelText:`kosong`}},MuiAutocomplete:{defaultProps:{clearText:`Jelas`,closeText:`tutup`,loadingText:`Memuatkan…`,noOptionsText:`Tiada pilihan`,openText:`Buka`}},MuiAlert:{defaultProps:{closeText:`tutup`}},MuiPagination:{defaultProps:{"aria-label":`Navigasi penomboran`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Pergi ke `}muka surat ${t}`:e===`first`?`Pergi ke halaman pertama`:e===`last`?`Pergi ke halaman terakhir`:e===`next`?`Pergi ke halaman seterusnya`:`Pergi ke halaman sebelumnya`}}}},Er={components:{MuiBreadcrumbs:{defaultProps:{expandText:`လမ်းကြောင်းပြပါ။`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ပထမစာမျက်နှာသို့သွားပါ။`:e===`last`?`နောက်ဆုံးစာမျက်နှာသို့သွားပါ။`:e===`next`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`,labelRowsPerPage:`စာမျက်နှာအလိုက် အတန်းများ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} ၏ ${n===-1?`ထက်ပိုပြီး ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ကြယ်ပွင့်${e%10==1?`၎`:``}`,emptyLabelText:`ဗလာ`}},MuiAutocomplete:{defaultProps:{clearText:`ရှင်းလင်းသော`,closeText:`ပိတ်လိုက်`,loadingText:`ဖွင့်နေသည်…`,noOptionsText:`ရွေးချယ်ခွင့်မရှိပါ။`,openText:`ဖွင့်သည်။`}},MuiAlert:{defaultProps:{closeText:`ပိတ်လိုက်`}},MuiPagination:{defaultProps:{"aria-label":`Pagination အညွှန်း`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`သွားပါ။ `}စာမျက်နှာ ${t}`:e===`first`?`ပထမစာမျက်နှာသို့သွားပါ။`:e===`last`?`နောက်ဆုံးစာမျက်နှာသို့သွားပါ။`:e===`next`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`}}}},Dr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til forrige side`,labelRowsPerPage:`Rader per side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} av ${n===-1?`mer enn ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjerne${e===1?``:`r`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Tøm`,closeText:`Lukk`,loadingText:`Laster inn…`,noOptionsText:`Ingen alternativer`,openText:`Åpne`}},MuiAlert:{defaultProps:{closeText:`Lukk`}},MuiPagination:{defaultProps:{"aria-label":`Paginering navigasjon`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå til `}side ${t}`:e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til forrige side`}}}},Or={components:{MuiBreadcrumbs:{defaultProps:{expandText:`बाटो देखाउनुहोस्`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहिलो पृष्ठमा जानुहोस्`:e===`last`?`अन्तिम पृष्ठमा जानुहोस्`:e===`next`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`,labelRowsPerPage:`प्रति पृष्ठ पङ्क्तिहरू:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} को ${n===-1?`धेरै ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तारा${e%10==1?`स`:``}`,emptyLabelText:`खाली`}},MuiAutocomplete:{defaultProps:{clearText:`खाली गर्नुहोस्`,closeText:`बन्द गर्नुहोस्`,loadingText:`लोड हुँदै…`,noOptionsText:`कुनै विकल्प छैन`,openText:`खोल्नुहोस्`}},MuiAlert:{defaultProps:{closeText:`बन्द गर्नुहोस्`}},MuiPagination:{defaultProps:{"aria-label":`पृष्ठांकन नेभिगेसन`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`जाऊ त्यहाँ `}पृष्ठ ${t}`:e===`first`?`पहिलो पृष्ठमा जानुहोस्`:e===`last`?`अन्तिम पृष्ठमा जानुहोस्`:e===`next`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`}}}},kr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til førre side`,labelRowsPerPage:`Rader per side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} av ${n===-1?`fleire enn ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} stjerne${e===1?``:`r`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Tøm`,closeText:`Lukk`,loadingText:`Lastar inn…`,noOptionsText:`Ingen alternativ`,openText:`Opna`}},MuiAlert:{defaultProps:{closeText:`Lukk`}},MuiPagination:{defaultProps:{"aria-label":`Navigasjon for paginering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå til `}side ${t}`:e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til førre side`}}}},Ar={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pad tonen`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ga naar eerste pagina`:e===`last`?`Ga naar laatste pagina`:e===`next`?`Ga naar volgende pagina`:`Ga naar vorige pagina`,labelRowsPerPage:`Regels per pagina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} van ${n===-1?`meer dan ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ster${e===1?``:`ren`}`,emptyLabelText:`Leeg`}},MuiAutocomplete:{defaultProps:{clearText:`Wissen`,closeText:`Sluiten`,loadingText:`Laden…`,noOptionsText:`Geen opties`,openText:`Openen`}},MuiAlert:{defaultProps:{closeText:`Sluiten`}},MuiPagination:{defaultProps:{"aria-label":`Navigatie via paginering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ga naar `}pagina ${t}`:e===`first`?`Ga naar eerste pagina`:e===`last`?`Ga naar laatste pagina`:e===`next`?`Ga naar volgende pagina`:`Ga naar vorige pagina`}}}},jr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaż ścieżkę`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Przejdź do pierwszej strony`:e===`last`?`Przejdź do ostatniej strony`:e===`next`?`Przejdź do następnej strony`:`Przejdź do poprzedniej strony`,labelRowsPerPage:`Wierszy na stronę:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} z ${n===-1?`ponad ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`gwiazdek`,n=e%10;return(e<10||e>20)&&n>1&&n<5?t=`gwiazdki`:e===1&&(t=`gwiazdka`),`${e} ${t}`},emptyLabelText:`Brak gwiazdek`}},MuiAutocomplete:{defaultProps:{clearText:`Wyczyść`,closeText:`Zamknij`,loadingText:`Ładowanie…`,noOptionsText:`Brak opcji`,openText:`Otwórz`}},MuiAlert:{defaultProps:{closeText:`Zamknij`}},MuiPagination:{defaultProps:{"aria-label":`Nawigacja podziału na strony`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t}. strona`:`Przejdź do ${t}. strony`:e===`first`?`Przejdź do pierwszej strony`:e===`last`?`Przejdź do ostatniej strony`:e===`next`?`Przejdź do następnej strony`:`Przejdź do poprzedniej strony`}}}},Mr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`لاره ښکاره کړه`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`لومړۍ پاڼې ته لاړ شه`:e===`last`?`ورستۍ پاڼې ته لاړ شه`:e===`next`?`بلی پاڼې ته لاړ شه`:`مخکینۍ پاڼې ته لاړ شه`,labelRowsPerPage:`په پاڼه کی د کرښو شمیر`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${t} زیات له`:n} ${t}- ${e} د`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستوری`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`پاک کول`,closeText:`تړل`,loadingText:`... لوډ کیږی`,noOptionsText:`بی پایلی`,openText:`خلاصول`}},MuiAlert:{defaultProps:{closeText:`تړل`}},MuiPagination:{defaultProps:{"aria-label":`د پاڼو ترتیب`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:` ته لاړ شه`}پاڼې ${t}`:e===`first`?`لومړۍ پاڼی ته لاړ شه`:e===`last`?`وروستۍ پاڼې ته لاړه شه`:e===`next`?`بلې پاڼې ته لاړ شه`:`مخکنۍ پاڼې ته لاړ شه`}}}},Nr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar caminho`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ir para a primeira página`:e===`last`?`Ir para a última página`:e===`next`?`Ir para a próxima página`:`Ir para a página anterior`,labelRowsPerPage:`Linhas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} de ${n===-1?`mais de ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e===1?``:`s`}`,emptyLabelText:`Vazio`}},MuiAutocomplete:{defaultProps:{clearText:`Limpar`,closeText:`Fechar`,loadingText:`Carregando…`,noOptionsText:`Sem opções`,openText:`Abrir`}},MuiAlert:{defaultProps:{closeText:`Fechar`}},MuiPagination:{defaultProps:{"aria-label":`Navegar pela paginação`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir para a `}página ${t}`:e===`first`?`Ir para a primeira página`:e===`last`?`Ir para a última página`:e===`next`?`Ir para a próxima página`:`Ir para a página anterior`}}}},Pr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar caminho`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Primeira página`:e===`last`?`Última página`:e===`next`?`Próxima página`:`Página anterior`,labelRowsPerPage:`Linhas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} de ${n===-1?`mais de ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e===1?``:`s`}`,emptyLabelText:`Vazio`}},MuiAutocomplete:{defaultProps:{clearText:`Limpar`,closeText:`Fechar`,loadingText:`A carregar…`,noOptionsText:`Sem opções`,openText:`Abrir`}},MuiAlert:{defaultProps:{closeText:`Fechar`}},MuiPagination:{defaultProps:{"aria-label":`Navegar por páginas`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir para a `}página ${t}`:e===`first`?`Primeira página`:e===`last`?`Última página`:e===`next`?`Próxima página`:`Página anterior`}}}},Fr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Arată calea`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Mergi la prima pagină`:e===`last`?`Mergi la ultima pagină`:e===`next`?`Mergi la pagina următoare`:`Mergi la pagina precedentă`,labelRowsPerPage:`Rânduri pe pagină:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} din ${n===-1?`mai mult de ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} St${e===1?`ea`:`ele`}`,emptyLabelText:`Gol`}},MuiAutocomplete:{defaultProps:{clearText:`Șterge`,closeText:`Închide`,loadingText:`Se încarcă…`,noOptionsText:`Nicio opțiune`,openText:`Deschide`}},MuiAlert:{defaultProps:{closeText:`Închide`}},MuiPagination:{defaultProps:{"aria-label":`Navigare prin paginare`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Mergi la `}pagina ${t}`:e===`first`?`Mergi la prima pagină`:e===`last`?`Mergi la ultima pagină`:e===`next`?`Mergi la pagina următoare`:`Mergi la pagina precedentă`}}}},Ir={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показать полный путь`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на первую страницу`:e===`last`?`Перейти на последнюю страницу`:e===`next`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`,labelRowsPerPage:`Строк на странице:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} из ${n===-1?`более чем ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Звёзд`,n=e%10;return n>1&&n<5?t=`Звезды`:n===1&&(t=`Звезда`),`${e} ${t}`},emptyLabelText:`Рейтинг отсутствует`}},MuiAutocomplete:{defaultProps:{clearText:`Очистить`,closeText:`Закрыть`,loadingText:`Загрузка…`,noOptionsText:`Нет доступных вариантов`,openText:`Открыть`}},MuiAlert:{defaultProps:{closeText:`Закрыть`}},MuiPagination:{defaultProps:{"aria-label":`Навигация по страницам`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} страница`:`Перейти на ${t} страницу`:e===`first`?`Перейти на первую страницу`:e===`last`?`Перейти на последнюю страницу`:e===`next`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`}}}},Lr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ගමන් මඟ පෙන්වන්න`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`පළමු පිටුවට යන්න`:e===`last`?`අවසාන පිටුවට යන්න`:e===`next`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`,labelRowsPerPage:`පිටුවක පේළි:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} දක්වා ${n===-1?`${t} ට වැඩි ප්රමාණයකින්`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`තරු ${e}`,emptyLabelText:`හිස්`}},MuiAutocomplete:{defaultProps:{clearText:`මකන්න`,closeText:`වසන්න`,loadingText:`නැංවෙමින්…`,noOptionsText:`විකල්ප නැත`,openText:`විවෘත කරන්න`}},MuiAlert:{defaultProps:{closeText:`වසන්න`}},MuiPagination:{defaultProps:{"aria-label":`පිටු අතර සංචරණය`,getItemAriaLabel:(e,t,n)=>e===`page`?`පිටුව ${t} ${n?``:`ට යන්න`}`:e===`first`?`පළමු පිටුවට යන්න`:e===`last`?`අවසාන පිටුවට යන්න`:e===`next`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`}}}},Rr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ukázať cestu `}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ísť na prvú stránku`:e===`last`?`Ísť na poslednú stránku`:e===`next`?`Ísť na ďaľšiu stránku`:`Ísť na predchádzajúcu stránku`,labelRowsPerPage:`Riadkov na stránke:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} z ${n===-1?`viac ako ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hviezdička`:e>=2&&e<=4?`${e} hviezdičky`:`${e} hviezdičiek`,emptyLabelText:`Prázdne`}},MuiAutocomplete:{defaultProps:{clearText:`Vymazať`,closeText:`Zavrieť`,loadingText:`Načítanie…`,noOptionsText:`Žiadne možnosti`,openText:`Otvoriť`}},MuiAlert:{defaultProps:{closeText:`Zavrieť`}},MuiPagination:{defaultProps:{"aria-label":`Navigácia stránkovanim`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ísť na `}stránku ${t}`:e===`first`?`Ísť na prvú stránku`:e===`last`?`Ísť na poslednú stránku`:e===`next`?`Ísť na ďaľšiu stránku`:`Ísť na predchádzajúcu stránku`}}}},zr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaži putanju`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na poslednju stranicu`:e===`next`?`Idi na sledeću stranicu`:`Idi na prethodnu stranicu`,labelRowsPerPage:`Redova po stranici:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} od ${n===-1?`više nego ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?`Zvezde`:`Zvezda`},emptyLabelText:`Prazno`}},MuiAutocomplete:{defaultProps:{clearText:`Briši`,closeText:`Zatvori`,loadingText:`Učitavanje…`,noOptionsText:`Nema opcija`,openText:`Otvori`}},MuiAlert:{defaultProps:{closeText:`Zatvori`}},MuiPagination:{defaultProps:{"aria-label":`Navigacija po stranicama`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Idi na `}stranicu ${t}`:e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na zadnju stranicu`:e===`next`?`Idi na sledeću stranicu`:`Idi na prethodnu stranicu`}}}},Br={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Visa sökväg`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå till första sidan`:e===`last`?`Gå till sista sidan`:e===`next`?`Gå till nästa sida`:`Gå till föregående sida`,labelRowsPerPage:`Rader per sida:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} av ${n===-1?`fler än ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Stjärna`:`Stjärnor`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Rensa`,closeText:`Stäng`,loadingText:`Laddar…`,noOptionsText:`Inga alternativ`,openText:`Öppna`}},MuiAlert:{defaultProps:{closeText:`Stäng`}},MuiPagination:{defaultProps:{"aria-label":`Sidnavigering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå till `}sida ${t}`:e===`first`?`Gå till första sidan`:e===`last`?`Gå till sista sidan`:e===`next`?`Gå till nästa sida`:`Gå till föregående sida`}}}},Vr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`แสดงเส้นทาง`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ไปที่หน้าแรก`:e===`last`?`ไปที่หน้าสุดท้าย`:e===`next`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`,labelRowsPerPage:`จำนวนแถวต่อหน้า:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} จาก ${n===-1?`มากกว่า ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ดาว`,emptyLabelText:`ว่างเปล่า`}},MuiAutocomplete:{defaultProps:{clearText:`เคลียร์`,closeText:`ปิด`,loadingText:`กำลังโหลด…`,noOptionsText:`ไม่มีตัวเลือก`,openText:`เปิด`}},MuiAlert:{defaultProps:{closeText:`ปิด`}},MuiPagination:{defaultProps:{"aria-label":``,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ไปที่`}หน้า ${t}`:e===`first`?`ไปที่หน้าแรก`:e===`last`?`ไปที่หน้าสุดท้าย`:e===`next`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`}}}},Hr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Yolu göster`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`İlk sayfaya git`:e===`last`?`Son sayfaya git`:e===`next`?`Sonraki sayfaya git`:`Önceki sayfaya git`,labelRowsPerPage:`Sayfa başına satır:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t} / ${n===-1?`${t}'den fazla`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Yıldız`,emptyLabelText:`Boş`}},MuiAutocomplete:{defaultProps:{clearText:`Temizle`,closeText:`Kapat`,loadingText:`Yükleniyor…`,noOptionsText:`Seçenek yok`,openText:`Aç`}},MuiAlert:{defaultProps:{closeText:`Kapat`}},MuiPagination:{defaultProps:{"aria-label":`Sayfa navigasyonu`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t}. ${n?`sayfa`:`sayfaya git`}`:e===`first`?`İlk sayfaya git`:e===`last`?`Son sayfaya git`:e===`next`?`Sonraki sayfaya git`:`Önceki sayfaya git`}}}},Ur={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ipakita ang landas`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Pumunta sa unang pahina`:e===`last`?`Pumunta sa huling pahina`:e===`next`?`Pumunta sa susunod na pahina`:`Pumunta sa nakaraang pahina`,labelRowsPerPage:`Mga hilera bawat pahina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} ng ${n===-1?`higit sa ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bituin${e===1?``:`s`}`,emptyLabelText:`Walang laman`}},MuiAutocomplete:{defaultProps:{clearText:`Maaliwalas`,closeText:`Isara`,loadingText:`Naglo-load…`,noOptionsText:`Walang mga pagpipilian`,openText:`Bukas`}},MuiAlert:{defaultProps:{closeText:`Isara`}},MuiPagination:{defaultProps:{"aria-label":`Sayfa navigasyonu`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Pumunta sa`}pahina ${t}`:e===`first`?`Pumunta sa unang pahina`:e===`last`?`Pumunta sa huling pahina`:e===`next`?`Pumunta sa susunod na pahina`:`Pumunta sa nakaraang pahina`}}}},Wr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показати шлях сторінок`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на першу сторінку`:e===`last`?`Перейти на останню сторінку`:e===`next`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`,labelRowsPerPage:`Рядків на сторінці:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} з ${n===-1?`понад ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Зірок`,n=e%10;return n>1&&n<5?t=`Зірки`:n===1&&(t=`Зірка`),`${e} ${t}`},emptyLabelText:`Рейтинг відсутній`}},MuiAutocomplete:{defaultProps:{clearText:`Очистити`,closeText:`Згорнути`,loadingText:`Завантаження…`,noOptionsText:`Немає варіантів`,openText:`Розгорнути`}},MuiAlert:{defaultProps:{closeText:`Згорнути`}},MuiPagination:{defaultProps:{"aria-label":`Навігація сторінками`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Перейти на `}сторінку ${t}`:e===`first`?`Перейти на першу сторінку`:e===`last`?`Перейти на останню сторінку`:e===`next`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`}}}},Gr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`راستہ دکھائیں`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`پہلے صفحے پر جائیں`:e===`last`?`آخری صفحے پر جائیں`:e===`next`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`,labelRowsPerPage:`ایک صفحے پر قطاریں:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${t} سے ذیادہ میں سے`:`${n} میں سے`} ${e} سے ${t} قطاریں`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستار${e===1?`ہ`:`ے`}`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`کلئیر`,closeText:`بند کریں`,loadingText:`لوڈ ہو رہا ہے۔۔۔`,noOptionsText:`کوئی آپشن نہیں`,openText:`کھولیں`}},MuiAlert:{defaultProps:{closeText:`بند کریں`}},MuiPagination:{defaultProps:{"aria-label":`صفحات کی ترتیب`,getItemAriaLabel:(e,t,n)=>e===`page`?`صفحہ نمبر ${t}${n?``:` پر جائیں`}`:e===`first`?`پہلے صفحے پر جائیں`:e===`last`?`آخری صفحے پر جائیں`:e===`next`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`}}}},Kr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mở ra`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Tới trang đầu tiên`:e===`last`?`Tới trang cuối cùng`:e===`next`?`Tới trang tiếp theo`:`Về trang trước đó`,labelRowsPerPage:`Số hàng mỗi trang:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} trong ${n===-1?`nhiều hơn ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} sao`,emptyLabelText:`Không có dữ liệu`}},MuiAutocomplete:{defaultProps:{clearText:`Xóa`,closeText:`Đóng`,loadingText:`Đang tải…`,noOptionsText:`Không có lựa chọn nào`,openText:`Mở`}},MuiAlert:{defaultProps:{closeText:`Đóng`}},MuiPagination:{defaultProps:{"aria-label":`Thanh điều khiển trang`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Tới `}trang ${t}`:e===`first`?`Tới trang đầu tiên`:e===`last`?`Tới trang cuối cùng`:e===`next`?`Tới trang tiếp theo`:`Về trang trước đó`}}}},qr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展开`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一页`:e===`last`?`最后一页`:e===`next`?`下一页`:`上一页`,labelRowsPerPage:`每页行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${e} 条到第 ${t} 条,${n===-1?`至少 ${t} 条`:`共 ${n} 条`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 颗星`,emptyLabelText:`无标签`}},MuiAutocomplete:{defaultProps:{clearText:`清空`,closeText:`关闭`,loadingText:`加载中……`,noOptionsText:`没有可用选项`,openText:`打开`}},MuiAlert:{defaultProps:{closeText:`关闭`}}}},Jr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一頁`:e===`last`?`最後一頁`:e===`next`?`下一頁`:`上一頁`,labelRowsPerPage:`每頁行數:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${e} 項至第 ${t} 項,${n===-1?`超過 ${t} 項`:`共 ${n} 項`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 粒星`,emptyLabelText:`無標籤`}},MuiAutocomplete:{defaultProps:{clearText:`清除`,closeText:`關閉`,loadingText:`載入中……`,noOptionsText:`沒有可用選項`,openText:`開啟`}},MuiAlert:{defaultProps:{closeText:`關閉`}}}},Yr={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一頁`:e===`last`?`最後一頁`:e===`next`?`下一頁`:`上一頁`,labelRowsPerPage:`每頁數量:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e} ~ ${t} / ${n===-1?`${t} 以上`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 顆星`,emptyLabelText:`無標籤`}},MuiAutocomplete:{defaultProps:{clearText:`清空`,closeText:`關閉`,loadingText:`載入中…`,noOptionsText:`沒有可用選項`,openText:`打開`}},MuiAlert:{defaultProps:{closeText:`關閉`}}}},Xr=e({amET:()=>Gn,arEG:()=>Kn,arSA:()=>qn,arSD:()=>Jn,azAZ:()=>Yn,beBY:()=>Xn,bgBG:()=>Zn,bnBD:()=>Qn,caES:()=>$n,csCZ:()=>er,daDK:()=>tr,deDE:()=>nr,elGR:()=>rr,enUS:()=>ir,esES:()=>ar,etEE:()=>or,faIR:()=>sr,fiFI:()=>cr,frFR:()=>lr,heIL:()=>ur,hiIN:()=>dr,hrHR:()=>fr,huHU:()=>pr,hyAM:()=>mr,idID:()=>hr,isIS:()=>gr,itIT:()=>_r,jaJP:()=>vr,khKH:()=>yr,kkKZ:()=>Cr,koKR:()=>br,kuCKB:()=>xr,kuLatn:()=>Sr,mkMK:()=>wr,msMS:()=>Tr,myMY:()=>Er,nbNO:()=>Dr,neNP:()=>Or,nlNL:()=>Ar,nnNO:()=>kr,plPL:()=>jr,psAF:()=>Mr,ptBR:()=>Nr,ptPT:()=>Pr,roRO:()=>Fr,ruRU:()=>Ir,siLK:()=>Lr,skSK:()=>Rr,srRS:()=>zr,svSE:()=>Br,thTH:()=>Vr,tlTL:()=>Ur,trTR:()=>Hr,ukUA:()=>Wr,urPK:()=>Gr,viVN:()=>Kr,zhCN:()=>qr,zhHK:()=>Jr,zhTW:()=>Yr});function Zr(e){let t=e.replace(`#`,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t,r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]}function Qr(e){let[t,n,r]=Zr(e);return`${t} ${n} ${r}`}function $r(e,t,n){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`.toUpperCase()}function ei(e){let[t,n,r]=Zr(e),i=t/255,a=n/255,o=r/255,s=Math.max(i,a,o),c=Math.min(i,a,o),l=0,u=0,d=(s+c)/2,f=s-c;if(f!==0){switch(u=d>.5?f/(2-s-c):f/(s+c),s){case i:l=(a-o)/f+(a<o?6:0);break;case a:l=(o-i)/f+2;break;default:l=(i-a)/f+4}l/=6}return{h:l*360,s:u*100,l:d*100}}function ti(e,t,n){let r=t/100,i=n/100,a=(1-Math.abs(2*i-1))*r,o=a*(1-Math.abs(e/60%2-1)),s=i-a/2,c,l,u;return e>=0&&e<60?[c,l,u]=[a,o,0]:e>=60&&e<120?[c,l,u]=[o,a,0]:e>=120&&e<180?[c,l,u]=[0,a,o]:e>=180&&e<240?[c,l,u]=[0,o,a]:e>=240&&e<300?[c,l,u]=[o,0,a]:[c,l,u]=[a,0,o],$r(Math.round((c+s)*255),Math.round((l+s)*255),Math.round((u+s)*255))}function ni(e,t){return`rgba(${e} / ${t})`}function ri(e){return{...e,lighterChannel:Qr(e.lighter),lightChannel:Qr(e.light),mainChannel:Qr(e.main),darkChannel:Qr(e.dark),darkerChannel:Qr(e.darker),contrastTextChannel:Qr(e.contrastText)}}function ii(e){let t=[50,100,200,300,400,500,600,700,800,900,950],n={};for(let r of t){let t=`${r}Channel`;n[t]=Qr(e[r])}return{...e,...n}}function ai(e,t,n){return Math.max(t,Math.min(n,e))}function oi(e){let t=ei(e),n=[{key:50,lDelta:40},{key:100,lDelta:32},{key:200,lDelta:24},{key:300,lDelta:16},{key:400,lDelta:8},{key:500,lDelta:0},{key:600,lDelta:-8},{key:700,lDelta:-16},{key:800,lDelta:-24},{key:900,lDelta:-32},{key:950,lDelta:-40}],r={};for(let{key:e,lDelta:i}of n){let n=ai(t.l+i,5,95);r[e]=ti(t.h,t.s,n)}return r}function si(e,t){let n=e=>e.includes(`var(--`),r=e=>e.trim().endsWith(`%`),i={invalid:`[varAlpha]: Invalid opacity "${e}" for "${t}".`,range:`Must be a number between 0 and 1 (e.g., 0.48).`,format:`Must be a percentage (e.g., "48%") or CSS variable (e.g., "var(--opacity)").`};if(typeof e==`string`){if(r(e))return e;if(n(e))return`calc(${e} * 100%)`;let t=parseFloat(e.trim());if(!isNaN(t)&&t>=0&&t<=1)return`${Number((t*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.format}`)}if(typeof e==`number`){if(e>=0&&e<=1)return`${Number((e*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.range}`)}throw Error(`${i.invalid}`)}function ci(e,t=1){if(!e?.trim())throw Error(`[varAlpha]: Color is undefined or empty!`);if(e.startsWith(`#`)||e.startsWith(`rgb(`)||e.startsWith(`rgba(`)||!e.includes(`var`)&&e.includes(`Channel`))throw Error([`[varAlpha]: Unsupported color format "${e}"`,`✅ Supported formats:`,` - RGB channels: "0 184 217"`,` - CSS variables: "var(--palette-primary-mainChannel)"`,` - currentColor`,`❌ Unsupported formats:`,` - Hex: "#00B8D9"`,` - RGB: "rgb(0, 184, 217)"`,` - RGBA: "rgba(0, 184, 217, 1)"`].join(`
|
|
39
|
+
`));let n=si(t,e);return e.toLowerCase()===`currentcolor`?`color-mix(in srgb, currentColor ${n}, transparent)`:`rgba(${e} / ${n})`}var li={50:`#F7FAFC`,100:`#EBF2F5`,200:`#DBE6EB`,300:`#C3D3DB`,400:`#9CAEB8`,500:`#77878F`,600:`#4D595E`,700:`#262D30`,800:`#1B2124`,900:`#111417`,950:`#06080A`},ui={50:`#EAF3FD`,100:`#C6DDFB`,200:`#A1C7F8`,300:`#7DB1F5`,400:`#589BF3`,500:`#3385F0`,600:`#2B71CC`,700:`#245DA8`,800:`#1C4984`,900:`#143560`,950:`#0A1B30`},di={50:`#E6F5F0`,100:`#BBE4D5`,200:`#8ED3BA`,300:`#62C29F`,400:`#35B084`,500:`#099F69`,600:`#088759`,700:`#066F49`,800:`#05573A`,900:`#04402A`,950:`#022015`},fi={50:`#F2E4FE`,100:`#E6CAFE`,200:`#D6A8FD`,300:`#C686FC`,400:`#B663FB`,500:`#A641FA`,600:`#8D37D5`,700:`#742DAF`,800:`#5B2489`,900:`#421A64`,950:`#210D32`},pi={50:`#F9E2E6`,100:`#F2C1CA`,200:`#E99AA8`,300:`#E17286`,400:`#D84A63`,500:`#D02241`,600:`#B11D37`,700:`#91182D`,800:`#721324`,900:`#530E1A`,950:`#3A0A12`},mi={50:`#FEEFE1`,100:`#FCDFC4`,200:`#FBCB9D`,300:`#F9B677`,400:`#F8A250`,500:`#F68D2A`,600:`#D17824`,700:`#AC631D`,800:`#874E17`,900:`#623811`,950:`#372412`},hi={50:`#E0F3FA`,100:`#BCE6F4`,200:`#90D6EC`,300:`#64C6E5`,400:`#39B6DD`,500:`#0DA6D6`,600:`#0B8DB6`,700:`#097496`,800:`#075B76`,900:`#054256`,950:`#03212B`},gi={white:`#FFFFFF`,black:`#000000`};function _i(e){let t=e.replace(`#`,``).match(/.{2}/g);if(!t)return 0;let[n,r,i]=t.map(e=>{let t=parseInt(e,16)/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*n+.7152*r+.0722*i}function vi(e){return _i(e)<.3?`#FFFFFF`:`#212121`}function yi(e,t=`light`){let n=t===`dark`?e[400]:e[500],r=vi(n);return ri(t===`dark`?{lighter:e[950],light:e[700],main:n,dark:e[300],darker:e[100],contrastText:r}:{lighter:e[50],light:e[400],main:n,dark:e[600],darker:e[900],contrastText:r})}function bi(e,t=`light`){return t===`dark`?{default:e[950],paper:e[900],neutral:e[800],elevation1:e[800],elevation2:e[700],elevation3:e[600],elevation4:e[500],menu:e[900],menuElevation1:e[800],menuElevation2:e[700]}:{default:`#FFFFFF`,paper:`#FFFFFF`,neutral:e[50],elevation1:e[50],elevation2:e[100],elevation3:e[200],elevation4:e[300],menu:`#FFFFFF`,menuElevation1:e[50],menuElevation2:e[100]}}function xi(e,t=`light`){let n=t===`dark`?{primary:e[50],secondary:e[300],disabled:e[500]}:{primary:e[900],secondary:e[600],disabled:e[400]};return{...n,primaryChannel:Qr(n.primary),secondaryChannel:Qr(n.secondary),disabledChannel:Qr(n.disabled)}}function Si(e,t=`light`){return t===`dark`?{active:e[400],hover:e[700],selected:e[700],disabled:e[600],disabledBackground:e[800],focus:e[600]}:{active:e[500],hover:e[100],selected:e[100],disabled:e[400],disabledBackground:e[200],focus:e[300]}}function Ci(e,t,n=`light`){let r=Qr(t);return{listItemHover:ni(e,n===`dark`?.08:.5),buttonHover:ni(e,n===`dark`?.12:.7),textFieldHover:ni(e,n===`dark`?.12:.7),text:{secondary:ni(r,.76),disabled:ni(r,.4)},overlay:ni(e,n===`dark`?.16:.7)}}function wi(e){return{chGrey:ii(e.grey),chRed:ii(e.red),chBlue:ii(e.blue),chGreen:ii(e.green),chOrange:ii(e.orange),chLightBlue:ii(e.lightBlue),chPurple:ii(e.purple)}}function Ti(e){let{primary:t,secondary:n,info:r,success:i,warning:a,error:o,grey:s,mode:c,backgroundDefault:l,paperColor:u}=e,d=ii(s),f=bi(s,c),p=xi(s,c),m=Si(s,c);l&&(f.default=l),u&&(f.paper=u,f.menu=u);let h={black:gi.black,white:gi.white,blackChannel:Qr(gi.black),whiteChannel:Qr(gi.white)},g=Ci(h.whiteChannel,p.primary,c),_=wi({grey:s,red:pi,blue:ui,green:di,orange:mi,lightBlue:hi,purple:fi}),v=c===`dark`?s[700]:s[300],y=ni(Qr(s[c===`dark`?700:300]),.6),b=ni(Qr(s[700]),0);return{mode:c,common:h,grey:d,primary:yi(t,c),secondary:yi(n,c),info:yi(r,c),success:yi(i,c),warning:yi(a,c),error:yi(o,c),neutral:yi(s,c),background:f,text:p,action:m,divider:v,dividerLight:y,menuDivider:b,vibrant:g,chart:_}}var Ei=Ti({primary:ui,secondary:fi,info:hi,success:di,warning:mi,error:pi,grey:li,mode:`light`}),Di=Ti({primary:ui,secondary:fi,info:hi,success:di,warning:mi,error:pi,grey:li,mode:`dark`});function Oi(e){return zt(`MuiCollapse`,e)}V(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var ki=e=>{let{orientation:t,classes:n}=e;return H({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Oi,n)},Ai=U(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(lt(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),ji=U(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Mi=U(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ni=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:g,orientation:_=`vertical`,slots:v={},slotProps:y={},style:b,timeout:x=Dt.standard,TransitionComponent:S=c,...C}=n,w={...n,orientation:_,collapsedSize:o},T=ki(w),E=jt(),D=Ue(),O=G.useRef(null),k=G.useRef(),A=typeof o==`number`?`${o}px`:o,j=_===`horizontal`,M=j?`width`:`height`,N=G.useRef(null),P=He(t,N),F=e=>t=>{if(e){let n=N.current;t===void 0?e(n):e(n,t)}},I=()=>O.current?O.current[j?`clientWidth`:`clientHeight`]:0,ee=F((e,t)=>{O.current&&j&&(O.current.style.position=`absolute`),e.style[M]=A,d&&d(e,t)}),te=F((e,t)=>{let n=I();O.current&&j&&(O.current.style.position=``);let{duration:r,easing:i}=ve({style:b,timeout:x,easing:l},{mode:`enter`});if(x===`auto`){let t=E.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,k.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[M]=`${n}px`,e.style.transitionTimingFunction=i,p&&p(e,t)}),ne=F((e,t)=>{e.style[M]=`auto`,f&&f(e,t)}),re=F(e=>{e.style[M]=`${I()}px`,m&&m(e)}),ie=F(h),ae=F(e=>{let t=I(),{duration:n,easing:r}=ve({style:b,timeout:x,easing:l},{mode:`exit`});if(x===`auto`){let n=E.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,k.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[M]=A,e.style.transitionTimingFunction=r,g&&g(e)}),oe=e=>{x===`auto`&&D.start(k.current||0,e),r&&r(N.current,e)},se={slots:v,slotProps:y,component:s},[ce,le]=z(`root`,{ref:P,className:R(T.root,a),elementType:Ai,externalForwardedProps:se,ownerState:w,additionalProps:{style:{[j?`minWidth`:`minHeight`]:A,...b}}}),[ue,de]=z(`wrapper`,{ref:O,className:T.wrapper,elementType:ji,externalForwardedProps:se,ownerState:w}),[fe,pe]=z(`wrapperInner`,{className:T.wrapperInner,elementType:Mi,externalForwardedProps:se,ownerState:w});return(0,K.jsx)(S,{in:u,onEnter:ee,onEntered:ne,onEntering:te,onExit:re,onExited:ie,onExiting:ae,addEndListener:oe,nodeRef:N,timeout:x===`auto`?null:x,...C,children:(e,{ownerState:t,...n})=>{let r={...w,state:e};return(0,K.jsx)(ce,{...le,className:R(le.className,{entered:T.entered,exited:!u&&A===`0px`&&T.hidden}[e]),ownerState:r,...n,children:(0,K.jsx)(ue,{...de,ownerState:r,children:(0,K.jsx)(fe,{...pe,ownerState:r,children:i})})})}})});Ni&&(Ni.muiSupportAuto=!0);var Pi=V(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),Fi=V(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`contentGutters`,`content`,`expandIconWrapper`]);function Ii(e){let t=G.useRef({});return G.useEffect(()=>{t.current=e}),t.current}var Li=`bottom`,Ri=`right`,zi=`left`,Bi=`auto`,Vi=[`top`,Li,Ri,zi],Hi=`start`,Ui=`clippingParents`,Wi=`viewport`,Gi=`popper`,Ki=`reference`,qi=Vi.reduce(function(e,t){return e.concat([t+`-`+Hi,t+`-end`])},[]),Ji=[].concat(Vi,[Bi]).reduce(function(e,t){return e.concat([t,t+`-`+Hi,t+`-end`])},[]),Yi=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Xi(e){return e?(e.nodeName||``).toLowerCase():null}function Zi(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qi(e){return e instanceof Zi(e).Element||e instanceof Element}function $i(e){return e instanceof Zi(e).HTMLElement||e instanceof HTMLElement}function ea(e){return typeof ShadowRoot>`u`?!1:e instanceof Zi(e).ShadowRoot||e instanceof ShadowRoot}function ta(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!$i(i)||!Xi(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function na(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!$i(r)||!Xi(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ra={name:`applyStyles`,enabled:!0,phase:`write`,fn:ta,effect:na,requires:[`computeStyles`]};function ia(e){return e.split(`-`)[0]}var aa=Math.max,oa=Math.min,sa=Math.round;function ca(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function la(){return!/^((?!chrome|android).)*safari/i.test(ca())}function ua(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&$i(e)&&(i=e.offsetWidth>0&&sa(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&sa(r.height)/e.offsetHeight||1);var o=(Qi(e)?Zi(e):window).visualViewport,s=!la()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function da(e){var t=ua(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fa(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ea(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pa(e){return Zi(e).getComputedStyle(e)}function ma(e){return[`table`,`td`,`th`].indexOf(Xi(e))>=0}function ha(e){return((Qi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ga(e){return Xi(e)===`html`?e:e.assignedSlot||e.parentNode||(ea(e)?e.host:null)||ha(e)}function _a(e){return!$i(e)||pa(e).position===`fixed`?null:e.offsetParent}function va(e){var t=/firefox/i.test(ca());if(/Trident/i.test(ca())&&$i(e)&&pa(e).position===`fixed`)return null;var n=ga(e);for(ea(n)&&(n=n.host);$i(n)&&[`html`,`body`].indexOf(Xi(n))<0;){var r=pa(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function ya(e){for(var t=Zi(e),n=_a(e);n&&ma(n)&&pa(n).position===`static`;)n=_a(n);return n&&(Xi(n)===`html`||Xi(n)===`body`&&pa(n).position===`static`)?t:n||va(e)||t}function ba(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function xa(e,t,n){return aa(e,oa(t,n))}function Sa(e,t,n){var r=xa(e,t,n);return r>n?n:r}function Ca(){return{top:0,right:0,bottom:0,left:0}}function wa(e){return Object.assign({},Ca(),e)}function Ta(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ea=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,wa(typeof e==`number`?Ta(e,Vi):e)};function Da(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ia(n.placement),c=ba(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Ea(i.padding,n),d=da(a),f=c===`y`?`top`:zi,p=c===`y`?Li:Ri,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=ya(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=xa(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Oa(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||fa(t.elements.popper,r)&&(t.elements.arrow=r))}var ka={name:`arrow`,enabled:!0,phase:`main`,fn:Da,effect:Oa,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Aa(e){return e.split(`-`)[1]}var ja={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Ma(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:sa(n*i)/i||0,y:sa(r*i)/i||0}}function Na(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=zi,b=`top`,x=window;if(l){var S=ya(n),C=`clientHeight`,w=`clientWidth`;if(S===Zi(n)&&(S=ha(n),pa(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Li;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Ri;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&ja),O=u===!0?Ma({x:p,y:h},Zi(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Pa(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:ia(t.placement),variation:Aa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Na(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Na(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Fa={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Pa,data:{}},Ia={passive:!0};function La(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=Zi(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Ia)}),s&&c.addEventListener(`resize`,n.update,Ia),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Ia)}),s&&c.removeEventListener(`resize`,n.update,Ia)}}var Ra={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:La,data:{}},za={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ba(e){return e.replace(/left|right|bottom|top/g,function(e){return za[e]})}var Va={start:`end`,end:`start`};function Ha(e){return e.replace(/start|end/g,function(e){return Va[e]})}function Ua(e){var t=Zi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wa(e){return ua(ha(e)).left+Ua(e).scrollLeft}function Ga(e,t){var n=Zi(e),r=ha(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=la();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Wa(e),y:c}}function Ka(e){var t=ha(e),n=Ua(e),r=e.ownerDocument?.body,i=aa(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=aa(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Wa(e),s=-n.scrollTop;return pa(r||t).direction===`rtl`&&(o+=aa(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function qa(e){var t=pa(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ja(e){return[`html`,`body`,`#document`].indexOf(Xi(e))>=0?e.ownerDocument.body:$i(e)&&qa(e)?e:Ja(ga(e))}function Ya(e,t){t===void 0&&(t=[]);var n=Ja(e),r=n===e.ownerDocument?.body,i=Zi(n),a=r?[i].concat(i.visualViewport||[],qa(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Ya(ga(a)))}function Xa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Za(e,t){var n=ua(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Qa(e,t,n){return t===`viewport`?Xa(Ga(e,n)):Qi(t)?Za(t,n):Xa(Ka(ha(e)))}function $a(e){var t=Ya(ga(e)),n=[`absolute`,`fixed`].indexOf(pa(e).position)>=0&&$i(e)?ya(e):e;return Qi(n)?t.filter(function(e){return Qi(e)&&fa(e,n)&&Xi(e)!==`body`}):[]}function eo(e,t,n,r){var i=t===`clippingParents`?$a(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Qa(e,n,r);return t.top=aa(i.top,t.top),t.right=oa(i.right,t.right),t.bottom=oa(i.bottom,t.bottom),t.left=aa(i.left,t.left),t},Qa(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function to(e){var t=e.reference,n=e.element,r=e.placement,i=r?ia(r):null,a=r?Aa(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Li:c={x:o,y:t.y+t.height};break;case Ri:c={x:t.x+t.width,y:s};break;case zi:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?ba(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Hi:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function no(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ui:s,l=n.rootBoundary,u=l===void 0?Wi:l,d=n.elementContext,f=d===void 0?Gi:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=wa(typeof g==`number`?Ta(g,Vi):g),v=f===`popper`?Ki:Gi,y=e.rects.popper,b=e.elements[m?v:f],x=eo(Qi(b)?b:b.contextElement||ha(e.elements.popper),c,u,o),S=ua(e.elements.reference),C=to({reference:S,element:y,strategy:`absolute`,placement:i}),w=Xa(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function ro(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Ji:c,u=Aa(r),d=u?s?qi:qi.filter(function(e){return Aa(e)===u}):Vi,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=no(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[ia(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function io(e){if(ia(e)===`auto`)return[];var t=Ba(e);return[Ha(e),t,Ha(t)]}function ao(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=ia(g)===g,v=c||(_||!m?[Ba(g)]:io(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(ia(n)===`auto`?ro(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=ia(E),O=Aa(E)===Hi,k=[`top`,Li].indexOf(D)>=0,A=k?`width`:`height`,j=no(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?Ri:zi:O?Li:`top`;b[A]>x[A]&&(M=Ba(M));var N=Ba(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ee=F;ee>0&&I(ee)!==`break`;ee--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var oo={name:`flip`,enabled:!0,phase:`main`,fn:ao,requiresIfExists:[`offset`],data:{_skip:!1}};function so(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function co(e){return[`top`,Ri,Li,zi].some(function(t){return e[t]>=0})}function lo(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=no(t,{elementContext:`reference`}),s=no(t,{altBoundary:!0}),c=so(o,r),l=so(s,i,a),u=co(c),d=co(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var uo={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:lo};function fo(e,t,n){var r=ia(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function po(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Ji.reduce(function(e,n){return e[n]=fo(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var mo={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:po};function ho(e){var t=e.state,n=e.name;t.modifiersData[n]=to({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var go={name:`popperOffsets`,enabled:!0,phase:`read`,fn:ho,data:{}};function _o(e){return e===`x`?`y`:`x`}function vo(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=no(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=ia(t.placement),v=Aa(t.placement),y=!v,b=ba(_),x=_o(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:zi,A=b===`y`?Li:Ri,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,I=v===`start`?C[j]:w[j],ee=v===`start`?-w[j]:-C[j],te=t.elements.arrow,ne=p&&te?da(te):{width:0,height:0},re=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Ca(),ie=re[k],ae=re[A],oe=xa(0,C[j],ne[j]),se=y?C[j]/2-F-oe-ie-E.mainAxis:I-oe-ie-E.mainAxis,ce=y?-C[j]/2+F+oe+ae+E.mainAxis:ee+oe+ae+E.mainAxis,le=t.elements.arrow&&ya(t.elements.arrow),ue=le?b===`y`?le.clientTop||0:le.clientLeft||0:0,de=D?.[b]??0,fe=M+se-de-ue,pe=M+ce-de,me=xa(p?oa(N,fe):N,M,p?aa(P,pe):P);S[b]=me,O[b]=me-M}if(s){var he=b===`x`?`top`:zi,ge=b===`x`?Li:Ri,_e=S[x],ve=x===`y`?`height`:`width`,ye=_e+g[he],be=_e-g[ge],xe=[`top`,zi].indexOf(_)!==-1,Se=D?.[x]??0,Ce=xe?ye:_e-C[ve]-w[ve]-Se+E.altAxis,we=xe?_e+C[ve]+w[ve]-Se-E.altAxis:be,Te=p&&xe?Sa(Ce,_e,we):xa(p?Ce:ye,_e,p?we:be);S[x]=Te,O[x]=Te-_e}t.modifiersData[r]=O}}var yo={name:`preventOverflow`,enabled:!0,phase:`main`,fn:vo,requiresIfExists:[`offset`]};function bo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xo(e){return e===Zi(e)||!$i(e)?Ua(e):bo(e)}function So(e){var t=e.getBoundingClientRect(),n=sa(t.width)/e.offsetWidth||1,r=sa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Co(e,t,n){n===void 0&&(n=!1);var r=$i(t),i=$i(t)&&So(t),a=ha(t),o=ua(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Xi(t)!==`body`||qa(a))&&(s=xo(t)),$i(t)?(c=ua(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Wa(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function wo(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function To(e){var t=wo(e);return Yi.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Eo(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Do(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Oo={placement:`bottom`,modifiers:[],strategy:`absolute`};function ko(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Ao(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Oo:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Oo,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Qi(e)?Ya(e):e.contextElement?Ya(e.contextElement):[],popper:Ya(t)};var s=To(Do([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(ko(t,n)){i.rects={reference:Co(t,ya(n),i.options.strategy===`fixed`),popper:da(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Eo(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!ko(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var jo=Ao({defaultModifiers:[Ra,go,Fa,ra,mo,oo,yo,ka,uo]});function Mo(e){return zt(`MuiPopper`,e)}V(`MuiPopper`,[`root`]);function No(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function Po(e){return typeof e==`function`?e():e}function Fo(e){return e.nodeType!==void 0}var Io=e=>{let{classes:t}=e;return H({root:[`root`]},Mo,t)},Lo={},Ro=G.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=G.useRef(null),_=rt(g,t),v=G.useRef(null),y=rt(v,u),b=G.useRef(y);vt(()=>{b.current=y},[y]),G.useImperativeHandle(u,()=>v.current,[]);let x=No(c,i),[S,C]=G.useState(x),[w,T]=G.useState(Po(n));G.useEffect(()=>{v.current&&v.current.forceUpdate()}),G.useEffect(()=>{n&&T(Po(n))},[n]),vt(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=jo(w,g.current,{placement:x,...l,modifiers:t});return b.current(n),()=>{n.destroy(),b.current(null)}},[w,a,o,s,l,x]);let E={placement:S};p!==null&&(E.TransitionProps=p);let D=Io(e),O=f.root??`div`;return(0,K.jsx)(O,{...j({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),zo=U(G.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Lo,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=G.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=Po(n);S=e&&Fo(e)?oe(e).body:oe(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,K.jsx)(me,{disablePortal:o,container:S,children:(0,K.jsx)(Ro,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),Bo=G.forwardRef(function(e,t){let n=mt(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=st({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,K.jsx)(zo,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function Vo(e){return zt(`MuiListSubheader`,e)}V(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var Ho=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e;return H({root:[`root`,n!==`default`&&`color${L(n)}`,!r&&`gutters`,i&&`inset`,!a&&`sticky`]},Vo,t)},Uo=U(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`default`&&t[`color${L(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(lt(({theme:e})=>({boxSizing:`border-box`,lineHeight:`48px`,listStyle:`none`,color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:`primary`},style:{color:(e.vars||e).palette.primary.main}},{props:{color:`inherit`},style:{color:`inherit`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:`sticky`,top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Wo=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiListSubheader`}),{className:r,color:i=`default`,component:a=`li`,disableGutters:o=!1,disableSticky:s=!1,inset:c=!1,...l}=n,u={...n,color:i,component:a,disableGutters:o,disableSticky:s,inset:c};return(0,K.jsx)(Uo,{as:a,className:R(Ho(u).root,r),ref:t,ownerState:u,...l})});Wo&&(Wo.muiSkipListHighlight=!0);var Go=V(`MuiAutocomplete`,`root.expanded.fullWidth.focused.focusVisible.tag.tagSizeSmall.tagSizeMedium.hasPopupIcon.hasClearIcon.inputRoot.input.inputFocused.endAdornment.clearIndicator.popupIndicator.popupIndicatorOpen.popper.popperDisablePortal.paper.listbox.loading.noOptions.option.groupLabel.groupUl`.split(`.`)),Ko=G.createContext();function qo(e){return zt(`MuiTableRow`,e)}var Jo=V(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),Yo=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return H({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},qo,t)},Xo=U(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(lt(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${Jo.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Zo=`tr`,Qo=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTableRow`}),{className:r,component:i=Zo,hover:a=!1,selected:o=!1,...s}=n,c=G.useContext(Ko),l={...n,component:i,hover:a,selected:o,head:c&&c.variant===`head`,footer:c&&c.variant===`footer`};return(0,K.jsx)(Xo,{as:i,ref:t,className:R(Yo(l).root,r),role:i===Zo?null:`row`,ownerState:l,...s})}),$o=G.createContext();function es(e){return zt(`MuiTableCell`,e)}var ts=V(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),ns=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return H({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${L(r)}`,i!==`normal`&&`padding${L(i)}`,`size${L(a)}`]},es,t)},rs=U(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${L(n.size)}`],n.padding!==`normal`&&t[`padding${L(n.padding)}`],n.align!==`inherit`&&t[`align${L(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(lt(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
40
|
+
${e.palette.mode===`light`?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${ts.paddingCheckbox}`]:{width:24,padding:`0 12px 0 16px`,"& > *":{padding:0}}}},{props:{padding:`checkbox`},style:{width:48,padding:`0 0 0 4px`}},{props:{padding:`none`},style:{padding:0}},{props:{align:`left`},style:{textAlign:`left`}},{props:{align:`center`},style:{textAlign:`center`}},{props:{align:`right`},style:{textAlign:`right`,flexDirection:`row-reverse`}},{props:{align:`justify`},style:{textAlign:`justify`}},{props:({ownerState:e})=>e.stickyHeader,style:{position:`sticky`,top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),is=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:o,scope:s,size:c,sortDirection:l,variant:u,...d}=n,f=G.useContext($o),p=G.useContext(Ko),m=p&&p.variant===`head`,h;h=a||(m?`th`:`td`);let g=s;h===`td`?g=void 0:!g&&m&&(g=`col`);let _=u||p&&p.variant,v={...n,align:r,component:h,padding:o||(f&&f.padding?f.padding:`normal`),size:c||(f&&f.size?f.size:`medium`),sortDirection:l,stickyHeader:_===`head`&&f&&f.stickyHeader,variant:_},y=ns(v),b=null;return l&&(b=l===`asc`?`ascending`:`descending`),(0,K.jsx)(rs,{as:h,ref:t,className:R(y.root,i),"aria-sort":b,scope:g,ownerState:v,...d})}),as=kt((0,K.jsx)(`path`,{d:`M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z`}),`CheckCircle`),ss=kt((0,K.jsx)(`path`,{d:`M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z`}),`Warning`);function cs(e){return zt(`MuiStepIcon`,e)}var ls=V(`MuiStepIcon`,[`root`,`active`,`completed`,`error`,`text`]),us,ds=e=>{let{classes:t,active:n,completed:r,error:i}=e;return H({root:[`root`,n&&`active`,r&&`completed`,i&&`error`],text:[`text`]},cs,t)},fs=U(Ge,{name:`MuiStepIcon`,slot:`Root`})(lt(({theme:e})=>({display:`block`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${ls.completed}, &.${ls.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${ls.error}`]:{color:(e.vars||e).palette.error.main}}))),ps=U(`text`,{name:`MuiStepIcon`,slot:`Text`})(lt(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),ms=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiStepIcon`}),{active:r=!1,className:i,completed:a=!1,error:o=!1,icon:s,...c}=n,l={...n,active:r,completed:a,error:o},u=ds(l);if(typeof s==`number`||typeof s==`string`){let e=R(i,u.root);return o?(0,K.jsx)(fs,{as:ss,className:e,ref:t,ownerState:l,...c}):a?(0,K.jsx)(fs,{as,className:e,ref:t,ownerState:l,...c}):(0,K.jsxs)(fs,{className:e,ref:t,ownerState:l,...c,children:[us||=(0,K.jsx)(`circle`,{cx:`12`,cy:`12`,r:`12`}),(0,K.jsx)(ps,{className:u.text,x:`12`,y:`12`,textAnchor:`middle`,dominantBaseline:`central`,ownerState:l,children:s})]})}return s}),hs=G.createContext({}),gs=G.createContext({});function _s(e){return zt(`MuiStepLabel`,e)}var vs=V(`MuiStepLabel`,[`root`,`horizontal`,`vertical`,`label`,`active`,`completed`,`error`,`disabled`,`iconContainer`,`alternativeLabel`,`labelContainer`]),ys=e=>{let{classes:t,orientation:n,active:r,completed:i,error:a,disabled:o,alternativeLabel:s}=e;return H({root:[`root`,n,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],label:[`label`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],iconContainer:[`iconContainer`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],labelContainer:[`labelContainer`,s&&`alternativeLabel`]},_s,t)},bs=U(`span`,{name:`MuiStepLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:`flex`,alignItems:`center`,[`&.${vs.alternativeLabel}`]:{flexDirection:`column`},[`&.${vs.disabled}`]:{cursor:`default`},variants:[{props:{orientation:`vertical`},style:{textAlign:`left`,padding:`8px 0`}}]}),xs=U(`span`,{name:`MuiStepLabel`,slot:`Label`})(lt(({theme:e})=>({...e.typography.body2,display:`block`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shortest}),[`&.${vs.active}, &.${vs.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${vs.alternativeLabel}`]:{marginTop:16},[`&.${vs.error}`]:{color:(e.vars||e).palette.error.main}}))),Ss=U(`span`,{name:`MuiStepLabel`,slot:`IconContainer`})({flexShrink:0,display:`flex`,paddingRight:8,[`&.${vs.alternativeLabel}`]:{paddingRight:0}}),Cs=U(`span`,{name:`MuiStepLabel`,slot:`LabelContainer`})(lt(({theme:e})=>({width:`100%`,color:(e.vars||e).palette.text.secondary,[`&.${vs.alternativeLabel}`]:{textAlign:`center`}}))),ws=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiStepLabel`}),{children:r,className:i,componentsProps:a={},error:o=!1,icon:s,optional:c,slots:l={},slotProps:u={},StepIconComponent:d,StepIconProps:f,...p}=n,{alternativeLabel:m,orientation:h}=G.useContext(gs),{active:g,disabled:_,completed:v,icon:y}=G.useContext(hs),b=s||y,x=d;b&&!x&&(x=ms);let S={...n,active:g,alternativeLabel:m,completed:v,disabled:_,error:o,orientation:h},C=ys(S),w={slots:l,slotProps:{stepIcon:f,...a,...u}},[T,E]=z(`root`,{elementType:bs,externalForwardedProps:{...w,...p},ownerState:S,ref:t,className:R(C.root,i)}),[D,O]=z(`label`,{elementType:xs,externalForwardedProps:w,ownerState:S}),[k,A]=z(`stepIcon`,{elementType:x,externalForwardedProps:w,ownerState:S});return(0,K.jsxs)(T,{...E,children:[b||k?(0,K.jsx)(Ss,{className:C.iconContainer,ownerState:S,children:(0,K.jsx)(k,{completed:v,active:g,error:o,icon:b,...A})}):null,(0,K.jsxs)(Cs,{className:C.labelContainer,ownerState:S,children:[r?(0,K.jsx)(D,{...O,className:R(C.label,O?.className),children:r}):null,c]})]})});ws.muiName=`StepLabel`;var Ts=V(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]),Es=V(`MuiPaginationItem`,[`root`,`page`,`sizeSmall`,`sizeLarge`,`text`,`textPrimary`,`textSecondary`,`outlined`,`outlinedPrimary`,`outlinedSecondary`,`rounded`,`ellipsis`,`firstLast`,`previousNext`,`focusVisible`,`disabled`,`selected`,`icon`,`colorPrimary`,`colorSecondary`]),Ds=kt((0,K.jsx)(`path`,{d:`M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),Os=kt((0,K.jsx)(`path`,{d:`M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`);function ks(e,t=`500`){let n=`${t}Channel`;return e.vars?.palette.grey?.[n]??{500:`145 158 171`,900:`0 0 0`}[t]}function As(e,t){return e.vars?.palette[t]?.mainChannel??{primary:`51 133 240`,success:`9 159 105`,error:`208 34 65`,warning:`246 141 42`,info:`13 166 214`}[t]}function js(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}var Ms=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],Ns=[...Ms.map(e=>({props:{variant:`soft`,color:e},style:({theme:t})=>({backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.16)`,color:t.vars?.palette[e]?.dark||t.palette[e].dark,boxShadow:`none`,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.32)`,boxShadow:`none`},"&:active":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.4)`}})})),{props:{variant:`soft`,color:`neutral`},style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.background.elevation3||e.palette.grey[200],boxShadow:`none`}})},{props:{variant:`soft`,color:`inherit`},style:({theme:e})=>({backgroundColor:e.vars?.palette.action.selected||e.palette.action.selected,color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,boxShadow:`none`}})}],Ps=[...Ms.map(e=>({props:{variant:`dashed`,color:e},style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.08)`,borderColor:t.vars?.palette[e]?.dark||t.palette[e].dark}})})),{props:{variant:`dashed`,color:`inherit`},style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.grey?.[500]||e.palette.grey[500]}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,borderColor:e.vars?.palette.text.primary||e.palette.text.primary}})}],Fs=[`circle`,`square`],Is={small:30,medium:36,large:42,xLarge:52},Ls=Fs.flatMap(e=>Object.keys(Is).map(t=>({props:{shape:e,size:t},style:{height:Is[t],minWidth:Is[t],padding:0,borderRadius:e===`circle`?`50%`:void 0}}))),Rs=[{props:{variant:`outlined`,color:`neutral`},style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],borderColor:e.vars?.palette.text.secondary||e.palette.text.secondary}})}],zs=[{props:{variant:`soft`},style:({theme:e})=>({[`&.${N.disabled}`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}})},{props:{variant:`dashed`},style:({theme:e})=>({[`&.${N.disabled}`]:{borderStyle:`dashed`}})}];function Bs(e){let{borderRadius:t,density:n}=e,r=js(n),i=[{props:{size:`xLarge`},style:{minHeight:56,fontSize:`15px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.467}}];return{defaultProps:{disableElevation:!0},styleOverrides:{root:{textTransform:`none`,fontSize:`14px`,fontWeight:600,borderRadius:t,padding:`${8*r}px ${16*r}px`,lineHeight:1.429,variants:[...Ns,...Ps,...Ls,...Rs,...i,...zs]},sizeLarge:{fontSize:`16px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.375},sizeSmall:{padding:`${6*r}px ${10*r}px`,fontSize:`13px`,lineHeight:1.286},outlinedSizeLarge:{paddingTop:9*r,paddingBottom:9*r},outlinedSizeMedium:{paddingTop:7*r,paddingBottom:7*r},outlinedSizeSmall:{paddingTop:5*r,paddingBottom:5*r},startIcon:{marginRight:4,"& > *:first-of-type":{fontSize:16}},endIcon:{marginLeft:4,"& > *:first-of-type":{fontSize:16}}}}}function Vs(){return{defaultProps:{disableRipple:!1}}}function Hs(e){return{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:e.borderRadius}}}}var Us=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],Ws=[...Us.map(e=>({props:t=>t.variant===`soft`&&t.color===e,style:({theme:t})=>({backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.16)`,color:t.vars?.palette[e]?.dark||t.palette[e].dark})})),{props:e=>e.variant===`soft`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})},{props:e=>e.variant===`soft`&&!e.color,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})}],Gs=[...Us.map(e=>({props:t=>t.variant===`dashed`&&t.color===e,style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main})})),{props:e=>e.variant===`dashed`&&e.color===`neutral`,style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.divider||e.palette.divider}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary})}],Ks=[{props:e=>e.variant===`outlined`&&e.color===`neutral`,style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary})}],qs=[{props:e=>e.variant===`filled`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.grey[300]||e.palette.grey[300],color:e.vars?.palette.text.primary||e.palette.text.primary})}],Js=[{props:{},style:({theme:e})=>({[`&.${Gt.disabled}`]:{opacity:1,color:e.vars?.palette.action.disabled||e.palette.action.disabled,[`&:not(.${Gt.outlined})`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground},[`&.${Gt.outlined}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}})}],Ys=[{props:{size:`xSmall`},style:{height:20,fontSize:`0.6875rem`,padding:`0 6px`}}];function Xs(e){let{borderRadius:t,density:n}=e,r=js(n);return{styleOverrides:{root:{borderRadius:t,fontWeight:500,variants:[...Ws,...Gs,...Ks,...qs,...Js,...Ys]},sizeSmall:{height:24*r},sizeMedium:{height:32*r},label:{fontWeight:500},labelSmall:{fontSize:`0.75rem`,paddingLeft:8,paddingRight:8},labelMedium:{fontSize:`0.8125rem`,paddingLeft:12,paddingRight:12},icon:{fontSize:18,color:`currentColor`},deleteIcon:{fontSize:18,opacity:.48,color:`currentColor`,"&:hover":{opacity:.8,color:`currentColor`}}}}}function Zs(e,t){return e?{"&:hover":{...t,...typeof e==`object`?e:{}}}:{}}function Qs(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t===`default`){let e={color:i[800],backgroundColor:i[300]},t=Zs(n?.hover,{backgroundColor:i[400]});return{...e,...t}}if(t===`inherit`){let e={color:r.common.white,backgroundColor:i[800]},t=Zs(n?.hover,{backgroundColor:i[700]});return{...e,...t}}if(t===`white`||t===`black`){let e=t===`white`?`black`:`white`,i={color:r.common[e],backgroundColor:r.common[t]},a=Zs(n?.hover,{opacity:.8});return{...i,...a}}let a=r[t],o={color:a.contrastText,backgroundColor:a.main},s=Zs(n?.hover,{backgroundColor:a.dark});return{...o,...s}}function $s(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t===`default`)return{...Qs(e,`default`,n),boxShadow:`none`};if(t===`inherit`){let e=i[`500Channel`]||`145, 158, 171`,t={boxShadow:`none`,backgroundColor:ci(e,.16)},r=Zs(n?.hover,{backgroundColor:ci(e,.32)});return{...t,...r}}if(t===`white`||t===`black`){let e={boxShadow:`none`,color:r.common[t],backgroundColor:ci(`currentColor`,.08)},i=Zs(n?.hover,{backgroundColor:ci(`currentColor`,.16)});return{...e,...i}}let a=r[t],o=a.mainChannel||r.primary.mainChannel||`51, 133, 240`,s={boxShadow:`none`,color:a.dark,backgroundColor:ci(o,.16)},c=Zs(n?.hover,{backgroundColor:ci(o,.32)});return{...s,...c}}function ec(e){let{images:t,sizes:n,positions:r,colors:i,direction:a=`to bottom`}=e;return i&&i.length>0?{background:`linear-gradient(${a}, ${i.join(`, `)})`}:t&&t.length>0?{backgroundImage:t.join(`, `),backgroundSize:n?.join(`, `)||`cover`,backgroundPosition:r?.join(`, `)||`center`,backgroundRepeat:`no-repeat`}:{}}function tc(e){let{blur:t=20,color:n=`rgba(255, 255, 255, 0.8)`}=e;return{backdropFilter:`blur(${t}px)`,WebkitBackdropFilter:`blur(${t}px)`,backgroundColor:n}}function nc(e,t){let{blur:n=20,color:r,dropdown:i}=t??{},a=e.vars?.palette||e.palette,o={backdropFilter:`blur(${n}px)`,WebkitBackdropFilter:`blur(${n}px)`,backgroundColor:r??ci(`255, 255, 255`,.9)};if(i){let t=e.customShadows,n=a.grey[`500Channel`]||`145, 158, 171`;return{...o,padding:e.spacing(.5),boxShadow:t?.dropdown||`0 0 2px 0 rgba(${n}, 0.24), -20px 20px 40px -4px rgba(${n}, 0.24)`,borderRadius:`${Number(e.shape.borderRadius)*1.25}px`}}return o}function rc(e){let t=e.vars?.palette||e.palette;return{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:Number(e.shape.borderRadius)*.75,"&:not(:last-of-type)":{marginBottom:4},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium,backgroundColor:t.action.selected,"&:hover":{backgroundColor:t.action.hover}}}}function ic(e){let{lines:t,lineHeight:n=1.5}=e;return{overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t,textOverflow:`ellipsis`,...n&&{lineHeight:n}}}function ac(e,...t){return{background:`linear-gradient(${e}, ${t.join(`, `)})`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,textFillColor:`transparent`,display:`inline-block`}}function oc(e){let{color:t=`linear-gradient(135deg, #FF5630, #00AB55)`,borderWidth:n=2,borderRadius:r=0}=e;return{position:`relative`,border:`none`,borderRadius:r,"&::before":{content:`""`,position:`absolute`,inset:0,borderRadius:`inherit`,padding:n,background:t,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,maskComposite:`exclude`,pointerEvents:`none`}}}function sc(e){let t=(e.vars?.palette||e.palette).grey[`500Channel`]||`145, 158, 171`;return{scrollbarWidth:`thin`,scrollbarColor:`${ci(t,.4)} ${ci(t,.08)}`,"&::-webkit-scrollbar":{width:6,height:6},"&::-webkit-scrollbar-track":{backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:ci(t,.4),borderRadius:3,"&:hover":{backgroundColor:ci(t,.6)}}}}var cc={toolbar:{minHeight:56,"@media (min-width:0px)":{"@media (orientation: landscape)":{minHeight:48}},"@media (min-width:600px)":{minHeight:64}},hideScrollX:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowX:`auto`,"&::-webkit-scrollbar":{display:`none`}},hideScrollY:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowY:`auto`,"&::-webkit-scrollbar":{display:`none`}},bgBlur:tc,bgGradient:ec,maxLine:ic,softStyles:$s,filledStyles:Qs,paperStyles:nc,menuItemStyles:rc,varAlpha:ci,textGradient:ac,borderGradient:oc,scrollbarStyles:sc},lc={fontSize:{base:15,responsive:16},lineHeight:24},uc={base:{small:{paddingTop:0,paddingBottom:4},medium:{paddingTop:4,paddingBottom:4}},outlined:{small:{paddingTop:8,paddingBottom:8},medium:{paddingTop:16,paddingBottom:16}},filled:{small:{paddingTop:20},medium:{paddingTop:24},smallHidden:{paddingTop:8,paddingBottom:8},mediumHidden:{paddingTop:16,paddingBottom:16}}};function dc(e,t){let{fontSize:n,lineHeight:r}=lc,i={fontSize:e.typography.pxToRem(n.base),height:`${r}px`,lineHeight:`${r}px`},a={fontSize:e.typography.pxToRem(n.responsive),height:`${r}px`,lineHeight:`${r}px`};return{...Object.fromEntries(t.map(e=>[e,i[e]])),[e.breakpoints.down(`sm`)]:Object.fromEntries(t.map(e=>[e,a[e]]))}}function fc(e){return e.vars?.palette.error?.mainChannel??`208 34 65`}function pc(e){return{styleOverrides:{root:({theme:e})=>({"--disabled-color":e.vars?.palette.action.disabled||e.palette.action.disabled,...dc(e,[`lineHeight`]),[`&.${ee.disabled}`]:{[`& .${Te.root} *`]:{color:`var(--disabled-color)`}}}),input:({theme:e})=>({...dc(e,[`fontSize`,`height`,`lineHeight`]),"&:focus":{borderRadius:`inherit`},"&::placeholder":{color:e.vars?.palette.text.disabled||e.palette.text.disabled,opacity:1}})}}}function mc(e){return{styleOverrides:{root:({theme:e})=>({"&::before":{borderBottomColor:ci(ks(e),.2)},"&::after":{borderBottomColor:e.vars?.palette.text.primary||e.palette.text.primary}})}}}function hc(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({borderRadius:t,[`&.${pe.focused}:not(.${pe.error})`]:{[`& .${pe.notchedOutline}`]:{borderColor:e.vars?.palette.text.primary||e.palette.text.primary}},[`&.${pe.disabled}`]:{[`& .${pe.notchedOutline}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}}),input:{...uc.outlined.medium,"&.MuiInputBase-inputSizeSmall":{...uc.outlined.small},"&.MuiInputBase-inputMultiline":{paddingTop:0,paddingBottom:0}},notchedOutline:({theme:e})=>({borderColor:ci(ks(e),.2),transition:e.transitions.create([`border-color`],{duration:e.transitions.duration.shortest}),fontSize:e.typography.pxToRem(14),"& legend > span":{paddingInline:3}})}}}function gc(e){let{borderRadius:t}=e;return{defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:e})=>{let n=ks(e),r=fc(e),i=ci(n,.08),a=ci(n,.16),o=ci(r,.08),s=ci(r,.16),c=e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground;return{backgroundColor:i,borderRadius:t,[`&:hover, &.${ce.focused}`]:{backgroundColor:a},[`&.${ce.error}`]:{backgroundColor:o,[`&:hover, &.${ce.focused}`]:{backgroundColor:s}},[`&.${ce.disabled}`]:{backgroundColor:c}}},input:{...uc.filled.medium,"&.MuiInputBase-inputSizeSmall":{...uc.filled.small},"&.MuiInputBase-inputMultiline":{paddingTop:0,paddingBottom:0}}}}}function _c(e){return{defaultProps:{variant:`outlined`,size:e.density===`compact`?`small`:`medium`}}}function vc(e){return{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:1.5,variants:[{props:e=>!e.shrink,style:{...dc(e,[`fontSize`,`lineHeight`]),color:e.vars?.palette.text.disabled||e.palette.text.disabled}},{props:e=>!!e.shrink,style:{fontWeight:600,[`&.${F.focused}:not(.${F.error})`]:{color:`inherit`}}}]})}}}function yc(e){return{defaultProps:{component:`div`},styleOverrides:{root:({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5),marginTop:e.spacing(.75),fontSize:e.typography.pxToRem(12),lineHeight:1.5,"& > svg":{width:16,height:16}})}}}function bc(e){return zt(`PrivateSwitchBase`,e)}V(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);var xc=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return H({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${L(i)}`],input:[`input`]},bc,t)},Sc=U(Qe,{name:`MuiSwitchBase`})({padding:9,borderRadius:`50%`,variants:[{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e===`start`&&t.size!==`small`,style:{marginLeft:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e===`end`&&t.size!==`small`,style:{marginRight:-12}}]}),Cc=U(`input`,{name:`MuiSwitchBase`,shouldForwardProp:Pt})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),wc=G.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:a,disabled:o,disableFocusRipple:s=!1,edge:c=!1,icon:l,id:u,inputProps:d,inputRef:f,name:p,onBlur:m,onChange:h,onFocus:g,readOnly:_,required:v=!1,tabIndex:y,type:b,value:x,slots:C={},slotProps:w={},...T}=e,[E,D]=S({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),O=ne(),k=e=>{g&&g(e),O&&O.onFocus&&O.onFocus(e)},A=e=>{m&&m(e),O&&O.onBlur&&O.onBlur(e)},j=e=>{if(e.nativeEvent.defaultPrevented||_)return;let t=e.target.checked;D(t),h&&h(e,t)},M=o;O&&M===void 0&&(M=O.disabled);let N=b===`checkbox`||b===`radio`,P={...e,checked:E,disabled:M,disableFocusRipple:s,edge:c},F=xc(P),I={slots:C,slotProps:{input:d,...w}},[ee,te]=z(`root`,{ref:t,elementType:Sc,className:F.root,shouldForwardComponentProp:!0,externalForwardedProps:{...I,component:`span`,...T},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),k(t)},onBlur:t=>{e.onBlur?.(t),A(t)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null}}),[re,ie]=z(`input`,{ref:f,elementType:Cc,className:F.input,externalForwardedProps:I,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),j(t)}}),ownerState:P,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:M,id:N?u:void 0,name:p,readOnly:_,required:v,tabIndex:y,type:b,...b===`checkbox`&&x===void 0?{}:{value:x}}});return(0,K.jsxs)(ee,{...te,children:[(0,K.jsx)(re,{...ie}),E?i:l]})}),Tc=kt((0,K.jsx)(`path`,{d:`M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`}),`CheckBoxOutlineBlank`),Ec=kt((0,K.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z`}),`CheckBox`),Dc=kt((0,K.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z`}),`IndeterminateCheckBox`);function Oc(e){return zt(`MuiCheckbox`,e)}var kc=V(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]),Ac=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=H({root:[`root`,n&&`indeterminate`,`color${L(r)}`,`size${L(i)}`]},Oc,t);return{...t,...a}},jc=U(wc,{shouldForwardProp:e=>Pt(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${L(n.size)}`],n.color!==`default`&&t[`color${L(n.color)}`]]}})(lt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:`default`,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{[`&.${kc.checked}, &.${kc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${kc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),Mc=(0,K.jsx)(Ec,{}),Nc=(0,K.jsx)(Tc,{}),Pc=(0,K.jsx)(Dc,{}),Fc=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiCheckbox`}),{checkedIcon:r=Mc,color:i=`primary`,icon:a=Nc,indeterminate:o=!1,indeterminateIcon:s=Pc,inputProps:c,size:l=`medium`,disableRipple:u=!1,className:d,slots:f={},slotProps:p={},...m}=n,h=o?s:a,g=o?s:r,_={...n,disableRipple:u,color:i,indeterminate:o,size:l},v=Ac(_),y=p.input??c,[b,x]=z(`root`,{ref:t,elementType:jc,className:R(v.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:p,...m},ownerState:_,additionalProps:{type:`checkbox`,icon:G.cloneElement(h,{fontSize:h.props.fontSize??l}),checkedIcon:G.cloneElement(g,{fontSize:g.props.fontSize??l}),disableRipple:u,slots:f,slotProps:{input:ge(typeof y==`function`?y(_):y,{"data-indeterminate":o})}}});return(0,K.jsx)(b,{...x,classes:v})}),Ic=V(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]);function Lc(e){return zt(`MuiSwitch`,e)}var Rc=V(`MuiSwitch`,[`root`,`edgeStart`,`edgeEnd`,`switchBase`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`,`checked`,`disabled`,`input`,`thumb`,`track`]);function zc(e){return(0,K.jsx)(Ge,{...e,children:(0,K.jsx)(`path`,{d:`M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z`})})}function Bc(e){return(0,K.jsx)(Ge,{...e,children:(0,K.jsx)(`path`,{d:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z`})})}function Vc(e){return(0,K.jsx)(Ge,{...e,children:(0,K.jsx)(`path`,{d:`M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z`})})}var Hc={small:{thumb:10,track:16,trackRadius:8,translateX:`10px`},medium:{thumb:14,track:20,trackRadius:10,translateX:`14px`}},Uc=[{props:e=>e.color===`default`,style:({theme:e})=>({[`&.${Rc.checked}`]:{[`& + .${Rc.track}`]:{backgroundColor:e.vars?.palette.text.primary},[`& .${Rc.thumb}`]:{...e.applyStyles(`dark`,{color:e.vars?.palette.grey[800]})}}})}],Wc=[{props:{},style:{[`&.${Rc.checked}`]:{transform:`translateX(${Hc.medium.translateX})`,[`& + .${Rc.track}`]:{opacity:1}}}}],Gc=[{props:{},style:({theme:e})=>({[`&.${Rc.disabled}`]:{[`& + .${Rc.track}`]:{opacity:.48},[`& .${Rc.thumb}`]:{...e.applyStyles(`dark`,{opacity:.48})}}})}],Kc=[{props:e=>e.size===`small`,style:{[`& .${Rc.switchBase}`]:{[`&.${Rc.checked}`]:{transform:`translateX(${Hc.small.translateX})`}},[`& .${Rc.thumb}`]:{width:Hc.small.thumb,height:Hc.small.thumb},[`& .${Rc.track}`]:{height:Hc.small.track,borderRadius:Hc.small.trackRadius}}}];function qc(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`,icon:(0,K.jsx)(zc,{}),checkedIcon:(0,K.jsx)(Bc,{}),indeterminateIcon:(0,K.jsx)(Vc,{})},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color===`default`,style:{[`&.${kc.checked}`]:{color:e.vars?.palette.text.primary}}},...[`primary`,`secondary`,`info`,`success`,`warning`,`error`].map(t=>({props:{color:t},style:{"&:hover":{backgroundColor:ci(e.vars?.palette[t]?.mainChannel??`51 133 240`,.12)}}}))]}),sizeSmall:{"& svg":{fontSize:16}},sizeMedium:{"& svg":{fontSize:20}}}}}function Jc(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color===`default`,style:{[`&.${Ic.checked}`]:{color:e.vars?.palette.text.primary}}}]})}}}function Yc(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:{alignItems:`center`,variants:[...Kc]},switchBase:{top:`auto`,left:`6px`,variants:[...Uc,...Wc,...Gc]},thumb:({theme:e})=>({width:Hc.medium.thumb,height:Hc.medium.thumb,color:e.vars?.palette.common.white}),track:({theme:e})=>({height:Hc.medium.track,borderRadius:Hc.medium.trackRadius,backgroundColor:ci(ks(e),.48),opacity:1})}}}function Xc(e){return{styleOverrides:{root:({theme:e})=>({[`&.${de.disabled}`]:{color:e.vars?.palette.action.disabled},variants:[{props:e=>!e.error,style:{[`&.${de.focused}`]:{color:e.vars?.palette.text.secondary}}}]})}}}function Zc(e){return{styleOverrides:{label:({theme:e})=>({...e.typography.body2})}}}function Qc(e){return{defaultProps:{variant:`outlined`},styleOverrides:{root:{"& .MuiFormLabel-root":{marginBottom:8}}}}}function $c(e){return zt(`MuiTab`,e)}var el=V(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`iconWrapper`,`icon`]),tl=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return H({root:[`root`,a&&o&&`labelIcon`,`textColor${L(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`iconWrapper`,`icon`]},$c,t)},nl=U(Qe,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${L(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${el.iconWrapper}`]:t.iconWrapper},{[`& .${el.icon}`]:t.icon}]}})(lt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition===`top`||e.iconPosition===`bottom`),style:{flexDirection:`column`}},{props:({ownerState:e})=>e.label&&e.iconPosition!==`top`&&e.iconPosition!==`bottom`,style:{flexDirection:`row`}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${el.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${el.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${el.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${el.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${el.selected}`]:{opacity:1},[`&.${el.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${el.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${el.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${el.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${el.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),rl=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},x=tl(b),S=s&&u&&G.isValidElement(s)?G.cloneElement(s,{className:R(x.icon,s.props.className)}):s,C=e=>{!m&&d&&d(e,_),f&&f(e)},w=e=>{h&&!m&&d&&d(e,_),p&&p(e)};return(0,K.jsxs)(nl,{focusRipple:!a,className:R(x.root,r),ref:t,role:`tab`,"aria-selected":m,disabled:i,onClick:C,onFocus:w,ownerState:b,tabIndex:m?0:-1,...y,children:[c===`top`||c===`start`?(0,K.jsxs)(G.Fragment,{children:[S,u]}):(0,K.jsxs)(G.Fragment,{children:[u,S]}),l]})}),il={root:[{props:e=>e.indicatorColor===`inherit`,style:{"& .MuiTabs-indicator":{backgroundColor:`currentColor`}}}],list:[{props:{},style:({theme:e})=>({gap:e.spacing(1)})}]},al=[{props:{},style:({theme:e})=>({[`&.${el.selected}`]:{fontWeight:600,color:e.vars?.palette.text.primary||e.palette.text.primary}})},{props:e=>!!e.icon&&!!e.label,style:{minHeight:`auto`}}];function ol(e){let t=js(e.density);return{defaultProps:{variant:`scrollable`,textColor:`inherit`,indicatorColor:`primary`,allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({minHeight:36*t,variants:[...il.root]}),list:{variants:[...il.list]},indicator:{borderRadius:2}}}}function sl(e){let t=js(e.density);return{defaultProps:{disableRipple:!0,iconPosition:`start`},styleOverrides:{root:({theme:e})=>({padding:8*t,minHeight:36*t,minWidth:36*t,opacity:1,textTransform:`none`,fontWeight:e.typography.fontWeightMedium,color:e.vars?.palette.text.secondary||e.palette.text.secondary,lineHeight:e.typography.body2.lineHeight,[`& .${ct.root}`]:{fontSize:20},variants:[...al]})}}}function cl(e){let{density:t,borderRadius:n}=e,r=js(t);return{MuiButton:Bs(e),MuiButtonBase:Vs(),MuiButtonGroup:Hs(e),MuiIconButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover}})}},MuiInputAdornment:{styleOverrides:{root:{[`& .${Je.root}:hover`]:{backgroundColor:`transparent`}}}},MuiFab:{defaultProps:{color:`primary`},styleOverrides:{root:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${As(e,`primary`)} / 0.24)`,"&:hover":{boxShadow:`0 8px 16px 0 rgba(${As(e,`primary`)} / 0.32)`}})}},MuiInputBase:pc(e),MuiInput:mc(e),MuiTextField:_c(e),MuiOutlinedInput:hc(e),MuiFilledInput:gc(e),MuiInputLabel:vc(e),MuiFormHelperText:yc(e),MuiSelect:{styleOverrides:{select:{minHeight:`auto`,display:`flex`,alignItems:`center`},icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiNativeSelect:{styleOverrides:{icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiAutocomplete:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,boxShadow:`0 0 2px 0 rgba(${ks(e)} / 0.24), -20px 20px 40px -4px rgba(${ks(e)} / 0.24)`}),listbox:{padding:4},option:({theme:e})=>({borderRadius:n-2,margin:2,[`&.${Go.focused}`]:{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover},'&[aria-selected="true"]':{backgroundColor:e.vars?.palette.action.selected||e.palette.action.selected,fontWeight:500,[`&.${Go.focused}`]:{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover}}}),popupIndicator:{[`& .${ct.root}`]:{fontSize:20}},clearIndicator:{[`& .${ct.root}`]:{fontSize:18}}}},MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({position:`relative`,zIndex:0,borderRadius:n*1.5,border:`1px solid ${e.vars?.palette.divider||e.palette.divider}`,backgroundImage:`none`,boxShadow:`0 0 2px 0 rgba(${ks(e)} / 0.2), 0 12px 24px -4px rgba(${ks(e)} / 0.12)`})}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:`h6`},subheaderTypographyProps:{variant:`body2`}},styleOverrides:{root:{padding:`${16*r}px ${20*r}px`},title:({theme:e})=>({fontSize:e.typography.pxToRem(16),fontWeight:600,lineHeight:1.5}),subheader:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:22/14,color:e.vars?.palette.text.secondary||e.palette.text.secondary})}},MuiCardContent:{styleOverrides:{root:{padding:`${16*r}px ${20*r}px`,"&:last-child":{paddingBottom:16*r}}}},MuiCardActions:{styleOverrides:{root:{padding:`${12*r}px ${20*r}px`,gap:8}}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:`none`},rounded:{borderRadius:n*1.5},outlined:({theme:e})=>({borderColor:`rgba(${ks(e)} / 0.16)`}),elevation1:({theme:e})=>({boxShadow:`0 1px 2px 0 rgba(${ks(e,`900`)} / 0.08)`}),elevation2:({theme:e})=>({boxShadow:`0 2px 4px 0 rgba(${ks(e,`900`)} / 0.08), 0 1px 2px 0 rgba(${ks(e,`900`)} / 0.04)`}),elevation3:({theme:e})=>({boxShadow:`0 4px 8px 0 rgba(${ks(e,`900`)} / 0.08), 0 2px 4px 0 rgba(${ks(e,`900`)} / 0.04)`}),elevation4:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${ks(e,`900`)} / 0.08), 0 4px 8px 0 rgba(${ks(e,`900`)} / 0.04)`}),elevation5:({theme:e})=>({boxShadow:`0 12px 24px -4px rgba(${ks(e,`900`)} / 0.08), 0 8px 16px 0 rgba(${ks(e,`900`)} / 0.04)`})}},MuiDialog:{styleOverrides:{paper:({theme:e})=>({boxShadow:`0 24px 48px -12px rgba(${ks(e,`900`)} / 0.24)`,[e.breakpoints.down(`sm`)]:{margin:0,width:`100% !important`,maxWidth:`none !important`,maxHeight:`none !important`,height:`100%`,borderRadius:`0 !important`},variants:[{props:e=>!e.fullScreen,style:{borderRadius:n*2,[e.breakpoints.up(`sm`)]:{margin:e.spacing(2)}}}]})}},MuiDialogTitle:{styleOverrides:{root:({theme:e})=>({padding:`${20*r}px ${24*r}px`,fontSize:e.typography.pxToRem(18),fontWeight:600,lineHeight:28/18})}},MuiDialogContent:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`}}},MuiDialogActions:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`,gap:8}}},MuiDrawer:{styleOverrides:{paper:{backgroundImage:`none`}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({backgroundImage:`none`,borderBottom:`1px solid ${e.vars?.palette.divider||e.palette.divider}`})}},MuiTabs:ol(e),MuiTab:sl(e),MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:8,marginRight:8}}},MuiAccordion:{defaultProps:{disableGutters:!0,elevation:0},styleOverrides:{root:({theme:e})=>({border:`1px solid ${e.vars?.palette.divider||e.palette.divider}`,borderRadius:n,"&::before":{display:`none`},"&:first-of-type":{borderTopLeftRadius:n,borderTopRightRadius:n},"&:last-of-type":{borderBottomLeftRadius:n,borderBottomRightRadius:n},"&:not(:last-of-type)":{borderBottom:0},[`&.${Pi.expanded}`]:{margin:0,"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0}},[`&.${Pi.disabled}`]:{backgroundColor:`transparent`}})}},MuiAccordionSummary:{styleOverrides:{root:({theme:e})=>({minHeight:48*r,padding:`0 ${16*r}px`,fontWeight:500,[`&.${Fi.expanded}`]:{minHeight:48*r},[`&.${Fi.disabled}`]:{opacity:.5}}),content:{margin:`${12*r}px 0`,[`&.${Fi.expanded}`]:{margin:`${12*r}px 0`}},expandIconWrapper:({theme:e})=>({color:e.vars?.palette.text.secondary||e.palette.text.secondary})}},MuiAccordionDetails:{styleOverrides:{root:({theme:e})=>({padding:`${8*r}px ${16*r}px ${16*r}px`,borderTop:`1px solid ${e.vars?.palette.divider||e.palette.divider}`})}},MuiStep:{styleOverrides:{root:{padding:0}}},MuiStepLabel:{styleOverrides:{label:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:500,[`&.${vs.active}`]:{fontWeight:600,color:e.vars?.palette.text.primary||e.palette.text.primary},[`&.${vs.completed}`]:{fontWeight:500,color:e.vars?.palette.text.primary||e.palette.text.primary}}),iconContainer:{paddingRight:12*r}}},MuiStepConnector:{styleOverrides:{line:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,borderTopWidth:2})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({color:e.vars?.palette.grey?.[300]||e.palette.grey[300],[`&.${ls.active}`]:{color:e.vars?.palette.primary.main||e.palette.primary.main},[`&.${ls.completed}`]:{color:e.vars?.palette.primary.main||e.palette.primary.main}}),text:{fontWeight:600,fontSize:`0.75rem`}}},MuiStepContent:{styleOverrides:{root:({theme:e})=>({borderLeft:`2px solid ${e.vars?.palette.divider||e.palette.divider}`,marginLeft:11,paddingLeft:20,paddingRight:8})}},MuiPagination:{defaultProps:{shape:`rounded`,size:t===`compact`?`small`:`medium`}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,fontWeight:500,[`&.${Es.selected}`]:{fontWeight:600}}),outlined:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,[`&.${Es.selected}`]:{backgroundColor:`rgba(${As(e,`primary`)} / 0.08)`,borderColor:e.vars?.palette.primary.main||e.palette.primary.main}}),text:({theme:e})=>({[`&.${Es.selected}`]:{backgroundColor:e.vars?.palette.primary.main||e.palette.primary.main,color:e.vars?.palette.primary.contrastText||e.palette.primary.contrastText,"&:hover":{backgroundColor:e.vars?.palette.primary.dark||e.palette.primary.dark}}}),previousNext:({theme:e})=>({borderRadius:n-2,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover}}),firstLast:({theme:e})=>({borderRadius:n-2})}},MuiChip:Xs(e),MuiAvatar:{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:600})}},MuiBadge:{styleOverrides:{badge:{fontWeight:600}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{tooltip:({theme:e})=>({borderRadius:n-2,fontSize:e.typography.pxToRem(12),padding:`6px 12px`,backgroundColor:e.vars?.palette.grey?.[800]||e.palette.grey[800]}),arrow:({theme:e})=>({color:e.vars?.palette.grey?.[800]||e.palette.grey[800]})}},MuiTableContainer:{styleOverrides:{root:{position:`relative`}}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({[`& .${ts.head}`]:{fontWeight:600,backgroundColor:e.vars?.palette.background.neutral||e.palette.grey[50],color:e.vars?.palette.text.secondary||e.palette.text.secondary}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({padding:`${12*r}px ${16*r}px`,borderBottomColor:`rgba(${ks(e)} / 0.2)`}),sizeSmall:{padding:`${8*r}px ${12*r}px`}}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({[`&:last-child .${ts.root}`]:{borderBottom:`none`},[`&.${Jo.selected}`]:{backgroundColor:`rgba(${As(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${As(e,`primary`)} / 0.12)`}}})}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:`small`},nextIconButtonProps:{size:`small`},slotProps:{select:{name:`table-pagination-select`}}},styleOverrides:{root:({theme:e})=>({borderTop:`1px solid ${e.vars?.palette.divider||e.palette.divider}`}),toolbar:{minHeight:44*r,paddingLeft:8*r,paddingRight:8*r},actions:{marginRight:8},select:{display:`flex`,alignItems:`center`},selectIcon:{right:4,width:16,height:16,top:`calc(50% - 8px)`},selectLabel:({theme:e})=>({...e.typography.body2}),displayedRows:({theme:e})=>({...e.typography.body2})}},MuiAlert:{styleOverrides:{root:{borderRadius:n},standardSuccess:({theme:e})=>({backgroundColor:`rgba(${As(e,`success`)} / 0.08)`,color:e.vars?.palette.success.dark||e.palette.success.dark}),standardError:({theme:e})=>({backgroundColor:`rgba(${As(e,`error`)} / 0.08)`,color:e.vars?.palette.error.dark||e.palette.error.dark}),standardWarning:({theme:e})=>({backgroundColor:`rgba(${As(e,`warning`)} / 0.08)`,color:e.vars?.palette.warning.dark||e.palette.warning.dark}),standardInfo:({theme:e})=>({backgroundColor:`rgba(${As(e,`info`)} / 0.08)`,color:e.vars?.palette.info.dark||e.palette.info.dark})}},MuiSnackbar:{styleOverrides:{root:{"& .MuiPaper-root":{borderRadius:n}}}},MuiLinearProgress:{styleOverrides:{root:{borderRadius:4,height:6}}},MuiSlider:{defaultProps:{size:t===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{color:e.vars?.palette.action.disabled||e.palette.action.disabled}}),rail:({theme:e})=>({opacity:.32,backgroundColor:e.vars?.palette.grey?.[500]||e.palette.grey[500]}),track:{border:`none`},thumb:({theme:e})=>({width:t===`compact`?16:20,height:t===`compact`?16:20,backgroundColor:e.vars?.palette.common.white||e.palette.common.white,border:`2px solid currentColor`,boxShadow:`0 1px 3px 0 rgba(${ks(e,`900`)} / 0.2)`,"&::before":{display:`none`},"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 8px rgba(${As(e,`primary`)} / 0.16)`},"&.Mui-active":{boxShadow:`0 0 0 12px rgba(${As(e,`primary`)} / 0.24)`}}),valueLabel:({theme:e})=>({borderRadius:n-2,backgroundColor:e.vars?.palette.grey?.[800]||e.palette.grey[800],"&::before":{display:`none`}}),mark:({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:e.vars?.palette.grey?.[400]||e.palette.grey[400]}),markActive:({theme:e})=>({backgroundColor:e.vars?.palette.common.white||e.palette.common.white})}},MuiRating:{defaultProps:{size:t===`compact`?`small`:`medium`,emptyIcon:void 0},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{opacity:.48}}),icon:{fontSize:`inherit`},iconEmpty:({theme:e})=>({color:e.vars?.palette.grey?.[300]||e.palette.grey[300]}),iconFilled:({theme:e})=>({color:e.vars?.palette.warning.main||e.palette.warning.main}),iconHover:({theme:e})=>({color:e.vars?.palette.warning.dark||e.palette.warning.dark}),sizeSmall:{fontSize:`1.125rem`},sizeMedium:{fontSize:`1.5rem`},sizeLarge:{fontSize:`2rem`}}},MuiCheckbox:qc(e),MuiRadio:Jc(e),MuiSwitch:Yc(e),MuiFormControl:Qc(e),MuiFormControlLabel:Zc(e),MuiFormLabel:Xc(e),MuiListItemButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,margin:2,"&.Mui-selected":{backgroundColor:`rgba(${As(e,`primary`)} / 0.08)`,fontWeight:500},"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover}})}},MuiListItemIcon:{styleOverrides:{root:{minWidth:40}}},MuiMenu:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,marginTop:4,boxShadow:`0 0 2px 0 rgba(${ks(e)} / 0.24), -20px 20px 40px -4px rgba(${ks(e)} / 0.24)`}),list:{padding:4}}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,borderRadius:n-2,margin:2,padding:`${8*r}px ${12*r}px`,"&:not(:last-of-type)":{marginBottom:4},"&.Mui-selected":{fontWeight:500,backgroundColor:e.vars?.palette.action.selected||e.palette.action.selected,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover}}})}},MuiPopover:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,boxShadow:`0 0 2px 0 rgba(${ks(e)} / 0.24), -20px 20px 40px -4px rgba(${ks(e)} / 0.24)`})}},MuiDivider:{styleOverrides:{root:({theme:e})=>({borderColor:`rgba(${ks(e)} / 0.2)`})}},MuiSkeleton:{styleOverrides:{rounded:{borderRadius:n}}},MuiBackdrop:{styleOverrides:{root:({theme:e})=>({backgroundColor:`rgba(${ks(e,`900`)} / 0.5)`})}},MuiLink:{defaultProps:{underline:`hover`},styleOverrides:{root:({theme:e})=>({color:e.vars?.palette.primary.main||e.palette.primary.main,textDecorationColor:`transparent`,transition:`color 150ms, text-decoration-color 150ms`,"&:hover":{textDecorationColor:`currentColor`}})}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,fontWeight:500,textTransform:`none`,border:`1px solid ${e.vars?.palette.divider||e.palette.divider}`,[`&.${Ts.selected}`]:{backgroundColor:`rgba(${As(e,`primary`)} / 0.08)`,borderColor:e.vars?.palette.primary.main||e.palette.primary.main,color:e.vars?.palette.primary.main||e.palette.primary.main,"&:hover":{backgroundColor:`rgba(${As(e,`primary`)} / 0.16)`}},[`&.${Ts.disabled}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}),sizeSmall:{padding:`${4*r}px ${8*r}px`,fontSize:`0.8125rem`},sizeMedium:{padding:`${6*r}px ${12*r}px`},sizeLarge:{padding:`${8*r}px ${16*r}px`,fontSize:`0.9375rem`}}},MuiToggleButtonGroup:{styleOverrides:{root:{gap:4,"& .MuiToggleButton-root":{border:`1px solid`,borderRadius:`${n}px !important`}},grouped:{"&:not(:first-of-type)":{marginLeft:0,borderLeft:`1px solid`}}}},MuiTimeline:{styleOverrides:{root:{padding:0}}},MuiTimelineItem:{styleOverrides:{root:{"&::before":{display:`none`}}}},MuiTimelineDot:{styleOverrides:{root:({theme:e})=>({boxShadow:`none`,borderColor:`transparent`,padding:3}),outlined:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,backgroundColor:`transparent`})}},MuiTimelineConnector:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.vars?.palette.divider||e.palette.divider,width:2})}},MuiTimelineContent:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:`${6*r}px ${16*r}px`})}},MuiDataGrid:{styleOverrides:{root:({theme:e})=>({border:`none`,borderRadius:n,"--DataGrid-containerBackground":e.vars?.palette.background.neutral||e.palette.grey[50],"--DataGrid-pinnedBackground":e.vars?.palette.background.paper||e.palette.background.paper,"& .MuiDataGrid-columnHeaders":{borderBottom:`1px solid ${e.vars?.palette.divider||e.palette.divider}`},"& .MuiDataGrid-columnHeader":{fontWeight:600,fontSize:e.typography.pxToRem(14),color:e.vars?.palette.text.secondary||e.palette.text.secondary,"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-cell":{borderBottom:`1px solid rgba(${ks(e)} / 0.12)`,"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-row":{"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover},"&.Mui-selected":{backgroundColor:`rgba(${As(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${As(e,`primary`)} / 0.12)`}}},"& .MuiDataGrid-footerContainer":{borderTop:`1px solid ${e.vars?.palette.divider||e.palette.divider}`},"& .MuiDataGrid-selectedRowCount":{whiteSpace:`nowrap`},"& .MuiDataGrid-toolbarContainer":{padding:e.spacing(1.5,1.5,.5),gap:e.spacing(1)},"& .MuiDataGrid-columnSeparator":{color:e.vars?.palette.divider||e.palette.divider}})}},MuiDatePicker:{defaultProps:{slotProps:{openPickerButton:{size:t===`compact`?`small`:`medium`}}}},MuiPickersLayout:{styleOverrides:{root:({theme:e})=>({"& .MuiPickersLayout-actionBar":{padding:e.spacing(1,2)}})}},MuiPickersDay:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,fontWeight:400,"&.Mui-selected":{fontWeight:600}}),today:({theme:e})=>({borderColor:e.vars?.palette.primary.main||e.palette.primary.main,"&:not(.Mui-selected)":{backgroundColor:`transparent`}})}},MuiPickersYear:{styleOverrides:{yearButton:({theme:e})=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}},MuiPickersMonth:{styleOverrides:{monthButton:({theme:e})=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}},MuiTreeItem:{styleOverrides:{root:{},content:({theme:e})=>({borderRadius:n-2,padding:`${4*r}px ${8*r}px`,"&.Mui-selected":{backgroundColor:`rgba(${As(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${As(e,`primary`)} / 0.16)`},"&.Mui-focused":{backgroundColor:`rgba(${As(e,`primary`)} / 0.12)`}},"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover}}),label:({theme:e})=>({...e.typography.body2,fontWeight:500}),iconContainer:{width:`auto`}}},MuiCssBaseline:{styleOverrides:e=>({html:{scrollBehavior:`smooth`},body:{scrollbarWidth:`thin`,scrollbarColor:`rgba(${ks(e)} / 0.4) rgba(${ks(e)} / 0.08)`},"*, *::before, *::after":{boxSizing:`border-box`},"#root, #__next":{height:`100%`},"::-webkit-scrollbar":{width:6,height:6},"::-webkit-scrollbar-track":{backgroundColor:`transparent`},"::-webkit-scrollbar-thumb":{backgroundColor:`rgba(${ks(e)} / 0.4)`,borderRadius:3},"::-webkit-scrollbar-thumb:hover":{backgroundColor:`rgba(${ks(e)} / 0.6)`},'html[data-vision="protanopia"]:not([data-showcase])':{filter:`url("#protanopia-filter")`},'html[data-vision="deuteranopia"]:not([data-showcase])':{filter:`url("#deuteranopia-filter")`},'html[data-vision="tritanopia"]:not([data-showcase])':{filter:`url("#tritanopia-filter")`},'html[data-vision="achromatopsia"]:not([data-showcase])':{filter:`url("#achromatopsia-filter")`}})}}}var ll=[`none`,`0px 1px 2px 0px rgba(0, 0, 0, 0.05)`,`0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1)`,`0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1)`,`0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)`,`0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1)`,`0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 2px 4px rgba(0, 0, 0, 0.08)`,`0px 4px 8px rgba(0, 0, 0, 0.08)`,`0px 8px 16px rgba(0, 0, 0, 0.08)`,`0px 12px 24px rgba(0, 0, 0, 0.08)`,`0px 16px 32px rgba(0, 0, 0, 0.08)`,`0px 20px 40px rgba(0, 0, 0, 0.08)`,`0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1)`,`0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)`,`0px 20px 20px -10px rgba(0, 0, 0, 0.04), 0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 1px 2px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 2px 4px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 0px 0px 3px rgba(66, 153, 225, 0.5)`,`0px 0px 0px 3px rgba(72, 187, 120, 0.5)`,`0px 0px 0px 3px rgba(245, 101, 101, 0.5)`,`inset 0px 2px 4px rgba(0, 0, 0, 0.06)`,`inset 0px 4px 6px rgba(0, 0, 0, 0.1)`,`inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1)`];function ul(e,t=1){return t===1?[...ll]:ll.map(e=>e===`none`?e:e.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\d.]+)\)/g,(e,n,r,i,a)=>`rgba(${n}, ${r}, ${i}, ${Math.min(1,parseFloat(a)*t).toFixed(2)})`))}ll[0],ll[1],ll[2],ll[3],ll[4],ll[5],ll[6],ll[8],ll[9],ll[14],ll[15],ll[19],ll[20],ll[21],ll[22];var dl={fontFamily:{primary:`"Nunito Sans Variable", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,mono:`"JetBrains Mono", "Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},fl={xs:`0.75rem`,sm:`0.875rem`,md:`1rem`,lg:`1.125rem`,xl:`1.25rem`,"2xl":`1.5rem`,"3xl":`1.875rem`,"4xl":`2.25rem`,"5xl":`3rem`,"6xl":`3.75rem`},pl={tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2};function ml(e){let{fontFamily:t,fontWeights:n}=e;return{fontFamily:t.primary,fontWeightLight:n.light,fontWeightRegular:n.regular,fontWeightMedium:n.medium,fontWeightBold:n.bold,h1:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:fl[`5xl`],lineHeight:pl.tight,letterSpacing:`-0.025em`},h2:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:fl[`4xl`],lineHeight:pl.tight,letterSpacing:`-0.025em`},h3:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:fl[`3xl`],lineHeight:pl.snug,letterSpacing:`-0.02em`},h4:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:fl[`2xl`],lineHeight:pl.snug,letterSpacing:`-0.02em`},h5:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:fl.xl,lineHeight:pl.snug},h6:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:fl.lg,lineHeight:pl.snug},body1:{fontSize:fl.md,lineHeight:pl.relaxed},body2:{fontSize:fl.sm,lineHeight:pl.relaxed},subtitle1:{fontSize:fl.md,fontWeight:n.medium,lineHeight:pl.normal},subtitle2:{fontSize:fl.sm,fontWeight:n.medium,lineHeight:pl.normal},caption:{fontSize:fl.xs,lineHeight:pl.normal},overline:{fontSize:fl.xs,fontWeight:n.semiBold,lineHeight:pl.normal,textTransform:`uppercase`,letterSpacing:`0.08em`},button:{fontSize:fl.sm,fontWeight:n.semiBold,lineHeight:pl.normal,textTransform:`none`}}}var hl={50:`#FBF7E8`,100:`#F5EBC9`,200:`#EDDFA8`,300:`#E3D086`,400:`#D9C164`,500:`#C9A227`,600:`#A88820`,700:`#876D1A`,800:`#665314`,900:`#45380E`,950:`#241D07`},gl={50:`#F5EEF5`,100:`#E8D5E8`,200:`#D4B3D4`,300:`#B38AB3`,400:`#996399`,500:`#6B3A6B`,600:`#5A305A`,700:`#4A284A`,800:`#3A1F3A`,900:`#2A172A`,950:`#1A0F1A`},_l={50:`#FAF9F7`,100:`#F5F3F0`,200:`#E8E4DE`,300:`#D4CEC4`,400:`#B8AFA0`,500:`#9C917C`,600:`#7A6F5C`,700:`#5C5244`,800:`#3E362C`,900:`#201C16`,950:`#100E0B`},vl={50:`#F9E8E8`,100:`#F0C9C9`,200:`#E4A3A3`,300:`#D57C7C`,400:`#C65656`,500:`#B82E2E`,600:`#9A2626`,700:`#7D1E1E`,800:`#5F1717`,900:`#42100F`,950:`#250908`},yl={50:`#FEF8E6`,100:`#FCEFC2`,200:`#F9E394`,300:`#F5D566`,400:`#F0C538`,500:`#D4A012`,600:`#B1850F`,700:`#8E6B0C`,800:`#6B5009`,900:`#483606`,950:`#251B03`},bl={50:`#E8F4E8`,100:`#C9E4C9`,200:`#A3D1A3`,300:`#7DBD7D`,400:`#56A956`,500:`#2E8B2E`,600:`#267426`,700:`#1E5D1E`,800:`#174717`,900:`#0F300F`,950:`#081A08`},xl={50:`#E8F0F6`,100:`#C9DCEB`,200:`#A3C4DD`,300:`#7DACCE`,400:`#5694C0`,500:`#2E7AB8`,600:`#26669A`,700:`#1E527C`,800:`#173E5E`,900:`#0F2A40`,950:`#081520`},Sl={50:`#F9F5FF`,100:`#F0E6FF`,200:`#E3CFFF`,300:`#CEA9FF`,400:`#B574FF`,500:`#BD93F9`,600:`#A57EE0`,700:`#8666B8`,800:`#6E5394`,900:`#5B4579`,950:`#3B2D4D`},Cl={50:`#FFF5F7`,100:`#FFE5EA`,200:`#FFCCD6`,300:`#FFA4B5`,400:`#FF6E8B`,500:`#FF79C6`,600:`#E85AA1`,700:`#C4407F`,800:`#A2356A`,900:`#87305B`,950:`#4E1533`},wl={50:`#ECFFFE`,100:`#CFFFFE`,200:`#A5FFFE`,300:`#67FFFC`,400:`#22FFF5`,500:`#8BE9FD`,600:`#06D1E7`,700:`#0BA6BC`,800:`#118497`,900:`#136C7D`,950:`#05484E`};Sl[500];var Tl={50:`#FFF4ED`,100:`#FFE4D4`,200:`#FFC9A8`,300:`#FFAA71`,400:`#FF8038`,500:`#FF5F11`,600:`#F04006`,700:`#C72D07`,800:`#9E250E`,900:`#7F230F`,950:`#450E05`},El={50:`#FFF1F2`,100:`#FFE1E3`,200:`#FFC8CD`,300:`#FFA1A9`,400:`#FF6B78`,500:`#FA3D4D`,600:`#E81B2D`,700:`#C31323`,800:`#A11421`,900:`#861721`,950:`#49060C`};Tl[500];var Dl={50:`#EEF2FF`,100:`#E0E7FF`,200:`#C7D2FE`,300:`#A5B4FC`,400:`#818CF8`,500:`#6366F1`,600:`#4F46E5`,700:`#4338CA`,800:`#3730A3`,900:`#312E81`,950:`#1E1B4B`},Ol={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};Dl[500];var kl={50:`#FFFBEB`,100:`#FEF3C7`,200:`#FDE68A`,300:`#FCD34D`,400:`#FBBF24`,500:`#F59E0B`,600:`#D97706`,700:`#B45309`,800:`#92400E`,900:`#78350F`,950:`#451A03`},Al={50:`#F0FDFA`,100:`#CCFBF1`,200:`#99F6E4`,300:`#5EEAD4`,400:`#2DD4BF`,500:`#14B8A6`,600:`#0D9488`,700:`#0F766E`,800:`#115E59`,900:`#134E4A`,950:`#042F2E`};kl[500];var jl={50:`#FAFAFA`,100:`#F5F5F5`,200:`#E5E5E5`,300:`#D4D4D4`,400:`#A3A3A3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0A0A0A`},Ml={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};jl[500];var Nl={name:`arctic`,displayName:`Arctic`,description:`A cool, crisp blue theme inspired by northern landscapes.`,preferredMode:`light`,lightPalette:{primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#1E88E5`,dark:`#1565C0`,darker:`#0D47A1`,contrastText:`#FFFFFF`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#FFFFFF`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#26C6DA`,dark:`#00ACC1`,darker:`#00838F`,contrastText:`#FFFFFF`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#66BB6A`,dark:`#43A047`,darker:`#2E7D32`,contrastText:`#FFFFFF`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFB300`,dark:`#FF8F00`,darker:`#FF6F00`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#E53935`,darker:`#C62828`,contrastText:`#FFFFFF`},grey:{50:`#FAFBFC`,100:`#F4F6F8`,200:`#E4E9ED`,300:`#D0D7DE`,400:`#AFB8C1`,500:`#8C959F`,600:`#6E7781`,700:`#57606A`,800:`#424A53`,900:`#32383F`,950:`#272C31`},common:{black:`#1B1F23`,white:`#FFFFFF`},background:{default:`#E8F0F6`,paper:`#F1F9FB`,neutral:`#E4E9ED`},text:{primary:`#1B1F23`,secondary:`#57606A`,disabled:`#8C959F`}},darkPalette:{primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#FFFFFF`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#64B5F6`,dark:`#42A5F5`,darker:`#1E88E5`,contrastText:`#FFFFFF`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#4DD0E1`,dark:`#26C6DA`,darker:`#00ACC1`,contrastText:`#FFFFFF`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#81C784`,dark:`#66BB6A`,darker:`#4CAF50`,contrastText:`#FFFFFF`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFCA28`,dark:`#FFB300`,darker:`#FFA000`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#F44336`,darker:`#E53935`,contrastText:`#FFFFFF`},grey:{50:`#0D1117`,100:`#161B22`,200:`#21262D`,300:`#30363D`,400:`#484F58`,500:`#6E7681`,600:`#8B949E`,700:`#B1BAC4`,800:`#C9D1D9`,900:`#F0F6FC`},common:{black:`#010409`,white:`#FFFFFF`},background:{default:`#0D1117`,paper:`#161B22`,neutral:`#21262D`},text:{primary:`#F0F6FC`,secondary:`#B1BAC4`,disabled:`#6E7681`}},typography:{fontFamily:{primary:`"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Poppins", -apple-system, BlinkMacSystemFont, sans-serif`,mono:`"Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},colorGroup:{key:`arctic`,main:`#1E88E5`}};function Pl(e){switch(e){case`luxury`:return{lightPalette:Ti({primary:hl,secondary:gl,info:xl,success:bl,warning:yl,error:vl,grey:_l,mode:`light`,backgroundDefault:`#FAF7F5`,paperColor:`#FDFBFB`}),darkPalette:Ti({primary:hl,secondary:gl,info:xl,success:bl,warning:yl,error:vl,grey:_l,mode:`dark`}),colorGroup:{key:`luxury`,main:hl[500],palette:hl}};case`arctic`:return{lightPalette:Fl(Nl.lightPalette,`light`),darkPalette:Fl(Nl.darkPalette,`dark`),colorGroup:{key:`arctic`,main:`#1E88E5`,palette:ui}};case`dracula`:return{lightPalette:Ti({primary:Sl,secondary:Cl,info:wl,success:di,warning:mi,error:pi,grey:li,mode:`light`,backgroundDefault:`#F5F0FA`,paperColor:`#FAF7FC`}),darkPalette:Ti({primary:Sl,secondary:Cl,info:wl,success:di,warning:mi,error:pi,grey:li,mode:`dark`,backgroundDefault:`#282A36`,paperColor:`#21222C`}),colorGroup:{key:`dracula`,main:Sl[500],palette:Sl}};case`ember`:return{lightPalette:Ti({primary:Tl,secondary:El,info:hi,success:di,warning:mi,error:El,grey:li,mode:`light`,backgroundDefault:`#FFF5F0`,paperColor:`#FFFAF7`}),darkPalette:Ti({primary:Tl,secondary:El,info:hi,success:di,warning:mi,error:El,grey:li,mode:`dark`,backgroundDefault:`#1A0A05`,paperColor:`#2D1610`}),colorGroup:{key:`ember`,main:Tl[500],palette:Tl}};case`midnight`:return{lightPalette:Ti({primary:Dl,secondary:fi,info:hi,success:di,warning:mi,error:pi,grey:Ol,mode:`light`,backgroundDefault:`#F0F0F8`,paperColor:`#F7F7FC`}),darkPalette:Ti({primary:Dl,secondary:fi,info:hi,success:di,warning:mi,error:pi,grey:Ol,mode:`dark`,backgroundDefault:Ol[950],paperColor:Ol[900]}),colorGroup:{key:`midnight`,main:Dl[500],palette:Dl}};case`retro`:return{lightPalette:Ti({primary:kl,secondary:Al,info:hi,success:Al,warning:kl,error:pi,grey:li,mode:`light`,backgroundDefault:`#F8F1E0`,paperColor:`#FDF8EE`}),darkPalette:Ti({primary:kl,secondary:Al,info:hi,success:Al,warning:kl,error:pi,grey:li,mode:`dark`,backgroundDefault:`#1A1814`,paperColor:`#252218`}),colorGroup:{key:`retro`,main:kl[500],palette:kl}};case`minimal`:return{lightPalette:Ti({primary:Ml,secondary:jl,info:hi,success:di,warning:mi,error:pi,grey:jl,mode:`light`,backgroundDefault:`#FAFAFA`,paperColor:`#FFFFFF`}),darkPalette:Ti({primary:Ml,secondary:jl,info:hi,success:di,warning:mi,error:pi,grey:jl,mode:`dark`,backgroundDefault:`#0A0A0A`,paperColor:`#171717`}),colorGroup:{key:`minimal`,main:Ml[500],palette:Ml}};case`nature`:return{lightPalette:Ti({primary:di,secondary:fi,info:hi,success:di,warning:mi,error:pi,grey:li,mode:`light`,backgroundDefault:`#EEF6EE`,paperColor:`#F5FAF5`}),darkPalette:Ti({primary:di,secondary:fi,info:hi,success:di,warning:mi,error:pi,grey:li,mode:`dark`,backgroundDefault:`#0A1A0A`,paperColor:`#0F1F0F`}),colorGroup:{key:`nature`,main:di[500],palette:di}};case`default-dark`:return{lightPalette:Ei,darkPalette:Di,colorGroup:{key:`default-dark`,main:ui[400],palette:ui}};default:return{lightPalette:Ei,darkPalette:Di,colorGroup:{key:`default-light`,main:ui[500],palette:ui}}}}function Fl(e,t){let n=e.grey;return{mode:t,primary:ri(e.primary),secondary:ri(e.secondary),info:ri(e.info),success:ri(e.success),warning:ri(e.warning),error:ri(e.error),grey:n,common:e.common,background:e.background,text:e.text}}var Il=[{key:`default-light`,main:ui[500],palette:ui},{key:`default-dark`,main:ui[400],palette:ui},{key:`green`,main:di[500],palette:di},{key:`purple`,main:fi[500],palette:fi},{key:`red`,main:pi[500],palette:pi},{key:`orange`,main:mi[500],palette:mi},{key:`lightBlue`,main:hi[500],palette:hi},{key:`luxury`,main:hl[500],palette:hl},{key:`dracula`,main:Sl[500],palette:Sl},{key:`ember`,main:Tl[500],palette:Tl},{key:`midnight`,main:Dl[500],palette:Dl},{key:`retro`,main:kl[500],palette:kl},{key:`minimal`,main:Ml[500],palette:Ml},{key:`nature`,main:di[500],palette:di},{key:`arctic`,main:`#1E88E5`,palette:ui}];function Ll(e,t,n){if(!t)return e;let r=Il.find(e=>e.main===t);if(r?.palette){let i=ri(n===`dark`?{lighter:r.palette[950],light:r.palette[700],main:t,dark:r.palette[300],darker:r.palette[100],contrastText:r.palette[950]}:{lighter:r.palette[50],light:r.palette[400],main:t,dark:r.palette[600],darker:r.palette[900],contrastText:r.palette[50]});return{...e,primary:i}}let i=oi(t),a=ri(n===`dark`?{lighter:i[950],light:i[700],main:i[400],dark:i[300],darker:i[100],contrastText:i[950]}:{lighter:i[50],light:i[400],main:i[500],dark:i[600],darker:i[900],contrastText:i[50]});return{...e,primary:a}}function Rl(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function zl(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];typeof a==`object`&&a&&!Array.isArray(a)&&typeof a!=`function`&&typeof i==`object`&&i&&!Array.isArray(i)&&typeof i!=`function`?n[r]=zl(i,a):n[r]=a}return n}function Bl(e={}){let{preset:t=`default-light`,mode:n=`light`,direction:r=`ltr`,locale:i=`enUS`,primaryColor:a=null,cssVarPrefix:o=`prism`,density:s=`standard`,borderRadius:c=8,responsiveFonts:l=!0,contrast:u=`default`,overrides:d}=e,f=Pl(t),p=Ll(f.lightPalette,a,`light`),m=Ll(f.darkPalette,a,`dark`);u===`high`&&(p={...p,background:{...p.background,default:li[200],paper:`#FFFFFF`}},m={...m,background:{...m.background,default:`#000000`,paper:li[900]}});let h=Rl(s),g={density:s,borderRadius:c,buttonStyle:`contained`},_={prefix:o,colorSchemeSelector:`data-${o}-color-scheme`,enabled:!0},v=Xr[i]||ir,y=p.primary?.main||ui[500],b=ul(y),x=ul(y,.4),S=n===`dark`?`dark`:`light`,C=S===`dark`?m:p,w=S===`dark`?x:b,T={cssVariables:{cssVarPrefix:o,colorSchemeSelector:_.colorSchemeSelector},palette:C,shadows:w,typography:ml({fontFamily:{primary:e.fontFamily?`"${e.fontFamily}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`:dl.fontFamily.primary,secondary:dl.fontFamily.secondary,mono:dl.fontFamily.mono},fontWeights:dl.fontWeights}),direction:r,shape:{borderRadius:c},mixins:cc,components:cl(g)},E=ft(d?zl(T,d):T,v);l&&(E=In(E));let D=E;return D.prism={preset:t,mode:n,direction:r,density:s,densityMultiplier:h,cssVariables:_},D}di[500];var Vl=typeof et({})==`function`,Hl=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),Ul=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Wl=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:Hl(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Ul(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},Gl=`mui-ecs`,Kl=e=>{let t=Wl(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Gl})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${Gl}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${Gl}))`]:{colorScheme:r.palette?.mode}}}),t},ql=et(Vl?({theme:e,enableColorScheme:t})=>Wl(e,t):({theme:e})=>Kl(e));function Jl(e){let{children:t,enableColorScheme:n=!1}=st({props:e,name:`MuiCssBaseline`});return(0,K.jsxs)(G.Fragment,{children:[Vl&&(0,K.jsx)(ql,{enableColorScheme:n}),!Vl&&!n&&(0,K.jsx)(`span`,{className:Gl,style:{display:`none`}}),t]})}var Yl=[`localeText`],Xl=G.createContext(null),Zl=function(e){let{localeText:t}=e,n=Ht(e,Yl),{adapter:r,localeText:i}=G.useContext(Xl)??{utils:void 0,adapter:void 0,localeText:void 0},{children:a,dateAdapter:o,dateFormats:s,dateLibInstance:c,adapterLocale:l,localeText:u}=Ln({props:n,name:`MuiLocalizationProvider`}),d=G.useMemo(()=>Ut({},u,i,t),[u,i,t]),f=G.useMemo(()=>{if(!o)return r||null;let e=new o({locale:l,formats:s,instance:c});if(!e.isMUIAdapter)throw Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`",`More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation`].join(`
|
|
41
|
+
`));return e},[o,l,s,c,r]),p=G.useMemo(()=>f?{minDate:f.date(`1900-01-01T00:00:00.000`),maxDate:f.date(`2099-12-31T00:00:00.000`)}:null,[f]),m=G.useMemo(()=>({utils:f,adapter:f,defaultDates:p,localeText:d}),[p,f,d]);return(0,K.jsx)(Xl.Provider,{value:m,children:a})},Ql=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),$l=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),eu=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal;if(this.day=e.match(/\d+/)[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,``)===e&&(this.day=n)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),tu=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),nu=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),ru=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),iu=n(Ql()),au=n($l()),ou=n(eu()),su=n(tu()),cu=n(nu()),lu=n(ru());iu.default.extend(su.default),iu.default.extend(au.default),iu.default.extend(cu.default),iu.default.extend(lu.default);var uu={YY:`year`,YYYY:{sectionType:`year`,contentType:`digit`,maxLength:4},M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMM:{sectionType:`month`,contentType:`letter`},MMMM:{sectionType:`month`,contentType:`letter`},D:{sectionType:`day`,contentType:`digit`,maxLength:2},DD:`day`,Do:{sectionType:`day`,contentType:`digit-with-letter`},d:{sectionType:`weekDay`,contentType:`digit`,maxLength:2},dd:{sectionType:`weekDay`,contentType:`letter`},ddd:{sectionType:`weekDay`,contentType:`letter`},dddd:{sectionType:`weekDay`,contentType:`letter`},A:`meridiem`,a:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},du={year:`YYYY`,month:`MMMM`,monthShort:`MMM`,dayOfMonth:`D`,dayOfMonthFull:`Do`,weekday:`dddd`,weekdayShort:`dd`,hours24h:`HH`,hours12h:`hh`,meridiem:`A`,minutes:`mm`,seconds:`ss`,fullDate:`ll`,keyboardDate:`L`,shortDate:`MMM D`,normalDate:`D MMMM`,normalDateWithWeekday:`ddd, MMM D`,fullTime12h:`hh:mm A`,fullTime24h:`HH:mm`,keyboardDateTime12h:`L hh:mm A`,keyboardDateTime24h:`L HH:mm`},fu=[`Missing UTC plugin`,"To be able to use UTC or timezones, you have to enable the `utc` plugin",`Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc`].join(`
|
|
42
|
+
`),pu=[`Missing timezone plugin`,"To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin",`Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone`].join(`
|
|
43
|
+
`),mu=class{isMUIAdapter=!0;isTimezoneCompatible=!0;lib=`dayjs`;escapedCharacters={start:`[`,end:`]`};formatTokenMap=uu;constructor({locale:e,formats:t}={}){this.locale=e,this.formats=Ut({},du,t),iu.default.extend(ou.default)}setLocaleToValue=e=>{let t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)};hasUTCPlugin=()=>iu.default.utc!==void 0;hasTimezonePlugin=()=>iu.default.tz!==void 0;isSame=(e,t,n)=>{let r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)};cleanTimezone=e=>{switch(e){case`default`:return;case`system`:return iu.default.tz.guess();default:return e}};createSystemDate=e=>{let t;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){let n=iu.default.tz.guess();t=n===`UTC`?(0,iu.default)(e):iu.default.tz(e,n)}else t=(0,iu.default)(e);return this.setLocaleToValue(t)};createUTCDate=e=>{if(!this.hasUTCPlugin())throw Error(fu);return this.setLocaleToValue(iu.default.utc(e))};createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw Error(fu);if(!this.hasTimezonePlugin())throw Error(pu);let n=e!==void 0&&!e.endsWith(`Z`);return this.setLocaleToValue((0,iu.default)(e).tz(this.cleanTimezone(t),n))};getLocaleFormats=()=>{let e=iu.default.Ls,t=e[this.locale||`en`];return t===void 0&&(t=e.en),t.formats};adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;let t=this.getTimezone(e);if(t!==`UTC`){let n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e};date=(e,t=`default`)=>e===null?null:t===`UTC`?this.createUTCDate(e):t===`system`||t===`default`&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t);getInvalidDate=()=>(0,iu.default)(new Date(`Invalid date`));getTimezone=e=>{if(this.hasTimezonePlugin()){let t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?`UTC`:`system`};setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if(t===`UTC`){if(!this.hasUTCPlugin())throw Error(fu);return e.utc()}if(t===`system`)return e.local();if(!this.hasTimezonePlugin()){if(t===`default`)return e;throw Error(pu)}return this.setLocaleToValue(iu.default.tz(e,this.cleanTimezone(t)))};toJsDate=e=>e.toDate();parse=(e,t)=>e===``?null:(0,iu.default)(e,t,this.locale,!0);getCurrentLocaleCode=()=>this.locale||`en`;is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||``);expandFormat=e=>{let t=this.getLocaleFormats(),n=e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1));return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,r,i)=>{let a=i&&i.toUpperCase();return r||t[i]||n(t[a])})};isValid=e=>e==null?!1:e.isValid();format=(e,t)=>this.formatByString(e,this.formats[t]);formatByString=(e,t)=>this.setLocaleToValue(e).format(t);formatNumber=e=>e;isEqual=(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:e.toDate().getTime()===t.toDate().getTime();isSameYear=(e,t)=>this.isSame(e,t,`YYYY`);isSameMonth=(e,t)=>this.isSame(e,t,`YYYY-MM`);isSameDay=(e,t)=>this.isSame(e,t,`YYYY-MM-DD`);isSameHour=(e,t)=>e.isSame(t,`hour`);isAfter=(e,t)=>e>t;isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,`year`);isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,`day`);isBefore=(e,t)=>e<t;isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,`year`);isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,`day`);isWithinRange=(e,[t,n])=>e>=t&&e<=n;startOfYear=e=>this.adjustOffset(e.startOf(`year`));startOfMonth=e=>this.adjustOffset(e.startOf(`month`));startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf(`week`));startOfDay=e=>this.adjustOffset(e.startOf(`day`));endOfYear=e=>this.adjustOffset(e.endOf(`year`));endOfMonth=e=>this.adjustOffset(e.endOf(`month`));endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf(`week`));endOfDay=e=>this.adjustOffset(e.endOf(`day`));addYears=(e,t)=>this.adjustOffset(e.add(t,`year`));addMonths=(e,t)=>this.adjustOffset(e.add(t,`month`));addWeeks=(e,t)=>this.adjustOffset(e.add(t,`week`));addDays=(e,t)=>this.adjustOffset(e.add(t,`day`));addHours=(e,t)=>this.adjustOffset(e.add(t,`hour`));addMinutes=(e,t)=>this.adjustOffset(e.add(t,`minute`));addSeconds=(e,t)=>this.adjustOffset(e.add(t,`second`));getYear=e=>e.year();getMonth=e=>e.month();getDate=e=>e.date();getHours=e=>e.hour();getMinutes=e=>e.minute();getSeconds=e=>e.second();getMilliseconds=e=>e.millisecond();setYear=(e,t)=>this.adjustOffset(e.set(`year`,t));setMonth=(e,t)=>this.adjustOffset(e.set(`month`,t));setDate=(e,t)=>this.adjustOffset(e.set(`date`,t));setHours=(e,t)=>this.adjustOffset(e.set(`hour`,t));setMinutes=(e,t)=>this.adjustOffset(e.set(`minute`,t));setSeconds=(e,t)=>this.adjustOffset(e.set(`second`,t));setMilliseconds=(e,t)=>this.adjustOffset(e.set(`millisecond`,t));getDaysInMonth=e=>e.daysInMonth();getWeekArray=e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;i<n;){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a};getWeekNumber=e=>e.week();getDayOfWeek(e){return e.day()+1}getYearRange=([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}},hu=r(((e,t)=>{var n;function r(e,t){var n=[],r=0;function i(e){return n.push(e),t}function a(){return n[r++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(RegExp(`(`+t+`)`,`g`),a)}}}function i(){var e="`TMP`",t="`TMPLTR`",n="`TMPRTL`",i="`NOFLIP_SINGLE`",a="`NOFLIP_CLASS`",o="`COMMENT`",s=`[^\\u0020-\\u007e]`,c=`(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)`,l=`(?:[0-9]*\\.[0-9]+|[0-9]+)`,u=`(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)`,d=`direction\\s*:\\s*`,f=`[!#$%&*-~]`,p=`['"]?\\s*`,m=`(^|[^a-zA-Z])`,h=`[^\\}]*?`,g=`\\/\\*\\!?\\s*@noflip\\s*\\*\\/`,_=`\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/`,v=`(?:`+c+`|\\\\[^\\r\\n\\f0-9a-f])`,y=`(?:[_a-z]|`+s+`|`+v+`)`,b=`(?:[_a-z0-9-]|`+s+`|`+v+`)`,x=`-?`+y+b+`*`,S=l+`(?:\\s*`+u+`|`+x+`)?`,C=`((?:-?`+S+`)|(?:inherit|auto))`,w=`(?:calc\\((?:`+(`(?:(?:\\(|\\)|\\t| )|`+(`(?:-?`+l+`(?:\\s*`+u+`)?)`)+`|(?:\\+|\\-|\\*|\\/)){3,}`)+`)\\))`,T=`((?:-?`+S+`)|(?:inherit|auto)|`+w+`)`,E=`((?:margin|padding|border-width)\\s*:\\s*)`,D=`((?:-color|border-style)\\s*:\\s*)`,O=`(#?`+b+`+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))`,k=`(?:`+f+`|`+s+`|`+v+`)*?`,A=`(?![a-zA-Z])`,j=`(?!(`+b+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+o+`)*?{)`,M=`(?!`+k+p+`\\))`,N=`(?=`+k+p+`\\))`,P=`(\\s*(?:!important\\s*)?[;}])`,F=/`TMP`/g,I=/`TMPLTR`/g,ee=/`TMPRTL`/g,te=new RegExp(_,`gi`),ne=RegExp(`(`+g+j+`[^;}]+;?)`,`gi`),re=RegExp(`(`+g+h+`})`,`gi`),ie=RegExp(`(`+d+`)ltr`,`gi`),ae=RegExp(`(`+d+`)rtl`,`gi`),oe=RegExp(m+`(left)`+A+M+j,`gi`),se=RegExp(m+`(right)`+A+M+j,`gi`),ce=RegExp(m+`(left)`+N,`gi`),le=RegExp(m+`(right)`+N,`gi`),ue=/(:dir\( *)ltr( *\))/g,de=/(:dir\( *)rtl( *\))/g,fe=RegExp(m+`(ltr)`+N,`gi`),pe=RegExp(m+`(rtl)`+N,`gi`),me=RegExp(m+`([ns]?)e-resize`,`gi`),he=RegExp(m+`([ns]?)w-resize`,`gi`),ge=RegExp(E+T+`(\\s+)`+T+`(\\s+)`+T+`(\\s+)`+T+P,`gi`),_e=RegExp(D+O+`(\\s+)`+O+`(\\s+)`+O+`(\\s+)`+O+P,`gi`),ve=RegExp(`(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(`+S+`)`,`gi`),ye=RegExp(`(background-position-x\\s*:\\s*)(-?`+l+`%)`,`gi`),be=RegExp(`(border-radius\\s*:\\s*)`+C+`(?:(?:\\s+`+C+`)(?:\\s+`+C+`)?(?:\\s+`+C+`)?)?(?:(?:(?:\\s*\\/\\s*)`+C+`)(?:\\s+`+C+`)?(?:\\s+`+C+`)?(?:\\s+`+C+`)?)?`+P,`gi`),xe=RegExp(`(box-shadow\\s*:\\s*(?:inset\\s*)?)`+C,`gi`),Se=RegExp(`(text-shadow\\s*:\\s*)`+C+`(\\s*)`+O,`gi`),Ce=RegExp(`(text-shadow\\s*:\\s*)`+O+`(\\s*)`+C,`gi`),we=RegExp(`(text-shadow\\s*:\\s*)`+C,`gi`),Te=RegExp(`(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)`+C+`(\\s*\\))`,`gi`),Ee=RegExp(`(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)`+C+`((?:\\s*,\\s*`+C+`){0,2}\\s*\\))`,`gi`);function De(e,t,n){var r,i;return n.slice(-1)===`%`&&(r=n.indexOf(`.`),r===-1?n=100-parseFloat(n)+`%`:(i=n.length-r-2,n=100-parseFloat(n),n=n.toFixed(i)+`%`)),t+n}function Oe(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]];break}return e.join(` `)}function ke(e,t){var n,r=[].slice.call(arguments),i=r.slice(2,6).filter(function(e){return e}),a=r.slice(6,10).filter(function(e){return e}),o=r[10]||``;return n=a.length?Oe(i)+` / `+Oe(a):Oe(i),t+n+o}function Ae(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function je(e,t,n){return t+Ae(n)}function L(e,t,n,r,i){return t+n+Ae(r)+i}function Me(e,t,n,r,i){return t+n+r+Ae(i)}return{transform:function(s,c){var l=new r(ne,i),u=new r(re,a),d=new r(te,o);return s=d.tokenize(u.tokenize(l.tokenize(s.replace("`",`%60`)))),c.transformDirInUrl&&(s=s.replace(ue,`$1`+t+`$2`).replace(de,`$1`+n+`$2`).replace(fe,`$1`+e).replace(pe,`$1ltr`).replace(F,`rtl`).replace(I,`ltr`).replace(ee,`rtl`)),c.transformEdgeInUrl&&(s=s.replace(ce,`$1`+e).replace(le,`$1left`).replace(F,`right`)),s=s.replace(ie,`$1`+e).replace(ae,`$1ltr`).replace(F,`rtl`).replace(oe,`$1`+e).replace(se,`$1left`).replace(F,`right`).replace(me,`$1$2`+e).replace(he,`$1$2e-resize`).replace(F,`w-resize`).replace(be,ke).replace(xe,je).replace(Se,Me).replace(Ce,Me).replace(we,je).replace(Te,L).replace(Ee,L).replace(ge,`$1$2$3$8$5$6$7$4$9`).replace(_e,`$1$2$3$8$5$6$7$4$9`).replace(ve,De).replace(ye,De),s=l.detokenize(u.detokenize(d.detokenize(s))),s}}}n=new i,t!==void 0&&t.exports?e.transform=function(e,t,r){var i;return typeof t==`object`?i=t:(i={},typeof t==`boolean`&&(i.transformDirInUrl=t),typeof r==`boolean`&&(i.transformEdgeInUrl=r)),n.transform(e,i)}:typeof window<`u`&&(window.cssjanus=n)})),gu=`comm`,_u=`rule`,vu=`decl`,yu=`@import`,bu=Math.abs,xu=String.fromCharCode;function Su(e){return e.trim()}function Cu(e,t,n){return e.replace(t,n)}function wu(e,t,n){return e.indexOf(t,n)}function Tu(e,t){return e.charCodeAt(t)|0}function Eu(e,t,n){return e.slice(t,n)}function Du(e){return e.length}function Ou(e){return e.length}function ku(e,t){return t.push(e),e}var Au=1,ju=1,Mu=0,Nu=0,Pu=0,Fu=``;function Iu(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Au,column:ju,length:o,return:``,siblings:s}}function Lu(){return Pu}function Ru(){return Pu=Nu>0?Tu(Fu,--Nu):0,ju--,Pu===10&&(ju=1,Au--),Pu}function zu(){return Pu=Nu<Mu?Tu(Fu,Nu++):0,ju++,Pu===10&&(ju=1,Au++),Pu}function Bu(){return Tu(Fu,Nu)}function Vu(){return Nu}function Hu(e,t){return Eu(Fu,e,t)}function Uu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wu(e){return Au=ju=1,Mu=Du(Fu=e),Nu=0,[]}function Gu(e){return Fu=``,e}function Ku(e){return Su(Hu(Nu-1,Yu(e===91?e+2:e===40?e+1:e)))}function qu(e){for(;(Pu=Bu())&&Pu<33;)zu();return Uu(e)>2||Uu(Pu)>3?``:` `}function Ju(e,t){for(;--t&&zu()&&!(Pu<48||Pu>102||Pu>57&&Pu<65||Pu>70&&Pu<97););return Hu(e,Vu()+(t<6&&Bu()==32&&zu()==32))}function Yu(e){for(;zu();)switch(Pu){case e:return Nu;case 34:case 39:e!==34&&e!==39&&Yu(Pu);break;case 40:e===41&&Yu(e);break;case 92:zu();break}return Nu}function Xu(e,t){for(;zu()&&e+Pu!==57&&!(e+Pu===84&&Bu()===47););return`/*`+Hu(t,Nu-1)+`*`+xu(e===47?e:zu())}function Zu(e){for(;!Uu(Bu());)zu();return Hu(e,Nu)}function Qu(e){return Gu($u(``,null,null,null,[``],e=Wu(e),0,[0],e))}function $u(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=zu()){case 40:if(m!=108&&Tu(C,d-1)==58){wu(C+=Cu(Ku(v),`&`,`&\f`),`&\f`,bu(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Ku(v);break;case 9:case 10:case 13:case 32:C+=qu(m);break;case 92:C+=Ju(Vu()-1,7);continue;case 47:switch(Bu()){case 42:case 47:ku(td(Xu(zu(),Vu()),t,n,c),c),(Uu(m||1)==5||Uu(Bu()||1)==5)&&Du(C)&&Eu(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=Du(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Cu(C,/\f/g,``)),p>0&&(Du(C)-d||h===0&&m===47)&&ku(p>32?nd(C+`;`,r,n,d-1,c):nd(Cu(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(ku(S=ed(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)$u(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(Tu(C,3)===110)break;case 108:if(Tu(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?$u(e,S,S,r&&ku(ed(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):$u(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Du(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Ru()==125)continue}switch(C+=xu(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Du(C)-1)*_,_=1;break;case 64:Bu()===45&&(C+=Ku(zu())),f=Bu(),u=d=Du(y=C+=Zu(Vu())),v++;break;case 45:m===45&&Du(C)==2&&(h=0)}}return a}function ed(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Ou(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Eu(e,f+1,f=bu(g=o[h])),b=e;v<m;++v)(b=Su(g>0?p[v]+` `+y:Cu(y,/&\f/g,p[v])))&&(c[_++]=b);return Iu(e,t,n,i===0?_u:s,c,l,u,d)}function td(e,t,n,r){return Iu(e,t,n,gu,xu(Lu()),Eu(e,2,-2),0,r)}function nd(e,t,n,r,i){return Iu(e,t,n,vu,Eu(e,0,r),Eu(e,r+1,-1),r,i)}function rd(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}var id=n(hu());function ad(e,t,n){switch(e.type){case yu:case vu:case gu:return e.return=e.return||e.value;case _u:e.value=Array.isArray(e.props)?e.props.join(`,`):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===`comm`&&(e.children=e.value)})}var r=rd(Array.prototype.concat(e.children),ad);return Du(r)?e.return=e.value+`{`+r+`}`:``}function od(e,t,n,r){if(e.type===`@keyframes`||e.type===`@supports`||e.type===`rule`&&(!e.parent||e.parent.type===`@media`||e.parent.type===`rule`)){var i=id.transform(ad(e,t,n));e.children=i?Qu(i)[0].children:[],e.return=``}}Object.defineProperty(od,`name`,{value:`stylisRTLPlugin`});var sd={paths:{components:`src/components/prism`,blocks:`src/blocks`,themes:`src/theme`,utils:`src/lib/prism`,types:`src/types/prism`},registries:{default:`@omnitron-dev/prism-registry`,registries:{}},theme:{preset:`default`,mode:`light`,direction:`ltr`,cssVariables:{prefix:`prism`,colorSchemeSelector:`data-theme`,enabled:!0}},style:{framework:`mui`,cssVariables:!0,prefix:`prism`},features:{darkMode:!0,rtl:!1,i18n:!1,analytics:!1},typescript:!0},cd=(0,G.createContext)(null);cd.displayName=`PrismContext`;function ld(){let e=(0,G.useContext)(cd);if(!e)throw Error(`usePrismContext must be used within a PrismProvider`);return e}function ud(e){return zt(`MuiAppBar`,e)}V(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var dd=e=>{let{color:t,position:n,classes:r}=e;return H({root:[`root`,`color${L(t)}`,`position${L(n)}`]},ud,r)},fd=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,pd=U(It,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${L(n.position)}`],t[`color${L(n.color)}`]]}})(lt(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(it([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?fd(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?fd(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),md=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,c={...n,color:i,position:o,enableColorOnDark:a};return(0,K.jsx)(pd,{square:!0,component:`header`,ownerState:c,elevation:4,className:R(dd(c).root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})}),hd=kt((0,K.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`}),`Person`);function gd(e){return zt(`MuiAvatar`,e)}V(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]);var _d=e=>{let{classes:t,variant:n,colorDefault:r}=e;return H({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},gd,t)},vd=U(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(lt(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:`50%`,overflow:`hidden`,userSelect:`none`,variants:[{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`square`},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles(`dark`,{backgroundColor:e.palette.grey[600]})}}}]}))),yd=U(`img`,{name:`MuiAvatar`,slot:`Img`})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),bd=U(hd,{name:`MuiAvatar`,slot:`Fallback`})({width:`75%`,height:`75%`});function xd({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){let[i,a]=G.useState(!1);return G.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0,o=new Image;return o.onload=()=>{i&&a(`loaded`)},o.onerror=()=>{i&&a(`error`)},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{i=!1}},[e,t,n,r]),i}var Sd=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiAvatar`}),{alt:r,children:i,className:a,component:o=`div`,slots:s={},slotProps:c={},imgProps:l,sizes:u,src:d,srcSet:f,variant:p=`circular`,...m}=n,h=null,g={...n,component:o,variant:p},_=xd({...l,...typeof c.img==`function`?c.img(g):c.img,src:d,srcSet:f}),v=d||f,y=v&&_!==`error`;g.colorDefault=!y,delete g.ownerState;let b=_d(g),[x,S]=z(`root`,{ref:t,className:R(b.root,a),elementType:vd,externalForwardedProps:{slots:s,slotProps:c,component:o,...m},ownerState:g}),[C,w]=z(`img`,{className:b.img,elementType:yd,externalForwardedProps:{slots:s,slotProps:{img:{...l,...c.img}}},additionalProps:{alt:r,src:d,srcSet:f,sizes:u},ownerState:g}),[T,E]=z(`fallback`,{className:b.fallback,elementType:bd,externalForwardedProps:{slots:s,slotProps:c},shouldForwardComponentProp:!0,ownerState:g});return h=y?(0,K.jsx)(C,{...w}):i||i===0?i:v&&r?r[0]:(0,K.jsx)(T,{...E}),(0,K.jsx)(x,{...S,children:h})});function Cd(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=Ii({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function wd(e){return zt(`MuiBadge`,e)}var Td=V(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),Ed=10,Dd=4,Od=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return H({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${L(n.vertical)}${L(n.horizontal)}`,`anchorOrigin${L(n.vertical)}${L(n.horizontal)}${L(i)}`,`overlap${L(i)}`,t!==`default`&&`color${L(t)}`]},wd,o)},kd=U(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),Ad=U(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${L(n.anchorOrigin.vertical)}${L(n.anchorOrigin.horizontal)}${L(n.overlap)}`],n.color!==`default`&&t[`color${L(n.color)}`],n.invisible&&t.invisible]}})(lt(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Ed*2,lineHeight:1,padding:`0 6px`,height:Ed*2,borderRadius:Ed,zIndex:1,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(it([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:Dd,height:Dd*2,minWidth:Dd*2,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{let{vertical:t,horizontal:n}=e.anchorOrigin,r=e.overlap===`circular`?`14%`:0;return{"--Badge-translateX":n===`right`?`50%`:`-50%`,"--Badge-translateY":t===`top`?`-50%`:`50%`,top:t===`top`?r:`initial`,bottom:t===`bottom`?r:`initial`,right:n===`right`?r:`initial`,left:n===`left`?r:`initial`,transform:`scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))`,transformOrigin:`${n===`right`?`100%`:`0%`} ${t===`top`?`0%`:`100%`}`,[`&.${Td.invisible}`]:{transform:`scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))`}}}}]})));function jd(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var Md=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,components:s={},componentsProps:c={},children:l,overlap:u=`rectangular`,color:d=`default`,invisible:f=!1,max:p=99,badgeContent:m,slots:h,slotProps:g,showZero:_=!1,variant:v=`standard`,...y}=n,{badgeContent:b,invisible:x,max:S,displayValue:C}=Cd({max:p,invisible:f,badgeContent:m,showZero:_}),w=Ii({anchorOrigin:jd(r),color:d,overlap:u,variant:v,badgeContent:m}),T=x||b==null&&v!==`dot`,{color:E=d,overlap:D=u,anchorOrigin:O,variant:k=v}=T?w:n,A=jd(O),j=k===`dot`?void 0:C,M={...n,badgeContent:b,invisible:T,max:S,displayValue:j,showZero:_,anchorOrigin:A,color:E,overlap:D,variant:k},N=Od(M),P={slots:{root:h?.root??s.Root,badge:h?.badge??s.Badge},slotProps:{root:g?.root??c.root,badge:g?.badge??c.badge}},[F,I]=z(`root`,{elementType:kd,externalForwardedProps:{...P,...y},ownerState:M,className:R(N.root,i),ref:t,additionalProps:{as:o}}),[ee,te]=z(`badge`,{elementType:Ad,externalForwardedProps:P,ownerState:M,className:N.badge});return(0,K.jsxs)(F,{...I,children:[l,(0,K.jsx)(ee,{...te,children:j})]})}),Nd=kt((0,K.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`}),`MoreHoriz`),Pd=U(Qe,{name:`MuiBreadcrumbCollapsed`})(lt(({theme:e})=>({display:`flex`,marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode===`light`?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode===`light`?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode===`light`?{backgroundColor:Tt(e.palette.grey[200],.12)}:{backgroundColor:Tt(e.palette.grey[600],.12)}}}))),Fd=U(Nd)({width:24,height:16});function Id(e){let{slots:t={},slotProps:n={},...r}=e,i=e;return(0,K.jsx)(`li`,{children:(0,K.jsx)(Pd,{focusRipple:!0,...r,ownerState:i,children:(0,K.jsx)(Fd,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function Ld(e){return zt(`MuiBreadcrumbs`,e)}var Rd=V(`MuiBreadcrumbs`,[`root`,`ol`,`li`,`separator`]),zd=e=>{let{classes:t}=e;return H({root:[`root`],li:[`li`],ol:[`ol`],separator:[`separator`]},Ld,t)},Bd=U(nt,{name:`MuiBreadcrumbs`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${Rd.li}`]:t.li},t.root]})({}),Vd=U(`ol`,{name:`MuiBreadcrumbs`,slot:`Ol`})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`}),Hd=U(`li`,{name:`MuiBreadcrumbs`,slot:`Separator`})({display:`flex`,userSelect:`none`,marginLeft:8,marginRight:8});function Ud(e,t,n,r){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,(0,K.jsx)(Hd,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)):i.push(a),i),[])}var Wd=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiBreadcrumbs`}),{children:r,className:i,component:a=`nav`,slots:o={},slotProps:s={},expandText:c=`Show path`,itemsAfterCollapse:l=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:f=`/`,...p}=n,[m,h]=G.useState(!1),g={...n,component:a,expanded:m,expandText:c,itemsAfterCollapse:l,itemsBeforeCollapse:u,maxItems:d,separator:f},_=zd(g),v=j({elementType:o.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:g}),y=G.useRef(null),b=e=>{let t=()=>{h(!0);let e=y.current.querySelector(`a[href],button,[tabindex]`);e&&e.focus()};return u+l>=e.length?e:[...e.slice(0,u),(0,K.jsx)(Id,{"aria-label":c,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:v},onClick:t},`ellipsis`),...e.slice(e.length-l,e.length)]},x=G.Children.toArray(r).filter(e=>G.isValidElement(e)).map((e,t)=>(0,K.jsx)(`li`,{className:_.li,children:e},`child-${t}`));return(0,K.jsx)(Bd,{ref:t,component:a,color:`textSecondary`,className:R(_.root,i),ownerState:g,...p,children:(0,K.jsx)(Vd,{className:_.ol,ref:y,ownerState:g,children:Ud(m||d&&x.length<=d?x:b(x),_.separator,f,g)})})});function Gd(e){return zt(`MuiCard`,e)}V(`MuiCard`,[`root`]);var Kd=e=>{let{classes:t}=e;return H({root:[`root`]},Gd,t)},qd=U(It,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),Jd=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i};return(0,K.jsx)(qd,{className:R(Kd(o).root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function Yd(e){return zt(`MuiCardActions`,e)}V(`MuiCardActions`,[`root`,`spacing`]);var Xd=e=>{let{classes:t,disableSpacing:n}=e;return H({root:[`root`,!n&&`spacing`]},Yd,t)},Zd=U(`div`,{name:`MuiCardActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Qd=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiCardActions`}),{disableSpacing:r=!1,className:i,...a}=n,o={...n,disableSpacing:r};return(0,K.jsx)(Zd,{className:R(Xd(o).root,i),ownerState:o,ref:t,...a})});function $d(e){return zt(`MuiCardContent`,e)}V(`MuiCardContent`,[`root`]);var ef=e=>{let{classes:t}=e;return H({root:[`root`]},$d,t)},tf=U(`div`,{name:`MuiCardContent`,slot:`Root`})({padding:16,"&:last-child":{paddingBottom:24}}),nf=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i};return(0,K.jsx)(tf,{as:i,className:R(ef(o).root,r),ownerState:o,ref:t,...a})});function rf(e){return zt(`MuiCardHeader`,e)}var af=V(`MuiCardHeader`,[`root`,`avatar`,`action`,`content`,`title`,`subheader`]),of=e=>{let{classes:t}=e;return H({root:[`root`],avatar:[`avatar`],action:[`action`],content:[`content`],title:[`title`],subheader:[`subheader`]},rf,t)},sf=U(`div`,{name:`MuiCardHeader`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${af.title}`]:t.title},{[`& .${af.subheader}`]:t.subheader},t.root]})({display:`flex`,alignItems:`center`,padding:16}),cf=U(`div`,{name:`MuiCardHeader`,slot:`Avatar`})({display:`flex`,flex:`0 0 auto`,marginRight:16}),lf=U(`div`,{name:`MuiCardHeader`,slot:`Action`})({flex:`0 0 auto`,alignSelf:`flex-start`,marginTop:-4,marginRight:-8,marginBottom:-4}),uf=U(`div`,{name:`MuiCardHeader`,slot:`Content`})({flex:`1 1 auto`,[`.${Fe.root}:where(& .${af.title}), .${Fe.root}:where(& .${af.subheader})`]:{display:`block`}}),df=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiCardHeader`}),{action:r,avatar:i,component:a=`div`,disableTypography:o=!1,subheader:s,subheaderTypographyProps:c,title:l,titleTypographyProps:u,slots:d={},slotProps:f={},...p}=n,m={...n,component:a,disableTypography:o},h=of(m),g={slots:d,slotProps:{title:u,subheader:c,...f}},_=l,[v,y]=z(`title`,{className:h.title,elementType:nt,externalForwardedProps:g,ownerState:m,additionalProps:{variant:i?`body2`:`h5`,component:`span`}});_!=null&&_.type!==nt&&!o&&(_=(0,K.jsx)(v,{...y,children:_}));let b=s,[x,S]=z(`subheader`,{className:h.subheader,elementType:nt,externalForwardedProps:g,ownerState:m,additionalProps:{variant:i?`body2`:`body1`,color:`textSecondary`,component:`span`}});b!=null&&b.type!==nt&&!o&&(b=(0,K.jsx)(x,{...S,children:b}));let[C,w]=z(`root`,{ref:t,className:h.root,elementType:sf,externalForwardedProps:{...g,...p,component:a},ownerState:m}),[T,E]=z(`avatar`,{className:h.avatar,elementType:cf,externalForwardedProps:g,ownerState:m}),[D,O]=z(`content`,{className:h.content,elementType:uf,externalForwardedProps:g,ownerState:m}),[k,A]=z(`action`,{className:h.action,elementType:lf,externalForwardedProps:g,ownerState:m});return(0,K.jsxs)(C,{...w,children:[i&&(0,K.jsx)(T,{...E,children:i}),(0,K.jsxs)(D,{...O,children:[_,b]}),r&&(0,K.jsx)(k,{...A,children:r})]})});function ff(e){return e.substring(2).toLowerCase()}function pf(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function mf(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=G.useRef(!1),s=G.useRef(null),c=G.useRef(!1),l=G.useRef(!1);G.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=rt(ye(t),s),d=Ve(e=>{let t=l.current;l.current=!1;let r=oe(s.current);if(!c.current||!s.current||`clientX`in e&&pf(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!r.documentElement.contains(e.target)||s.current.contains(e.target),!a&&(n||!t)&&i(e)}),f=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},p={ref:u};return a!==!1&&(p[a]=f(a)),G.useEffect(()=>{if(a!==!1){let e=ff(a),t=oe(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(p[r]=f(r)),G.useEffect(()=>{if(r!==!1){let e=ff(r),t=oe(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),G.cloneElement(t,p)}var hf=Fn({createStyledComponent:U(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${L(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>st({props:e,name:`MuiContainer`})});function gf(e){return zt(`MuiDialog`,e)}var _f=V(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperScrollPaper`,`paperScrollBody`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]),vf=G.createContext({}),yf=U(D,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),bf=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return H({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${L(n)}`],paper:[`paper`,`paperScroll${L(n)}`,`paperWidth${L(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},gf,t)},xf=U(E,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),Sf=U(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${L(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),Cf=U(It,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`scrollPaper${L(n.scroll)}`],t[`paperWidth${L(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(lt(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_f.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${_f.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0,[`&.${_f.paperScrollBody}`]:{margin:0,maxWidth:`100%`}}}]}))),wf=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiDialog`}),r=jt(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,BackdropComponent:c,BackdropProps:l,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:h=`sm`,onClick:g,onClose:_,open:v,PaperComponent:b=It,PaperProps:x={},scroll:S=`paper`,slots:C={},slotProps:w={},TransitionComponent:T=y,transitionDuration:E=i,TransitionProps:D,...O}=n,k={...n,disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:h,scroll:S},A=bf(k),j=G.useRef(),M=e=>{j.current=e.target===e.currentTarget},N=e=>{g&&g(e),j.current&&(j.current=null,_&&_(e,`backdropClick`))},P=wt(o),F=G.useMemo(()=>({titleId:P}),[P]),I={slots:{transition:T,...C},slotProps:{transition:D,paper:x,backdrop:l,...w}},[ee,te]=z(`root`,{elementType:xf,shouldForwardComponentProp:!0,externalForwardedProps:I,ownerState:k,className:R(A.root,d),ref:t}),[ne,re]=z(`backdrop`,{elementType:yf,shouldForwardComponentProp:!0,externalForwardedProps:I,ownerState:k,className:A.backdrop}),[ie,ae]=z(`paper`,{elementType:Cf,shouldForwardComponentProp:!0,externalForwardedProps:I,ownerState:k,className:R(A.paper,x.className)}),[oe,se]=z(`container`,{elementType:Sf,externalForwardedProps:I,ownerState:k,className:A.container}),[ce,le]=z(`transition`,{elementType:y,externalForwardedProps:I,ownerState:k,additionalProps:{appear:!0,in:v,timeout:E,role:`presentation`}});return(0,K.jsx)(ee,{closeAfterTransition:!0,slots:{backdrop:ne},slotProps:{backdrop:{transitionDuration:E,as:c,...re}},disableEscapeKeyDown:f,onClose:_,open:v,onClick:N,...te,...O,children:(0,K.jsx)(ce,{...le,children:(0,K.jsx)(oe,{onMouseDown:M,...se,children:(0,K.jsx)(ie,{as:b,elevation:24,role:`dialog`,"aria-describedby":a,"aria-labelledby":P,"aria-modal":s,...ae,children:(0,K.jsx)(vf.Provider,{value:F,children:u})})})})})});function Tf(e,t,n){let r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=l(t),o;if(t.fakeTransform)o=t.fakeTransform;else{let e=a.getComputedStyle(t);o=e.getPropertyValue(`-webkit-transform`)||e.getPropertyValue(`transform`)}let s=0,c=0;if(o&&o!==`none`&&typeof o==`string`){let e=o.split(`(`)[1].split(`)`)[0].split(`,`);s=parseInt(e[4],10),c=parseInt(e[5],10)}return e===`left`?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e===`right`?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e===`up`?i?`translateY(${i.bottom+c-r.top}px)`:`translateY(${a.innerHeight+c-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function Ef(e){return typeof e==`function`?e():e}function Df(e,t,n){let r=Tf(e,t,Ef(n));r&&(t.style.webkitTransform=r,t.style.transform=r)}var Of=G.forwardRef(function(e,t){let n=jt(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:u,container:d,direction:f=`down`,easing:p=r,in:m,onEnter:h,onEntered:g,onEntering:_,onExit:v,onExited:y,onExiting:b,style:S,timeout:C=i,TransitionComponent:w=c,...T}=e,E=G.useRef(null),D=He(ye(u),E,t),O=e=>t=>{e&&(t===void 0?e(E.current):e(E.current,t))},k=O((e,t)=>{Df(f,e,d),x(e),h&&h(e,t)}),A=O((e,t)=>{let r=ve({timeout:C,style:S,easing:p},{mode:`enter`});e.style.webkitTransition=n.transitions.create(`-webkit-transform`,{...r}),e.style.transition=n.transitions.create(`transform`,{...r}),e.style.webkitTransform=`none`,e.style.transform=`none`,_&&_(e,t)}),j=O(g),M=O(b),N=O(e=>{let t=ve({timeout:C,style:S,easing:p},{mode:`exit`});e.style.webkitTransition=n.transitions.create(`-webkit-transform`,t),e.style.transition=n.transitions.create(`transform`,t),Df(f,e,d),v&&v(e)}),P=O(e=>{e.style.webkitTransition=``,e.style.transition=``,y&&y(e)}),F=e=>{o&&o(E.current,e)},I=G.useCallback(()=>{E.current&&Df(f,E.current,d)},[f,d]);return G.useEffect(()=>{if(m||f===`down`||f===`right`)return;let e=a(()=>{E.current&&Df(f,E.current,d)}),t=l(E.current);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[f,m,d]),G.useEffect(()=>{m||I()},[m,I]),(0,K.jsx)(w,{nodeRef:E,onEnter:k,onEntered:j,onEntering:A,onExit:N,onExited:P,onExiting:M,addEndListener:F,appear:s,in:m,timeout:C,...T,children:(e,{ownerState:t,...n})=>G.cloneElement(u,{ref:D,style:{visibility:e===`exited`&&!m?`hidden`:void 0,...S,...u.props.style},...n})})});function kf(e){return zt(`MuiDrawer`,e)}V(`MuiDrawer`,[`root`,`docked`,`paper`,`anchorLeft`,`anchorRight`,`anchorTop`,`anchorBottom`,`paperAnchorLeft`,`paperAnchorRight`,`paperAnchorTop`,`paperAnchorBottom`,`paperAnchorDockedLeft`,`paperAnchorDockedRight`,`paperAnchorDockedTop`,`paperAnchorDockedBottom`,`modal`]);var Af=(e,t)=>{let{ownerState:n}=e;return[t.root,(n.variant===`permanent`||n.variant===`persistent`)&&t.docked,n.variant===`temporary`&&t.modal]},jf=e=>{let{classes:t,anchor:n,variant:r}=e;return H({root:[`root`,`anchor${L(n)}`],docked:[(r===`permanent`||r===`persistent`)&&`docked`],modal:[`modal`],paper:[`paper`,`paperAnchor${L(n)}`,r!==`temporary`&&`paperAnchorDocked${L(n)}`]},kf,t)},Mf=U(E,{name:`MuiDrawer`,slot:`Root`,overridesResolver:Af})(lt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Nf=U(`div`,{shouldForwardProp:Pt,name:`MuiDrawer`,slot:`Docked`,skipVariantsResolver:!1,overridesResolver:Af})({flex:`0 0 auto`}),Pf=U(It,{name:`MuiDrawer`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperAnchor${L(n.anchor)}`],n.variant!==`temporary`&&t[`paperAnchorDocked${L(n.anchor)}`]]}})(lt(({theme:e})=>({overflowY:`auto`,display:`flex`,flexDirection:`column`,height:`100%`,flex:`1 0 auto`,zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:`touch`,position:`fixed`,top:0,outline:0,variants:[{props:{anchor:`left`},style:{left:0}},{props:{anchor:`top`},style:{top:0,left:0,right:0,height:`auto`,maxHeight:`100%`}},{props:{anchor:`right`},style:{right:0}},{props:{anchor:`bottom`},style:{top:`auto`,left:0,bottom:0,right:0,height:`auto`,maxHeight:`100%`}},{props:({ownerState:e})=>e.anchor===`left`&&e.variant!==`temporary`,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`top`&&e.variant!==`temporary`,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`right`&&e.variant!==`temporary`,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`bottom`&&e.variant!==`temporary`,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Ff={left:`right`,right:`left`,top:`down`,bottom:`up`};function If(e){return[`left`,`right`].includes(e)}function Lf({direction:e},t){return e===`rtl`&&If(t)?Ff[t]:t}var Rf=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiDrawer`}),r=jt(),i=mt(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:o=`left`,BackdropProps:s,children:c,className:l,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:f,...p}={},onClose:m,open:h=!1,PaperProps:g={},SlideProps:_,TransitionComponent:v,transitionDuration:y=a,variant:b=`temporary`,slots:x={},slotProps:S={},...C}=n,w=G.useRef(!1);G.useEffect(()=>{w.current=!0},[]);let T=Lf({direction:i?`rtl`:`ltr`},o),E=o,D={...n,anchor:E,elevation:u,open:h,variant:b,...C},O=jf(D),k={slots:{transition:v,...x},slotProps:{paper:g,transition:_,...S,backdrop:ge(S.backdrop||{...s,...f},{transitionDuration:y})}},[A,j]=z(`root`,{ref:t,elementType:Mf,className:R(O.root,O.modal,l),shouldForwardComponentProp:!0,ownerState:D,externalForwardedProps:{...k,...C,...p},additionalProps:{open:h,onClose:m,hideBackdrop:d,slots:{backdrop:k.slots.backdrop},slotProps:{backdrop:k.slotProps.backdrop}}}),[M,N]=z(`paper`,{elementType:Pf,shouldForwardComponentProp:!0,className:R(O.paper,g.className),ownerState:D,externalForwardedProps:k,additionalProps:{elevation:b===`temporary`?u:0,square:!0,...b===`temporary`&&{role:`dialog`,"aria-modal":`true`}}}),[P,F]=z(`docked`,{elementType:Nf,ref:t,className:R(O.root,O.docked,l),ownerState:D,externalForwardedProps:k,additionalProps:C}),[I,ee]=z(`transition`,{elementType:Of,ownerState:D,externalForwardedProps:k,additionalProps:{in:h,direction:Ff[T],timeout:y,appear:w.current}}),te=(0,K.jsx)(M,{...N,children:c});if(b===`permanent`)return(0,K.jsx)(P,{...F,children:te});let ne=(0,K.jsx)(I,{...ee,children:te});return b===`persistent`?(0,K.jsx)(P,{...F,children:ne}):(0,K.jsx)(A,{...j,children:ne})});function zf(e){return zt(`MuiLinearProgress`,e)}V(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`dashedColorPrimary`,`dashedColorSecondary`,`bar`,`bar1`,`bar2`,`barColorPrimary`,`barColorSecondary`,`bar1Indeterminate`,`bar1Determinate`,`bar1Buffer`,`bar2Indeterminate`,`bar2Buffer`]);var Bf=4,Vf=Be`
|
|
44
|
+
0% {
|
|
45
|
+
left: -35%;
|
|
46
|
+
right: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
60% {
|
|
50
|
+
left: 100%;
|
|
51
|
+
right: -90%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
100% {
|
|
55
|
+
left: 100%;
|
|
56
|
+
right: -90%;
|
|
57
|
+
}
|
|
58
|
+
`,Hf=typeof Vf==`string`?null:$e`
|
|
59
|
+
animation: ${Vf} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
60
|
+
`,Uf=Be`
|
|
61
|
+
0% {
|
|
62
|
+
left: -200%;
|
|
63
|
+
right: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
60% {
|
|
67
|
+
left: 107%;
|
|
68
|
+
right: -8%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
100% {
|
|
72
|
+
left: 107%;
|
|
73
|
+
right: -8%;
|
|
74
|
+
}
|
|
75
|
+
`,Wf=typeof Uf==`string`?null:$e`
|
|
76
|
+
animation: ${Uf} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
77
|
+
`,Gf=Be`
|
|
78
|
+
0% {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
background-position: 0 -23px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
60% {
|
|
84
|
+
opacity: 0;
|
|
85
|
+
background-position: 0 -23px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
100% {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
background-position: -200px -23px;
|
|
91
|
+
}
|
|
92
|
+
`,Kf=typeof Gf==`string`?null:$e`
|
|
93
|
+
animation: ${Gf} 3s infinite linear;
|
|
94
|
+
`,qf=e=>{let{classes:t,variant:n,color:r}=e;return H({root:[`root`,`color${L(r)}`,n],dashed:[`dashed`,`dashedColor${L(r)}`],bar1:[`bar`,`bar1`,`barColor${L(r)}`,(n===`indeterminate`||n===`query`)&&`bar1Indeterminate`,n===`determinate`&&`bar1Determinate`,n===`buffer`&&`bar1Buffer`],bar2:[`bar`,`bar2`,n!==`buffer`&&`barColor${L(r)}`,n===`buffer`&&`color${L(r)}`,(n===`indeterminate`||n===`query`)&&`bar2Indeterminate`,n===`buffer`&&`bar2Buffer`]},zf,t)},Jf=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),Yf=U(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${L(n.color)}`],t[n.variant]]}})(lt(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{backgroundColor:Jf(e,t)}})),{props:({ownerState:e})=>e.color===`inherit`&&e.variant!==`buffer`,style:{"&::before":{content:`""`,position:`absolute`,left:0,top:0,right:0,bottom:0,backgroundColor:`currentColor`,opacity:.3}}},{props:{variant:`buffer`},style:{backgroundColor:`transparent`}},{props:{variant:`query`},style:{transform:`rotate(180deg)`}}]}))),Xf=U(`span`,{name:`MuiLinearProgress`,slot:`Dashed`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.dashed,t[`dashedColor${L(n.color)}`]]}})(lt(({theme:e})=>({position:`absolute`,marginTop:0,height:`100%`,width:`100%`,backgroundSize:`10px 10px`,backgroundPosition:`0 -23px`,variants:[{props:{color:`inherit`},style:{opacity:.3,backgroundImage:`radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`}},...Object.entries(e.palette).filter(it()).map(([t])=>{let n=Jf(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Kf||{animation:`${Gf} 3s infinite linear`}),Zf=U(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${L(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar1Indeterminate,n.variant===`determinate`&&t.bar1Determinate,n.variant===`buffer`&&t.bar1Buffer]}})(lt(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{transition:`transform .${Bf}s linear`}},{props:{variant:`buffer`},style:{zIndex:1,transition:`transform .${Bf}s linear`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Hf||{animation:`${Vf} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Qf=U(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${L(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar2Indeterminate,n.variant===`buffer`&&t.bar2Buffer]}})(lt(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>e.variant!==`buffer`&&e.color!==`inherit`,style:{backgroundColor:`var(--LinearProgressBar2-barColor, currentColor)`}},{props:({ownerState:e})=>e.variant!==`buffer`&&e.color===`inherit`,style:{backgroundColor:`currentColor`}},{props:{color:`inherit`},style:{opacity:.3}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:Jf(e,t),transition:`transform .${Bf}s linear`}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Wf||{animation:`${Uf} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),$f=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,value:a,valueBuffer:o,variant:s=`indeterminate`,...c}=n,l={...n,color:i,variant:s},u=qf(l),d=mt(),f={},p={bar1:{},bar2:{}};if((s===`determinate`||s===`buffer`)&&a!==void 0){f[`aria-valuenow`]=Math.round(a),f[`aria-valuemin`]=0,f[`aria-valuemax`]=100;let e=a-100;d&&(e=-e),p.bar1.transform=`translateX(${e}%)`}if(s===`buffer`&&o!==void 0){let e=(o||0)-100;d&&(e=-e),p.bar2.transform=`translateX(${e}%)`}return(0,K.jsxs)(Yf,{className:R(u.root,r),ownerState:l,role:`progressbar`,...f,ref:t,...c,children:[s===`buffer`?(0,K.jsx)(Xf,{className:u.dashed,ownerState:l}):null,(0,K.jsx)(Zf,{className:u.bar1,ownerState:l,style:p.bar1}),s===`determinate`?null:(0,K.jsx)(Qf,{className:u.bar2,ownerState:l,style:p.bar2})]})});function ep(e){return zt(`MuiLink`,e)}var tp=V(`MuiLink`,[`root`,`underlineNone`,`underlineHover`,`underlineAlways`,`button`,`focusVisible`]),np=({theme:e,ownerState:t})=>{let n=t.color;if(`colorSpace`in e&&e.colorSpace){let r=St(e,`palette.${n}.main`)||St(e,`palette.${n}`)||t.color;return e.alpha(r,.4)}let r=St(e,`palette.${n}.main`,!1)||St(e,`palette.${n}`,!1)||t.color,i=St(e,`palette.${n}.mainChannel`)||St(e,`palette.${n}Channel`);return`vars`in e&&i?`rgba(${i} / 0.4)`:W(r,.4)},rp={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ip=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return H({root:[`root`,`underline${L(i)}`,n===`button`&&`button`,r&&`focusVisible`]},ep,t)},ap=U(nt,{name:`MuiLink`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${L(n.underline)}`],n.component===`button`&&t.button]}})(lt(({theme:e})=>({variants:[{props:{underline:`none`},style:{textDecoration:`none`}},{props:{underline:`hover`},style:{textDecoration:`none`,"&:hover":{textDecoration:`underline`}}},{props:{underline:`always`},style:{textDecoration:`underline`,"&:hover":{textDecorationColor:`inherit`}}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color!==`inherit`,style:{textDecorationColor:`var(--Link-underlineColor)`}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color===`inherit`,style:e.colorSpace?{textDecorationColor:e.alpha(`currentColor`,.4)}:null},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{underline:`always`,color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:`always`,color:`textPrimary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:`always`,color:`textSecondary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:`always`,color:`textDisabled`},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:`button`},style:{position:`relative`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${tp.focusVisible}`]:{outline:`auto`}}}]}))),op=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiLink`}),r=jt(),{className:i,color:a=`primary`,component:o=`a`,onBlur:s,onFocus:c,TypographyClasses:l,underline:u=`always`,variant:d=`inherit`,sx:f,...p}=n,[m,h]=G.useState(!1),g=e=>{Ne(e.target)||h(!1),s&&s(e)},_=e=>{Ne(e.target)&&h(!0),c&&c(e)},v={...n,color:a,component:o,focusVisible:m,underline:u,variant:d};return(0,K.jsx)(ap,{color:a,className:R(ip(v).root,i),classes:l,component:o,onBlur:g,onFocus:_,ref:t,ownerState:v,variant:d,...p,sx:[...rp[a]===void 0?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...p.style,...u===`always`&&a!==`inherit`&&!rp[a]&&{"--Link-underlineColor":np({theme:r,ownerState:v})}}})});function sp(e){return zt(`MuiListItemButton`,e)}var cp=V(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]),lp=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},up=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=H({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},sp,n);return{...n,...c}},dp=U(Qe,{shouldForwardProp:e=>Pt(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:lp})(lt(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${cp.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${cp.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${cp.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${cp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),fp=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:i=!1,component:a=`div`,children:o,dense:s=!1,disableGutters:c=!1,divider:l=!1,focusVisibleClassName:u,selected:f=!1,className:p,...m}=n,h=G.useContext(g),_=G.useMemo(()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:c}),[r,h.dense,s,c]),v=G.useRef(null);d(()=>{i&&v.current&&v.current.focus()},[i]);let y={...n,alignItems:r,dense:_.dense,disableGutters:c,divider:l,selected:f},b=up(y),x=He(v,t);return(0,K.jsx)(g.Provider,{value:_,children:(0,K.jsx)(dp,{ref:x,href:m.href||m.to,component:(m.href||m.to)&&a===`div`?`button`:a,focusVisibleClassName:R(b.focusVisible,u),ownerState:y,className:R(b.root,p),...m,classes:b,children:o})})});function pp(e){return zt(`MuiListItemIcon`,e)}var mp=V(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),hp=e=>{let{alignItems:t,classes:n}=e;return H({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},pp,n)},gp=U(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(lt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),_p=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=G.useContext(g),o={...n,alignItems:a.alignItems};return(0,K.jsx)(gp,{className:R(hp(o).root,r),ownerState:o,ref:t,...i})});function vp(e){return zt(`MuiListItemText`,e)}var yp=V(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),bp=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return H({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},vp,t)},xp=U(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${yp.primary}`]:t.primary},{[`& .${yp.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:`1 1 auto`,minWidth:0,marginTop:4,marginBottom:4,[`.${Fe.root}:where(& .${yp.primary}), .${Fe.root}:where(& .${yp.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Sp=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiListItemText`}),{children:r,className:i,disableTypography:a=!1,inset:o=!1,primary:s,primaryTypographyProps:c,secondary:l,secondaryTypographyProps:u,slots:d={},slotProps:f={},...p}=n,{dense:m}=G.useContext(g),h=s??r,_=l,v={...n,disableTypography:a,inset:o,primary:!!h,secondary:!!_,dense:m},y=bp(v),b={slots:d,slotProps:{primary:c,secondary:u,...f}},[x,S]=z(`root`,{className:R(y.root,i),elementType:xp,externalForwardedProps:{...b,...p},ownerState:v,ref:t}),[C,w]=z(`primary`,{className:y.primary,elementType:nt,externalForwardedProps:b,ownerState:v}),[T,E]=z(`secondary`,{className:y.secondary,elementType:nt,externalForwardedProps:b,ownerState:v});return h!=null&&h.type!==nt&&!a&&(h=(0,K.jsx)(C,{variant:m?`body2`:`body1`,component:w?.variant?void 0:`span`,...w,children:h})),_!=null&&_.type!==nt&&!a&&(_=(0,K.jsx)(T,{variant:`body2`,color:`textSecondary`,...E,children:_})),(0,K.jsxs)(x,{...S,children:[h,_]})});function Cp(e){return zt(`MuiMenuItem`,e)}var wp=V(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]),Tp=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Ep=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=H({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},Cp,o);return{...o,...s}},Dp=U(Qe,{shouldForwardProp:e=>Pt(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:Tp})(lt(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${wp.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${wp.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${wp.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${wp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Yt.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Yt.inset}`]:{marginLeft:52},[`& .${yp.root}`]:{marginTop:0,marginBottom:0},[`& .${yp.inset}`]:{paddingLeft:36},[`& .${mp.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${mp.root} svg`]:{fontSize:`1.25rem`}}}]}))),Op=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:f,...p}=n,m=G.useContext(g),h=G.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),_=G.useRef(null);d(()=>{r&&_.current&&_.current.focus()},[r]);let v={...n,dense:h.dense,divider:o,disableGutters:s},y=Ep(n),b=He(_,t),x;return n.disabled||(x=u===void 0?-1:u),(0,K.jsx)(g.Provider,{value:h,children:(0,K.jsx)(Dp,{ref:b,role:l,tabIndex:x,component:i,focusVisibleClassName:R(y.focusVisible,c),className:R(y.root,f),...p,ownerState:v,classes:y})})});function kp(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=Ue();G.useEffect(()=>{if(!i)return;function e(e){e.defaultPrevented||e.key===`Escape`&&r?.(e,`escapeKeyDown`)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,r]);let s=Ve((e,t)=>{r?.(e,t)}),c=Ve(e=>{!r||e==null||o.start(e,()=>{s(null,`timeout`)})});G.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=G.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),f=e=>t=>{let n=e.onBlur;n?.(t),d()},p=e=>t=>{let n=e.onFocus;n?.(t),u()},m=e=>t=>{let n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{let n=e.onMouseLeave;n?.(t),d()};return G.useEffect(()=>{if(!n&&i)return window.addEventListener(`focus`,d),window.addEventListener(`blur`,u),()=>{window.removeEventListener(`focus`,d),window.removeEventListener(`blur`,u)}},[n,i,d,u]),{getRootProps:(t={})=>{let n={...Ie(e),...Ie(t)};return{role:`presentation`,...t,...n,onBlur:f(n),onFocus:p(n),onMouseEnter:m(n),onMouseLeave:h(n)}},onClickAway:l}}function Ap(e){return zt(`MuiSnackbarContent`,e)}V(`MuiSnackbarContent`,[`root`,`message`,`action`]);var jp=e=>{let{classes:t}=e;return H({root:[`root`],action:[`action`],message:[`message`]},Ap,t)},Mp=U(It,{name:`MuiSnackbarContent`,slot:`Root`})(lt(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Tt(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Tt(e.palette.background.default,t),display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}})),Np=U(`div`,{name:`MuiSnackbarContent`,slot:`Message`})({padding:`8px 0`}),Pp=U(`div`,{name:`MuiSnackbarContent`,slot:`Action`})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),Fp=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiSnackbarContent`}),{action:r,className:i,message:a,role:o=`alert`,...s}=n,c=n,l=jp(c);return(0,K.jsxs)(Mp,{role:o,elevation:6,className:R(l.root,i),ownerState:c,ref:t,...s,children:[(0,K.jsx)(Np,{className:l.message,ownerState:c,children:a}),r?(0,K.jsx)(Pp,{className:l.action,ownerState:c,children:r}):null]})});function Ip(e){return zt(`MuiSnackbar`,e)}V(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var Lp=e=>{let{classes:t,anchorOrigin:n}=e;return H({root:[`root`,`anchorOrigin${L(n.vertical)}${L(n.horizontal)}`]},Ip,t)},Rp=U(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${L(n.anchorOrigin.vertical)}${L(n.anchorOrigin.horizontal)}`]]}})(lt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:`fixed`,display:`flex`,left:8,right:8,justifyContent:`center`,alignItems:`center`,variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`,style:{top:8,[e.breakpoints.up(`sm`)]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!==`top`,style:{bottom:8,[e.breakpoints.up(`sm`)]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`left`,style:{justifyContent:`flex-start`,[e.breakpoints.up(`sm`)]:{left:24,right:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`right`,style:{justifyContent:`flex-end`,[e.breakpoints.up(`sm`)]:{right:24,left:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`center`,style:{[e.breakpoints.up(`sm`)]:{left:`50%`,right:`auto`,transform:`translateX(-50%)`}}}]}))),zp=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiSnackbar`}),r=jt(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:o,horizontal:s}={vertical:`bottom`,horizontal:`left`},autoHideDuration:c=null,children:l,className:u,ClickAwayListenerProps:d,ContentProps:f,disableWindowBlurListener:p=!1,message:m,onBlur:g,onClose:_,onFocus:v,onMouseEnter:y,onMouseLeave:b,open:x,resumeHideDuration:S,slots:C={},slotProps:w={},TransitionComponent:T,transitionDuration:E=i,TransitionProps:{onEnter:D,onExited:O,...k}={},...A}=n,j={...n,anchorOrigin:{vertical:o,horizontal:s},autoHideDuration:c,disableWindowBlurListener:p,TransitionComponent:T,transitionDuration:E},M=Lp(j),{getRootProps:N,onClickAway:P}=kp(j),[F,I]=G.useState(!0),ee=e=>{I(!0),O&&O(e)},te=(e,t)=>{I(!1),D&&D(e,t)},ne={slots:{transition:T,...C},slotProps:{content:f,clickAwayListener:d,transition:k,...w}},[re,ie]=z(`root`,{ref:t,className:[M.root,u],elementType:Rp,getSlotProps:N,externalForwardedProps:{...ne,...A},ownerState:j}),[ae,{ownerState:oe,...se}]=z(`clickAwayListener`,{elementType:mf,externalForwardedProps:ne,getSlotProps:e=>({onClickAway:(...t)=>{let n=t[0];e.onClickAway?.(...t),!n?.defaultMuiPrevented&&P(...t)}}),ownerState:j}),[ce,le]=z(`content`,{elementType:Fp,shouldForwardComponentProp:!0,externalForwardedProps:ne,additionalProps:{message:m,action:a},ownerState:j}),[ue,de]=z(`transition`,{elementType:h,externalForwardedProps:ne,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),te(...t)},onExited:(...t)=>{e.onExited?.(...t),ee(...t)}}),additionalProps:{appear:!0,in:x,timeout:E,direction:o===`top`?`down`:`up`},ownerState:j});return!x&&F?null:(0,K.jsx)(ae,{...se,...C.clickAwayListener&&{ownerState:oe},children:(0,K.jsx)(re,{...ie,children:(0,K.jsx)(ue,{...de,children:l||(0,K.jsx)(ce,{...le})})})})});function Bp(e){return zt(`MuiTooltip`,e)}var Vp=V(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function Hp(e){return Math.round(e*1e5)/1e5}var Up=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return H({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${L(a.split(`-`)[0])}`],arrow:[`arrow`]},Bp,t)},Wp=U(Bo,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(lt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({open:e})=>!e,style:{pointerEvents:`none`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Vp.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${Vp.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${Vp.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${Vp.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Vp.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Vp.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Vp.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Vp.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),Gp=U(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${L(n.placement.split(`-`)[0])}`]]}})(lt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${Vp.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${Vp.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${Vp.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${Vp.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${Hp(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Vp.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${Vp.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Vp.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${Vp.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Vp.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${Vp.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Vp.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${Vp.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${Vp.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${Vp.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),Kp=U(`span`,{name:`MuiTooltip`,slot:`Arrow`})(lt(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),qp=!1,Jp=new ze,Yp={x:0,y:0};function Xp(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var Zp=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:_=!1,id:v,leaveDelay:y=0,leaveTouchDelay:b=1500,onClose:x,onOpen:C,open:w,placement:T=`bottom`,PopperComponent:E,PopperProps:D={},slotProps:O={},slots:k={},title:A,TransitionComponent:j,TransitionProps:M,...N}=n,P=G.isValidElement(i)?i:(0,K.jsx)(`span`,{children:i}),F=jt(),I=mt(),[ee,te]=G.useState(),[ne,re]=G.useState(null),ie=G.useRef(!1),ae=d||_,oe=Ue(),se=Ue(),ce=Ue(),le=Ue(),[ue,de]=S({controlled:w,default:!1,name:`Tooltip`,state:`open`}),fe=ue,pe=Ke(v),me=G.useRef(),he=ot(()=>{me.current!==void 0&&(document.body.style.WebkitUserSelect=me.current,me.current=void 0),le.clear()});G.useEffect(()=>he,[he]);let ge=e=>{Jp.clear(),qp=!0,de(!0),C&&!fe&&C(e)},_e=ot(e=>{Jp.start(800+y,()=>{qp=!1}),de(!1),x&&fe&&x(e),oe.start(F.transitions.duration.shortest,()=>{ie.current=!1})}),ve=e=>{ie.current&&e.type!==`touchstart`||(ee&&ee.removeAttribute(`title`),se.clear(),ce.clear(),p||qp&&m?se.start(qp?m:p,()=>{ge(e)}):ge(e))},be=e=>{se.clear(),ce.start(y,()=>{_e(e)})},[,xe]=G.useState(!1),Se=e=>{let t=e?.target??ee;if(!t||!Ne(t)){xe(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,`target`,{value:t}),Object.defineProperty(n,`currentTarget`,{value:t})),be(n)}},Ce=e=>{ee||te(e.currentTarget),Ne(e.target)&&(xe(!0),ve(e))},we=e=>{ie.current=!0;let t=P.props;t.onTouchStart&&t.onTouchStart(e)},Te=e=>{we(e),ce.clear(),oe.clear(),he(),me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,le.start(g,()=>{document.body.style.WebkitUserSelect=me.current,ve(e)})},Ee=e=>{P.props.onTouchEnd&&P.props.onTouchEnd(e),he(),ce.start(b,()=>{_e(e)})};G.useEffect(()=>{if(!fe)return;function e(e){e.key===`Escape`&&_e(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[_e,fe]);let De=He(ye(P),te,t);!A&&A!==0&&(fe=!1);let Oe=G.useRef(),ke=e=>{let t=P.props;t.onMouseMove&&t.onMouseMove(e),Yp={x:e.clientX,y:e.clientY},Oe.current&&Oe.current.update()},Ae={},je=typeof A==`string`;c?(Ae.title=!fe&&je&&!u?A:null,Ae[`aria-describedby`]=fe?pe:null):(Ae[`aria-label`]=je?A:null,Ae[`aria-labelledby`]=fe&&!je?pe:null);let L={...Ae,...N,...P.props,className:R(N.className,P.props.className),onTouchStart:we,ref:De,..._?{onMouseMove:ke}:{}},Me={};f||(L.onTouchStart=Te,L.onTouchEnd=Ee),u||(L.onMouseOver=Xp(ve,L.onMouseOver),L.onMouseLeave=Xp(be,L.onMouseLeave),ae||(Me.onMouseOver=ve,Me.onMouseLeave=be)),l||(L.onFocus=Xp(Ce,L.onFocus),L.onBlur=Xp(Se,L.onBlur),ae||(Me.onFocus=Ce,Me.onBlur=Se));let Pe={...n,isRtl:I,arrow:r,disableInteractive:ae,placement:T,PopperComponentProp:E,touch:ie.current},Fe=typeof O.popper==`function`?O.popper(Pe):O.popper,Ie=G.useMemo(()=>{let e=[{name:`arrow`,enabled:!!ne,options:{element:ne,padding:4}}];return D.popperOptions?.modifiers&&(e=e.concat(D.popperOptions.modifiers)),Fe?.popperOptions?.modifiers&&(e=e.concat(Fe.popperOptions.modifiers)),{...D.popperOptions,...Fe?.popperOptions,modifiers:e}},[ne,D.popperOptions,Fe?.popperOptions]),Le=Up(Pe),Re=typeof O.transition==`function`?O.transition(Pe):O.transition,ze={slots:{popper:o.Popper,transition:o.Transition??j,tooltip:o.Tooltip,arrow:o.Arrow,...k},slotProps:{arrow:O.arrow??s.arrow,popper:{...D,...Fe??s.popper},tooltip:O.tooltip??s.tooltip,transition:{...M,...Re??s.transition}}},[Be,Ve]=z(`popper`,{elementType:Wp,externalForwardedProps:ze,ownerState:Pe,className:R(Le.popper,D?.className)}),[We,Ge]=z(`transition`,{elementType:h,externalForwardedProps:ze,ownerState:Pe}),[qe,Je]=z(`tooltip`,{elementType:Gp,className:Le.tooltip,externalForwardedProps:ze,ownerState:Pe}),[Ye,Xe]=z(`arrow`,{elementType:Kp,className:Le.arrow,externalForwardedProps:ze,ownerState:Pe,ref:re});return(0,K.jsxs)(G.Fragment,{children:[G.cloneElement(P,L),(0,K.jsx)(Be,{as:E??Bo,placement:T,anchorEl:_?{getBoundingClientRect:()=>({top:Yp.y,left:Yp.x,right:Yp.x,bottom:Yp.y,width:0,height:0})}:ee,popperRef:Oe,open:ee?fe:!1,id:pe,transition:!0,...Me,...Ve,popperOptions:Ie,children:({TransitionProps:e})=>(0,K.jsx)(We,{timeout:F.transitions.duration.shorter,...e,...Ge,children:(0,K.jsxs)(qe,{...Je,children:[A,r?(0,K.jsx)(Ye,{...Xe}):null]})})})]})});function Qp(e){return zt(`MuiStep`,e)}V(`MuiStep`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`completed`]);var $p=e=>{let{classes:t,orientation:n,alternativeLabel:r,completed:i}=e;return H({root:[`root`,n,r&&`alternativeLabel`,i&&`completed`]},Qp,t)},em=U(`div`,{name:`MuiStep`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:`horizontal`},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:`relative`}}]}),tm=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiStep`}),{active:r,children:i,className:a,component:o=`div`,completed:s,disabled:c,expanded:l=!1,index:u,last:d,...f}=n,{activeStep:p,connector:m,alternativeLabel:h,orientation:g,nonLinear:_}=G.useContext(gs),[v=!1,y=!1,b=!1]=[r,s,c];p===u?v=r===void 0?!0:r:!_&&p>u?y=s===void 0?!0:s:!_&&p<u&&(b=c===void 0?!0:c);let x=G.useMemo(()=>({index:u,last:d,expanded:l,icon:u+1,active:v,completed:y,disabled:b}),[u,d,l,v,y,b]),S={...n,active:v,orientation:g,alternativeLabel:h,completed:y,disabled:b,expanded:l,component:o},C=(0,K.jsxs)(em,{as:o,className:R($p(S).root,a),ref:t,ownerState:S,...f,children:[m&&h&&u!==0?m:null,i]});return(0,K.jsx)(hs.Provider,{value:x,children:m&&!h&&u!==0?(0,K.jsxs)(G.Fragment,{children:[m,C]}):C})});function nm(e){return zt(`MuiStepConnector`,e)}V(`MuiStepConnector`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`active`,`completed`,`disabled`,`line`,`lineHorizontal`,`lineVertical`]);var rm=e=>{let{classes:t,orientation:n,alternativeLabel:r,active:i,completed:a,disabled:o}=e;return H({root:[`root`,n,r&&`alternativeLabel`,i&&`active`,a&&`completed`,o&&`disabled`],line:[`line`,`line${L(n)}`]},nm,t)},im=U(`div`,{name:`MuiStepConnector`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:`1 1 auto`,variants:[{props:{orientation:`vertical`},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:`absolute`,top:12,left:`calc(-50% + 20px)`,right:`calc(50% + 20px)`}}]}),am=U(`span`,{name:`MuiStepConnector`,slot:`Line`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.line,t[`line${L(n.orientation)}`]]}})(lt(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600];return{display:`block`,borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:`horizontal`},style:{borderTopStyle:`solid`,borderTopWidth:1}},{props:{orientation:`vertical`},style:{borderLeftStyle:`solid`,borderLeftWidth:1,minHeight:24}}]}})),om=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiStepConnector`}),{className:r,...i}=n,{alternativeLabel:a,orientation:o=`horizontal`}=G.useContext(gs),{active:s,disabled:c,completed:l}=G.useContext(hs),u={...n,alternativeLabel:a,orientation:o,active:s,completed:l,disabled:c},d=rm(u);return(0,K.jsx)(im,{className:R(d.root,r),ref:t,ownerState:u,...i,children:(0,K.jsx)(am,{className:d.line,ownerState:u})})});function sm(e){return zt(`MuiStepContent`,e)}V(`MuiStepContent`,[`root`,`last`,`transition`]);var cm=e=>{let{classes:t,last:n}=e;return H({root:[`root`,n&&`last`],transition:[`transition`]},sm,t)},lm=U(`div`,{name:`MuiStepContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.last&&t.last]}})(lt(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:`none`}}]}))),um=U(Ni,{name:`MuiStepContent`,slot:`Transition`})({}),dm=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiStepContent`}),{children:r,className:i,TransitionComponent:a=Ni,transitionDuration:o=`auto`,TransitionProps:s,slots:c={},slotProps:l={},...u}=n,{orientation:d}=G.useContext(gs),{active:f,last:p,expanded:m}=G.useContext(hs),h={...n,last:p},g=cm(h),_=o;o===`auto`&&!a.muiSupportAuto&&(_=void 0);let[v,y]=z(`transition`,{elementType:um,externalForwardedProps:{slots:c,slotProps:{transition:s,...l}},ownerState:h,className:g.transition,additionalProps:{in:f||m,timeout:_,unmountOnExit:!0}});return(0,K.jsx)(lm,{className:R(g.root,i),ref:t,ownerState:h,...u,children:(0,K.jsx)(v,{as:a,...y,children:r})})});function fm(e){return zt(`MuiStepper`,e)}V(`MuiStepper`,[`root`,`horizontal`,`vertical`,`nonLinear`,`alternativeLabel`]);var pm=e=>{let{orientation:t,nonLinear:n,alternativeLabel:r,classes:i}=e;return H({root:[`root`,t,n&&`nonLinear`,r&&`alternativeLabel`]},fm,i)},mm=U(`div`,{name:`MuiStepper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:`flex`,variants:[{props:{orientation:`horizontal`},style:{flexDirection:`row`,alignItems:`center`}},{props:{orientation:`vertical`},style:{flexDirection:`column`}},{props:{alternativeLabel:!0},style:{alignItems:`flex-start`}}]}),hm=(0,K.jsx)(om,{}),gm=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiStepper`}),{activeStep:r=0,alternativeLabel:i=!1,children:a,className:o,component:s=`div`,connector:c=hm,nonLinear:l=!1,orientation:u=`horizontal`,...d}=n,f={...n,nonLinear:l,alternativeLabel:i,orientation:u,component:s},p=pm(f),m=G.Children.toArray(a).filter(Boolean),h=m.map((e,t)=>G.cloneElement(e,{index:t,last:t+1===m.length,...e.props})),g=G.useMemo(()=>({activeStep:r,alternativeLabel:i,connector:c,nonLinear:l,orientation:u}),[r,i,c,l,u]);return(0,K.jsx)(gs.Provider,{value:g,children:(0,K.jsx)(mm,{as:s,ownerState:f,className:R(p.root,o),ref:t,...d,children:h})})});function _m(e){return zt(`MuiTable`,e)}V(`MuiTable`,[`root`,`stickyHeader`]);var vm=e=>{let{classes:t,stickyHeader:n}=e;return H({root:[`root`,n&&`stickyHeader`]},_m,t)},ym=U(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(lt(({theme:e})=>({display:`table`,width:`100%`,borderCollapse:`collapse`,borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:`left`,captionSide:`bottom`},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),bm=`table`,xm=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTable`}),{className:r,component:i=bm,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...c}=n,l={...n,component:i,padding:a,size:o,stickyHeader:s},u=vm(l),d=G.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,K.jsx)($o.Provider,{value:d,children:(0,K.jsx)(ym,{as:i,role:i===bm?null:`table`,ref:t,className:R(u.root,r),ownerState:l,...c})})});function Sm(e){return zt(`MuiTableBody`,e)}V(`MuiTableBody`,[`root`]);var Cm=e=>{let{classes:t}=e;return H({root:[`root`]},Sm,t)},wm=U(`tbody`,{name:`MuiTableBody`,slot:`Root`})({display:`table-row-group`}),Tm={variant:`body`},Em=`tbody`,Dm=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTableBody`}),{className:r,component:i=Em,...a}=n,o={...n,component:i},s=Cm(o);return(0,K.jsx)(Ko.Provider,{value:Tm,children:(0,K.jsx)(wm,{className:R(s.root,r),as:i,ref:t,role:i===Em?null:`rowgroup`,ownerState:o,...a})})});function Om(e){return zt(`MuiTableHead`,e)}V(`MuiTableHead`,[`root`]);var km=e=>{let{classes:t}=e;return H({root:[`root`]},Om,t)},Am=U(`thead`,{name:`MuiTableHead`,slot:`Root`})({display:`table-header-group`}),jm={variant:`head`},Mm=`thead`,Nm=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTableHead`}),{className:r,component:i=Mm,...a}=n,o={...n,component:i},s=km(o);return(0,K.jsx)(Ko.Provider,{value:jm,children:(0,K.jsx)(Am,{as:i,className:R(s.root,r),ref:t,role:i===Mm?null:`rowgroup`,ownerState:o,...a})})});function Pm(e){return zt(`MuiToolbar`,e)}V(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var Fm=e=>{let{classes:t,disableGutters:n,variant:r}=e;return H({root:[`root`,!n&&`gutters`,r]},Pm,t)},Im=U(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(lt(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),Lm=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,c={...n,component:i,disableGutters:a,variant:o};return(0,K.jsx)(Im,{as:i,className:R(Fm(c).root,r),ref:t,ownerState:c,...s})}),Rm=kt((0,K.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),zm=kt((0,K.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function Bm(e){return zt(`MuiTablePaginationActions`,e)}V(`MuiTablePaginationActions`,[`root`]);var Vm=e=>{let{classes:t}=e;return H({root:[`root`]},Bm,t)},Hm=U(`div`,{name:`MuiTablePaginationActions`,slot:`Root`})({}),Um=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTablePaginationActions`}),{backIconButtonProps:r,className:i,count:a,disabled:o=!1,getItemAriaLabel:s,nextIconButtonProps:c,onPageChange:l,page:u,rowsPerPage:d,showFirstButton:f,showLastButton:p,slots:m={},slotProps:h={},...g}=n,_=mt(),v=Vm(n),y=e=>{l(e,0)},b=e=>{l(e,u-1)},x=e=>{l(e,u+1)},S=e=>{l(e,Math.max(0,Math.ceil(a/d)-1))},C=m.firstButton??xt,w=m.lastButton??xt,T=m.nextButton??xt,E=m.previousButton??xt,D=m.firstButtonIcon??Ds,O=m.lastButtonIcon??Os,k=m.nextButtonIcon??zm,A=m.previousButtonIcon??Rm,j=_?w:C,M=_?T:E,N=_?E:T,P=_?C:w,F=_?h.lastButton:h.firstButton,I=_?h.nextButton:h.previousButton,ee=_?h.previousButton:h.nextButton,te=_?h.firstButton:h.lastButton;return(0,K.jsxs)(Hm,{ref:t,className:R(v.root,i),...g,children:[f&&(0,K.jsx)(j,{onClick:y,disabled:o||u===0,"aria-label":s(`first`,u),title:s(`first`,u),...F,children:_?(0,K.jsx)(O,{...h.lastButtonIcon}):(0,K.jsx)(D,{...h.firstButtonIcon})}),(0,K.jsx)(M,{onClick:b,disabled:o||u===0,color:`inherit`,"aria-label":s(`previous`,u),title:s(`previous`,u),...I??r,children:_?(0,K.jsx)(k,{...h.nextButtonIcon}):(0,K.jsx)(A,{...h.previousButtonIcon})}),(0,K.jsx)(N,{onClick:x,disabled:o||(a===-1?!1:u>=Math.ceil(a/d)-1),color:`inherit`,"aria-label":s(`next`,u),title:s(`next`,u),...ee??c,children:_?(0,K.jsx)(A,{...h.previousButtonIcon}):(0,K.jsx)(k,{...h.nextButtonIcon})}),p&&(0,K.jsx)(P,{onClick:S,disabled:o||u>=Math.ceil(a/d)-1,"aria-label":s(`last`,u),title:s(`last`,u),...te,children:_?(0,K.jsx)(D,{...h.firstButtonIcon}):(0,K.jsx)(O,{...h.lastButtonIcon})})]})});function Wm(e){return zt(`MuiTablePagination`,e)}var Gm=V(`MuiTablePagination`,[`root`,`toolbar`,`spacer`,`selectLabel`,`selectRoot`,`select`,`selectIcon`,`input`,`menuItem`,`displayedRows`,`actions`]),Km,qm=U(is,{name:`MuiTablePagination`,slot:`Root`})(lt(({theme:e})=>({overflow:`auto`,color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),Jm=U(Lm,{name:`MuiTablePagination`,slot:`Toolbar`,overridesResolver:(e,t)=>({[`& .${Gm.actions}`]:t.actions,...t.toolbar})})(lt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up(`xs`)} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up(`sm`)]:{minHeight:52,paddingRight:2},[`& .${Gm.actions}`]:{flexShrink:0,marginLeft:20}}))),Ym=U(`div`,{name:`MuiTablePagination`,slot:`Spacer`})({flex:`1 1 100%`}),Xm=U(`p`,{name:`MuiTablePagination`,slot:`SelectLabel`})(lt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Zm=U(o,{name:`MuiTablePagination`,slot:`Select`,overridesResolver:(e,t)=>({[`& .${Gm.selectIcon}`]:t.selectIcon,[`& .${Gm.select}`]:t.select,...t.input,...t.selectRoot})})({color:`inherit`,fontSize:`inherit`,flexShrink:0,marginRight:32,marginLeft:8,[`& .${Gm.select}`]:{paddingLeft:8,paddingRight:24,textAlign:`right`,textAlignLast:`right`}}),Qm=U(Op,{name:`MuiTablePagination`,slot:`MenuItem`})({}),$m=U(`p`,{name:`MuiTablePagination`,slot:`DisplayedRows`})(lt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function eh({from:e,to:t,count:n}){return`${e}–${t} of ${n===-1?`more than ${t}`:n}`}function th(e){return`Go to ${e} page`}var nh=e=>{let{classes:t}=e;return H({root:[`root`],toolbar:[`toolbar`],spacer:[`spacer`],selectLabel:[`selectLabel`],select:[`select`],input:[`input`],selectIcon:[`selectIcon`],menuItem:[`menuItem`],displayedRows:[`displayedRows`],actions:[`actions`]},Wm,t)},rh=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTablePagination`}),{ActionsComponent:r=Um,backIconButtonProps:i,colSpan:a,component:o=is,count:s,disabled:c=!1,getItemAriaLabel:l=th,labelDisplayedRows:u=eh,labelRowsPerPage:d=`Rows per page:`,nextIconButtonProps:f,onPageChange:p,onRowsPerPageChange:m,page:h,rowsPerPage:g,rowsPerPageOptions:_=[10,25,50,100],SelectProps:v={},showFirstButton:y=!1,showLastButton:b=!1,slotProps:x={},slots:S={},...C}=n,w=n,T=nh(w),E=x?.select??v,D=E.native?`option`:Qm,O;(o===is||o===`td`)&&(O=a||1e3);let k=Ke(E.id),A=Ke(E.labelId),j=()=>s===-1?(h+1)*g:g===-1?s:Math.min(s,(h+1)*g),M={slots:S,slotProps:x},[N,F]=z(`root`,{ref:t,className:T.root,elementType:qm,externalForwardedProps:{...M,component:o,...C},ownerState:w,additionalProps:{colSpan:O}}),[I,ee]=z(`toolbar`,{className:T.toolbar,elementType:Jm,externalForwardedProps:M,ownerState:w}),[te,ne]=z(`spacer`,{className:T.spacer,elementType:Ym,externalForwardedProps:M,ownerState:w}),[re,ie]=z(`selectLabel`,{className:T.selectLabel,elementType:Xm,externalForwardedProps:M,ownerState:w,additionalProps:{id:A}}),[ae,oe]=z(`select`,{className:T.select,elementType:Zm,externalForwardedProps:M,ownerState:w}),[se,ce]=z(`menuItem`,{className:T.menuItem,elementType:D,externalForwardedProps:M,ownerState:w}),[le,ue]=z(`displayedRows`,{className:T.displayedRows,elementType:$m,externalForwardedProps:M,ownerState:w});return(0,K.jsx)(N,{...F,children:(0,K.jsxs)(I,{...ee,children:[(0,K.jsx)(te,{...ne}),_.length>1&&(0,K.jsx)(re,{...ie,children:d}),_.length>1&&(0,K.jsx)(ae,{variant:`standard`,...!E.variant&&{input:Km||=(0,K.jsx)(P,{})},value:g,onChange:m,id:k,labelId:A,...E,classes:{...E.classes,root:R(T.input,T.selectRoot,(E.classes||{}).root),select:R(T.select,(E.classes||{}).select),icon:R(T.selectIcon,(E.classes||{}).icon)},disabled:c,...oe,children:_.map(e=>(0,G.createElement)(se,{...ce,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),(0,K.jsx)(le,{...ue,children:u({from:s===0?0:h*g+1,to:j(),count:s===-1?-1:s,page:h})}),(0,K.jsx)(r,{className:T.actions,backIconButtonProps:i,count:s,nextIconButtonProps:f,onPageChange:p,page:h,rowsPerPage:g,showFirstButton:y,showLastButton:b,slotProps:x.actions,slots:S.actions,getItemAriaLabel:l,disabled:c})]})})}),ih=kt((0,K.jsx)(`path`,{d:`M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z`}),`ArrowDownward`);function ah(e){return zt(`MuiTableSortLabel`,e)}var oh=V(`MuiTableSortLabel`,[`root`,`active`,`icon`,`iconDirectionDesc`,`iconDirectionAsc`,`directionDesc`,`directionAsc`]),sh=e=>{let{classes:t,direction:n,active:r}=e;return H({root:[`root`,r&&`active`,`direction${L(n)}`],icon:[`icon`,`iconDirection${L(n)}`]},ah,t)},ch=U(Qe,{name:`MuiTableSortLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})(lt(({theme:e})=>({cursor:`pointer`,display:`inline-flex`,justifyContent:`flex-start`,flexDirection:`inherit`,alignItems:`center`,"&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${oh.icon}`]:{opacity:.5}},[`&.${oh.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${oh.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),lh=U(`span`,{name:`MuiTableSortLabel`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,t[`iconDirection${L(n.direction)}`]]}})(lt(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create([`opacity`,`transform`],{duration:e.transitions.duration.shorter}),userSelect:`none`,variants:[{props:{direction:`desc`},style:{transform:`rotate(0deg)`}},{props:{direction:`asc`},style:{transform:`rotate(180deg)`}}]}))),uh=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTableSortLabel`}),{active:r=!1,children:i,className:a,direction:o=`asc`,hideSortIcon:s=!1,IconComponent:c=ih,slots:l={},slotProps:u={},...d}=n,f={...n,active:r,direction:o,hideSortIcon:s,IconComponent:c},p=sh(f),m={slots:l,slotProps:u},[h,g]=z(`root`,{elementType:ch,externalForwardedProps:m,ownerState:f,className:R(p.root,a),ref:t}),[_,v]=z(`icon`,{elementType:lh,externalForwardedProps:m,ownerState:f,className:p.icon});return(0,K.jsxs)(h,{disableRipple:!0,component:`span`,...g,...d,children:[i,s&&!r?null:(0,K.jsx)(_,{as:c,...v})]})});function dh(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function fh(e,t,n,r={},i=()=>{}){let{ease:a=dh,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);if(t[e]=a(u)*(n-c)+c,u>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var ph={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`};function mh(e){let{onChange:t,...n}=e,r=G.useRef(),i=G.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return d(()=>{let e=a(()=>{let e=r.current;o(),e!==r.current&&t(r.current)}),n=l(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),G.useEffect(()=>{o(),t(r.current)},[t]),(0,K.jsx)(`div`,{style:ph,...n,ref:i})}function hh(e){return zt(`MuiTabScrollButton`,e)}var gh=V(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),_h=e=>{let{classes:t,orientation:n,disabled:r}=e;return H({root:[`root`,n,r&&`disabled`]},hh,t)},vh=U(Qe,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${gh.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),yh=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,u=mt(),d={isRtl:u,...n},f=_h(d),p=i.StartScrollButtonIcon??Rm,m=i.EndScrollButtonIcon??zm,h=j({elementType:p,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:d}),g=j({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:d});return(0,K.jsx)(vh,{component:`div`,className:R(f.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...l,style:{...l.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:o===`left`?(0,K.jsx)(p,{...h}):(0,K.jsx)(m,{...g})})});function bh(e){return zt(`MuiTabs`,e)}var xh=V(`MuiTabs`,[`root`,`vertical`,`list`,`flexContainer`,`flexContainerVertical`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),Sh=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Ch=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,wh=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}let t=i.disabled||i.getAttribute(`aria-disabled`)===`true`;if(!i.hasAttribute(`tabindex`)||t)i=n(e,i);else{i.focus();return}}},Th=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return H({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,`flexContainer`,t&&`flexContainerVertical`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},bh,c)},Eh=U(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${xh.scrollButtons}`]:t.scrollButtons},{[`& .${xh.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(lt(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${xh.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),Dh=U(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),Oh=U(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),kh=U(`span`,{name:`MuiTabs`,slot:`Indicator`})(lt(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,transition:e.transitions.create(),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),Ah=U(mh)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),jh={},Mh=G.forwardRef(function(e,t){let n=st({props:e,name:`MuiTabs`}),r=jt(),i=mt(),{"aria-label":o,"aria-labelledby":s,action:c,centered:u=!1,children:d,className:f,component:p=`div`,allowScrollButtonsMobile:m=!1,indicatorColor:h=`primary`,onChange:g,orientation:_=`horizontal`,ScrollButtonComponent:y,scrollButtons:b=`auto`,selectionFollowsFocus:x,slots:S={},slotProps:C={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:D=`primary`,value:O,variant:k=`standard`,visibleScrollbar:A=!1,...M}=n,N=k===`scrollable`,P=_===`vertical`,F=P?`scrollTop`:`scrollLeft`,I=P?`top`:`left`,ee=P?`bottom`:`right`,te=P?`clientHeight`:`clientWidth`,ne=P?`height`:`width`,re={...n,component:p,allowScrollButtonsMobile:m,indicatorColor:h,orientation:_,vertical:P,scrollButtons:b,textColor:D,variant:k,visibleScrollbar:A,fixed:!N,hideScrollbar:N&&!A,scrollableX:N&&!P,scrollableY:N&&P,centered:u&&!N,scrollButtonsHideMobile:!m},ie=Th(re),ae=j({elementType:S.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:re}),oe=j({elementType:S.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:re}),[se,ce]=G.useState(!1),[le,ue]=G.useState(jh),[de,fe]=G.useState(!1),[pe,me]=G.useState(!1),[he,ge]=G.useState(!1),[_e,ve]=G.useState({overflow:`hidden`,scrollbarWidth:0}),ye=new Map,be=G.useRef(null),xe=G.useRef(null),Se={slots:S,slotProps:{indicator:w,scrollButtons:E,...C}},Ce=()=>{let e=be.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&O!==!1){let e=xe.current.children;if(e.length>0){let t=e[ye.get(O)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},we=ot(()=>{let{tabsMeta:e,tabMeta:t}=Ce(),n=0,r;P?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[ne]:t?t[ne]:0};if(typeof le[r]!=`number`||typeof le[ne]!=`number`)ue(a);else{let e=Math.abs(le[r]-a[r]),t=Math.abs(le[ne]-a[ne]);(e>=1||t>=1)&&ue(a)}}),Te=(e,{animation:t=!0}={})=>{t?fh(F,be.current,e,{duration:r.transitions.duration.standard}):be.current[F]=e},Ee=e=>{let t=be.current[F];P?t+=e:t+=e*(i?-1:1),Te(t)},De=()=>{let e=be.current[te],t=0,n=Array.from(xe.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[te]>e){r===0&&(t=e);break}t+=i[te]}return t},Oe=()=>{Ee(-1*De())},ke=()=>{Ee(De())},[Ae,{onChange:je,...L}]=z(`scrollbar`,{className:R(ie.scrollableX,ie.hideScrollbar),elementType:Ah,shouldForwardComponentProp:!0,externalForwardedProps:Se,ownerState:re}),Me=G.useCallback(e=>{je?.(e),ve({overflow:null,scrollbarWidth:e})},[je]),[Ne,Pe]=z(`scrollButtons`,{className:R(ie.scrollButtons,E.className),elementType:yh,externalForwardedProps:Se,ownerState:re,additionalProps:{orientation:_,slots:{StartScrollButtonIcon:S.startScrollButtonIcon||S.StartScrollButtonIcon,EndScrollButtonIcon:S.endScrollButtonIcon||S.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ae,endScrollButtonIcon:oe}}}),Fe=()=>{let e={};e.scrollbarSizeListener=N?(0,K.jsx)(Ae,{...L,onChange:Me}):null;let t=N&&(b===`auto`&&(de||pe)||b===!0);return e.scrollButtonStart=t?(0,K.jsx)(Ne,{direction:i?`right`:`left`,onClick:Oe,disabled:!de,...Pe}):null,e.scrollButtonEnd=t?(0,K.jsx)(Ne,{direction:i?`left`:`right`,onClick:ke,disabled:!pe,...Pe}):null,e},Ie=ot(e=>{let{tabsMeta:t,tabMeta:n}=Ce();!n||!t||(n[I]<t[I]?Te(t[F]+(n[I]-t[I]),{animation:e}):n[ee]>t[ee]&&Te(t[F]+(n[ee]-t[ee]),{animation:e}))}),Le=ot(()=>{N&&b!==!1&&ge(!he)});G.useEffect(()=>{let e=a(()=>{be.current&&we()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),Le()},r=l(be.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(xe.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(xe.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[we,Le]),G.useEffect(()=>{let e=Array.from(xe.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&N&&b!==!1){let n=e[0],r=e[t-1],i={root:be.current,threshold:.99},a=new IntersectionObserver(e=>{fe(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{me(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[N,b,he,d?.length]),G.useEffect(()=>{ce(!0)},[]),G.useEffect(()=>{we()}),G.useEffect(()=>{Ie(jh!==le)},[Ie,le]),G.useImperativeHandle(c,()=>({updateIndicator:we,updateScrollButtons:Le}),[we,Le]);let[Re,ze]=z(`indicator`,{className:R(ie.indicator,w.className),elementType:kh,externalForwardedProps:Se,ownerState:re,additionalProps:{style:le}}),Be=(0,K.jsx)(Re,{...ze}),Ve=0,He=G.Children.map(d,e=>{if(!G.isValidElement(e))return null;let t=e.props.value===void 0?Ve:e.props.value;ye.set(t,Ve);let n=t===O;return Ve+=1,G.cloneElement(e,{fullWidth:k===`fullWidth`,indicator:n&&!se&&Be,selected:n,selectionFollowsFocus:x,onChange:g,textColor:D,value:t,...Ve===1&&O===!1&&!e.props.tabIndex?{tabIndex:0}:{}})}),Ue=e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;let t=xe.current,n=T(v(t));if(n?.getAttribute(`role`)!==`tab`)return;let r=_===`horizontal`?`ArrowLeft`:`ArrowUp`,a=_===`horizontal`?`ArrowRight`:`ArrowDown`;switch(_===`horizontal`&&i&&(r=`ArrowRight`,a=`ArrowLeft`),e.key){case r:e.preventDefault(),wh(t,n,Ch);break;case a:e.preventDefault(),wh(t,n,Sh);break;case`Home`:e.preventDefault(),wh(t,null,Sh);break;case`End`:e.preventDefault(),wh(t,null,Ch);break;default:break}},We=Fe(),[Ge,Ke]=z(`root`,{ref:t,className:R(ie.root,f),elementType:Eh,externalForwardedProps:{...Se,...M,component:p},ownerState:re}),[qe,Je]=z(`scroller`,{ref:be,className:ie.scroller,elementType:Dh,externalForwardedProps:Se,ownerState:re,additionalProps:{style:{overflow:_e.overflow,[P?`margin${i?`Left`:`Right`}`:`marginBottom`]:A?void 0:-_e.scrollbarWidth}}}),[Ye,Xe]=z(`list`,{ref:xe,className:R(ie.list,ie.flexContainer),elementType:Oh,externalForwardedProps:Se,ownerState:re,getSlotProps:e=>({...e,onKeyDown:t=>{Ue(t),e.onKeyDown?.(t)}})});return(0,K.jsxs)(Ge,{...Ke,children:[We.scrollButtonStart,We.scrollbarSizeListener,(0,K.jsxs)(qe,{...Je,children:[(0,K.jsx)(Ye,{"aria-label":o,"aria-labelledby":s,"aria-orientation":_===`vertical`?`vertical`:null,role:`tablist`,...Xe,children:He}),se&&Be]}),We.scrollButtonEnd]})}),Nh=cn({themeId:Pe});function Ph(){return Nh(`(prefers-color-scheme: dark)`)}function Fh(e){let t=Ph();return e===`system`?t?`dark`:`light`:e}var Ih=e=>!!e.dispatchFromDevtools&&typeof e.dispatch==`function`,Lh=new Map,Rh=e=>{let t=Lh.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},zh=(e,t,n)=>{if(e===void 0)return{type:`untracked`,connection:t.connect(n)};let r=Lh.get(n.name);if(r)return{type:`tracked`,store:e,...r};let i={connection:t.connect(n),stores:{}};return Lh.set(n.name,i),{type:`tracked`,store:e,...i}},Bh=(e,t)=>{if(t===void 0)return;let n=Lh.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&Lh.delete(e))},Vh=e=>{if(!e)return;let t=e.split(`
|
|
95
|
+
`),n=t.findIndex(e=>e.includes(`api.setState`));if(n<0)return;let r=t[n+1]?.trim()||``;return/.+ (.+) .+/.exec(r)?.[1]},Hh=(e,t={})=>(n,r,i)=>{let{enabled:a,anonymousActionType:o,store:s,...c}=t,l;try{l=(a??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return e(n,r,i);let{connection:u,...d}=zh(s,l,c),f=!0;i.setState=((e,t,a)=>{let l=n(e,t);if(!f)return l;let d=a===void 0?{type:o||Vh(Error().stack)||`anonymous`}:typeof a==`string`?{type:a}:a;return s===void 0?(u?.send(d,r()),l):(u?.send({...d,type:`${s}/${d.type}`},{...Rh(c.name),[s]:i.getState()}),l)}),i.devtools={cleanup:()=>{u&&typeof u.unsubscribe==`function`&&u.unsubscribe(),Bh(c.name,s)}};let p=(...e)=>{let t=f;f=!1,n(...e),f=t},m=e(i.setState,r,i);if(d.type===`untracked`?u?.init(m):(d.stores[d.store]=i,u?.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=>[e,e===d.store?m:t.getState()])))),Ih(i)){let e=i.dispatch;i.dispatch=(...t)=>{e(...t)}}return u.subscribe(e=>{switch(e.type){case`ACTION`:if(typeof e.payload!=`string`){console.error(`[zustand devtools middleware] Unsupported action format`);return}return Uh(e.payload,e=>{if(e.type===`__setState`){if(s===void 0){p(e.state);return}Object.keys(e.state).length!==1&&console.error(`
|
|
96
|
+
[zustand devtools middleware] Unsupported __setState action format.
|
|
97
|
+
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
98
|
+
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
99
|
+
`);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&p(t);return}Ih(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return p(m),s===void 0?u?.init(i.getState()):u?.init(Rh(c.name));case`COMMIT`:if(s===void 0){u?.init(i.getState());return}return u?.init(Rh(c.name));case`ROLLBACK`:return Uh(e.state,e=>{if(s===void 0){p(e),u?.init(i.getState());return}p(e[s]),u?.init(Rh(c.name))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return Uh(e.state,e=>{if(s===void 0){p(e);return}JSON.stringify(i.getState())!==JSON.stringify(e[s])&&p(e[s])});case`IMPORT_STATE`:{let{nextLiftedState:t}=e.payload,n=t.computedStates.slice(-1)[0]?.state;if(!n)return;p(s===void 0?n:n[s]),u?.send(null,t);return}case`PAUSE_RECORDING`:return f=!f}return}}),m},Uh=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error(`[zustand devtools middleware] Could not parse the received json`,e)}n!==void 0&&t(n)};function Wh(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var Gh=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return Gh(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return Gh(t)(e)}}}},Kh=(e,t)=>(n,r,i)=>{let a={storage:Wh(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return Gh(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},qh=Symbol.for(`immer-nothing`),Jh=Symbol.for(`immer-draftable`),Yh=Symbol.for(`immer-state`);function Xh(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zh=Object,Qh=Zh.getPrototypeOf,$h=`constructor`,eg=`prototype`,tg=`configurable`,ng=`enumerable`,rg=`writable`,ig=`value`,ag=e=>!!e&&!!e[Yh];function og(e){return e?lg(e)||gg(e)||!!e[Jh]||!!e[$h]?.[Jh]||_g(e)||vg(e):!1}var sg=Zh[eg][$h].toString(),cg=new WeakMap;function lg(e){if(!e||!yg(e))return!1;let t=Qh(e);if(t===null||t===Zh[eg])return!0;let n=Zh.hasOwnProperty.call(t,$h)&&t[$h];if(n===Object)return!0;if(!bg(n))return!1;let r=cg.get(n);return r===void 0&&(r=Function.toString.call(n),cg.set(n,r)),r===sg}function ug(e,t,n=!0){dg(e)===0?(n?Reflect.ownKeys(e):Zh.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function dg(e){let t=e[Yh];return t?t.type_:gg(e)?1:_g(e)?2:vg(e)?3:0}var fg=(e,t,n=dg(e))=>n===2?e.has(t):Zh[eg].hasOwnProperty.call(e,t),pg=(e,t,n=dg(e))=>n===2?e.get(t):e[t],mg=(e,t,n,r=dg(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function hg(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var gg=Array.isArray,_g=e=>e instanceof Map,vg=e=>e instanceof Set,yg=e=>typeof e==`object`,bg=e=>typeof e==`function`,xg=e=>typeof e==`boolean`;function Sg(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Cg=e=>e.copy_||e.base_,wg=e=>e.modified_?e.copy_:e.base_;function Tg(e,t){if(_g(e))return new Map(e);if(vg(e))return new Set(e);if(gg(e))return Array[eg].slice.call(e);let n=lg(e);if(t===!0||t===`class_only`&&!n){let t=Zh.getOwnPropertyDescriptors(e);delete t[Yh];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[rg]===!1&&(a[rg]=!0,a[tg]=!0),(a.get||a.set)&&(t[i]={[tg]:!0,[rg]:!0,[ng]:a[ng],[ig]:e[i]})}return Zh.create(Qh(e),t)}else{let t=Qh(e);if(t!==null&&n)return{...e};let r=Zh.create(t);return Zh.assign(r,e)}}function Eg(e,t=!1){return kg(e)||ag(e)||!og(e)?e:(dg(e)>1&&Zh.defineProperties(e,{set:Og,add:Og,clear:Og,delete:Og}),Zh.freeze(e),t&&ug(e,(e,t)=>{Eg(t,!0)},!1),e)}function Dg(){Xh(2)}var Og={[ig]:Dg};function kg(e){return e===null||!yg(e)?!0:Zh.isFrozen(e)}var Ag=`MapSet`,jg=`Patches`,Mg=`ArrayMethods`,Ng={};function Pg(e){let t=Ng[e];return t||Xh(0,e),t}var Fg=e=>!!Ng[e],Ig,Lg=()=>Ig,Rg=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Fg(Ag)?Pg(Ag):void 0,arrayMethodsPlugin_:Fg(Mg)?Pg(Mg):void 0});function zg(e,t){t&&(e.patchPlugin_=Pg(jg),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bg(e){Vg(e),e.drafts_.forEach(Ug),e.drafts_=null}function Vg(e){e===Ig&&(Ig=e.parent_)}var Hg=e=>Ig=Rg(Ig,e);function Ug(e){let t=e[Yh];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Wg(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Yh].modified_&&(Bg(t),Xh(4)),og(e)&&(e=Gg(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Yh].base_,e,t)}else e=Gg(t,n);return Kg(t,e,!0),Bg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===qh?void 0:e}function Gg(e,t){if(kg(t))return t;let n=t[Yh];if(!n)return e_(t,e.handledSet_,e);if(!Jg(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Qg(n,e)}return n.copy_}function Kg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Eg(t,n)}function qg(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Jg=(e,t)=>e.scope_===t,Yg=[];function Xg(e,t,n,r){let i=Cg(e),a=e.type_;if(r!==void 0&&pg(i,r,a)===t){mg(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;ug(i,(e,n)=>{if(ag(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Yg;for(let e of o)mg(i,e,n,a)}function Zg(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Jg(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=wg(i);Xg(e,i.draft_??i,a,n),Qg(i,r)})}function Qg(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}qg(e)}}function $g(e,t,n){let{scope_:r}=e;if(ag(n)){let i=n[Yh];Jg(i,r)&&i.callbacks_.push(function(){c_(e),Xg(e,n,wg(i),t)})}else og(n)&&e.callbacks_.push(function(){let i=Cg(e);e.type_===3?i.has(n)&&e_(n,r.handledSet_,r):pg(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&e_(pg(e.copy_,t,e.type_),r.handledSet_,r)})}function e_(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ag(e)||t.has(e)||!og(e)||kg(e)?e:(t.add(e),ug(e,(r,i)=>{if(ag(i)){let t=i[Yh];Jg(t,n)&&(mg(e,r,wg(t),e.type_),qg(t))}else og(i)&&e_(i,t,n)}),e)}function t_(e,t){let n=gg(e),r={type_:n?1:0,scope_:t?t.scope_:Lg(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=n_;n&&(i=[r],a=r_);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var n_={get(e,t){if(t===Yh)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Cg(e);if(!fg(i,t,e.type_))return a_(e,i,t);let a=i[t];if(e.finalized_||!og(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Sg(t))return a;if(a===i_(e.base_,t)){c_(e);let n=e.type_===1?+t:t,r=u_(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Cg(e)},ownKeys(e){return Reflect.ownKeys(Cg(e))},set(e,t,n){let r=o_(Cg(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=i_(Cg(e),t),i=r?.[Yh];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(hg(n,r)&&(n!==void 0||fg(e.base_,t,e.type_)))return!0;c_(e),s_(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),$g(e,t,n),!0)},deleteProperty(e,t){return c_(e),i_(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),s_(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Cg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[rg]:!0,[tg]:e.type_!==1||t!==`length`,[ng]:r[ng],[ig]:n[t]}},defineProperty(){Xh(11)},getPrototypeOf(e){return Qh(e.base_)},setPrototypeOf(){Xh(12)}},r_={};for(let e in n_){let t=n_[e];r_[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}r_.deleteProperty=function(e,t){return r_.set.call(this,e,t,void 0)},r_.set=function(e,t,n){return n_.set.call(this,e[0],t,n,e[0])};function i_(e,t){let n=e[Yh];return(n?Cg(n):e)[t]}function a_(e,t,n){let r=o_(t,n);return r?ig in r?r[ig]:r.get?.call(e.draft_):void 0}function o_(e,t){if(!(t in e))return;let n=Qh(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Qh(n)}}function s_(e){e.modified_||(e.modified_=!0,e.parent_&&s_(e.parent_))}function c_(e){e.copy_||=(e.assigned_=new Map,Tg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var l_=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(bg(e)&&!bg(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}bg(t)||Xh(6),n!==void 0&&!bg(n)&&Xh(7);let r;if(og(e)){let i=Hg(this),a=u_(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Bg(i):Vg(i)}return zg(i,n),Wg(r,i)}else if(!e||!yg(e)){if(r=t(e),r===void 0&&(r=e),r===qh&&(r=void 0),this.autoFreeze_&&Eg(r,!0),n){let t=[],i=[];Pg(jg).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else Xh(1,e)},this.produceWithPatches=(e,t)=>{if(bg(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},xg(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),xg(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),xg(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){og(e)||Xh(8),ag(e)&&(e=d_(e));let t=Hg(this),n=u_(t,e,void 0);return n[Yh].isManual_=!0,Vg(t),n}finishDraft(e,t){let n=e&&e[Yh];(!n||!n.isManual_)&&Xh(9);let{scope_:r}=n;return zg(r,t),Wg(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Pg(jg).applyPatches_;return ag(e)?r(e,t):this.produce(e,e=>r(e,t))}};function u_(e,t,n,r){let[i,a]=_g(t)?Pg(Ag).proxyMap_(t,n):vg(t)?Pg(Ag).proxySet_(t,n):t_(t,n);return(n?.scope_??Lg()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Zg(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function d_(e){return ag(e)||Xh(10,e),f_(e)}function f_(e){if(!og(e)||kg(e))return e;let t=e[Yh],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Tg(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Tg(e,!0);return ug(n,(e,t)=>{mg(n,e,f_(t))},r),t&&(t.finalized_=!1),n}var p_=new l_().produce,m_=e=>(t,n,r)=>(r.setState=(e,n,...r)=>t(typeof e==`function`?p_(e):e,n,...r),e(r.setState,n,r));function h_(e,t){let{name:n,persist:r,devtools:i=!0}=t,a=i&&typeof window<`u`,o=r?{name:`prism-${n}`,...typeof r==`object`?r:{}}:null,s={name:`Prism:${n}`};return o&&a?be()(Hh(Kh(m_(e),o),s)):o?be()(Kh(m_(e),o)):a?be()(Hh(m_(e),s)):be()(m_(e))}function g_(e,t){return h_(e,{name:t,persist:!1})}function __(e,t,n){return h_(e,{name:t,persist:{version:1,storage:{getItem:e=>{try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}},setItem:(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},removeItem:e=>{try{localStorage.removeItem(e)}catch{}}},...n}})}function v_(e){let t=e;return t.use=new Proxy({},{get:(t,n)=>{if(typeof n==`string`)return()=>e(e=>e[n])}}),t}var y_={mode:`light`,preset:`default-light`,primaryColor:null,contrast:`default`,direction:`ltr`,fontSize:16,fontFamily:null,density:`standard`,compactSidebar:!1,sidebarCollapsed:{},navLayout:`vertical`,navColor:`integrate`,stretch:!0,tableRowsPerPage:{}},b_=__((e,t)=>({...y_,setMode:t=>e({mode:t}),toggleMode:()=>e(e=>{e.mode=e.mode===`light`?`dark`:`light`}),setPreset:t=>e({preset:t}),setPrimaryColor:t=>e({primaryColor:t}),setContrast:t=>e({contrast:t}),setDirection:t=>e({direction:t}),setFontSize:t=>e({fontSize:Math.min(20,Math.max(12,t))}),setFontFamily:t=>e({fontFamily:t}),setDensity:t=>e({density:t}),setCompactSidebar:t=>e({compactSidebar:t}),setSidebarCollapsed:(t,n)=>e(e=>{e.sidebarCollapsed={...e.sidebarCollapsed,[t]:n}}),getSidebarCollapsed:e=>t().sidebarCollapsed[e]??!1,setNavLayout:t=>e({navLayout:t}),setNavColor:t=>e({navColor:t}),setStretch:t=>e({stretch:t}),setTableRowsPerPage:(t,n)=>e(e=>{e.tableRowsPerPage={...e.tableRowsPerPage,[t]:n}}),getTableRowsPerPage:(e,n=25)=>t().tableRowsPerPage[e]??n,updateSettings:t=>e(t),reset:()=>e(y_),canReset:()=>{let e=t();return Object.keys(y_).some(t=>e[t]!==y_[t])}}),`settings`);v_(b_);function x_(e,t){return t?{...e,...t,paths:{...e.paths,...t.paths},registries:{...e.registries,...t.registries},theme:{...e.theme,...t.theme},style:{...e.style,...t.style},features:{...e.features,...t.features}}:e}var S_=()=>{};function C_({children:e,config:t,defaultSettings:n,disableCssBaseline:r=!1,themeOverrides:i}){let a=(0,G.useMemo)(()=>x_(sd,t),[t]),{mode:o,preset:s,direction:c,primaryColor:l,contrast:u,compactSidebar:d,fontSize:f,fontFamily:p,navLayout:m,navColor:h,setMode:g,toggleMode:_,setPreset:v,setDirection:y,setCompactSidebar:b,reset:x}=b_();(0,G.useEffect)(()=>{n?.mode&&g(n.mode),n?.preset&&v(n.preset),n?.direction&&y(n.direction)},[]);let S=(0,G.useMemo)(()=>({mode:o,preset:s,direction:c,sidebarCollapsed:d,settingsDrawerOpen:!1,primaryColor:l,contrast:u,fontSize:f,fontFamily:p??`Public Sans Variable`,navLayout:m,navColor:h}),[o,s,c,d,l,u,f,p,m,h]),C=(0,G.useCallback)(()=>{let e=b_.getState().compactSidebar;b(!e)},[b]),w=(0,G.useMemo)(()=>tt(c===`rtl`?{key:`prism-rtl`,stylisPlugins:[od]}:{key:`prism-ltr`}),[c]);(0,G.useEffect)(()=>{typeof document<`u`&&(document.documentElement.dir=c)},[c]),(0,G.useEffect)(()=>{typeof document<`u`&&(f&&f!==16?document.documentElement.style.fontSize=`${f}px`:document.documentElement.style.removeProperty(`font-size`))},[f]);let T=Fh(o),E=(0,G.useMemo)(()=>Bl({preset:s,mode:T,direction:c,primaryColor:l||a.theme.primaryColor,typography:a.theme.typography,cssVariables:a.theme.cssVariables,components:a.theme.components,contrast:u,fontFamily:p,fontSize:f,overrides:i}),[s,T,c,l,u,f,p,a.theme,i]),D=(0,G.useMemo)(()=>({config:a,theme:E,settings:S,setMode:g,toggleMode:_,setPreset:v,setDirection:y,toggleSidebar:C,setSidebarCollapsed:b,resetSettings:x,openSettingsDrawer:S_,closeSettingsDrawer:S_,toggleSettingsDrawer:S_}),[a,E,S,g,_,v,y,C,b,x]);return(0,K.jsx)(We,{value:w,children:(0,K.jsx)(cd.Provider,{value:D,children:(0,K.jsx)(Wn,{theme:E,children:(0,K.jsxs)(Zl,{dateAdapter:mu,children:[!r&&(0,K.jsx)(Jl,{}),e]})})})})}function w_({href:e,children:t,sx:n}){return(0,K.jsx)(B,{component:`a`,href:e,sx:[e=>({position:`absolute`,top:`-100%`,left:0,right:0,zIndex:e.zIndex.tooltip+1,padding:e.spacing(1,2),backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:`center`,textDecoration:`none`,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.body2.fontSize,"&:focus":{top:0,outline:`2px solid ${e.palette.primary.dark}`,outlineOffset:2}}),...Array.isArray(n)?n:[n]],children:t})}var T_={mainNav:`Main navigation`,secondaryNav:`Secondary navigation`,search:`Search`,main:`Main content`,header:`Header`,footer:`Footer`,sidebar:`Sidebar`,breadcrumb:`Breadcrumb navigation`,userMenu:`User menu`,settings:`Settings`};function E_({size:e=18}){return(0,K.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,K.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,K.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`})]})}function D_(){return(0,K.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,K.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,K.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})}(0,G.forwardRef)(function({value:e,onChange:t,placeholder:n=`Search...`,debounce:r=0,compact:i=!1,fullWidth:a=!0,width:o,minWidth:s,clearTooltip:c=`Clear`,autoFocus:l,onFocus:u,onBlur:d,onKeyDown:f,sx:p},m){let h=jt(),[g,_]=(0,G.useState)(e??``),v=(0,G.useRef)(void 0);(0,G.useEffect)(()=>{e!==void 0&&_(e)},[e]);let y=e!==void 0&&r===0?e:g,b=e=>{let n=e.target.value;_(n),r>0?(clearTimeout(v.current),v.current=setTimeout(()=>t?.(n),r)):t?.(n)},x=()=>{_(``),clearTimeout(v.current),t?.(``)};(0,G.useEffect)(()=>()=>clearTimeout(v.current),[]);let S=i?.625:.75,C=i?1.25:1.5,w=i?`3px`:`4px`;return(0,K.jsx)(P,{ref:m,fullWidth:a,placeholder:n,value:y,onChange:b,autoFocus:l,onFocus:u,onBlur:d,onKeyDown:f,startAdornment:(0,K.jsx)(Ae,{position:`start`,sx:{color:`text.disabled`,mr:i?.75:1},children:(0,K.jsx)(E_,{size:i?16:18})}),endAdornment:y?(0,K.jsx)(Ae,{position:`end`,children:(0,K.jsx)(Zp,{title:c,children:(0,K.jsx)(B,{component:`button`,type:`button`,onClick:x,sx:{p:.25,border:`none`,background:`none`,cursor:`pointer`,color:`text.disabled`,display:`flex`,alignItems:`center`,borderRadius:`50%`,"&:hover":{color:`text.secondary`}},children:(0,K.jsx)(D_,{})})})}):null,sx:{px:C,py:S,borderRadius:1,fontSize:`0.875rem`,bgcolor:W(h.palette.grey[500],.08),transition:h.transitions.create([`background-color`],{duration:h.transitions.duration.shorter}),"&:hover":{bgcolor:W(h.palette.grey[500],.12)},"&.Mui-focused":{bgcolor:W(h.palette.grey[500],.16)},"& .MuiInputBase-input":{py:w,px:0,overflow:`visible`,"&::placeholder":{opacity:.64}},...o!=null&&{width:o},...s!=null&&{minWidth:s},...!a&&{width:o??`auto`},...Array.isArray(p)?Object.assign({},...p):p}})}),U(It)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),U(Nm)(({theme:e})=>({backgroundColor:W(e.palette.grey[500],.08),"& .MuiTableCell-head":{fontWeight:600,fontSize:e.typography.pxToRem(13),color:e.palette.text.secondary,backgroundColor:`transparent`,whiteSpace:`nowrap`,borderBottom:`1px solid ${e.palette.divider}`}})),U(Qo)(({theme:e})=>({transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:nth-of-type(even)":{backgroundColor:W(e.palette.grey[500],.02)},"&:hover":{backgroundColor:W(e.palette.primary.main,.04)},"& .MuiTableCell-body":{borderBottom:`1px solid ${W(e.palette.divider,.6)}`}}));var O_=(0,G.createContext)({}),k_=(0,G.createContext)(null);function A_(e,t){e.indexOf(t)===-1&&e.push(t)}function j_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M_=(e,t,n)=>n>t?t:n<e?e:n,N_={},P_=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function F_(e){return typeof e==`object`&&!!e}var I_=e=>/^0[^.\s]+$/u.test(e);function L_(e){let t;return()=>(t===void 0&&(t=e()),t)}var R_=e=>e,z_=(e,t)=>n=>t(e(n)),B_=(...e)=>e.reduce(z_),V_=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},H_=class{constructor(){this.subscriptions=[]}add(e){return A_(this.subscriptions,e),()=>j_(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},U_=e=>e*1e3,W_=e=>e/1e3;function G_(e,t){return t?1e3/t*e:0}var K_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q_=1e-7,J_=12;function Y_(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=K_(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>q_&&++s<J_);return o}function X_(e,t,n,r){if(e===t&&n===r)return R_;let i=t=>Y_(t,0,1,e,n);return e=>e===0||e===1?e:K_(i(e),t,r)}var Z_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q_=e=>t=>1-e(1-t),$_=X_(.33,1.53,.69,.99),ev=Q_($_),tv=Z_(ev),nv=e=>e>=1?1:(e*=2)<1?.5*ev(e):.5*(2-2**(-10*(e-1))),rv=e=>1-Math.sin(Math.acos(e)),iv=Q_(rv),av=Z_(rv),ov=X_(.42,0,1,1),sv=X_(0,0,.58,1),cv=X_(.42,0,.58,1),lv=e=>Array.isArray(e)&&typeof e[0]!=`number`,uv=e=>Array.isArray(e)&&typeof e[0]==`number`,dv={linear:R_,easeIn:ov,easeInOut:cv,easeOut:sv,circIn:rv,circInOut:av,circOut:iv,backIn:ev,backInOut:tv,backOut:$_,anticipate:nv},fv=e=>typeof e==`string`,pv=e=>{if(uv(e)){e.length;let[t,n,r,i]=e;return X_(t,n,r,i)}else if(fv(e))return dv[e],`${e}`,dv[e];return e},mv=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],hv={value:null,addProjectionMetrics:null};function gv(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&hv.value&&hv.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var _v=40;function vv(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=mv.reduce((e,n)=>(e[n]=gv(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=N_.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,_v),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:mv.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<mv.length;t++)o[mv[t]].cancel(e)},state:i,steps:o}}var{schedule:yv,cancel:bv,state:xv,steps:Sv}=vv(typeof requestAnimationFrame<`u`?requestAnimationFrame:R_,!0),Cv;function wv(){Cv=void 0}var Tv={now:()=>(Cv===void 0&&Tv.set(xv.isProcessing||N_.useManualTiming?xv.timestamp:performance.now()),Cv),set:e=>{Cv=e,queueMicrotask(wv)}},Ev={layout:0,mainThread:0,waapi:0},Dv=e=>t=>typeof t==`string`&&t.startsWith(e),Ov=Dv(`--`),kv=Dv(`var(--`),Av=e=>kv(e)?jv.test(e.split(`/*`)[0].trim()):!1,jv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Mv(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Nv={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Pv={...Nv,transform:e=>M_(0,1,e)},Fv={...Nv,default:1},Iv=e=>Math.round(e*1e5)/1e5,Lv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Rv(e){return e==null}var zv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bv=(e,t)=>n=>!!(typeof n==`string`&&zv.test(n)&&n.startsWith(e)||t&&!Rv(n)&&Object.prototype.hasOwnProperty.call(n,t)),Vv=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Lv);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Hv=e=>M_(0,255,e),Uv={...Nv,transform:e=>Math.round(Hv(e))},Wv={test:Bv(`rgb`,`red`),parse:Vv(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Uv.transform(e)+`, `+Uv.transform(t)+`, `+Uv.transform(n)+`, `+Iv(Pv.transform(r))+`)`};function Gv(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Kv={test:Bv(`#`),parse:Gv,transform:Wv.transform},qv=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jv=qv(`deg`),Yv=qv(`%`),q=qv(`px`),Xv=qv(`vh`),Zv=qv(`vw`),Qv={...Yv,parse:e=>Yv.parse(e)/100,transform:e=>Yv.transform(e*100)},$v={test:Bv(`hsl`,`hue`),parse:Vv(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Yv.transform(Iv(t))+`, `+Yv.transform(Iv(n))+`, `+Iv(Pv.transform(r))+`)`},ey={test:e=>Wv.test(e)||Kv.test(e)||$v.test(e),parse:e=>Wv.test(e)?Wv.parse(e):$v.test(e)?$v.parse(e):Kv.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Wv.transform(e):$v.transform(e),getAnimatableNone:e=>{let t=ey.parse(e);return t.alpha=0,ey.transform(t)}},ty=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ny(e){return isNaN(e)&&typeof e==`string`&&(e.match(Lv)?.length||0)+(e.match(ty)?.length||0)>0}var ry=`number`,iy=`color`,ay=`var`,oy=`var(`,sy="${}",cy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ly(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(cy,e=>(ey.test(e)?(r.color.push(a),i.push(iy),n.push(ey.parse(e))):e.startsWith(oy)?(r.var.push(a),i.push(ay),n.push(e)):(r.number.push(a),i.push(ry),n.push(parseFloat(e))),++a,sy)).split(sy),indexes:r,types:i}}function uy(e){return ly(e).values}function dy({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===ry?i+=Iv(r[a]):e===iy?i+=ey.transform(r[a]):i+=r[a]}return i}}function fy(e){return dy(ly(e))}var py=e=>typeof e==`number`?0:ey.test(e)?ey.getAnimatableNone(e):e,my=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:py(e);function hy(e){let t=ly(e);return dy(t)(t.values.map((e,n)=>my(e,t.split[n])))}var gy={test:ny,parse:uy,createTransformer:fy,getAnimatableNone:hy};function _y(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=_y(s,r,e+1/3),a=_y(s,r,e),o=_y(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function yy(e,t){return n=>n>0?t:e}var by=(e,t,n)=>e+(t-e)*n,xy=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Sy=[Kv,Wv,$v],Cy=e=>Sy.find(t=>t.test(e));function wy(e){let t=Cy(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===$v&&(n=vy(n)),n}var Ty=(e,t)=>{let n=wy(e),r=wy(t);if(!n||!r)return yy(e,t);let i={...n};return e=>(i.red=xy(n.red,r.red,e),i.green=xy(n.green,r.green,e),i.blue=xy(n.blue,r.blue,e),i.alpha=by(n.alpha,r.alpha,e),Wv.transform(i))},Ey=new Set([`none`,`hidden`]);function Dy(e,t){return Ey.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Oy(e,t){return n=>by(e,t,n)}function ky(e){return typeof e==`number`?Oy:typeof e==`string`?Av(e)?yy:ey.test(e)?Ty:Ny:Array.isArray(e)?Ay:typeof e==`object`?ey.test(e)?Ty:jy:yy}function Ay(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>ky(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function jy(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ky(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function My(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Ny=(e,t)=>{let n=gy.createTransformer(t),r=ly(e),i=ly(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ey.has(e)&&!i.values.length||Ey.has(t)&&!r.values.length?Dy(e,t):B_(Ay(My(r,i),i.values),n):(`${e}${t}`,yy(e,t))};function Py(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?by(e,t,n):ky(e)(e,t)}var Fy=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>yv.update(t,e),stop:()=>bv(t),now:()=>xv.isProcessing?xv.timestamp:Tv.now()}},Iy=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Ly=2e4;function Ry(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function zy(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ry(r),Ly);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:W_(i)}}var By={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Vy(e,t){return e*Math.sqrt(1-t*t)}var Hy=12;function Uy(e,t,n){let r=n;for(let n=1;n<Hy;n++)r-=e(r)/t(r);return r}var Wy=.001;function Gy({duration:e=By.duration,bounce:t=By.bounce,velocity:n=By.velocity,mass:r=By.mass}){let i,a;By.maxDuration;let o=1-t;o=M_(By.minDamping,By.maxDamping,o),e=M_(By.minDuration,By.maxDuration,W_(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Vy(t,o),c=Math.exp(-i);return Wy-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Vy(t**2,o);return(-i(t)+Wy>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Wy+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Uy(i,a,s);if(e=U_(e),isNaN(c))return{stiffness:By.stiffness,damping:By.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ky=[`duration`,`bounce`],qy=[`stiffness`,`damping`,`mass`];function Jy(e,t){return t.some(t=>e[t]!==void 0)}function Yy(e){let t={velocity:By.velocity,stiffness:By.stiffness,damping:By.damping,mass:By.mass,isResolvedFromDuration:!1,...e};if(!Jy(e,qy)&&Jy(e,Ky))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M_(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:By.mass,stiffness:i,damping:a}}else{let n=Gy({...e,velocity:0});t={...t,...n,mass:By.mass},t.isResolvedFromDuration=!0}return t}function Xy(e=By.visualDuration,t=By.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Yy({...n,velocity:-W_(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=W_(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?By.restSpeed.granular:By.restSpeed.default,i||=v?By.restDelta.granular:By.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Vy(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>U_(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=U_(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=U_(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ry(T),Ly),t=Iy(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Xy.applyToOptions=e=>{let t=zy(e,100,Xy);return e.ease=t.ease,e.duration=U_(t.duration),e.type=`keyframes`,e};var Zy=5;function Qy(e,t,n){let r=Math.max(t-Zy,0);return G_(n-e(r),t-r)}function $y({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Xy({keyframes:[f.value,m(f.value)],velocity:Qy(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function eb(e,t,n){let r=[],i=n||N_.mix||Py,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=B_(Array.isArray(t)?t[n]||R_:t,a)),r.push(a)}return r}function tb(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=eb(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=V_(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M_(e[0],e[a-1],t)):l}function nb(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=V_(0,t,r);e.push(by(n,1,i))}}function rb(e){let t=[0];return nb(t,e.length-1),t}function ib(e,t){return e.map(e=>e*t)}function ab(e,t){return e.map(()=>t||cv).splice(0,e.length-1)}function ob({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=lv(r)?r.map(pv):pv(r),a={done:!1,value:t[0]},o=tb(ib(n&&n.length===t.length?n:rb(t),e),t,{ease:Array.isArray(i)?i:ab(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var sb=e=>e!==null;function cb(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(sb),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var lb={decay:$y,inertia:$y,tween:ob,keyframes:ob,spring:Xy};function ub(e){typeof e.type==`string`&&(e.type=lb[e.type])}var db=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},fb=e=>e/100,pb=class extends db{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Tv.now()&&this.tick(Tv.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Ev.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;ub(e);let{type:t=ob,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ob;s!==ob&&typeof o[0]!=`number`&&(this.mixKeyframes=B_(fb,Py(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ry(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=M_(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==$y&&(b.value=cb(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return W_(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+W_(e)}get time(){return W_(this.currentTime)}set time(e){e=U_(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Qy(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Tv.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=W_(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Fy,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Tv.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Ev.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function mb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var hb=e=>e*180/Math.PI,gb=e=>vb(hb(Math.atan2(e[1],e[0]))),_b={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gb,rotateZ:gb,skewX:e=>hb(Math.atan(e[1])),skewY:e=>hb(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vb=e=>(e%=360,e<0&&(e+=360),e),yb=gb,bb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Sb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bb,scaleY:xb,scale:e=>(bb(e)+xb(e))/2,rotateX:e=>vb(hb(Math.atan2(e[6],e[5]))),rotateY:e=>vb(hb(Math.atan2(-e[2],e[0]))),rotateZ:yb,rotate:yb,skewX:e=>hb(Math.atan(e[4])),skewY:e=>hb(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Cb(e){return e.includes(`scale`)?1:0}function wb(e,t){if(!e||e===`none`)return Cb(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Sb,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_b,i=t}if(!i)return Cb(t);let a=r[t],o=i[1].split(`,`).map(Eb);return typeof a==`function`?a(o):o[a]}var Tb=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return wb(n,t)};function Eb(e){return parseFloat(e.trim())}var Db=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Ob=new Set(Db),kb=e=>e===Nv||e===q,Ab=new Set([`x`,`y`,`z`]),jb=Db.filter(e=>!Ab.has(e));function Mb(e){let t=[];return jb.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var Nb={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>wb(t,`x`),y:(e,{transform:t})=>wb(t,`y`)};Nb.translateX=Nb.x,Nb.translateY=Nb.y;var Pb=new Set,Fb=!1,Ib=!1,Lb=!1;function Rb(){if(Ib){let e=Array.from(Pb).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Mb(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Ib=!1,Fb=!1,Pb.forEach(e=>e.complete(Lb)),Pb.clear()}function zb(){Pb.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ib=!0)})}function Bb(){Lb=!0,zb(),Rb(),Lb=!1}var Vb=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Pb.add(this),Fb||(Fb=!0,yv.read(zb),yv.resolveKeyframes(Rb))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}mb(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Pb.delete(this)}cancel(){this.state===`scheduled`&&(Pb.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Hb=e=>e.startsWith(`--`);function Ub(e,t,n){Hb(t)?e.style.setProperty(t,n):e.style[t]=n}var Wb={};function Gb(e,t){let n=L_(e);return()=>Wb[t]??n()}var Kb=Gb(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),qb=Gb(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Jb=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yb={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Jb([0,.65,.55,1]),circOut:Jb([.55,0,1,.45]),backIn:Jb([.31,.01,.66,-.59]),backOut:Jb([.33,1.53,.69,.99])};function Xb(e,t){if(e)return typeof e==`function`?qb()?Iy(e,t):`ease-out`:uv(e)?Jb(e):Array.isArray(e)?e.map(e=>Xb(e,t)||Yb.easeOut):Yb[e]}function Zb(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Xb(s,i);Array.isArray(d)&&(u.easing=d),hv.value&&Ev.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return hv.value&&p.finished.finally(()=>{Ev.waapi--}),p}function Qb(e){return typeof e==`function`&&`applyToOptions`in e}function $b({type:e,...t}){return Qb(e)&&qb()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ex=class extends db{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=$b(e);this.animation=Zb(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=cb(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Ub(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return W_(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+W_(e)}get time(){return W_(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=U_(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Kb()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),R_):r(this)}},tx={anticipate:nv,backInOut:tv,circInOut:av};function nx(e){return e in tx}function rx(e){typeof e.ease==`string`&&nx(e.ease)&&(e.ease=tx[e.ease])}var ix=10,ax=class extends ex{constructor(e){rx(e),ub(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new pb({...a,autoplay:!1}),s=Math.max(ix,Tv.now()-this.startTime),c=M_(0,ix,s-ix),l=o.sample(s).value,{name:u}=this.options;i&&u&&Ub(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},ox=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(gy.test(e)||e===`0`)&&!e.startsWith(`url(`));function sx(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function cx(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ox(i,t),s=ox(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:sx(e)||(n===`spring`||Qb(n))&&r}function lx(e){e.duration=0,e.type=`keyframes`}var ux=new Set([`opacity`,`clipPath`,`filter`,`transform`]),dx=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function fx(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&dx.test(e[t]))return!0;return!1}var px=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),mx=L_(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function hx(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return mx()&&n&&(ux.has(n)||px.has(n)&&fx(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var gx=40,_x=class extends db{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Tv.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Vb)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Tv.now();let u=!0;cx(e,i,a,o)||(u=!1,(N_.instantAnimations||!s)&&l?.(cb(e,n,t)),e[0]=e[e.length-1],lx(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>gx?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&hx(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new ax({...d,element:p})}catch{m=new pb(d)}else m=new pb(d);m.finished.then(()=>{this.notifyFinished()}).catch(R_),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Bb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function vx(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var yx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bx(e){let t=yx.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function xx(e,t,n=1){`${e}`;let[r,i]=bx(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return P_(e)?parseFloat(e):e}return Av(i)?xx(i,t,n+1):i}var Sx={type:`spring`,stiffness:500,damping:25,restSpeed:10},Cx=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wx={type:`keyframes`,duration:.8},Tx={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ex=(e,{keyframes:t})=>t.length>2?wx:Ob.has(e)?e.startsWith(`scale`)?Cx(t[1]):Sx:Tx;function Dx(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ox(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Dx(n,e)}var kx=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Ax(e){for(let t in e)if(!kx.has(t))return!0;return!1}var jx=(e,t,n,r={},i,a)=>o=>{let s=Ox(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=U_(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Ax(s)||Object.assign(u,Ex(e,u)),u.duration&&=U_(u.duration),u.repeatDelay&&=U_(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(lx(u),u.delay===0&&(d=!0)),(N_.instantAnimations||N_.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,lx(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=cb(u.keyframes,s);if(e!==void 0){yv.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new pb(u):new _x(u)};function Mx(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Nx(e,t,n,r){if(typeof t==`function`){let[i,a]=Mx(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Mx(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Px(e,t,n){let r=e.getProps();return Nx(r,t,n===void 0?r.custom:n,e)}var Fx=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Db]),Ix=30,Lx=e=>!isNaN(parseFloat(e)),Rx={current:void 0},zx=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Tv.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Tv.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Lx(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new H_);let n=this.events[e].add(t);return e===`change`?()=>{n(),yv.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Rx.current&&Rx.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Tv.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ix)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ix);return G_(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Bx(e,t){return new zx(e,t)}var Vx=e=>Array.isArray(e);function Hx(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bx(n))}function Ux(e){return Vx(e)?e[e.length-1]||0:e}function Wx(e,t){let{transitionEnd:n={},transition:r={},...i}=Px(e,t)||{};i={...i,...n};for(let t in i)Hx(e,t,Ux(i[t]))}var Gx=e=>!!(e&&e.getVelocity);function Kx(e){return!!(Gx(e)&&e.add)}function qx(e,t){let n=e.getValue(`willChange`);if(Kx(n))return n.add(t);if(!n&&N_.WillChange){let n=new N_.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Jx(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Yx=`data-`+Jx(`framerAppearId`);function Xx(e){return e.props[Yx]}function Zx({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Qx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Dx(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&Zx(d,t))continue;let o={delay:n,...Ox(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){yv.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Xx(e);if(n){let e=window.MotionHandoffAnimation(n,t,yv);e!==null&&(o.startTime=e,f=!0)}}qx(e,t);let p=l??e.shouldReduceMotion;r.start(jx(t,r,i,p&&Fx.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>yv.update(()=>{o&&Wx(e,o)});u.length?Promise.all(u).then(t):t()}return u}function $x(e,t,n={}){let r=Px(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Qx(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return eS(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function eS(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push($x(c,t,{...o,delay:n+(typeof r==`function`?0:r)+vx(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function tS(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>$x(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=$x(e,t,n);else{let i=typeof t==`function`?Px(e,t,n.custom):t;r=Promise.all(Qx(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var nS={test:e=>e===`auto`,parse:e=>e},rS=e=>t=>t.test(e),iS=[Nv,q,Yv,Jv,Zv,Xv,nS],aS=e=>iS.find(rS(e));function oS(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||I_(e)}var sS=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function cS(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Lv)||[];if(!r)return e;let i=n.replace(r,``),a=sS.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var lS=/\b([a-z-]*)\(.*?\)/gu,uS={...gy,getAnimatableNone:e=>{let t=e.match(lS);return t?t.map(cS).join(` `):e}},dS={...gy,getAnimatableNone:e=>{let t=gy.parse(e);return gy.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},fS={...Nv,transform:Math.round},pS={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,inset:q,insetBlock:q,insetBlockStart:q,insetBlockEnd:q,insetInline:q,insetInlineStart:q,insetInlineEnd:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,paddingBlock:q,paddingBlockStart:q,paddingBlockEnd:q,paddingInline:q,paddingInlineStart:q,paddingInlineEnd:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,marginBlock:q,marginBlockStart:q,marginBlockEnd:q,marginInline:q,marginInlineStart:q,marginInlineEnd:q,fontSize:q,backgroundPositionX:q,backgroundPositionY:q,rotate:Jv,rotateX:Jv,rotateY:Jv,rotateZ:Jv,scale:Fv,scaleX:Fv,scaleY:Fv,scaleZ:Fv,skew:Jv,skewX:Jv,skewY:Jv,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:Pv,originX:Qv,originY:Qv,originZ:q,zIndex:fS,fillOpacity:Pv,strokeOpacity:Pv,numOctaves:fS},mS={...pS,color:ey,backgroundColor:ey,outlineColor:ey,fill:ey,stroke:ey,borderColor:ey,borderTopColor:ey,borderRightColor:ey,borderBottomColor:ey,borderLeftColor:ey,filter:uS,WebkitFilter:uS,mask:dS,WebkitMask:dS},hS=e=>mS[e],gS=new Set([uS,dS]);function _S(e,t){let n=hS(e);return gS.has(n)||(n=gy),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var vS=new Set([`auto`,`none`,`0`]);function yS(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!vS.has(t)&&ly(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=_S(n,i)}var bS=class extends Vb{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Av(r))){let i=xx(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Fx.has(n)||e.length!==2)return;let[r,i]=e,a=aS(r),o=aS(i);if(Mv(r)!==Mv(i)&&Nb[n]){this.needsMeasurement=!0;return}if(a!==o)if(kb(a)&&kb(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Nb[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||oS(e[t]))&&n.push(t);n.length&&yS(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Nb[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Nb[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function xS(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var SS=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function CS(e){return F_(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:wS,cancel:TS}=vv(queueMicrotask,!1),ES={x:!1,y:!1};function DS(){return ES.x||ES.y}function OS(e){return e===`x`||e===`y`?ES[e]?null:(ES[e]=!0,()=>{ES[e]=!1}):ES.x||ES.y?null:(ES.x=ES.y=!0,()=>{ES.x=ES.y=!1})}function kS(e,t){let n=xS(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function AS(e){return!(e.pointerType===`touch`||DS())}function jS(e,t,n={}){let[r,i,a]=kS(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!AS(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var MS=(e,t)=>t?e===t?!0:MS(e,t.parentElement):!1,NS=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,PS=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function FS(e){return PS.has(e.tagName)||e.isContentEditable===!0}var IS=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function LS(e){return IS.has(e.tagName)||e.isContentEditable===!0}var RS=new WeakSet;function zS(e){return t=>{t.key===`Enter`&&e(t)}}function BS(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var VS=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=zS(()=>{if(RS.has(n))return;BS(n,`down`);let e=zS(()=>{BS(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>BS(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function HS(e){return NS(e)&&!DS()}var US=new WeakSet;function WS(e,t,n={}){let[r,i,a]=kS(e,n),o=e=>{let r=e.currentTarget;if(!HS(e)||US.has(e))return;RS.add(r),n.stopPropagation&&US.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),RS.has(r)&&RS.delete(r),HS(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||MS(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),CS(e)&&(e.addEventListener(`focus`,e=>VS(e,i)),!FS(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function GS(e){return F_(e)&&`ownerSVGElement`in e}var KS=new WeakMap,qS,JS=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:GS(r)&&`getBBox`in r?r.getBBox()[t]:r[n],YS=JS(`inline`,`width`,`offsetWidth`),XS=JS(`block`,`height`,`offsetHeight`);function ZS({target:e,borderBoxSize:t}){KS.get(e)?.forEach(n=>{n(e,{get width(){return YS(e,t)},get height(){return XS(e,t)}})})}function QS(e){e.forEach(ZS)}function $S(){typeof ResizeObserver>`u`||(qS=new ResizeObserver(QS))}function eC(e,t){qS||$S();let n=xS(e);return n.forEach(e=>{let n=KS.get(e);n||(n=new Set,KS.set(e,n)),n.add(t),qS?.observe(e)}),()=>{n.forEach(e=>{let n=KS.get(e);n?.delete(t),n?.size||qS?.unobserve(e)})}}var tC=new Set,nC;function rC(){nC=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};tC.forEach(t=>t(e))},window.addEventListener(`resize`,nC)}function iC(e){return tC.add(e),nC||rC(),()=>{tC.delete(e),!tC.size&&typeof nC==`function`&&(window.removeEventListener(`resize`,nC),nC=void 0)}}function aC(e,t){return typeof e==`function`?iC(e):eC(e,t)}function oC(e){return GS(e)&&e.tagName===`svg`}var sC=[...iS,ey,gy],cC=e=>sC.find(rS(e)),lC=()=>({translate:0,scale:1,origin:0,originPoint:0}),uC=()=>({x:lC(),y:lC()}),dC=()=>({min:0,max:0}),fC=()=>({x:dC(),y:dC()}),pC=new WeakMap;function mC(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function hC(e){return typeof e==`string`||Array.isArray(e)}var gC=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],_C=[`initial`,...gC];function vC(e){return mC(e.animate)||_C.some(t=>hC(e[t]))}function yC(e){return!!(vC(e)||e.variants)}function bC(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Gx(i))e.addValue(r,i);else if(Gx(a))e.addValue(r,Bx(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Bx(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var xC={current:null},SC={current:!1},CC=typeof window<`u`;function wC(){if(SC.current=!0,CC)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>xC.current=e.matches;e.addEventListener(`change`,t),t()}else xC.current=!1}var TC=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],EC={};function DC(e){EC=e}function OC(){return EC}var kC=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Vb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Tv.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,yv.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=vC(t),this.isVariantNode=yC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Gx(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,pC.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(SC.current||wC(),this.shouldReduceMotion=xC.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),bv(this.notifyUpdate),bv(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&ux.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ex({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:U_(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Ob.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&yv.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in EC){let t=EC[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fC()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<TC.length;t++){let n=TC[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=bC(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Bx(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(P_(n)||I_(n))?n=parseFloat(n):!cC(n)&&gy.test(t)&&(n=_S(e,t)),this.setBaseTarget(e,Gx(n)?n.get():n)),Gx(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Nx(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Gx(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new H_),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){wS.render(this.render)}},AC=class extends kC{constructor(){super(...arguments),this.KeyframeResolver=bS}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Gx(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},jC=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function MC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function NC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PC(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function FC(e){return e===void 0||e===1}function IC({scale:e,scaleX:t,scaleY:n}){return!FC(e)||!FC(t)||!FC(n)}function LC(e){return IC(e)||RC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function RC(e){return zC(e.x)||zC(e.y)}function zC(e){return e&&e!==`0%`}function BC(e,t,n){return n+t*(e-n)}function VC(e,t,n,r,i){return i!==void 0&&(e=BC(e,i,r)),BC(e,n,r)+t}function HC(e,t=0,n=1,r,i){e.min=VC(e.min,t,n,r,i),e.max=VC(e.max,t,n,r,i)}function UC(e,{x:t,y:n}){HC(e.x,t.translate,t.scale,t.originPoint),HC(e.y,n.translate,n.scale,n.originPoint)}var WC=.999999999999,GC=1.0000000000001;function KC(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(qC(e.x,-a.scroll.offset.x),qC(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,UC(e,o)),r&&LC(a.latestValues)&&XC(e,a.latestValues,a.layout?.layoutBox))}t.x<GC&&t.x>WC&&(t.x=1),t.y<GC&&t.y>WC&&(t.y=1)}function qC(e,t){e.min+=t,e.max+=t}function JC(e,t,n,r,i=.5){HC(e,t,n,by(e.min,e.max,i),r)}function YC(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function XC(e,t,n){let r=n??e;JC(e.x,YC(t.x,r.x),t.scaleX,t.scale,t.originX),JC(e.y,YC(t.y,r.y),t.scaleY,t.scale,t.originY)}function ZC(e,t){return MC(PC(e.getBoundingClientRect(),t))}function QC(e,t,n){let r=ZC(e,n),{scroll:i}=t;return i&&(qC(r.x,i.offset.x),qC(r.y,i.offset.y)),r}var $C={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ew=Db.length;function tw(e,t,n){let r=``,i=!0;for(let a=0;a<ew;a++){let o=Db[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===(o.startsWith(`scale`)?1:0);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=SS(s,pS[o]);if(!c){i=!1;let t=$C[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function nw(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Ob.has(e)){o=!0;continue}else if(Ov(e)){i[e]=n;continue}else{let t=SS(n,pS[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=tw(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function rw(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function iw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var aw={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(q.test(e))e=parseFloat(e);else return e;return`${iw(e,t.target.x)}% ${iw(e,t.target.y)}%`}},ow={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=gy.parse(e);if(i.length>5)return r;let a=gy.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=by(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},sw={borderRadius:{...aw,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:aw,borderTopRightRadius:aw,borderBottomLeftRadius:aw,borderBottomRightRadius:aw,boxShadow:ow};function cw(e,{layout:t,layoutId:n}){return Ob.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!sw[e]||e===`opacity`)}function lw(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Gx(r[t])||i&&Gx(i[t])||cw(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function uw(e){return window.getComputedStyle(e)}var dw=class extends AC{constructor(){super(...arguments),this.type=`html`,this.renderInstance=rw}readValueFromInstance(e,t){if(Ob.has(t))return this.projection?.isProjecting?Cb(t):Tb(e,t);{let n=uw(e),r=(Ov(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ZC(e,t)}build(e,t,n){nw(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return lw(e,t,n)}},fw={offset:`stroke-dashoffset`,array:`stroke-dasharray`},pw={offset:`strokeDashoffset`,array:`strokeDasharray`};function mw(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?fw:pw;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var hw=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function gw(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(nw(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of hw)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&mw(d,i,a,o,!1)}var _w=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),vw=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function yw(e,t,n,r){rw(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(_w.has(n)?n:Jx(n),t.attrs[n])}function bw(e,t,n){let r=lw(e,t,n);for(let n in e)if(Gx(e[n])||Gx(t[n])){let t=Db.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var xw=class extends AC{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=fC}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ob.has(t)){let e=hS(t);return e&&e.default||0}return t=_w.has(t)?t:Jx(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return bw(e,t,n)}build(e,t,n){gw(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){yw(e,t,n,r)}mount(e){this.isSVGTag=vw(e.tagName),super.mount(e)}},Sw=_C.length;function Cw(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Cw(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Sw;n++){let r=_C[n],i=e.props[r];(hC(i)||i===!1)&&(t[r]=i)}return t}function ww(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Tw=[...gC].reverse(),Ew=gC.length;function Dw(e){return t=>Promise.all(t.map(({animation:t,options:n})=>tS(e,t,n)))}function Ow(e){let t=Dw(e),n=jw(),r=!0,i=!1,a=t=>(n,r)=>{let i=Px(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Cw(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Ew;t++){let p=Tw[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=hC(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||mC(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=kw(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Vx(t)&&Vx(n)?!ww(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Px(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=vx(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Px(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=jw(),i=!0}}}function kw(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!ww(t,e):!1}function Aw(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jw(){return{animate:Aw(!0),whileInView:Aw(),whileHover:Aw(),whileTap:Aw(),whileDrag:Aw(),whileFocus:Aw(),exit:Aw()}}function Mw(e,t){e.min=t.min,e.max=t.max}function Nw(e,t){Mw(e.x,t.x),Mw(e.y,t.y)}function Pw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Fw=1e-4,Iw=1-Fw,Lw=1+Fw,Rw=.01,zw=0-Rw,Bw=0+Rw;function Vw(e){return e.max-e.min}function Hw(e,t,n){return Math.abs(e-t)<=n}function Uw(e,t,n,r=.5){e.origin=r,e.originPoint=by(t.min,t.max,e.origin),e.scale=Vw(n)/Vw(t),e.translate=by(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Iw&&e.scale<=Lw||isNaN(e.scale))&&(e.scale=1),(e.translate>=zw&&e.translate<=Bw||isNaN(e.translate))&&(e.translate=0)}function Ww(e,t,n,r){Uw(e.x,t.x,n.x,r?r.originX:void 0),Uw(e.y,t.y,n.y,r?r.originY:void 0)}function Gw(e,t,n,r=0){e.min=(r?by(n.min,n.max,r):n.min)+t.min,e.max=e.min+Vw(t)}function Kw(e,t,n,r){Gw(e.x,t.x,n.x,r?.x),Gw(e.y,t.y,n.y,r?.y)}function qw(e,t,n,r=0){let i=r?by(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Vw(t)}function Jw(e,t,n,r){qw(e.x,t.x,n.x,r?.x),qw(e.y,t.y,n.y,r?.y)}function Yw(e,t,n,r,i){return e-=t,e=BC(e,1/n,r),i!==void 0&&(e=BC(e,1/i,r)),e}function Xw(e,t=0,n=1,r=.5,i,a=e,o=e){if(Yv.test(t)&&(t=parseFloat(t),t=by(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=by(a.min,a.max,r);e===a&&(s-=t),e.min=Yw(e.min,t,n,s,i),e.max=Yw(e.max,t,n,s,i)}function Zw(e,t,[n,r,i],a,o){Xw(e,t[n],t[r],t[i],t.scale,a,o)}var Qw=[`x`,`scaleX`,`originX`],$w=[`y`,`scaleY`,`originY`];function eT(e,t,n,r){Zw(e.x,t,Qw,n?n.x:void 0,r?r.x:void 0),Zw(e.y,t,$w,n?n.y:void 0,r?r.y:void 0)}function tT(e){return e.translate===0&&e.scale===1}function nT(e){return tT(e.x)&&tT(e.y)}function rT(e,t){return e.min===t.min&&e.max===t.max}function iT(e,t){return rT(e.x,t.x)&&rT(e.y,t.y)}function aT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function oT(e,t){return aT(e.x,t.x)&&aT(e.y,t.y)}function sT(e){return Vw(e.x)/Vw(e.y)}function cT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function lT(e){return[e(`x`),e(`y`)]}function uT(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var dT=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],fT=dT.length,pT=e=>typeof e==`string`?parseFloat(e):e,mT=e=>typeof e==`number`||q.test(e);function hT(e,t,n,r,i,a){i?(e.opacity=by(0,n.opacity??1,_T(r)),e.opacityExit=by(t.opacity??1,0,vT(r))):a&&(e.opacity=by(t.opacity??1,n.opacity??1,r));for(let i=0;i<fT;i++){let a=dT[i],o=gT(t,a),s=gT(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||mT(o)===mT(s)?(e[a]=Math.max(by(pT(o),pT(s),r),0),(Yv.test(s)||Yv.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=by(t.rotate||0,n.rotate||0,r))}function gT(e,t){return e[t]===void 0?e.borderRadius:e[t]}var _T=yT(0,.5,iv),vT=yT(.5,.95,R_);function yT(e,t,n){return r=>r<e?0:r>t?1:n(V_(e,t,r))}function bT(e,t,n){let r=Gx(e)?e:Bx(e);return r.start(jx(``,r,t,n)),r.animation}function xT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var ST=(e,t)=>e.depth-t.depth,CT=class{constructor(){this.children=[],this.isDirty=!1}add(e){A_(this.children,e),this.isDirty=!0}remove(e){j_(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ST),this.isDirty=!1,this.children.forEach(e)}};function wT(e,t){let n=Tv.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(bv(r),e(a-t))};return yv.setup(r,!0),()=>bv(r)}function TT(e){return Gx(e)?e.get():e}var ET=class{constructor(){this.members=[]}add(e){A_(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(j_(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(j_(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},DT={hasAnimatedSinceResize:!0,hasEverUpdated:!1},OT={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},kT=[``,`X`,`Y`,`Z`],AT=1e3,jT=0;function MT(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function NT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Xx(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,yv,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&NT(r)}function PT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=jT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,hv.value&&(OT.nodes=OT.calculatedTargetDeltas=OT.calculatedProjections=0),this.nodes.forEach(LT),this.nodes.forEach(KT),this.nodes.forEach(qT),this.nodes.forEach(RT),hv.addProjectionMetrics&&hv.addProjectionMetrics(OT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new CT)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new H_),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=GS(t)&&!oC(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;yv.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=wT(i,250),DT.hasAnimatedSinceResize&&(DT.hasAnimatedSinceResize=!1,this.nodes.forEach(GT)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||eE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!oT(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ox(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||GT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),bv(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(JT),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&NT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(VT),this.nodes.forEach(BT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(HT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(UT),this.nodes.forEach(WT),this.nodes.forEach(FT),this.nodes.forEach(IT)):this.nodes.forEach(HT),this.clearAllSnapshots();let e=Tv.now();xv.delta=M_(0,1e3/60,e-xv.timestamp),xv.timestamp=e,xv.isProcessing=!0,Sv.update.process(xv),Sv.preRender.process(xv),Sv.render.process(xv),xv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zT),this.sharedNodes.forEach(YT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yv.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yv.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vw(this.snapshot.measuredBox.x)&&!Vw(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=fC(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nT(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||LC(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),iE(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return fC();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oE))){let{scroll:e}=this.root;e&&(qC(t.x,e.offset.x),qC(t.y,e.offset.y))}return t}removeElementScroll(e){let t=fC();if(Nw(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Nw(t,e),qC(t.x,i.offset.x),qC(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||fC();Nw(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(qC(r.x,-n.scroll.offset.x),qC(r.y,-n.scroll.offset.y)),LC(n.latestValues)&&XC(r,n.latestValues,n.layout?.layoutBox)}return LC(this.latestValues)&&XC(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=fC();Nw(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!LC(n.latestValues))continue;let r;n.instance&&(IC(n.latestValues)&&n.updateSnapshot(),r=fC(),Nw(r,n.measurePageBox())),eT(t,n.latestValues,n.snapshot?.layoutBox,r)}return LC(this.latestValues)&&eT(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=xv.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=fC(),this.targetWithTransforms=fC()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Kw(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Nw(this.target,this.layout.layoutBox),UC(this.target,this.targetDelta)):Nw(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),hv.value&&OT.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||IC(this.parent.latestValues)||RC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fC(),this.relativeTargetOrigin=fC(),Jw(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Nw(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===xv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Nw(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;KC(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=fC());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pw(this.prevProjectionDelta.x,this.projectionDelta.x),Pw(this.prevProjectionDelta.y,this.projectionDelta.y)),Ww(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!cT(this.projectionDelta.x,this.prevProjectionDelta.x)||!cT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),hv.value&&OT.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=uC(),this.projectionDelta=uC(),this.projectionDeltaWithTransform=uC()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=uC();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=fC(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some($T));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;XT(a.x,e.x,n),XT(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jw(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),QT(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&iT(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=fC(),Nw(d,this.relativeTarget)),s&&(this.animationValues=i,hT(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(bv(this.pendingAnimation),void 0),this.pendingAnimation=yv.update(()=>{DT.hasAnimatedSinceResize=!0,Ev.layout++,this.motionValue||=Bx(0),this.motionValue.jump(0,!1),this.currentAnimation=bT(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Ev.layout--},onComplete:()=>{Ev.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(AT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&aE(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||fC();let t=Vw(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Vw(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Nw(t,n),XC(t,i),Ww(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ET),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&MT(`z`,e,r,this.animationValues);for(let t=0;t<kT.length;t++)MT(`rotate${kT[t]}`,e,r,this.animationValues),MT(`skew${kT[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=TT(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=TT(t?.pointerEvents)||``),this.hasProjected&&!LC(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=uT(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in sw){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=sw[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?TT(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(BT),this.root.sharedNodes.clear()}}}function FT(e){e.updateLayout()}function IT(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)lT(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Vw(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Mw(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else aE(i,t.layoutBox,n)&&lT(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Vw(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=uC();Ww(o,n,t.layoutBox);let s=uC();a?Ww(s,e.applyTransform(r,!0),t.measuredBox):Ww(s,n,t.layoutBox);let c=!nT(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=fC();Jw(s,t.layoutBox,i.layoutBox,o);let c=fC();Jw(c,n,a.layoutBox,o),oT(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function LT(e){hv.value&&OT.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function RT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zT(e){e.clearSnapshot()}function BT(e){e.clearMeasurements()}function VT(e){e.isLayoutDirty=!0,e.updateLayout()}function HT(e){e.isLayoutDirty=!1}function UT(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function WT(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function GT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KT(e){e.resolveTargetDelta()}function qT(e){e.calcProjection()}function JT(e){e.resetSkewAndRotation()}function YT(e){e.removeLeadSnapshot()}function XT(e,t,n){e.translate=by(t.translate,0,n),e.scale=by(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ZT(e,t,n,r){e.min=by(t.min,n.min,r),e.max=by(t.max,n.max,r)}function QT(e,t,n,r){ZT(e.x,t.x,n.x,r),ZT(e.y,t.y,n.y,r)}function $T(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var eE={duration:.45,ease:[.4,0,.1,1]},tE=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nE=tE(`applewebkit/`)&&!tE(`chrome/`)?Math.round:R_;function rE(e){e.min=nE(e.min),e.max=nE(e.max)}function iE(e){rE(e.x),rE(e.y)}function aE(e,t,n){return e===`position`||e===`preserve-aspect`&&!Hw(sT(t),sT(n),.2)}function oE(e){return e!==e.root&&e.scroll?.wasRoot}var sE=PT({attachResizeListener:(e,t)=>xT(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),cE={current:void 0},lE=PT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cE.current){let e=new sE({});e.mount(window),e.setOptions({layoutScroll:!0}),cE.current=e}return cE.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function uE(e=!0){let t=(0,G.useContext)(k_);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,G.useId)();(0,G.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,G.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var dE=(0,G.createContext)({strict:!1}),fE={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},pE=!1;function mE(){if(pE)return;let e={};for(let t in fE)e[t]={isEnabled:e=>fE[t].some(t=>!!e[t])};DC(e),pE=!0}function hE(){return mE(),OC()}function gE(e){let t=hE();for(let n in e)t[n]={...t[n],...e[n]};DC(t)}function _E({children:e,features:t,strict:n=!1}){let[,r]=(0,G.useState)(!vE(t)),i=(0,G.useRef)(void 0);if(!vE(t)){let{renderer:e,...n}=t;i.current=e,gE(n)}return(0,G.useEffect)(()=>{vE(t)&&t().then(({renderer:e,...t})=>{gE(t),i.current=e,r(!0)})},[]),(0,K.jsx)(dE.Provider,{value:{renderer:i.current,strict:n},children:e})}function vE(e){return typeof e==`function`}var yE=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function bE(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(yE.indexOf(e)>-1||/[A-Z]/u.test(e))}var xE=(0,G.createContext)({});function SE(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}var CE=(e,t)=>t.isSVG??bE(e)?new xw(t):new dw(t,{allowProjection:e!==G.Fragment}),wE=class extends jC{constructor(e){super(e),e.animationState||=Ow(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();mC(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},TE=0,EE={animation:{Feature:wE},exit:{Feature:class extends jC{constructor(){super(...arguments),this.id=TE++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=Px(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function DE(e){return{point:{x:e.pageX,y:e.pageY}}}var OE=e=>t=>NS(t)&&e(t,DE(t));function kE(e,t,n,r){return xT(e,t,OE(n),r)}var AE=({current:e})=>e?e.ownerDocument.defaultView:null,jE=(e,t)=>Math.abs(e-t);function ME(e,t){let n=jE(e.x,t.x),r=jE(e.y,t.y);return Math.sqrt(n**2+r**2)}var NE=new Set([`auto`,`scroll`]),PE=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=FE(this.lastRawMoveEventInfo,this.transformPagePoint));let e=LE(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=ME(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=xv;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=FE(t,this.transformPagePoint),yv.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=LE(e.type===`pointercancel`?this.lastMoveEventInfo:FE(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!NS(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=FE(DE(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=xv;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,LE(s,this.history)),this.removeListeners=B_(kE(this.contextWindow,`pointermove`,this.handlePointerMove),kE(this.contextWindow,`pointerup`,this.handlePointerUp),kE(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(NE.has(e.overflowX)||NE.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),yv.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),bv(this.updatePoint)}};function FE(e,t){return t?{point:t(e.point)}:e}function IE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function LE({point:e},t){return{point:e,delta:IE(e,zE(t)),offset:IE(e,RE(t)),velocity:BE(t,.1)}}function RE(e){return e[0]}function zE(e){return e[e.length-1]}function BE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=zE(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>U_(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>U_(t)*2&&(r=e[1]);let a=W_(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function VE(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?by(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?by(n,e,r.max):Math.min(e,n)),e}function HE(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function UE(e,{top:t,left:n,bottom:r,right:i}){return{x:HE(e.x,n,i),y:HE(e.y,t,r)}}function WE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function GE(e,t){return{x:WE(e.x,t.x),y:WE(e.y,t.y)}}function KE(e,t){let n=.5,r=Vw(e),i=Vw(t);return i>r?n=V_(t.min,t.max-r,e.min):r>i&&(n=V_(e.min,e.max-i,t.min)),M_(0,1,n)}function qE(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var JE=.35;function YE(e=JE){return e===!1?e=0:e===!0&&(e=JE),{x:XE(e,`left`,`right`),y:XE(e,`top`,`bottom`)}}function XE(e,t,n){return{min:ZE(e,t),max:ZE(e,n)}}function ZE(e,t){return typeof e==`number`?e:e[t]||0}var QE=new WeakMap,$E=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fC(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(DE(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=OS(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lT(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Yv.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Vw(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&yv.update(()=>i(e,t),!1,!0),qx(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=rD(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&yv.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new PE(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:AE(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&yv.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!nD(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=VE(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&SE(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=UE(n.layoutBox,e):this.constraints=!1,this.elastic=YE(t),r!==this.constraints&&!SE(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&lT(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=qE(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!SE(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=QC(n,r.root,this.visualElement.getTransformPagePoint()),a=GE(r.layout.layoutBox,i);if(t){let e=t(NC(a));this.hasMutatedConstraints=!!e,e&&(a=MC(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=lT(o=>{if(!nD(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return qx(this.visualElement,e),n.start(jx(e,n,0,t,this.visualElement,!1))}stopAnimation(){lT(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){lT(t=>{let{drag:n}=this.getProps();if(!nD(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-by(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!SE(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};lT(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=KE({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),lT(t=>{if(!nD(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(by(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;QE.set(this.visualElement,this);let e=this.visualElement.current,t=kE(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&LS(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();SE(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=tD(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),yv.read(r);let o=xT(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(lT(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=JE,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function eD(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function tD(e,t,n){let r=aC(e,eD(n)),i=aC(t,eD(n));return()=>{r(),i()}}function nD(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rD(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var iD=class extends jC{constructor(e){super(e),this.removeGroupControls=R_,this.removeListeners=R_,this.controls=new $E(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R_}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},aD=e=>(t,n)=>{e&&yv.update(()=>e(t,n),!1,!0)},oD=class extends jC{constructor(){super(...arguments),this.removePointerDownListener=R_}onPointerDown(e){this.session=new PE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:AE(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:aD(e),onStart:aD(t),onMove:aD(n),onEnd:(e,t)=>{delete this.session,r&&yv.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=kE(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},sD=!1,cD=class extends G.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),sD&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),DT.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),sD=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||yv.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),wS.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;sD=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function lD(e){let[t,n]=uE(),r=(0,G.useContext)(O_);return(0,K.jsx)(cD,{...e,layoutGroup:r,switchLayoutGroup:(0,G.useContext)(xE),isPresent:t,safeToRemove:n})}var uD={pan:{Feature:oD},drag:{Feature:iD,ProjectionNode:lE,MeasureLayout:lD}};function dD(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&yv.postRender(()=>i(t,DE(t)))}var fD=class extends jC{mount(){let{current:e}=this.node;e&&(this.unmount=jS(e,(e,t)=>(dD(this.node,t,`Start`),e=>dD(this.node,e,`End`))))}unmount(){}},pD=class extends jC{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=B_(xT(this.node.current,`focus`,()=>this.onFocus()),xT(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function mD(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&yv.postRender(()=>i(t,DE(t)))}var hD=class extends jC{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=WS(e,(e,t)=>(mD(this.node,t,`Start`),(e,{success:t})=>mD(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},gD=new WeakMap,_D=new WeakMap,vD=e=>{let t=gD.get(e.target);t&&t(e)},yD=e=>{e.forEach(vD)};function bD({root:e,...t}){let n=e||document;_D.has(n)||_D.set(n,{});let r=_D.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(yD,{root:e,...t})),r[i]}function xD(e,t,n){let r=bD(t);return gD.set(e,n),r.observe(e),()=>{gD.delete(e),r.unobserve(e)}}var SD={some:0,all:1},CD=class extends jC{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:SD[r]};this.stopObserver=xD(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(wD(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function wD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var TD={inView:{Feature:CD},tap:{Feature:hD},focus:{Feature:pD},hover:{Feature:fD}},ED={layout:{ProjectionNode:lE,MeasureLayout:lD}},DD={renderer:CE,...EE,...TD,...uD,...ED},OD=`prism`;function J(e){return`${OD}__${e}`}function kD(e,t){return t?t.reduce((t,n)=>(t[n]=J(`${e}__${n}`),t),{}):t=>J(`${e}__${t}`)}J(`animate__border__root`),J(`animate__border__primary`),J(`animate__border__secondary`),J(`animate__border__svg__wrapper`),J(`animate__border__moving__shape`);function AD({children:e}){return(0,K.jsx)(_E,{strict:!0,features:DD,children:e})}var jD={xs:24,sm:32,md:40,lg:56,xl:80},MD={xs:10,sm:12,md:14,lg:20,xl:28};function ND(e){let t=e.trim().split(/\s+/);return t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function PD(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let n=[`#F44336`,`#E91E63`,`#9C27B0`,`#673AB7`,`#3F51B5`,`#2196F3`,`#03A9F4`,`#00BCD4`,`#009688`,`#4CAF50`,`#8BC34A`,`#CDDC39`,`#FFC107`,`#FF9800`,`#FF5722`,`#795548`];return n[Math.abs(t)%n.length]}var FD=U(Sd,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,shape:r,hasImage:i,bgColor:a}=t,o=jD[n],s=MD[n],c=typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4;return{width:o,height:o,fontSize:s,fontWeight:600,...r===`rounded`&&{borderRadius:c*1.5},...r===`square`&&{borderRadius:0},...!i&&a&&{backgroundColor:a,color:e.palette.getContrastText(a)}}});function ID({children:e,online:t,offline:n,badge:r,badgeColor:i=`error`,size:a}){let o=jt(),s=t||n,c=a===`xs`?6:a===`sm`?8:10;if(!s&&!r)return e;let l=e=>{let t=o.palette[e];return t&&typeof t==`object`&&`main`in t?t.main:o.palette.error.main},u={position:`relative`,display:`inline-flex`},d={position:`absolute`,bottom:0,right:0,width:c,height:c,borderRadius:`50%`,border:`2px solid ${o.palette.background.paper}`,backgroundColor:t?o.palette.success.main:o.palette.grey[400]},f={position:`absolute`,top:-4,right:-4,minWidth:18,height:18,padding:`0 4px`,borderRadius:9,fontSize:10,fontWeight:600,display:`flex`,alignItems:`center`,justifyContent:`center`,color:o.palette.common.white,backgroundColor:l(i)};return(0,K.jsxs)(`span`,{style:u,children:[e,s&&(0,K.jsx)(`span`,{style:d}),r&&(0,K.jsx)(`span`,{style:f,children:r})]})}(0,G.forwardRef)(function({size:e=`md`,shape:t=`circular`,name:n,src:r,alt:i,online:a,offline:o,badge:s,badgeColor:c,children:l,sx:u,...d},f){let p=(0,G.useMemo)(()=>l?null:n?ND(n):null,[n,l]),m=(0,G.useMemo)(()=>{if(!r)return n?PD(n):void 0},[r,n]);return(0,K.jsx)(ID,{online:a,offline:o,badge:s,badgeColor:c,size:e,children:(0,K.jsx)(FD,{ref:f,src:r,alt:i||n,ownerState:{size:e,shape:t,hasImage:!!r,bgColor:m},sx:u,...d,children:l||p})})});var LD=U(Md,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{variant:n,color:r,size:i}=t,{width:a,height:o,fontSize:s}={small:{width:16,height:16,fontSize:10},medium:{width:20,height:20,fontSize:12},large:{width:24,height:24,fontSize:14}}[i],c={default:e.palette.grey[500],primary:e.palette.primary.main,secondary:e.palette.secondary.main,success:e.palette.success.main,warning:e.palette.warning.main,error:e.palette.error.main,info:e.palette.info.main},l={online:e.palette.success.main,offline:e.palette.grey[500],busy:e.palette.error.main},u=n===`online`||n===`offline`||n===`busy`,d=n===`dot`||u,f=u?l[n]:c[r];return{"& .MuiBadge-badge":{minWidth:d?o/2:a,height:d?o/2:o,padding:d?0:`0 4px`,fontSize:s,fontWeight:600,backgroundColor:f,color:e.palette.getContrastText(f),...d&&{borderRadius:`50%`},...n===`online`&&{"&::after":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,borderRadius:`50%`,animation:`ripple 1.2s infinite ease-in-out`,border:`1px solid ${e.palette.success.main}`,content:`""`},"@keyframes ripple":{"0%":{transform:`scale(.8)`,opacity:1},"100%":{transform:`scale(2.4)`,opacity:0}}}}}});(0,G.forwardRef)(function({variant:e=`standard`,color:t=`error`,size:n=`medium`,badgeContent:r,children:i,sx:a,...o},s){let c={variant:e,color:t,size:n},l=e===`dot`||e===`online`||e===`offline`||e===`busy`;return(0,K.jsx)(LD,{ref:s,ownerState:c,badgeContent:l?void 0:r,variant:l?`dot`:`standard`,sx:a,...o,children:i})});var RD=U(Jd,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{variant:n}=t,r=typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4,i={border:`none`,boxShadow:`none`,backgroundColor:W(e.palette.grey[500],.08)};return{position:`relative`,borderRadius:r*2,...n===`soft`&&i,...n===`outlined`&&{boxShadow:`none`}}}),zD=(0,G.forwardRef)(function({variant:e=`elevation`,title:t,subheader:n,headerAction:r,headerSx:i,contentSx:a,actions:o,actionsSx:s,disablePadding:c,children:l,sx:u,...d},f){let p={variant:e},m=t||n||r;return(0,K.jsxs)(RD,{ref:f,ownerState:p,variant:e===`outlined`?`outlined`:`elevation`,sx:u,...d,children:[m&&(0,K.jsx)(df,{title:t,subheader:n,action:r,sx:i}),l&&(0,K.jsx)(nf,{sx:{...c&&{p:0,"&:last-child":{pb:0}},...a},children:l}),o&&(0,K.jsx)(Qd,{sx:s,children:o})]})});function BD({label:e,value:t,change:n,icon:r,color:i=`primary`,loading:a,subtitle:o,variant:s=`outlined`,sx:c,...l}){let u=n&&n>0,d=n&&n<0;return(0,K.jsx)(zD,{variant:s,contentSx:{p:2,"&:last-child":{pb:2}},sx:c,...l,children:(0,K.jsxs)(B,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`},children:[(0,K.jsx)(B,{children:a?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Zt,{width:80,height:16}),(0,K.jsx)(Zt,{width:50,height:32,sx:{mt:.5}})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(nt,{variant:`caption`,fontWeight:600,color:`text.secondary`,textTransform:`uppercase`,letterSpacing:.5,children:e}),(0,K.jsx)(nt,{variant:`h4`,fontWeight:700,sx:{color:`${i}.main`,mt:.5},children:t}),n!==void 0&&(0,K.jsxs)(nt,{variant:`caption`,fontWeight:500,color:u?`success.main`:d?`error.main`:`text.secondary`,sx:{mt:.5,display:`block`},children:[u?`+`:``,n,`%`]}),o&&(0,K.jsx)(nt,{variant:`caption`,color:`text.secondary`,children:o})]})}),r&&!a&&(0,K.jsx)(B,{sx:{color:`${i}.main`},children:r})]})})}function VD({icon:e,color:t=`primary.main`,size:n=64}){return(0,K.jsx)(B,{sx:{width:n,height:n,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:e=>{let n=t.split(`.`),r=e.palette;for(let e of n)r=r?.[e];return W(typeof r==`string`?r:e.palette.primary.main,.08)}},children:e})}function HD({illustration:e,icon:t,iconColor:n=`primary.main`,iconSize:r=64,title:i=`No data`,description:a,action:o,actions:s,maxWidth:c=400,filled:l=!1,sx:u,illustrationSx:d,slotProps:f,compact:p=!1}){let m=t?(0,K.jsx)(VD,{icon:t,color:n,size:r}):e?(0,K.jsx)(B,{sx:d,children:e}):null,h=[...s??[],...o?[o]:[]];return(0,K.jsx)(Bt,{alignItems:`center`,justifyContent:`center`,sx:{textAlign:`center`,py:p?4:8,px:2,...l&&{height:`100%`,minHeight:200},...u},children:(0,K.jsxs)(B,{sx:{maxWidth:c,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:p?1.5:2.5},children:[m,(0,K.jsxs)(Bt,{alignItems:`center`,spacing:.5,children:[i&&(0,K.jsx)(nt,{variant:p?`subtitle1`:`h6`,color:`text.secondary`,sx:{fontWeight:600,...f?.title},children:i}),a&&(0,K.jsx)(nt,{variant:`body2`,color:`text.disabled`,sx:{lineHeight:1.6,...f?.description},children:a})]}),h.length>0&&(0,K.jsx)(Bt,{direction:`row`,spacing:1,sx:{mt:p?.5:1,flexWrap:`wrap`,justifyContent:`center`,...f?.actions},children:h.map((e,t)=>(0,K.jsx)(B,{children:e},t))})]})})}var UD=3,WD=(0,G.forwardRef)(({children:e,gap:t=UD,fill:n,sx:r,...i},a)=>(0,K.jsx)(Bt,{ref:a,spacing:t,sx:{...n&&{flex:1},...r},...i,children:e}));WD.displayName=`PageContent`;var GD=U(B,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{ratio:n,hasError:r}=t;return{position:`relative`,display:`block`,overflow:`hidden`,borderRadius:`inherit`,...(()=>{if(!n)return{};if(typeof n==`string`)return{width:`100%`,aspectRatio:n};let t={width:`100%`};for(let[r,i]of Object.entries(n))r===`xs`?t.aspectRatio=i:t[e.breakpoints.up(r)]={aspectRatio:i};return t})(),...r&&{backgroundColor:W(e.palette.grey[500],.08)}}}),KD=U(`img`)(()=>({width:`100%`,height:`100%`,objectFit:`cover`,display:`block`})),qD=U(B)(({theme:e})=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:W(e.palette.grey[500],.08),"&::after":{content:`""`,width:32,height:32,borderRadius:`50%`,border:`3px solid`,borderColor:W(e.palette.grey[500],.16),borderTopColor:e.palette.primary.main,animation:`spin 1s linear infinite`,"@keyframes spin":{from:{transform:`rotate(0deg)`},to:{transform:`rotate(360deg)`}}}})),JD=U(B)(()=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`})),YD=U(B)(({theme:e})=>({width:`100%`,height:`100%`,minHeight:100,display:`flex`,alignItems:`center`,justifyContent:`center`,color:e.palette.text.disabled}));(0,G.forwardRef)(function({src:e,alt:t,ratio:n,fallback:r,fallbackSrc:i,disableLazy:a=!1,objectFit:o=`cover`,placeholder:s=!0,overlay:c,sx:l,imgSx:u,onLoad:d,onError:f,...p},m){let[h,g]=(0,G.useState)(!1),[_,v]=(0,G.useState)(!1),[y,b]=(0,G.useState)(e),x=(0,G.useCallback)(()=>{g(!0),d?.()},[d]),S=(0,G.useCallback)(()=>{i&&y!==i?b(i):v(!0),f?.()},[i,y,f]),C={ratio:n,hasError:_};return _&&r?(0,K.jsx)(GD,{ref:m,ownerState:C,sx:l,children:(0,K.jsx)(YD,{children:r})}):(0,K.jsxs)(GD,{ref:m,ownerState:C,sx:l,children:[s&&!h&&!_&&(0,K.jsx)(qD,{}),(0,K.jsx)(KD,{src:y,alt:t,loading:a?`eager`:`lazy`,onLoad:x,onError:S,sx:[{objectFit:o,opacity:h?1:0,transition:`opacity 300ms ease-in-out`},...Array.isArray(u)?u:[u]],...p}),c&&(0,K.jsx)(JD,{children:c})]})});var XD=U(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let n=e.palette.mode===`light`,{color:r,variant:i,disabled:a}=t,o=r===`default`?null:e.palette[r],s=o??{main:e.palette.grey[500],light:e.palette.grey[300],dark:e.palette.grey[700],contrastText:e.palette.common.white},c={height:24,minWidth:24,lineHeight:0,cursor:`default`,borderRadius:(typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4)*.75,alignItems:`center`,whiteSpace:`nowrap`,display:`inline-flex`,justifyContent:`center`,textTransform:`capitalize`,padding:e.spacing(0,.75),fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold,transition:e.transitions.create([`all`],{duration:e.transitions.duration.shorter}),...a&&{opacity:.48,pointerEvents:`none`}},l={filled:{color:r===`default`?n?e.palette.common.white:e.palette.grey[800]:s.contrastText,backgroundColor:r===`default`?e.palette.text.primary:s.main},outlined:{color:r===`default`?e.palette.text.primary:s.main,backgroundColor:`transparent`,border:`2px solid ${r===`default`?W(e.palette.grey[500],.32):W(s.main,.48)}`},soft:{color:r===`default`?e.palette.text.secondary:n?s.dark:s.light,backgroundColor:W(r===`default`?e.palette.grey[500]:s.main,.16)},inverted:{color:r===`default`?e.palette.text.primary:s.dark,backgroundColor:e.palette.common.white,border:`1px solid ${W(e.palette.grey[500],.16)}`,...o&&{boxShadow:`inset 0 0 0 1px ${W(o.main,.24)}`}}};return{...c,...l[i]}}),ZD=(0,G.forwardRef)(function({children:e,color:t=`default`,variant:n=`soft`,startIcon:r,endIcon:i,sx:a,disabled:o,...s},c){let l={color:t,variant:n,disabled:o},u={width:16,height:16,flexShrink:0,"& svg, & img":{width:`100%`,height:`100%`}};return(0,K.jsxs)(XD,{ref:c,ownerState:l,sx:a,...s,children:[r&&(0,K.jsx)(B,{sx:{mr:.5,...u},children:r}),e,i&&(0,K.jsx)(B,{sx:{ml:.5,...u},children:i})]})}),QD=U(`div`)(({theme:e})=>({flexGrow:1,width:`100%`,display:`flex`,minHeight:`100%`,alignItems:`center`,justifyContent:`center`,paddingLeft:e.spacing(5),paddingRight:e.spacing(5)}));function $D({portal:e,slots:t,slotProps:n,sx:r,...i}){return(0,K.jsx)(e?me:G.Fragment,{children:(0,K.jsx)(QD,{sx:r,...i,children:t?.progress??(0,K.jsx)($f,{color:`inherit`,sx:[{width:1,maxWidth:360},...Array.isArray(n?.progress?.sx)?n.progress.sx:[n?.progress?.sx]],...n?.progress})})})}U(B,{shouldForwardProp:e=>e!==`fullScreen`})(({theme:e,fullScreen:t})=>({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.spacing(2),padding:e.spacing(3),...t?{position:`fixed`,top:0,left:0,right:0,bottom:0,zIndex:e.zIndex.modal+1,backgroundColor:e.palette.background.default}:{flexGrow:1,width:`100%`,minHeight:200}}));var eO=.75;function tO(e=`top-right`){let t={"top-left":{paperStyles:{ml:-eO},anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`}},"top-center":{paperStyles:void 0,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`}},"top-right":{paperStyles:{ml:eO},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`}},"bottom-left":{paperStyles:{ml:-eO},anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`}},"bottom-center":{paperStyles:void 0,anchorOrigin:{vertical:`top`,horizontal:`center`},transformOrigin:{vertical:`bottom`,horizontal:`center`}},"bottom-right":{paperStyles:{ml:eO},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`right`}},"left-top":{paperStyles:{mt:-eO},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`left`}},"left-center":{paperStyles:void 0,anchorOrigin:{vertical:`center`,horizontal:`right`},transformOrigin:{vertical:`center`,horizontal:`left`}},"left-bottom":{paperStyles:{mt:eO},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`left`}},"right-top":{paperStyles:{mt:-eO},anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`right`}},"right-center":{paperStyles:void 0,anchorOrigin:{vertical:`center`,horizontal:`left`},transformOrigin:{vertical:`center`,horizontal:`right`}},"right-bottom":{paperStyles:{mt:eO},anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`right`}}};return t[e]||t[`top-right`]}var nO=U(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,offset:r,placement:i}=t,a={top:{top:0,rotate:`135deg`,translate:`0 -50%`},bottom:{bottom:0,rotate:`-45deg`,translate:`0 50%`},left:{left:0,rotate:`45deg`,translate:`-50% 0`},right:{right:0,rotate:`-135deg`,translate:`50% 0`}},o=()=>i.startsWith(`top-`)?a.top:i.startsWith(`bottom-`)?a.bottom:i.startsWith(`left-`)?a.left:i.startsWith(`right-`)?a.right:{},s=()=>i.endsWith(`-left`)?{left:r}:i.endsWith(`-right`)?{right:r}:i.endsWith(`-top`)?{top:r}:i.endsWith(`-bottom`)?{bottom:r}:i.endsWith(`-center`)?i.startsWith(`top-`)||i.startsWith(`bottom-`)?{left:0,right:0,margin:`auto`}:{top:0,bottom:0,margin:`auto`}:{};return{width:n,height:n,position:`absolute`,borderBottomLeftRadius:n/4,clipPath:`polygon(0% 0%, 100% 100%, 0% 100%)`,backgroundColor:e.palette.background.paper,border:`solid 1px ${W(e.palette.grey[500],.12)}`,...o(),...s()}});function rO({open:e,onClose:t,children:n,anchorEl:r,arrow:i,minWidth:a=140,slotProps:o,...s}){let c=i?.size??14,l=i?.offset??17,u=i?.placement??`top-right`,d=i?.hide??!1,{paperStyles:m,anchorOrigin:h,transformOrigin:g}=tO(u);return(0,K.jsxs)(p,{open:!!e,anchorEl:r,onClose:t,anchorOrigin:h,transformOrigin:g,slotProps:{...o,paper:{...typeof o?.paper==`object`?o.paper:{},sx:[m,{overflow:`inherit`,[`& .${f.root}`]:{minWidth:a},[`& .${wp.root}`]:{gap:2}},...typeof o?.paper==`object`&&o.paper&&`sx`in o.paper?Array.isArray(o.paper.sx)?o.paper.sx:[o.paper.sx]:[]]}},...s,children:[!d&&(0,K.jsx)(nO,{ownerState:{size:c,offset:l,placement:u},sx:i?.sx}),n]})}function iO(){let[e,t]=(0,G.useState)(null),n=(0,G.useCallback)(e=>{t(e.currentTarget)},[]),r=(0,G.useCallback)(()=>{t(null)},[]);return{open:!!e,anchorEl:e,onOpen:n,onClose:r,setAnchorEl:t}}var aO=U(B,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{fillContent:n,hideScrollbar:r,axis:i}=t,a=W(e.palette.text.disabled,.4),o=W(e.palette.text.disabled,.6),s=W(e.palette.grey[500],.08);return{minWidth:0,minHeight:0,...i===`x`?{overflowX:`auto`,overflowY:`hidden`}:i===`y`?{overflowX:`hidden`,overflowY:`auto`}:{overflow:`auto`},...n&&{flexGrow:1,display:`flex`,flexDirection:`column`},...!r&&{scrollbarWidth:`thin`,scrollbarColor:`${a} ${s}`,"&::-webkit-scrollbar":{width:8,height:8},"&::-webkit-scrollbar-track":{backgroundColor:s,borderRadius:4},"&::-webkit-scrollbar-thumb":{backgroundColor:a,borderRadius:4,"&:hover":{backgroundColor:o}},"&::-webkit-scrollbar-corner":{backgroundColor:`transparent`}},...r&&{scrollbarWidth:`none`,msOverflowStyle:`none`,"&::-webkit-scrollbar":{display:`none`}}}});(0,G.forwardRef)(function({children:e,sx:t,fillContent:n=!1,hideScrollbar:r=!1,axis:i=`y`,maxHeight:a,minHeight:o,className:s,...c},l){return(0,K.jsx)(aO,{ref:l,ownerState:{fillContent:n,hideScrollbar:r,axis:i},className:s,sx:[{...a!==void 0&&{maxHeight:a},...o!==void 0&&{minHeight:o}},...Array.isArray(t)?t:[t]],...c,children:e})});var oO=kt((0,K.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),sO=(0,G.createContext)(null);function cO(){let e=(0,G.useContext)(sO);if(!e)throw Error(`useSnackbar must be used within a SnackbarProvider`);return e}var lO={open:!1,message:``,severity:`info`,duration:5e3,position:{vertical:`bottom`,horizontal:`left`},key:0};function uO({children:e,defaultDuration:t=5e3,defaultPosition:n={vertical:`bottom`,horizontal:`left`},sx:r}){let[i,a]=(0,G.useState)({...lO,duration:t,position:n}),o=(0,G.useCallback)(e=>{let r=typeof e==`string`?{message:e}:e;a(e=>({open:!0,message:r.message,severity:r.severity??`info`,duration:r.duration??t,position:r.position??n,action:r.action,key:r.key??Date.now()}))},[t,n]),s=(0,G.useCallback)((e,t)=>{o({message:e,severity:`success`,...t})},[o]),c=(0,G.useCallback)((e,t)=>{o({message:e,severity:`error`,...t})},[o]),l=(0,G.useCallback)((e,t)=>{o({message:e,severity:`warning`,...t})},[o]),u=(0,G.useCallback)((e,t)=>{o({message:e,severity:`info`,...t})},[o]),d=(0,G.useCallback)(()=>{a(e=>({...e,open:!1}))},[]),f=(0,G.useCallback)((e,t)=>{t!==`clickaway`&&d()},[d]),p=(0,G.useMemo)(()=>({show:o,success:s,error:c,warning:l,info:u,close:d}),[o,s,c,l,u,d]);return(0,K.jsxs)(sO.Provider,{value:p,children:[e,(0,K.jsx)(zp,{open:i.open,autoHideDuration:i.duration,onClose:f,anchorOrigin:i.position,sx:r,children:(0,K.jsx)(Rt,{severity:i.severity,variant:`filled`,onClose:f,action:i.action||(0,K.jsx)(xt,{size:`small`,"aria-label":`close`,color:`inherit`,onClick:d,children:(0,K.jsx)(oO,{fontSize:`small`})}),sx:{width:`100%`,alignItems:`center`},children:i.message})},i.key)]})}var dO=U(`span`)(()=>({flexShrink:0,display:`inline-flex`,backgroundColor:`currentColor`}));(0,G.forwardRef)(function({src:e,color:t,size:n=24,width:r,height:i,className:a,sx:o},s){return(0,K.jsx)(dO,{ref:s,className:a,sx:[{width:r??n,height:i??n,mask:`url(${e}) no-repeat center / contain`,WebkitMask:`url(${e}) no-repeat center / contain`,...t&&{color:t}},...Array.isArray(o)?o:[o]]})});var fO=U(It)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),pO=U(Nm)(({theme:e})=>({backgroundColor:W(e.palette.grey[500],.08),"& .MuiTableCell-head":{fontWeight:600,backgroundColor:`transparent`}})),mO=U(Qo)(({theme:e})=>({"&:hover":{backgroundColor:W(e.palette.primary.main,.04)},"&.Mui-selected":{backgroundColor:W(e.palette.primary.main,.08),"&:hover":{backgroundColor:W(e.palette.primary.main,.12)}}}));function hO({columns:e,data:t,rowKey:n=`id`,selectable:r=!1,selected:i=[],onSelectChange:a,sortable:o=!1,sortBy:s,sortOrder:c=`asc`,onSortChange:l,paginated:u=!1,page:d=0,rowsPerPage:f=10,totalRows:p,onPageChange:m,onRowsPerPageChange:h,rowsPerPageOptions:g=[5,10,25,50],emptyContent:_,loading:v=!1,dense:y=!1,stickyHeader:b=!1,maxHeight:x,onRowClick:S,containerSx:C,sx:w,...T},E){let D=(0,G.useCallback)((e,t)=>{if(typeof n==`function`)return n(e);let r=e[n];return r===void 0?t:String(r)},[n]),O=(0,G.useMemo)(()=>t.length>0&&i.length===t.length,[t.length,i.length]),k=(0,G.useMemo)(()=>i.length>0&&i.length<t.length,[t.length,i.length]),A=(0,G.useCallback)(e=>{if(e.target.checked){let e=t.map((e,t)=>D(e,t));a?.(e)}else a?.([])},[t,D,a]),j=(0,G.useCallback)(e=>{let t=i.includes(e)?i.filter(t=>t!==e):[...i,e];a?.(t)},[i,a]),M=(0,G.useCallback)(e=>{l?.(e,s===e&&c===`asc`?`desc`:`asc`)},[s,c,l]),N=(0,G.useCallback)((e,t)=>{m?.(t)},[m]),P=(0,G.useCallback)(e=>{h?.(parseInt(e.target.value,10)),m?.(0)},[h,m]),F=p??t.length,I=(0,G.useMemo)(()=>u&&!p?t.slice(d*f,d*f+f):t,[t,u,d,f,p]);return!v&&t.length===0?(0,K.jsx)(fO,{sx:C,children:(0,K.jsx)(B,{sx:{p:4,textAlign:`center`},children:_||(0,K.jsx)(nt,{color:`text.secondary`,children:`No data available`})})}):(0,K.jsxs)(fO,{sx:{maxHeight:x,...C},children:[(0,K.jsxs)(xm,{ref:E,stickyHeader:b,size:y?`small`:`medium`,sx:w,...T,children:[(0,K.jsx)(pO,{children:(0,K.jsxs)(Qo,{children:[r&&(0,K.jsx)(is,{padding:`checkbox`,children:(0,K.jsx)(Fc,{indeterminate:k,checked:O,onChange:A})}),e.map(e=>(0,K.jsx)(is,{align:e.align||`left`,style:{width:e.width,minWidth:e.minWidth},sortDirection:s===e.id?c:!1,children:o&&e.sortable!==!1?(0,K.jsx)(uh,{active:s===e.id,direction:s===e.id?c:`asc`,onClick:()=>M(String(e.id)),children:e.label}):e.label},String(e.id)))]})}),(0,K.jsx)(Dm,{children:I.map((t,n)=>{let a=D(t,n),o=i.includes(a);return(0,K.jsxs)(mO,{hover:!0,selected:o,onClick:()=>S?.(t,n),sx:{cursor:S?`pointer`:`default`},children:[r&&(0,K.jsx)(is,{padding:`checkbox`,children:(0,K.jsx)(Fc,{checked:o,onClick:e=>e.stopPropagation(),onChange:()=>j(a)})}),e.map(e=>{let r=t[e.id];return(0,K.jsx)(is,{align:e.align||`left`,children:e.render?e.render(t,n):e.format?e.format(r):String(r??``)},String(e.id))})]},a)})})]}),u&&(0,K.jsx)(rh,{component:`div`,count:F,page:d,rowsPerPage:f,rowsPerPageOptions:g,onPageChange:N,onRowsPerPageChange:P})]})}(0,G.forwardRef)(hO);function gO({tabs:e,value:t,defaultValue:n,onChange:r,children:i,keepMounted:a=!1,...o}){let[s,c]=(0,G.useState)(n??e?.[0]?.value??``),l=t??s,u=(0,G.useCallback)((e,n)=>{t===void 0&&c(n),r?.(n)},[t,r]),d=(0,G.useMemo)(()=>{if(e)return e;let t=[];return G.Children.forEach(i,e=>{if((0,G.isValidElement)(e)&&e.type===_O){let n=e.props;t.push({value:n.value,label:n.label??n.value,icon:n.icon,content:n.children,disabled:n.disabled})}}),t},[e,i]);return(0,K.jsxs)(B,{sx:{width:`100%`},children:[(0,K.jsx)(Mh,{value:l,onChange:u,...o,children:d.map(e=>(0,K.jsx)(rl,{value:e.value,label:e.label,icon:e.icon,iconPosition:`start`,disabled:e.disabled},e.value))}),d.map(e=>{let t=e.value===l;return!t&&!a?null:(0,K.jsx)(B,{role:`tabpanel`,hidden:!t,id:`tabpanel-${e.value}`,"aria-labelledby":`tab-${e.value}`,sx:{pt:2},children:e.content},e.value)})]})}function _O({children:e}){return(0,K.jsx)(K.Fragment,{children:e})}var vO=kt((0,K.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`ExpandMore`),yO=n(r(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(r):typeof e==`object`?t.exports=r():n.NProgress=r()})(e,function(){var e={};e.version=`0.2.0`;var t=e.settings={minimum:.08,easing:`ease`,positionUsing:``,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:`[role="bar"]`,spinnerSelector:`[role="spinner"]`,parent:`body`,template:`<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>`};e.configure=function(e){var n,r;for(n in e)r=e[n],r!==void 0&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=r===1?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,a(function(n){t.positionUsing===``&&(t.positionUsing=e.getPositioningCSS()),o(l,i(r,u,d)),r===1?(o(c,{transition:`none`,opacity:1}),c.offsetWidth,setTimeout(function(){o(c,{transition:`all `+u+`ms linear`,opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return typeof e.status==`number`},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var r=e.status;return r?(typeof t!=`number`&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},(function(){var t=0,n=0;e.promise=function(r){return!r||r.state()===`resolved`?this:(n===0&&e.start(),t++,n++,r.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)}),this)}})(),e.render=function(n){if(e.isRendered())return document.getElementById(`nprogress`);c(document.documentElement,`nprogress-busy`);var i=document.createElement(`div`);i.id=`nprogress`,i.innerHTML=t.template;var a=i.querySelector(t.barSelector),s=n?`-100`:r(e.status||0),l=document.querySelector(t.parent),u;return o(a,{transition:`all 0 linear`,transform:`translate3d(`+s+`%,0,0)`}),t.showSpinner||(u=i.querySelector(t.spinnerSelector),u&&d(u)),l!=document.body&&c(l,`nprogress-custom-parent`),l.appendChild(i),i},e.remove=function(){l(document.documentElement,`nprogress-busy`),l(document.querySelector(t.parent),`nprogress-custom-parent`);var e=document.getElementById(`nprogress`);e&&d(e)},e.isRendered=function(){return!!document.getElementById(`nprogress`)},e.getPositioningCSS=function(){var e=document.body.style,t=`WebkitTransform`in e?`Webkit`:`MozTransform`in e?`Moz`:`msTransform`in e?`ms`:`OTransform`in e?`O`:``;return t+`Perspective`in e?`translate3d`:t+`Transform`in e?`translate`:`margin`};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return(-1+e)*100}function i(e,n,i){var a=t.positionUsing===`translate3d`?{transform:`translate3d(`+r(e)+`%,0,0)`}:t.positionUsing===`translate`?{transform:`translate(`+r(e)+`%,0)`}:{"margin-left":r(e)+`%`};return a.transition=`all `+n+`ms `+i,a}var a=(function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),e.length==1&&t()}})(),o=(function(){var e=[`Webkit`,`O`,`Moz`,`ms`],t={};function n(e){return e.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function r(t){var n=document.body.style;if(t in n)return t;for(var r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1),a;r--;)if(a=e[r]+i,a in n)return a;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n=arguments,r,i;if(n.length==2)for(r in t)i=t[r],i!==void 0&&t.hasOwnProperty(r)&&a(e,r,i);else a(e,n[1],n[2])}})();function s(e,t){return(typeof e==`string`?e:u(e)).indexOf(` `+t+` `)>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n=u(e),r;s(e,t)&&(r=n.replace(` `+t+` `,` `),e.className=r.substring(1,r.length-1))}function u(e){return(` `+(e.className||``)+` `).replace(/\s+/gi,` `)}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})}))(),1),bO=`var(--prism-palette-primary-main, var(--palette-primary-main, #1976d2))`,xO=`
|
|
100
|
+
#nprogress {
|
|
101
|
+
top: 0;
|
|
102
|
+
left: 0;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 2.5px;
|
|
105
|
+
z-index: 9999;
|
|
106
|
+
position: fixed;
|
|
107
|
+
pointer-events: none;
|
|
108
|
+
}
|
|
109
|
+
#nprogress .bar {
|
|
110
|
+
height: 100%;
|
|
111
|
+
background-color: ${bO};
|
|
112
|
+
box-shadow: 0 0 2.5px ${bO};
|
|
113
|
+
}
|
|
114
|
+
#nprogress .peg {
|
|
115
|
+
right: 0;
|
|
116
|
+
opacity: 1;
|
|
117
|
+
width: 100px;
|
|
118
|
+
height: 100%;
|
|
119
|
+
display: block;
|
|
120
|
+
position: absolute;
|
|
121
|
+
transform: rotate(3deg) translate(0px, -4px);
|
|
122
|
+
box-shadow:
|
|
123
|
+
0 0 10px ${bO},
|
|
124
|
+
0 0 5px ${bO};
|
|
125
|
+
}
|
|
126
|
+
`;function SO(e){let t=e.getAttribute(`href`)?.trim()??``,n=e.getAttribute(`target`);return t.startsWith(`/`)&&n!==`_blank`}function CO(e,t){try{let n=new URL(e,window.location.origin),r=new URL(t,window.location.origin);return n.pathname===r.pathname&&n.search===r.search}catch{return e===t}}function wO(e,t){let n=(0,G.useRef)(``);(0,G.useEffect)(()=>{n.current=window.location.href},[]),(0,G.useEffect)(()=>{let e=e=>{e&&!CO(e,n.current)&&(n.current=e,yO.default.start())},t=t=>{let n=t.target.closest(`a[href]`);n&&SO(n)&&e(n.href)},r=()=>{e(window.location.href)},i=t=>{let n=window.history[t];window.history[t]=new Proxy(n,{apply:(t,n,r)=>{let i=r[2];return typeof i==`string`&&e(new URL(i,window.location.origin).href),t.apply(n,r)}})};return i(`pushState`),i(`replaceState`),document.addEventListener(`click`,t),window.addEventListener(`popstate`,r),()=>{document.removeEventListener(`click`,t),window.removeEventListener(`popstate`,r)}},[]),(0,G.useEffect)(()=>{let e=setTimeout(()=>yO.default.done(),t);return()=>clearTimeout(e)},[e,t])}function TO({pathname:e,delay:t=100}){return(0,G.useEffect)(()=>(yO.default.configure({showSpinner:!1}),()=>{yO.default.done()}),[]),wO(e,t),(0,K.jsx)(`style`,{children:xO})}function EO({pathname:e}){return(0,G.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var DO=kt((0,K.jsx)(`path`,{d:`M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z`}),`ContentCopy`);function OO(e){for(let t of[/at\s+(?:async\s+)?([^\s(]+)\s+\((.+?):(\d+):(\d+)\)/,/at\s+(.+?):(\d+):(\d+)/,/at\s+(?:async\s+)?(?:Module\.)?([^\s(]+)\s+\((.+?)\?[^:]*:(\d+):(\d+)\)/]){let n=e.match(t);if(n){let[,e,t,r,i]=n,a=t!==void 0,o=a?e:null,s=a?t:e,c=parseInt(a?r:t,10),l=parseInt(a?i:r,10),u=s.includes(`/src/`)||s.includes(`src/`)&&!s.includes(`node_modules`);return{functionName:o||null,filePath:kO(s),lineNumber:isNaN(c)?null:c,columnNumber:isNaN(l)?null:l,isAppCode:u}}}return null}function kO(e){let t=e.replace(/\?.*$/,``),n=t.indexOf(`/src/`);if(n!==-1)return t.slice(n+1);let r=t.split(`/`);return r.length>3?r.slice(-3).join(`/`):t}function AO(e){if(!e)return{primary:null,frames:[],raw:``};let t=e.split(`
|
|
127
|
+
`),n=[];for(let e of t){let t=OO(e.trim());t&&n.push(t)}return{primary:n.find(e=>e.isAppCode)??n[0]??null,frames:n,raw:e}}function jO(e){let{primary:t}=AO(e.stack);if(!t)return`Unknown location`;let n=[];if(t.functionName&&n.push(`in ${t.functionName}`),t.filePath){let e=t.lineNumber?`${t.filePath}:${t.lineNumber}`:t.filePath;n.push(`(${e})`)}return n.join(` `)||`Unknown location`}function MO({error:e,parsedStack:t,resetErrorBoundary:n,sx:r,showDetails:i}){let[a,o]=(0,G.useState)(!1),[s,c]=(0,G.useState)(!1),l=i??(typeof process<`u`&&!1),u=async()=>{try{let n=[`Error: ${e.message}`,`Location: ${jO(e)}`,``,`Stack Trace:`,t.raw].join(`
|
|
128
|
+
`);await navigator.clipboard.writeText(n),c(!0),setTimeout(()=>c(!1),2e3)}catch{}};return(0,K.jsxs)(B,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,minHeight:200,p:3,textAlign:`center`,...r},children:[(0,K.jsx)(nt,{variant:`h6`,color:`error`,gutterBottom:!0,children:`Something went wrong`}),(0,K.jsx)(nt,{variant:`body2`,color:`text.secondary`,sx:{mb:1,maxWidth:400},children:e.message||`An unexpected error occurred`}),l&&t.primary&&(0,K.jsxs)(nt,{variant:`caption`,color:`text.secondary`,sx:{mb:2,fontFamily:`monospace`},children:[t.primary.filePath,t.primary.lineNumber&&`:${t.primary.lineNumber}`,t.primary.functionName&&` (${t.primary.functionName})`]}),(0,K.jsxs)(B,{sx:{display:`flex`,gap:1,mb:2},children:[(0,K.jsx)(k,{variant:`outlined`,onClick:n,children:`Try Again`}),l&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(xt,{size:`small`,onClick:()=>o(!a),sx:{transform:a?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.2s`},children:(0,K.jsx)(vO,{})}),(0,K.jsx)(xt,{size:`small`,onClick:u,title:`Copy error details`,children:(0,K.jsx)(DO,{fontSize:`small`})}),s&&(0,K.jsx)(nt,{variant:`caption`,color:`success.main`,sx:{alignSelf:`center`},children:`Copied!`})]})]}),l&&(0,K.jsx)(Ni,{in:a,children:(0,K.jsx)(B,{sx:{mt:1,p:2,bgcolor:`grey.100`,borderRadius:1,maxWidth:600,maxHeight:300,overflow:`auto`,textAlign:`left`},children:(0,K.jsx)(nt,{variant:`caption`,component:`pre`,sx:{fontFamily:`monospace`,m:0},children:t.frames.map((e,t)=>(0,K.jsxs)(B,{component:`span`,sx:{display:`block`,color:e.isAppCode?`error.main`:`text.secondary`,fontWeight:e.isAppCode?600:400},children:[e.functionName||`(anonymous)`,` at `,e.filePath||`unknown`,e.lineNumber&&`:${e.lineNumber}`]},t))})})})]})}var NO=class extends G.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){let n=AO(e.stack);this.setState({errorInfo:t}),this.props.onError?.(e,t,n)}componentDidUpdate(e){let{resetKeys:t}=this.props,{hasError:n}=this.state;n&&t&&e.resetKeys&&t.some((t,n)=>t!==e.resetKeys?.[n])&&this.resetErrorBoundary()}resetErrorBoundary=()=>{this.props.onReset?.(),this.setState({hasError:!1,error:null,errorInfo:null})};render(){let{hasError:e,error:t,errorInfo:n}=this.state,{children:r,fallback:i,sx:a,showDetails:o}=this.props;if(e&&t){let e={error:t,errorInfo:n,parsedStack:AO(t.stack),resetErrorBoundary:this.resetErrorBoundary};return typeof i==`function`?i(e):i||(0,K.jsx)(MO,{...e,sx:a,showDetails:o})}return r}};(0,G.createContext)(null);var PO=U(`div`)(({theme:e})=>({display:`flex`,flexDirection:`column`,gap:e.spacing(2)})),FO=U(`h6`)(({theme:e})=>({...e.typography.h4,margin:0,padding:0,display:`inline-flex`})),IO=U(`div`)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:e.spacing(2),alignItems:`flex-start`,justifyContent:`flex-end`})),LO=U(`div`)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,gap:e.spacing(2),flexDirection:`column`})),RO=U(`span`)(({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:e.palette.text.disabled})),zO=U(`div`,{shouldForwardProp:e=>e!==`disabled`})(({disabled:e,theme:t})=>({...t.typography.body2,alignItems:`center`,gap:t.spacing(.5),display:`inline-flex`,color:t.palette.text.primary,...e&&{cursor:`default`,pointerEvents:`none`,color:t.palette.text.disabled}})),BO=U(`span`)({display:`inherit`,"& > :first-of-type:not(style):not(:first-of-type ~ *)":{width:20,height:20}}),VO=U(`ul`)({display:`flex`,flexDirection:`column`,"& > li":{display:`flex`}});function HO(){return(0,K.jsx)(Ge,{sx:{fontSize:18},children:(0,K.jsx)(`path`,{d:`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z`})})}function UO({href:e,label:t,sx:n,linkComponent:r}){let i=r?{component:r,to:e}:{href:e};return(0,K.jsxs)(op,{color:`inherit`,underline:`none`,sx:[e=>({verticalAlign:`middle`,display:`inline-flex`,alignItems:`center`,"& .PrismBackLinkIcon":{verticalAlign:`inherit`,transform:`translateY(-1px)`,ml:{xs:`-14px`,md:`-18px`},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},"&:hover .PrismBackLinkIcon":{opacity:.48}}),...Array.isArray(n)?n:[n]],...i,children:[(0,K.jsx)(`span`,{className:`PrismBackLinkIcon`,children:(0,K.jsx)(HO,{})}),t]})}function WO({href:e,icon:t,name:n,disabled:r,linkComponent:i}){let a=(0,K.jsxs)(zO,{disabled:r,children:[t&&(0,K.jsx)(BO,{children:t}),n]});return e&&!r?(0,K.jsx)(op,{color:`inherit`,sx:{display:`inline-flex`},...i?{component:i,to:e}:{href:e},children:a}):a}function GO({links:e,sx:t,...n}){return(0,K.jsx)(VO,{sx:t,...n,children:e?.map(e=>(0,K.jsx)(`li`,{children:(0,K.jsx)(op,{href:e,variant:`body2`,target:`_blank`,rel:`noopener noreferrer`,children:e})},e))})}function KO({sx:e,action:t,backHref:n,heading:r,slots:i={},links:a=[],moreLinks:o=[],slotProps:s={},activeLast:c=!1,linkComponent:l,...u}){let d=a[a.length-1]?.name,f=()=>(0,K.jsx)(FO,{...s?.heading,children:n?(0,K.jsx)(UO,{href:n,label:r,linkComponent:l}):r}),p=()=>i?.breadcrumbs??(0,K.jsx)(Wd,{separator:(0,K.jsx)(RO,{}),...s?.breadcrumbs,children:a.map((e,t)=>(0,K.jsx)(WO,{icon:e.icon,href:e.href,name:e.name,disabled:e.name===d&&!c,linkComponent:l},e.name??t))}),m=()=>(0,K.jsx)(GO,{links:o,...s?.moreLinks});return(0,K.jsxs)(PO,{sx:e,...u,children:[(0,K.jsxs)(IO,{...s?.container,children:[(0,K.jsxs)(LO,{...s?.content,children:[(r||n)&&f(),(!!a.length||i?.breadcrumbs)&&p()]}),t]}),!!o?.length&&m()]})}function qO({steps:e,activeStep:t=0,onStepChange:n,orientation:r=`horizontal`,nonLinear:i=!1,alternativeLabel:a=!1,showContent:o=!1,...s}){let c=e=>{i&&n&&n(e)};return(0,K.jsx)(gm,{activeStep:t,orientation:r,nonLinear:i,alternativeLabel:a,...s,children:e.map((e,n)=>(0,K.jsxs)(tm,{completed:e.completed??n<t,children:[(0,K.jsx)(ws,{optional:e.optional?(0,K.jsx)(`span`,{style:{fontSize:`0.75rem`,color:`text.secondary`},children:`Optional`}):e.description?(0,K.jsx)(`span`,{style:{fontSize:`0.75rem`,color:`text.secondary`},children:e.description}):void 0,error:e.error,icon:e.icon,sx:{cursor:i?`pointer`:`default`},onClick:()=>c(n),children:e.label}),r===`vertical`&&o&&e.content&&(0,K.jsx)(dm,{children:e.content})]},n))})}function JO({initialStep:e=0,totalSteps:t,onStepChange:n,onComplete:r}){let[i,a]=(0,G.useState)(e),[o,s]=(0,G.useState)(!1),c=(0,G.useCallback)(e=>{e>=0&&e<t&&(a(e),n?.(e))},[t,n]);return{activeStep:i,nextStep:(0,G.useCallback)(()=>{i===t-1?(s(!0),r?.()):c(i+1)},[i,t,c,r]),prevStep:(0,G.useCallback)(()=>{c(i-1)},[i,c]),goToStep:c,reset:(0,G.useCallback)(()=>{a(0),s(!1),n?.(0)},[n]),isFirstStep:i===0,isLastStep:i===t-1,isCompleted:o}}function YO(...e){return R(e)}J(`chart__root`),J(`chart__loading`),J(`chart__legends__root`),J(`chart__legends__item__wrap`),J(`chart__legends__item__root`),J(`chart__legends__item__dot`),J(`chart__legends__item__icon`),J(`chart__legends__item__label`),J(`chart__legends__item__value`),U(`ul`)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:e.spacing(2),margin:0,padding:0,listStyle:`none`})),U(`li`)({display:`inline-flex`,flexDirection:`column`}),U(`div`)(({theme:e})=>({gap:6,alignItems:`center`,display:`inline-flex`,justifyContent:`flex-start`,fontSize:e.typography.pxToRem(13),fontWeight:e.typography.fontWeightMedium})),U(`span`)({display:`inline-flex`,color:`var(--icon-color)`,"& > svg":{width:20,height:20}}),U(`span`)({width:12,height:12,flexShrink:0,display:`flex`,borderRadius:`50%`,position:`relative`,alignItems:`center`,justifyContent:`center`,color:`var(--icon-color)`,backgroundColor:`currentColor`}),U(`span`)({flexShrink:0}),U(`span`)(({theme:e})=>({...e.typography.h6,marginTop:e.spacing(1)})),(0,G.lazy)(()=>De(()=>import(`./react-apexcharts.esm-CLO6gala.js`).then(e=>({default:e.default})),__vite__mapDeps([0,1]))),U(`div`)(({theme:e})=>({width:`100%`,flexShrink:0,position:`relative`,borderRadius:Number(e.shape.borderRadius)*1.5})),J(`lightbox__root`),J(`lightbox__backdrop`),J(`lightbox__container`),J(`lightbox__slide`),J(`lightbox__slide--active`),J(`lightbox__image`),J(`lightbox__video`),J(`lightbox__caption`),J(`lightbox__toolbar`),J(`lightbox__toolbar--top`),J(`lightbox__toolbar--bottom`),J(`lightbox__toolbar__button`),J(`lightbox__nav`),J(`lightbox__nav--prev`),J(`lightbox__nav--next`),J(`lightbox__counter`),J(`lightbox__thumbnails`),J(`lightbox__thumbnail`),J(`lightbox__thumbnail--active`),J(`lightbox__zoom`),J(`lightbox__zoomed`),J(`lightbox__loading`),J(`lightbox__error`),U(wf)(({theme:e})=>({"& .MuiDialog-paper":{backgroundColor:`transparent`,boxShadow:`none`,margin:0,maxWidth:`100%`,maxHeight:`100%`,borderRadius:0},"& .MuiBackdrop-root":{backgroundColor:W(e.palette.common.black,.92),backdropFilter:`blur(8px)`}})),U(B)({display:`flex`,flexDirection:`column`,width:`100vw`,height:`100vh`,position:`relative`,overflow:`hidden`,userSelect:`none`}),U(B)(({theme:e,placement:t})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5),padding:e.spacing(1,1.5),position:`absolute`,left:0,right:0,zIndex:10,...t===`top`&&{top:0},...t===`bottom`&&{bottom:0},background:`linear-gradient(${t===`top`?`to bottom`:`to top`}, ${W(e.palette.common.black,.55)} 0%, ${W(e.palette.common.black,.2)} 60%, transparent 100%)`,transition:`opacity 0.3s ease`})),U(xt)(({theme:e})=>({color:W(e.palette.common.white,.85),borderRadius:Number(e.shape.borderRadius)*1.5,padding:6,transition:e.transitions.create([`background-color`,`color`,`transform`],{duration:200}),"&:hover":{backgroundColor:W(e.palette.common.white,.12),color:e.palette.common.white,transform:`scale(1.05)`},"&:active":{transform:`scale(0.95)`},"&.Mui-disabled":{color:W(e.palette.common.white,.2)}})),U(nt)(({theme:e})=>({color:W(e.palette.common.white,.9),fontSize:`0.75rem`,fontWeight:600,fontVariantNumeric:`tabular-nums`,padding:e.spacing(.375,1),borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:W(e.palette.common.white,.1),backdropFilter:`blur(12px)`,border:`1px solid ${W(e.palette.common.white,.08)}`,display:`flex`,alignItems:`center`,letterSpacing:`0.02em`})),U(B)({flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,overflow:`hidden`}),U(B)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,willChange:`opacity, transform`}),U(B)({position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5}),U(`img`)({maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,willChange:`transform, opacity`,borderRadius:2}),U(B)({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,maxWidth:`100%`,maxHeight:`100%`}),U(`video`)(({theme:e})=>({maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,willChange:`transform`,borderRadius:4,"&::-webkit-media-controls-panel":{backgroundColor:W(e.palette.common.black,.6),backdropFilter:`blur(8px)`},"&::-webkit-media-controls-current-time-display, &::-webkit-media-controls-time-remaining-display":{color:e.palette.common.white,fontSize:12}})),U(B)(({theme:e})=>({position:`absolute`,bottom:e.spacing(2.5),left:`50%`,transform:`translateX(-50%)`,textAlign:`center`,color:e.palette.common.white,padding:e.spacing(1,2.5),borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:W(e.palette.common.black,.45),backdropFilter:`blur(16px)`,border:`1px solid ${W(e.palette.common.white,.08)}`,maxWidth:`70%`,zIndex:5,animation:`lightboxCaptionIn 0.3s ease-out`,"@keyframes lightboxCaptionIn":{from:{opacity:0,transform:`translateX(-50%) translateY(8px)`},to:{opacity:1,transform:`translateX(-50%) translateY(0)`}}})),U(xt)(({theme:e,side:t})=>({position:`absolute`,top:`50%`,transform:`translateY(-50%)`,color:W(e.palette.common.white,.85),zIndex:10,width:44,height:44,borderRadius:`50%`,backgroundColor:W(e.palette.common.white,.08),backdropFilter:`blur(12px)`,border:`1px solid ${W(e.palette.common.white,.06)}`,...t===`left`&&{left:e.spacing(2)},...t===`right`&&{right:e.spacing(2)},transition:e.transitions.create([`background-color`,`color`,`transform`,`box-shadow`],{duration:200}),"&:hover":{backgroundColor:W(e.palette.common.white,.16),color:e.palette.common.white,transform:`translateY(-50%) scale(1.08)`,boxShadow:`0 0 20px ${W(e.palette.primary.main,.15)}`},"&:active":{transform:`translateY(-50%) scale(0.95)`}})),U(B)(({theme:e})=>({display:`flex`,gap:e.spacing(.75),padding:e.spacing(1,2),justifyContent:`center`,overflowX:`auto`,backgroundColor:W(e.palette.common.black,.5),backdropFilter:`blur(12px)`,borderTop:`1px solid ${W(e.palette.common.white,.06)}`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}})),U(B)(({theme:e,active:t})=>({flexShrink:0,width:56,height:56,borderRadius:Number(e.shape.borderRadius)*1.5,overflow:`hidden`,cursor:`pointer`,position:`relative`,border:`2px solid ${t?e.palette.primary.main:W(e.palette.common.white,.08)}`,opacity:t?1:.55,transform:t?`scale(1)`:`scale(0.92)`,transition:e.transitions.create([`border-color`,`opacity`,`transform`,`box-shadow`],{duration:200,easing:`cubic-bezier(0.4, 0, 0.2, 1)`}),...t&&{boxShadow:`0 0 12px ${W(e.palette.primary.main,.3)}`},"& img":{width:`100%`,height:`100%`,objectFit:`cover`},"&:hover":{opacity:1,transform:`scale(1)`,borderColor:t?e.palette.primary.main:W(e.palette.common.white,.25)}})),J(`carousel__root`),J(`carousel__container`),J(`carousel__track`),J(`carousel__slide`),J(`carousel__slide--active`),J(`carousel__slide--prev`),J(`carousel__slide--next`),J(`carousel__arrow`),J(`carousel__arrow--prev`),J(`carousel__arrow--next`),J(`carousel__arrow--inside`),J(`carousel__arrow--outside`),J(`carousel__arrow--disabled`),J(`carousel__dots`),J(`carousel__dots--top`),J(`carousel__dots--bottom`),J(`carousel__dots--left`),J(`carousel__dots--right`),J(`carousel__dot`),J(`carousel__dot--active`),J(`carousel__horizontal`),J(`carousel__vertical`),J(`carousel__dragging`),J(`carousel__fade`),U(B)({position:`relative`,width:`100%`,overflow:`hidden`,outline:`none`}),U(B)({position:`relative`,width:`100%`,overflow:`hidden`}),U(B)({display:`flex`,width:`100%`,willChange:`transform`,userSelect:`none`}),U(B)({flexShrink:0,"& > *":{width:`100%`,height:`100%`}}),U(xt)(({theme:e,isHorizontal:t,direction:n})=>({position:`absolute`,zIndex:10,backgroundColor:W(e.palette.background.paper,.9),boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:W(e.palette.background.paper,.5)},...t?{top:`50%`,transform:`translateY(-50%)`,...n===`prev`?{left:8}:{right:8}}:{left:`50%`,transform:`translateX(-50%)`,...n===`prev`?{top:8}:{bottom:8}}})),U(B)(({theme:e,dotsPosition:t})=>({display:`flex`,gap:e.spacing(1),position:`absolute`,zIndex:10,...t===`bottom`&&{bottom:e.spacing(2),left:`50%`,transform:`translateX(-50%)`,flexDirection:`row`},...t===`top`&&{top:e.spacing(2),left:`50%`,transform:`translateX(-50%)`,flexDirection:`row`},...t===`left`&&{left:e.spacing(2),top:`50%`,transform:`translateY(-50%)`,flexDirection:`column`},...t===`right`&&{right:e.spacing(2),top:`50%`,transform:`translateY(-50%)`,flexDirection:`column`}})),U(`button`)(({theme:e,active:t})=>({width:8,height:8,padding:0,border:`none`,borderRadius:`50%`,cursor:`pointer`,backgroundColor:t?e.palette.primary.main:W(e.palette.common.black,.3),transition:e.transitions.create([`background-color`,`transform`],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:t?e.palette.primary.main:W(e.palette.common.black,.5),transform:`scale(1.2)`}}));var XO=kD(`nav-section`,[`root`,`vertical`,`horizontal`,`mini`,`ul`,`li`,`subheader`,`item`,`icon`,`texts`,`title`,`caption`,`info`,`arrow`,`active`,`disabled`,`open`]);(0,G.forwardRef)(function({className:e,sx:t,...n},r){return(0,K.jsx)(B,{component:`nav`,ref:r,className:YO(XO.root,e),sx:[{flexShrink:0,display:`flex`,flexDirection:`column`},...Array.isArray(t)?t:[t]],...n})}),(0,G.forwardRef)(function({className:e,sx:t,...n},r){return(0,K.jsx)(B,{component:`ul`,ref:r,className:YO(XO.ul,e),sx:[{display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0},...Array.isArray(t)?t:[t]],...n})}),(0,G.forwardRef)(function({className:e,...t},n){return(0,K.jsx)(B,{component:`li`,ref:n,className:YO(XO.li,e),sx:{display:`flex`,flexDirection:`column`},...t})});var ZO=U(Qe)(({theme:e})=>({width:`100%`,cursor:`pointer`,padding:`var(--nav-subheader-padding, 8px 8px 8px 12px)`,display:`flex`,alignItems:`center`,justifyContent:`flex-start`,fontSize:`var(--nav-subheader-font-size, 0.6875rem)`,fontWeight:`var(--nav-subheader-font-weight, 700)`,color:`var(--nav-subheader-color, inherit)`,textTransform:`uppercase`,letterSpacing:`0.08em`,borderRadius:e.shape.borderRadius,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:W(e.palette.grey[500],.08)}})),QO=U(`span`)(({open:e})=>({marginLeft:`auto`,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(0deg)`:`rotate(-90deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 1.5px 1.5px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}}));(0,G.forwardRef)(function({className:e,open:t,onClick:n,children:r,...i},a){return(0,K.jsxs)(ZO,{ref:a,className:YO(XO.subheader,e),onClick:n,...i,children:[r,n&&(0,K.jsx)(QO,{open:t})]})});var $O=U(Qe,{shouldForwardProp:e=>![`active`,`open`,`depth`,`hasChild`].includes(e)})(({theme:e,active:t,open:n,depth:r=1,hasChild:i})=>({width:`100%`,minHeight:`var(--nav-item-min-height, 44px)`,padding:r===1?`var(--nav-item-padding)`:`var(--nav-sub-item-padding)`,marginLeft:r>1?`calc(var(--nav-sub-item-margin-left, 40px) * ${r-1})`:0,borderRadius:`var(--nav-item-radius, ${e.shape.borderRadius}px)`,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg, transparent)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`,"& .nav-icon":{color:`var(--nav-icon-active-color)`}},...n&&{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},"&.Mui-disabled":{color:`var(--nav-item-disabled-color)`,pointerEvents:`none`}})),ek=(0,G.forwardRef)(function({className:e,active:t,disabled:n,open:r,depth:i,hasChild:a,...o},s){return(0,K.jsx)($O,{ref:s,className:YO(XO.item,t&&XO.active,n&&XO.disabled,r&&XO.open,e),active:t,open:r,depth:i,hasChild:a,disabled:n,...o})}),tk=U(`span`)({width:`var(--nav-icon-size, 24px)`,height:`var(--nav-icon-size, 24px)`,flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,margin:`var(--nav-icon-margin, 0 16px 0 0)`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}});function nk({icon:e,className:t}){return e?(0,K.jsx)(tk,{className:YO(`nav-icon`,XO.icon,t),children:e}):null}var rk=U(`span`)({flex:`1 1 auto`,display:`flex`,flexDirection:`column`,alignItems:`flex-start`,minWidth:0}),ik=U(`span`)({fontSize:`var(--nav-item-font-size, 0.875rem)`,fontWeight:500,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,lineHeight:1.5}),ak=U(`span`)(({theme:e})=>({fontSize:`var(--nav-item-caption-size, 0.75rem)`,color:e.palette.text.disabled,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,lineHeight:1.5}));function ok({title:e,caption:t,className:n}){return(0,K.jsxs)(rk,{className:YO(XO.texts,n),children:[(0,K.jsx)(ik,{className:XO.title,children:e}),t&&(0,K.jsx)(ak,{className:XO.caption,children:t})]})}var sk=U(`span`)(({open:e,direction:t=`right`})=>({width:16,height:16,flexShrink:0,marginLeft:6,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?t===`down`?`rotate(180deg)`:`rotate(90deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:5,height:5,borderStyle:`solid`,borderWidth:`0 1.5px 1.5px 0`,borderColor:`currentColor`,transform:`rotate(45deg)`}}));function ck({open:e,direction:t=`right`,className:n}){return(0,K.jsx)(sk,{className:YO(XO.arrow,n),open:e,direction:t})}var lk=U(`span`)({marginLeft:6,display:`inline-flex`,alignItems:`center`});function uk({info:e,className:t}){return e?(0,K.jsx)(lk,{className:YO(XO.info,t),children:e}):null}function dk(e){return/^https?:\/\//.test(e)}function fk(e,t){if(e)return typeof e==`string`&&t?.navIcon?t.navIcon[e]:e}function pk(e,t){if(e)return Array.isArray(e)&&t?.navInfo?(0,K.jsx)(K.Fragment,{children:e.map(e=>t.navInfo?.(e)).map((e,t)=>(0,K.jsx)(B,{component:`span`,children:e&&Object.values(e)[0]},t))}):e}(0,G.forwardRef)(function(e,t){let{path:n,title:r,icon:i,info:a,caption:o,disabled:s,children:c,open:l,active:u,depth:d=1,hasChild:f,externalLink:p,enabledRootRedirect:m,render:h,slotProps:g,onClick:_,...v}=e,y=(0,G.useMemo)(()=>fk(i,h),[i,h]),b=(0,G.useMemo)(()=>pk(a,h),[a,h]),x=p??dk(n),S=!s&&(m||!f||d>1),C=x?{component:`a`,href:n,target:`_blank`,rel:`noopener noreferrer`}:{},w=(0,K.jsxs)(ek,{ref:t,active:u,disabled:s,open:l,depth:d,hasChild:f,onClick:S?_:void 0,sx:g?.sx,...C,...v,children:[(0,K.jsx)(nk,{icon:y,className:g?.icon}),(0,K.jsx)(ok,{title:r,caption:o,className:g?.texts}),b&&(0,K.jsx)(uk,{info:b,className:g?.info}),f&&(0,K.jsx)(ck,{open:l,className:g?.arrow})]});return o&&d===1?(0,K.jsx)(Zp,{title:o,placement:`right`,arrow:!0,children:w}):w}),(0,G.createContext)(void 0),U(ek)(({theme:e})=>({flexDirection:`column`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,padding:`var(--nav-item-padding, 8px)`,gap:4})),U(`span`)({fontSize:`var(--nav-item-font-size, 0.625rem)`,fontWeight:500,lineHeight:1.5,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`});var mk=n(r(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ee=I(`//`,`$`),te=I(`/\\*`,`\\*/`),ne=I(`#`,`$`),re={scope:`number`,begin:D,relevance:0},ie={scope:`number`,begin:O,relevance:0},ae={scope:`number`,begin:k,relevance:0},oe={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},se={scope:`title`,begin:T,relevance:0},ce={scope:`title`,begin:E,relevance:0},le={begin:`\\.\\s*`+E,relevance:0},ue=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:ae,BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:te,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:ie,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:ne,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:le,NUMBER_MODE:re,NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:oe,RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:se,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:ce});function de(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function fe(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function pe(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=de,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function me(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function he(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function ge(e,t){e.relevance===void 0&&(e.relevance=1)}var _e=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ve=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],ye=`keyword`;function be(e,t,n=ye){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,be(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,xe(n[0],n[1])]})}}function xe(e,t){return t?Number(t):Se(e)?0:1}function Se(e){return ve.includes(e.toLowerCase())}var Ce={},we=e=>{console.error(e)},Te=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ee=(e,t)=>{Ce[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ce[`${e}/${t}`]=!0)},De=Error();function Oe(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function ke(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw we(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),De;if(typeof e.beginScope!=`object`||e.beginScope===null)throw we(`beginScope must be object`),De;Oe(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function Ae(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw we(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),De;if(typeof e.endScope!=`object`||e.endScope===null)throw we(`endScope must be object`),De;Oe(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function je(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function L(e){je(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),ke(e),Ae(e)}function Me(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null),this.matcherRe=t(C(this.regexes.map(e=>e[1]),{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[fe,he,L,_e].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[pe,me,ge].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=be(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Pe(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Ne(e){return e?e.endsWithParent||Ne(e.starts):!1}function Pe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ne(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Fe=`11.11.1`,Ie=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Le=i,Re=a,ze=Symbol(`nomatch`),Be=7,Ve=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(Te(s.replace(`{}`,n[1])),Te(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(Ee(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),Ee(`10.7.0`,`Please use highlight(code, options) instead.
|
|
129
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};ne(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,ne(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Be&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(te=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return ze;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==ze)return e}if(r.type===`illegal`&&a===``)return P+=`
|
|
130
|
+
`,1;if(ee>1e5&&ee>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw we(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Me(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,ee=0,te=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){ee++,te?te=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Le(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:Le(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:Le(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(ne(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new Ie(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),ne(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=Re(l,e)}let E=()=>{k(),Ee(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),Ee(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(we(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)we(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ee(e){I(e),a.push(e)}function te(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function ne(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function re(e){return Ee(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),Ee(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:re,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:Re,addPlugin:ee,removePlugin:te}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Fe,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in ue)typeof ue[e]==`object`&&n(ue[e]);return Object.assign(e,ue),e},He=Ve({});He.newInstance=()=>Ve({}),t.exports=He,He.HighlightJS=He,He.default=He}))()).default;function hk(e){this.content=e}hk.prototype={constructor:hk,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new hk(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new hk(n)},addToStart:function(e,t){return new hk([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new hk(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new hk(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=hk.from(e),e.size?new hk(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=hk.from(e),e.size?new hk(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=hk.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},hk.from=function(e){if(e instanceof hk)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new hk(t)};function gk(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=gk(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function _k(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=0,t=Math.min(o.text.length,s.text.length);for(;e<t&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let e=_k(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}var Y=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return gk(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return _k(this,e,t,n)}findIndex(e){if(e==0)return yk(0,e);if(e==this.size)return yk(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?yk(t+1,i):yk(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return new e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};Y.empty=new Y([],0);var vk={index:0,offset:0};function yk(e,t){return vk.index=e,vk.offset=t,vk}function bk(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!bk(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!bk(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var xk=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&bk(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};xk.none=[];var Sk=class extends Error{},X=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=wk(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Ck(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(Y.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};X.empty=new X(Y.empty,0,0);function Ck(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Ck(a.content,t-i-1,n-i-1)))}function wk(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=wk(o.content,t-a-1,n,o);return s&&e.replaceChild(i,o.copy(s))}function Tk(e,t,n){if(n.openStart>e.depth)throw new Sk(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Sk(`Inconsistent open depths`);return Ek(e,t,n,0)}function Ek(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=Ek(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return jk(a,Nk(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return jk(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Pk(n,e);return jk(a,Mk(e,i,o,t,r))}}function Dk(e,t){if(!t.type.compatibleContent(e.type))throw new Sk(`Cannot join `+t.type.name+` onto `+e.type.name)}function Ok(e,t,n){let r=e.node(n);return Dk(r,t.node(n)),r}function kk(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ak(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(kk(e.nodeAfter,r),a++));for(let e=a;e<o;e++)kk(i.child(e),r);t&&t.depth==n&&t.textOffset&&kk(t.nodeBefore,r)}function jk(e,t){return e.type.checkContent(t),e.copy(t)}function Mk(e,t,n,r,i){let a=e.depth>i&&Ok(e,t,i+1),o=r.depth>i&&Ok(n,r,i+1),s=[];return Ak(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Dk(a,o),kk(jk(a,Mk(e,t,n,r,i+1)),s)):(a&&kk(jk(a,Nk(e,t,i+1)),s),Ak(t,n,i,s),o&&kk(jk(o,Nk(n,r,i+1)),s)),Ak(r,null,i,s),new Y(s)}function Nk(e,t,n){let r=[];return Ak(null,e,n,r),e.depth>n&&kk(jk(Ok(e,t,n+1),Nk(e,t,n+1)),r),Ak(t,null,n,r),new Y(r)}function Pk(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(Y.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Fk=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return xk.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new zk(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Rk.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else Rk.set(t,r=new Ik);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Lk,i}},Ik=class{constructor(){this.elts=[],this.i=0}},Lk=12,Rk=new WeakMap,zk=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Bk=Object.create(null),Vk=class e{constructor(e,t,n,r=xk.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||Y.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&bk(this.attrs,t||e.defaultAttrs||Bk)&&xk.sameSet(this.marks,n||xk.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return X.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new X(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Tk(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Fk.resolveCached(this,e)}resolveNoCache(e){return Fk.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Uk(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=Y.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=xk.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!xk.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=Y.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Vk.prototype.text=void 0;var Hk=class e extends Vk{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Uk(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Uk(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Wk=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Gk(t,n);if(r.next==null)return e.empty;let i=Kk(r);r.next&&r.err(`Unexpected trailing text`);let a=nA($k(i));return rA(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return Y.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
131
|
+
`)}};Wk.empty=new Wk(!0);var Gk=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Kk(e){let t=[];do t.push(qk(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function qk(e){let t=[];do t.push(Jk(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Jk(e){let t=Qk(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Xk(e,t);else break;return t}function Yk(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Xk(e,t){let n=Yk(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Yk(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Zk(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Qk(e){if(e.eat(`(`)){let t=Kk(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Zk(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function $k(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function eA(e,t){return t-e}function tA(e,t){let n=[];return r(t),n.sort(eA);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function nA(e){let t=Object.create(null);return n(tA(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);tA(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Wk(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(eA);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function rA(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function iA(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function aA(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function oA(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function sA(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new uA(e,r,t[r]);return n}var cA=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=sA(e,n.attrs),this.defaultAttrs=iA(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Wk.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:aA(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Vk(this,this.computeAttrs(e),Y.from(t),xk.setFrom(n))}createChecked(e=null,t,n){return t=Y.from(t),this.checkContent(t),new Vk(this,this.computeAttrs(e),t,xk.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=Y.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(Y.empty,!0);return i?new Vk(this,e,t.append(i),xk.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){oA(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:xk.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function lA(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var uA=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?lA(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},dA=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=sA(e,r.attrs),this.excluded=null;let i=iA(this.attrs);this.instance=i?new xk(this,i):null}create(e=null){return!e&&this.instance?this.instance:new xk(this,aA(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){oA(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},fA=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=hk.from(e.nodes),t.marks=hk.from(e.marks||{}),this.nodes=cA.compile(this.spec.nodes,this),this.marks=dA.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Wk.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?pA(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:pA(this,n.split(` `))}this.nodeFromJSON=e=>Vk.fromJSON(this,e),this.markFromJSON=e=>xk.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof cA))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Hk(n,n.defaultAttrs,e,xk.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function pA(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function mA(e){return e.tag!=null}function hA(e){return e.style!=null}var gA=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(mA(e))this.tags.push(e);else if(hA(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new TA(this,t,!1);return n.addAll(e,xk.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new TA(this,t,!0);return n.addAll(e,xk.none,t.from,t.to),X.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(DA(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=OA(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=OA(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},_A={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},vA={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},yA={ol:!0,ul:!0},bA=1,xA=2,SA=4;function CA(e,t,n){return t==null?e&&e.whitespace==`pre`?bA|xA:n&~SA:(t?bA:0)|(t===`full`?xA:0)}var wA=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=xk.none,this.match=i||(a&SA?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Y.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&bA)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=Y.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!_A.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},TA=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=CA(null,t.preserveWhitespace,0)|(n?SA:0);i=r?new wA(r.type,r.attrs,xk.none,!0,t.topMatch||r.type.contentMatch,a):n?new wA(null,null,xk.none,!0,null,a):new wA(e.schema.topNodeType,null,xk.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&xA?`full`:this.localPreserveWS||(r.options&bA)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
|
|
132
|
+
`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;yA.hasOwnProperty(a)&&this.parser.normalizeLists&&EA(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:vA.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(_A.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
133
|
+
`),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=xk.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):kA(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=CA(e,i,a.options);a.options&SA&&a.content.length==0&&(o|=SA);let s=xk.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):kA(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new wA(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=bA);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function EA(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&yA.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function DA(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function OA(e){let t={};for(let n in e)t[n]=e[n];return t}function kA(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var AA=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=MA(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=IA(MA(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&IA(MA(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return IA(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=jA(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return jA(e.marks)}};function jA(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function MA(e){return e.document||window.document}var NA=new WeakMap;function PA(e){let t=NA.get(e);return t===void 0&&NA.set(e,t=FA(e)),t}function FA(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function IA(e,t,n,r){if(typeof t==`string`)return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=PA(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else{let{dom:t,contentDOM:i}=IA(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var LA=65535,RA=2**16;function zA(e,t){return e+t*RA}function BA(e){return e&LA}function VA(e){return(e-(e&LA))/RA}var HA=1,UA=2,WA=4,GA=8,KA=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&GA)>0}get deletedBefore(){return(this.delInfo&(HA|WA))>0}get deletedAfter(){return(this.delInfo&(UA|WA))>0}get deletedAcross(){return(this.delInfo&WA)>0}},qA=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=BA(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+VA(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:zA(o/3,e-s),f=e==s?UA:e==u?HA:WA;return(t<0?e!=s:e!=u)&&(f|=GA),new KA(a,f,d)}r+=l-c}return n?e+r:new KA(e+r,0,null)}touches(e,t){let n=0,r=BA(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};qA.empty=new qA([]);var JA=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new KA(e,r,null)}},YA=Object.create(null),XA=class{getMap(){return qA.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=YA[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in YA)throw RangeError(`Duplicate use of step JSON ID `+e);return YA[e]=t,t.prototype.jsonID=e,t}},ZA=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof Sk)return e.fail(t.message);throw t}}};function QA(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(QA(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return Y.fromArray(r)}var $A=class e extends XA{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new X(QA(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return ZA.fromReplace(e,this.from,this.to,i)}invert(){return new ej(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};XA.jsonID(`addMark`,$A);var ej=class e extends XA{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new X(QA(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return ZA.fromReplace(e,this.from,this.to,n)}invert(){return new $A(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};XA.jsonID(`removeMark`,ej);var tj=class e extends XA{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return ZA.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return ZA.fromReplace(e,this.pos,this.pos+1,new X(Y.from(n),0,t.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new nj(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};XA.jsonID(`addNodeMark`,tj);var nj=class e extends XA{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return ZA.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return ZA.fromReplace(e,this.pos,this.pos+1,new X(Y.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new tj(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};XA.jsonID(`removeNodeMark`,nj);var rj=class e extends XA{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&aj(e,this.from,this.to)?ZA.fail(`Structure replace would overwrite content`):ZA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new qA([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?X.empty:new X(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?X.empty:new X(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,X.fromJSON(t,n.slice),!!n.structure)}};rj.MAP_BIAS=1,XA.jsonID(`replace`,rj);var ij=class e extends XA{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(aj(e,this.from,this.gapFrom)||aj(e,this.gapTo,this.to)))return ZA.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return ZA.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?ZA.fromReplace(e,this.from,this.to,n):ZA.fail(`Content does not fit in gap`)}getMap(){return new qA([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,X.fromJSON(t,n.slice),n.insert,!!n.structure)}};XA.jsonID(`replaceAround`,ij);function aj(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function oj(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new ej(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new $A(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function sj(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof dA){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new ej(t.from,t.to,t.style)))}function cj(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new rj(s,l,X.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new ej(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new X(Y.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new rj(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(Y.empty,!0);e.replace(s,s,new X(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function lj(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function uj(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!lj(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function dj(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=Y.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=Y.from(r.node(e).copy(u)),d++):c--;let f=Y.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=Y.from(i.node(e).copy(f)),p++):l++;e.step(new ij(c,l,o,s,new X(u.append(f),d,p),u.size-d,!0))}function fj(e,t,n=null,r=e){let i=mj(e,t),a=i&&hj(r,t);return a?i.map(pj).concat({type:t,attrs:n}).concat(a.map(pj)):null}function pj(e){return{type:e,attrs:null}}function mj(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function hj(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function gj(e,t,n){let r=Y.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=Y.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new ij(i,a,i,a,new X(r,0,0),n.length,!0))}function _j(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&bj(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&yj(e,t,n,a),cj(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new ij(c,l,c+1,l-1,new X(Y.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&vj(e,t,n,a),!1}})}function vj(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function yj(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
|
|
134
|
+
`))}})}function bj(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function xj(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new ij(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new X(Y.from(o),0,0),1,!0))}function Sj(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function Cj(e,t,n=1,r){let i=e.doc.resolve(t),a=Y.empty,o=Y.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=Y.from(i.node(e).copy(a));let t=r&&r[s];o=Y.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new rj(t,t,new X(a.append(o),n,n),!0))}function wj(e,t){let n=e.resolve(t),r=n.index();return Ej(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Tj(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function Ej(e,t){return!!(e&&t&&!e.isLeaf&&Tj(e,t))}function Dj(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&Ej(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function Oj(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);yj(e,r.node(),r.before(),s)}o.inlineContent&&cj(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new rj(l,c.map(t+n,-1),X.empty,!0)),r===!0){let t=e.doc.resolve(l);vj(e,t.node(),t.before(),e.steps.length)}return e}function kj(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function Aj(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+(n>0?1:0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function jj(e,t,n=t,r=X.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Mj(i,a,r)?new rj(t,n,r):new Nj(i,a,r).fit()}function Mj(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var Nj=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=Y.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=Y.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new X(i,a,o);return e>-1?new ij(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new rj(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=Ij(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(Y.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ij(e,t);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new X(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ij(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new X(Pj(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new X(Pj(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(Lj(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=Fj(this.placed,t,Y.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?X.empty:new X(Pj(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new X(Pj(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Rj(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=Rj(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Rj(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Fj(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Fj(this.placed,this.depth,Y.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Y.empty,!0);e.childCount&&(this.placed=Fj(this.placed,this.frontier.length,e))}};function Pj(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Pj(e.firstChild.content,t-1,n)))}function Fj(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Fj(e.lastChild.content,t-1,n)))}function Ij(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Lj(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Lj(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Y.empty,!0)))),e.copy(r)}function Rj(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!zj(n,a.content,o)?s:null}function zj(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Bj(e){return e.spec.defining||e.spec.definingForContent}function Vj(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(Mj(i,a,r))return e.step(new rj(t,n,r));let o=Gj(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=Bj(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new X(Hj(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function Hj(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Hj(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(Y.empty,!0))}return e}function Uj(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=kj(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new X(Y.from(r),0,0))}function Wj(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=Gj(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function Gj(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var Kj=class e extends XA{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return ZA.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return ZA.fromReplace(e,this.pos,this.pos+1,new X(Y.from(r),0,t.isLeaf?0:1))}getMap(){return qA.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};XA.jsonID(`attr`,Kj);var qj=class e extends XA{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return ZA.ok(n)}getMap(){return qA.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};XA.jsonID(`docAttr`,qj);var Jj=class extends Error{};Jj=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Jj.prototype=Object.create(Error.prototype),Jj.prototype.constructor=Jj,Jj.prototype.name=`TransformError`;var Yj=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new JA}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Jj(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=X.empty){let r=jj(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new X(Y.from(n),0,0))}delete(e,t){return this.replace(e,t,X.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Vj(this,e,t,n),this}replaceRangeWith(e,t,n){return Uj(this,e,t,n),this}deleteRange(e,t){return Wj(this,e,t),this}lift(e,t){return dj(this,e,t),this}join(e,t=1){return Oj(this,e,t),this}wrap(e,t){return gj(this,e,t),this}setBlockType(e,t=e,n,r=null){return _j(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return xj(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Kj(e,t,n)),this}setDocAttribute(e,t){return this.step(new qj(e,t)),this}addNodeMark(e,t){return this.step(new tj(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof xk)t.isInSet(n.marks)&&this.step(new nj(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new nj(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return Cj(this,e,t,n),this}addMark(e,t,n){return oj(this,e,t,n),this}removeMark(e,t,n){return sj(this,e,t,n),this}clearIncompatible(e,t,n){return cj(this,e,t,n),this}},Xj=Object.create(null),Zj=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Qj(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=X.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?X.empty:t),o==0&&sM(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),sM(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new tM(e):oM(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?oM(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):oM(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new iM(e.node(0))}static atStart(e){return oM(e,e,0,0,1)||new iM(e)}static atEnd(e){return oM(e,e,e.content.size,e.childCount,-1)||new iM(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Xj[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Xj)throw RangeError(`Duplicate use of selection JSON ID `+e);return Xj[e]=t,t.prototype.jsonID=e,t}getBookmark(){return tM.between(this.$anchor,this.$head).getBookmark()}};Zj.prototype.visible=!0;var Qj=class{constructor(e,t){this.$from=e,this.$to=t}},$j=!1;function eM(e){!$j&&!e.parent.inlineContent&&($j=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var tM=class e extends Zj{constructor(e,t=e){eM(e),eM(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Zj.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=X.empty){if(super.replace(e,t),t==X.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new nM(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=Zj.findFrom(n,r,!0)||Zj.findFrom(n,-r,!0);if(e)n=e.$head;else return Zj.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Zj.findFrom(t,-r,!0)||Zj.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};Zj.jsonID(`text`,tM);var nM=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return tM.between(e.resolve(this.anchor),e.resolve(this.head))}},Z=class e extends Zj{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?Zj.near(a):new e(a)}content(){return new X(Y.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new rM(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};Z.prototype.visible=!1,Zj.jsonID(`node`,Z);var rM=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new nM(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Z.isSelectable(n)?new Z(t):Zj.near(t)}},iM=class e extends Zj{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=X.empty){if(t==X.empty){e.delete(0,e.doc.content.size);let t=Zj.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return aM}};Zj.jsonID(`all`,iM);var aM={map(){return this},resolve(e){return new iM(e)}};function oM(e,t,n,r,i,a=!1){if(t.inlineContent)return tM.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=oM(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&Z.isSelectable(r))return Z.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function sM(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof rj||i instanceof ij))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(Zj.near(e.doc.resolve(o),n))}function cM(e,t){return!t||!e?e:e.bind(t)}var lM=class{constructor(e,t,n){this.name=e,this.init=cM(t.init,n),this.apply=cM(t.apply,n)}};new lM(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new lM(`selection`,{init(e,t){return e.selection||Zj.atStart(t.doc)},apply(e){return e.selection}}),new lM(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new lM(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});function uM(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=uM(i,t,{})),n[r]=i}return n}var dM=class{constructor(e){this.spec=e,this.props={},e.props&&uM(e.props,this,this.props),this.key=e.key?e.key.key:pM(`plugin`)}getState(e){return e[this.key]}},fM=Object.create(null);function pM(e){return e in fM?e+`$`+ ++fM[e]:(fM[e]=0,e+`$`)}var mM=class{constructor(e=`key`){this.key=pM(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},hM=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function gM(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var _M=(e,t,n)=>{let r=gM(e,n);if(!r)return!1;let i=CM(r);if(!i){let n=r.blockRange(),i=n&&uj(n);return i==null?!1:(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(VM(e,i,t,-1))return!0;if(r.parent.content.size==0&&(xM(a,`end`)||Z.isSelectable(a)))for(let n=r.depth;;n--){let o=jj(e.doc,r.before(n),r.after(n),X.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(xM(a,`end`)?Zj.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):Z.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},vM=(e,t,n)=>{let r=gM(e,n);if(!r)return!1;let i=CM(r);return i?bM(e,i,t):!1},yM=(e,t,n)=>{let r=wM(e,n);if(!r)return!1;let i=DM(r);return i?bM(e,i,t):!1};function bM(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=jj(e.doc,i,o,X.empty);if(!s||s.from!=i||s instanceof rj&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(tM.create(t.doc,i)),n(t.scrollIntoView())}return!0}function xM(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var SM=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=CM(r)}let o=a&&a.nodeBefore;return!o||!Z.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Z.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function CM(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function wM(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var TM=(e,t,n)=>{let r=wM(e,n);if(!r)return!1;let i=DM(r);if(!i)return!1;let a=i.nodeAfter;if(VM(e,i,t,1))return!0;if(r.parent.content.size==0&&(xM(a,`start`)||Z.isSelectable(a))){let n=jj(e.doc,r.before(),r.after(),X.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(xM(a,`start`)?Zj.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):Z.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},EM=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=DM(r)}let o=a&&a.nodeAfter;return!o||!Z.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Z.create(e.doc,a.pos)).scrollIntoView()),!0)};function DM(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var OM=(e,t)=>{let n=e.selection,r=n instanceof Z,i;if(r){if(n.node.isTextblock||!wj(e.doc,n.from))return!1;i=n.from}else if(i=Dj(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(Z.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},kM=(e,t)=>{let n=e.selection,r;if(n instanceof Z){if(n.node.isTextblock||!wj(e.doc,n.to))return!1;r=n.to}else if(r=Dj(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},AM=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&uj(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},jM=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
|
|
135
|
+
`).scrollIntoView()),!0)};function MM(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var NM=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=MM(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(Zj.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},PM=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof iM||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=MM(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(tM.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},FM=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Sj(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&uj(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function IM(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof Z&&t.selection.node.isBlock)return!r.parentOffset||!Sj(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],o,s,c=!1,l=!1;for(let t=r.depth;;t--)if(r.node(t).isBlock){c=r.end(t)==r.pos+(r.depth-t),l=r.start(t)==r.pos-(r.depth-t),s=MM(r.node(t-1).contentMatchAt(r.indexAfter(t-1)));let n=e&&e(i.parent,c,r);a.unshift(n||(c&&s?{type:s}:null)),o=t;break}else{if(t==1)return!1;a.unshift(null)}let u=t.tr;(t.selection instanceof tM||t.selection instanceof iM)&&u.deleteSelection();let d=u.mapping.map(r.pos),f=Sj(u.doc,d,a.length,a);if(f||=(a[0]=s?{type:s}:null,Sj(u.doc,d,a.length,a)),!f)return!1;if(u.split(d,a.length,a),!c&&l&&r.node(o).type!=s){let e=u.mapping.map(r.before(o)),t=u.doc.resolve(e);s&&r.node(o-1).canReplaceWith(t.index(),t.index()+1,s)&&u.setNodeMarkup(u.mapping.map(r.before(o)),s)}return n&&n(u.scrollIntoView()),!0}}var LM=IM(),RM=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(Z.create(e.doc,i))),!0)},zM=(e,t)=>(t&&t(e.tr.setSelection(new iM(e.doc))),!0);function BM(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||wj(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function VM(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&BM(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=Y.empty;for(let e=o.length-1;e>=0;e--)s=Y.from(o[e].create(null,s));s=Y.from(i.copy(s));let c=e.tr.step(new ij(t.pos-1,r,t.pos,r,new X(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&wj(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:Zj.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&uj(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&xM(a,`start`,!0)&&xM(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=Y.empty;for(let e=o.length-1;e>=0;e--)r=Y.from(o[e].copy(r));n(e.tr.step(new ij(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new X(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function HM(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(tM.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var UM=HM(-1),WM=HM(1);function GM(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&fj(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function KM(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function qM(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var JM=qM(hM,_M,SM),YM=qM(hM,TM,EM),XM={Enter:qM(jM,PM,FM,LM),"Mod-Enter":NM,Backspace:JM,"Mod-Backspace":JM,"Shift-Backspace":JM,Delete:YM,"Mod-Delete":YM,"Mod-a":zM},ZM={"Ctrl-h":XM.Backspace,"Alt-Backspace":XM[`Mod-Backspace`],"Ctrl-d":XM.Delete,"Ctrl-Alt-Backspace":XM[`Mod-Delete`],"Alt-Delete":XM[`Mod-Delete`],"Alt-d":XM[`Mod-Delete`],"Ctrl-a":UM,"Ctrl-e":WM};for(let e in XM)ZM[e]=XM[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function QM(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return $M(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function $M(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new zk(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new zk(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=fj(a,n,r,t);return s?(e&&eN(e,t,s,i,n),!0):!1}function eN(e,t,n,r,i){let a=Y.empty;for(let e=n.length-1;e>=0;e--)a=Y.from(n[e].type.create(n[e].attrs,a));e.step(new ij(t.start-(r?2:0),t.end,t.start,t.end,new X(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&Sj(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function tN(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?nN(t,n,e,a):rN(t,n,a):!0:!1}}function nN(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new ij(a-1,o,a,o,new X(Y.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new zk(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=uj(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return wj(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function rN(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+(s?0:1),u+1,o.content.append(c?Y.empty:Y.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new ij(d-(s?1:0),f+(c?1:0),d+1,f-1,new X((s?Y.empty:Y.from(i.copy(Y.empty))).append(c?Y.empty:Y.from(i.copy(Y.empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function iN(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=Y.from(r?e.create():null),o=new X(Y.from(e.create(null,Y.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new ij(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var aN=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},oN=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},sN=null,cN=function(e,t,n){let r=sN||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},lN=function(){sN=null},uN=function(e,t,n,r){return n&&(fN(e,t,n,r,-1)||fN(e,t,n,r,1))},dN=/^(img|br|input|textarea|hr)$/i;function fN(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:pN(e))){let n=e.parentNode;if(!n||n.nodeType!=1||_N(e)||dN.test(e.nodeName)||e.contentEditable==`false`)return!1;t=aN(e)+(i<0?0:1),e=n}else if(e.nodeType==1){let n=e.childNodes[t+(i<0?-1:0)];if(n.nodeType==1&&n.contentEditable==`false`)if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1;else e=n,t=i<0?pN(e):0}else return!1}}function pN(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function mN(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=pN(e)}else if(e.parentNode&&!_N(e))t=aN(e),e=e.parentNode;else return null}}function hN(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!_N(e))t=aN(e)+1,e=e.parentNode;else return null}}function gN(e,t,n){for(let r=t==0,i=t==pN(e);r||i;){if(e==n)return!0;let t=aN(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==pN(e)}}function _N(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var vN=function(e){return e.focusNode&&uN(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function yN(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function bN(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function xN(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(pN(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(pN(r.startContainer),r.startOffset)}}}var SN=typeof navigator<`u`?navigator:null,CN=typeof document<`u`?document:null,wN=SN&&SN.userAgent||``,TN=/Edge\/(\d+)/.exec(wN),EN=/MSIE \d/.exec(wN),DN=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(wN),ON=!!(EN||DN||TN),kN=EN?document.documentMode:DN?+DN[1]:TN?+TN[1]:0,AN=!ON&&/gecko\/(\d+)/i.test(wN);AN&&+(/Firefox\/(\d+)/.exec(wN)||[0,0])[1];var jN=!ON&&/Chrome\/(\d+)/.exec(wN),MN=!!jN,NN=jN?+jN[1]:0,PN=!ON&&!!SN&&/Apple Computer/.test(SN.vendor),FN=PN&&(/Mobile\/\w+/.test(wN)||!!SN&&SN.maxTouchPoints>2),IN=FN||(SN?/Mac/.test(SN.platform):!1),LN=SN?/Win/.test(SN.platform):!1,RN=/Android \d/.test(wN),zN=!!CN&&`webkitFontSmoothing`in CN.documentElement.style,BN=zN?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function VN(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function HN(e,t){return typeof e==`number`?e:e[t]}function UN(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function WN(e,t,n){let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(o.nodeType!=1){o=oN(o);continue}let e=o,n=e==a.body,s=n?VN(a):UN(e),c=0,l=0;if(t.top<s.top+HN(r,`top`)?l=-(s.top-t.top+HN(i,`top`)):t.bottom>s.bottom-HN(r,`bottom`)&&(l=t.bottom-t.top>s.bottom-s.top?t.top+HN(i,`top`)-s.top:t.bottom-s.bottom+HN(i,`bottom`)),t.left<s.left+HN(r,`left`)?c=-(s.left-t.left+HN(i,`left`)):t.right>s.right-HN(r,`right`)&&(c=t.right-s.right+HN(i,`right`)),c||l)if(n)a.defaultView.scrollBy(c,l);else{let n=e.scrollLeft,r=e.scrollTop;l&&(e.scrollTop+=l),c&&(e.scrollLeft+=c);let i=e.scrollLeft-n,a=e.scrollTop-r;t={left:t.left-i,top:t.top-a,right:t.right-i,bottom:t.bottom-a}}let u=n?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(u))break;o=u==`absolute`?o.offsetParent:oN(o)}}function GN(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:KN(e.dom)}}function KN(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=oN(r));return t}function qN({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;JN(n,r==0?0:r-t)}function JN(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var YN=null;function XN(e){if(e.setActive)return e.setActive();if(YN)return e.focus(YN);let t=KN(e);e.focus(YN==null?{get preventScroll(){return YN={preventScroll:!0},!0}}:void 0),YN||(YN=!1,JN(t,0))}function ZN(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(u.nodeType==1)e=u.getClientRects();else if(u.nodeType==3)e=cN(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&n.nodeType==3?{left:p.right<t.left?p.right:p.left,top:t.top}:t,u.nodeType==1&&e&&(a=d+(t.left>=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&n.nodeType==3?QN(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:ZN(n,i)}function QN(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=oP(r,1);if(n.top!=n.bottom&&$N(t,n)){i={node:e,offset:a+(t.left>=(n.left+n.right)/2?1:0)};break}}return r.detach(),i||{node:e,offset:0}}function $N(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function eP(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function tP(e,t,n){let{node:r,offset:i}=ZN(t,n),a=-1;if(r.nodeType==1&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function nP(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(t.dom.nodeType==1&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function rP(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(n.nodeType==1){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if($N(t,i))return rP(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function iP(e,t){let n=e.dom.ownerDocument,r,i=0,a=xN(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o.nodeType==1?o:o.parentNode)){let n=e.dom.getBoundingClientRect();if(!$N(t,n)||(o=rP(e.dom,t,n),!o))return null}if(PN)for(let e=o;r&&e;e=oN(e))e.draggable&&(r=void 0);if(o=eP(o,t),r){if(AN&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;zN&&i&&r.nodeType==1&&(n=r.childNodes[i-1]).nodeType==1&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!=`BR`)&&(s=nP(e,r,i,t))}s??=tP(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function aP(e){return e.top<e.bottom||e.left<e.right}function oP(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(aP(e))return e}return Array.prototype.find.call(n,aP)||e.getBoundingClientRect()}var sP=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function cP(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=zN||AN;if(r.nodeType==3)if(o&&(sP.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=oP(cN(r,i,i),n);if(AN&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=oP(cN(r,i-1,i-1),-1);if(t.top==e.top){let n=oP(cN(r,i,i+1),-1);if(n.top!=e.top)return lP(n,n.left<t.left)}}return e}else{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,lP(oP(cN(r,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==pN(r))){let e=r.childNodes[i-1];if(e.nodeType==1)return uP(e.getBoundingClientRect(),!1)}if(a==null&&i<pN(r)){let e=r.childNodes[i];if(e.nodeType==1)return uP(e.getBoundingClientRect(),!0)}return uP(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==pN(r))){let e=r.childNodes[i-1],t=e.nodeType==3?cN(e,pN(e)-(o?0:1)):e.nodeType==1&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return lP(oP(t,1),!1)}if(a==null&&i<pN(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?e.nodeType==3?cN(e,0,o?0:1):e.nodeType==1?e:null:null;if(t)return lP(oP(t,-1),!0)}return lP(oP(r.nodeType==3?cN(r):r,-n),n>=0)}function lP(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function uP(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function dP(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function fP(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return dP(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=cP(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(e.nodeType==1)t=e.getClientRects();else if(e.nodeType==3)t=cN(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var pP=/[\u0590-\u08ac]/;function mP(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!pP.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:dP(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!l.contains(u.nodeType==1?u:u.parentNode)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var hP=null,gP=null,_P=!1;function vP(e,t,n){return hP==t&&gP==n?_P:(hP=t,gP=n,_P=n==`up`||n==`down`?fP(e,t,n):mP(e,t,n))}var yP=0,bP=1,xP=2,SP=3,CP=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=yP,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}else{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=t>aN(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node))if(n&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))n=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e||i instanceof AP){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof wP&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,!(!e||e.dom.parentNode==this.contentDOM);n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?aN(e.dom)+1:0}}else{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,!(!e||e.dom.parentNode==this.contentDOM);n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?aN(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=aN(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=aN(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(t.nodeType!=1||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((AN||PN)&&e==t){let{node:e,offset:t}=o;if(e.nodeType==3){if(u=!!(t&&e.nodeValue[t-1]==`
|
|
136
|
+
`),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:aN(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(AN&&l.focusNode&&l.focusNode!=s.node&&l.focusNode.nodeType==1){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&PN)&&uN(o.node,o.offset,l.anchorNode,l.anchorOffset)&&uN(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&AN)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?xP:bP,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=SP:i.markDirty(e-r,t-r);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?xP:SP}n=a}this.dirty=xP}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?xP:bP;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},wP=class extends CP{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let e=document.createElement(`span`);e.appendChild(a),a=e}a.contentEditable=`false`,a.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==yP&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},TP=class extends CP{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},EP=class e extends CP{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=AA.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&SP||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=SP&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=yP){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=yP}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=qP(a,n,o,r)),t>0&&(a=qP(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},DP=class e extends CP{constructor(e,t,n,r,i,a,o,s,c){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=AA.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=RP(u,r,n),l?c=new jP(t,n,r,i,u,d||null,f,l,a,o+1):n.isText?new kP(t,n,r,i,u,f,a):new e(t,n,r,i,u,d||null,f,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(e.preserveWhitespace=`full`),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Y.empty)}return e}matchesNode(e,t,n){return this.dirty==yP&&e.eq(this.node)&&zP(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new VP(this,a&&a.node,e);WP(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?xk.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,c,l)=>{s.syncToMarks(t.marks,n,e,l);let u;s.findNodeMatch(t,a,c,l)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,c,u,e)||s.updateNextNode(t,a,c,e,l,r)||s.addNode(t,a,c,e,r),r+=t.nodeSize}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==xP)&&(a&&this.protectLocalComposition(e,a),MP(this.contentDOM,this.children,e),FN&&GP(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof tM)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=KP(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}else return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&=void 0}let a=new TP(this,i,t,r);e.input.compositionNodes.push(a),this.children=qP(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==SP||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=yP}updateOuterDeco(e){if(zP(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=IP(this.dom,this.nodeDOM,FP(this.outerDeco,this.node,t),FP(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function OP(e,t,n,r,i){RP(r,t,e);let a=new DP(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}var kP=class e extends DP{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,null,a,o,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==SP||this.dirty!=yP&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=yP||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=yP,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=SP)}get domAtom(){return!1}isText(e){return this.node.text==e}},AP=class extends CP{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==yP&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},jP=class extends DP{constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,c,l),this.spec=s}update(e,t,n,r){if(this.dirty==SP)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}else if(!this.contentDOM&&!e.isLeaf)return!1;else return super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function MP(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=BP(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof EP){let t=r?r.previousSibling:e.lastChild;MP(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=BP(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var NP=function(e){e&&(this.nodeName=e)};NP.prototype=Object.create(null);var PP=[new NP];function FP(e,t,n){if(e.length==0)return PP;let r=n?PP[0]:new NP,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new NP(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new NP(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function IP(e,t,n,r){if(n==PP&&r==PP)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName?i=t:(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=PP[0],i=t)}LP(i,o||PP[0],a)}return i}function LP(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function RP(e,t,n){return IP(e,e,PP,FP(t,n,e.nodeType!=1))}function zP(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function BP(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var VP=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=HP(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=yP,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=EP.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==SP&&a.dom==a.contentDOM&&(a.dirty=xP),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof DP){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=SP&&zP(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=xP,u.updateChildren(r,a+1),u.dirty=yP),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!zP(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=DP.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=DP.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new wP(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof EP;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof kP)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((PN||MN)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new AP(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}};function HP(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof EP)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function UP(e,t){return e.type.side-t.type.side}function WP(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u)if(d){d.sort(UP);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c);let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function GP(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function KP(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function qP(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function JP(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(vN(n)){for(c=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&Z.isSelectable(e)&&i.parent&&!(e.isInline&&gN(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new Z(o==e?s:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=aF(e,u,s,n)}return l}function YP(e){return e.editable?e.hasFocus():sF(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function XP(e,t=!1){let n=e.state.selection;if(rF(e,n),YP(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&MN){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&uN(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)nF(e);else{let{anchor:r,head:i}=n,a,o;ZP&&!(n instanceof tM)&&(n.$from.parent.inlineContent||(a=QP(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=QP(e,n.to))),e.docView.setSelection(r,i,e,t),ZP&&(a&&eF(a),o&&eF(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&tF(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}var ZP=PN||MN&&NN<63;function QP(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(PN&&i&&i.contentEditable==`false`)return $P(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return $P(i);if(a)return $P(a)}}function $P(e){return e.contentEditable=`true`,PN&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function eF(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function tF(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!YP(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function nF(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,aN(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&ON&&kN<=11&&(n.disabled=!0,n.disabled=!1)}function rF(e,t){if(t instanceof Z){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(iF(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else iF(e)}function iF(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function aF(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||tM.between(t,n,r)}function oF(e){return e.editable&&!e.hasFocus()?!1:sF(e)}function sF(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function cF(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return uN(t.node,t.offset,n.anchorNode,n.anchorOffset)}function lF(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Zj.findFrom(a,t)}function uF(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function dF(e,t,n){let r=e.state.selection;if(r instanceof tM){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return uF(e,new tM(r.$anchor,a))}else if(!r.empty)return!1;else if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=lF(e.state,t);return n&&n instanceof Z?uF(e,n):!1}else if(!(IN&&n.indexOf(`m`)>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?Z.isSelectable(i)?uF(e,new Z(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):zN?uF(e,new tM(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1:!1}}else if(r instanceof Z&&r.node.isInline)return uF(e,new tM(t>0?r.$to:r.$from));else{let n=lF(e.state,t);return n?uF(e,n):!1}}function fF(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function pF(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`)}function mF(e,t){return t<0?hF(e):gF(e)}function hF(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(AN&&n.nodeType==1&&r<fF(n)&&pF(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let e=n.childNodes[r-1];if(pF(e,-1))i=n,a=--r;else if(e.nodeType==3)n=e,r=n.nodeValue.length;else break}}else if(_F(n))break;else{let t=n.previousSibling;for(;t&&pF(t,-1);)i=n.parentNode,a=aN(t),t=t.previousSibling;if(t)n=t,r=fF(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?bF(e,n,r):i&&bF(e,i,a)}function gF(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=fF(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let e=n.childNodes[r];if(pF(e,1))a=n,o=++r;else break}else if(_F(n))break;else{let t=n.nextSibling;for(;t&&pF(t,1);)a=t.parentNode,o=aN(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=fF(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&bF(e,a,o)}function _F(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function vF(e,t){for(;e&&t==e.childNodes.length&&!_N(e);)t=aN(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=0}}function yF(e,t){for(;e&&!t&&!_N(e);)t=aN(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function bF(e,t,n){if(t.nodeType!=3){let e,r;(r=vF(t,n))?(t=r,n=0):(e=yF(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(vN(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&XP(e)},50)}function xF(e,t){let n=e.state.doc.resolve(t);if(!(MN||LN)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}return getComputedStyle(e.dom).direction==`rtl`?`rtl`:`ltr`}function SF(e,t,n){let r=e.state.selection;if(r instanceof tM&&!r.empty||n.indexOf(`s`)>-1||IN&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=lF(e.state,t);if(n&&n instanceof Z)return uF(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof iM?Zj.near(n,t):Zj.findFrom(n,t);return o?uF(e,o):!1}return!1}function CF(e,t){if(!(e.state.selection instanceof tM))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function wF(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function TF(e){if(!PN||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable==`false`){let n=t.firstChild;wF(e,n,`true`),setTimeout(()=>wF(e,n,`false`),20)}return!1}function EF(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function DF(e,t){let n=t.keyCode,r=EF(t);if(n==8||IN&&n==72&&r==`c`)return CF(e,-1)||mF(e,-1);if(n==46&&!t.shiftKey||IN&&n==68&&r==`c`)return CF(e,1)||mF(e,1);if(n==13||n==27)return!0;if(n==37||IN&&n==66&&r==`c`){let t=n==37?xF(e,e.state.selection.from)==`ltr`?-1:1:-1;return dF(e,t,r)||mF(e,t)}else if(n==39||IN&&n==70&&r==`c`){let t=n==39?xF(e,e.state.selection.from)==`ltr`?1:-1:1;return dF(e,t,r)||mF(e,t)}else if(n==38||IN&&n==80&&r==`c`)return SF(e,-1,r)||mF(e,-1);else if(n==40||IN&&n==78&&r==`c`)return TF(e)||SF(e,1,r)||mF(e,1);else if(r==(IN?`m`:`c`)&&(n==66||n==73||n==89||n==90))return!0;return!1}function OF(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||AA.fromSchema(e.state.schema),s=zF(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&l.nodeType==1&&(u=LF[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&l.nodeType==1&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
|
|
137
|
+
|
|
138
|
+
`),slice:t}}function kF(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new X(Y.from(e.state.schema.text(t.replace(/\r\n?/g,`
|
|
139
|
+
`))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=AA.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=HF(n),zN&&UF(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&e.nodeType!=1;)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||gA.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!AF.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=WF(IF(s,+u[1],+u[2]),u[4]);else if(s=X.maxOpen(jF(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=IF(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var AF=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function jF(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&NF(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=PF(a[a.length-1],i.length));let n=MF(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return Y.from(a)}return e}function MF(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Y.from(e));return e}function NF(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=NF(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(Y.from(MF(n,e,i+1))))}}function PF(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,PF(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Y.empty,!0);return e.copy(n.append(r))}function FF(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=FF(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Y.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function IF(e,t,n){return t<e.openStart&&(e=new X(FF(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new X(FF(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var LF={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]},RF=null;function zF(){return RF||=document.implementation.createHTMLDocument(`title`)}var BF=null;function VF(e){let t=window.trustedTypes;return t?(BF||=t.defaultPolicy||t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e}),BF.createHTML(e)):e}function HF(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=zF().createElement(`div`),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&LF[r[1].toLowerCase()])&&(e=i.map(e=>`<`+e+`>`).join(``)+e+i.map(e=>`</`+e+`>`).reverse().join(``)),n.innerHTML=VF(e),i)for(let e=0;e<i.length;e++)n=n.querySelector(i[e])||n;return n}function UF(e){let t=e.querySelectorAll(MN?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function WF(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;i=Y.from(t.create(r[e+1],i)),a++,o++}return new X(i,a,o)}var GF={},KF={},qF={touchstart:!0,touchmove:!0},JF=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function YF(e){for(let t in GF){let n=GF[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{eI(e,t)&&!$F(e,t)&&(e.editable||!(t.type in KF))&&n(e,t)},qF[t]?{passive:!0}:void 0)}PN&&e.dom.addEventListener(`input`,()=>null),QF(e)}function XF(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function ZF(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function QF(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>$F(e,t))})}function $F(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function eI(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function tI(e,t){!$F(e,t)&&GF[t.type]&&(e.editable||!(t.type in KF))&&GF[t.type](e,t)}KF.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!hI(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(RN&&MN&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),FN&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,yN(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||DF(e,n)?n.preventDefault():XF(e,`key`)},KF.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},KF.keypress=(e,t)=>{let n=t;if(hI(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||IN&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof tM)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function nI(e){return{left:e.clientX,top:e.clientY}}function rI(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function iI(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function aI(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);n==`pointer`&&r.setMeta(`pointer`,!0),e.dispatch(r)}function oI(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Z.isSelectable(r)?(aI(e,new Z(n),`pointer`),!0):!1}function sI(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Z&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(Z.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i==null?!1:(aI(e,Z.create(e.state.doc,i),`pointer`),!0)}function cI(e,t,n,r,i){return iI(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?sI(e,n):oI(e,n))}function lI(e,t,n,r){return iI(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function uI(e,t,n,r){return iI(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||dI(e,n,r)}function dI(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(aI(e,tM.create(r,0,r.content.size),`pointer`),!0):!1;let i=r.resolve(t);for(let t=i.depth+1;t>0;t--){let n=t>i.depth?i.nodeAfter:i.node(t),a=i.before(t);if(n.inlineContent)aI(e,tM.create(r,a+1,a+1+n.content.size),`pointer`);else if(Z.isSelectable(n))aI(e,Z.create(r,a),`pointer`);else continue;return!0}}function fI(e){return SI(e)}var pI=IN?`metaKey`:`ctrlKey`;GF.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=fI(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&rI(n,e.input.lastClick)&&!n[pI]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button};let o=e.posAtCoords(nI(n));o&&(a==`singleClick`?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new mI(e,o,n,!!r)):(a==`doubleClick`?lI:uI)(e,o.pos,o.inside,n)?n.preventDefault():XF(e,`pointer`))};var mI=class{constructor(e,t,n,r){this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[pI],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&s.nodeDOM.nodeType==1?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof Z&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&AN&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this)),XF(e,`pointer`)}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>XP(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(nI(e))),this.updateAllowDefault(e),this.allowDefault||!t?XF(this.view,`pointer`):cI(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||PN&&this.mightDrag&&!this.mightDrag.node.isAtom||MN&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(aI(this.view,Zj.near(this.view.state.doc.resolve(t.pos)),`pointer`),e.preventDefault()):XF(this.view,`pointer`)}move(e){this.updateAllowDefault(e),XF(this.view,`pointer`),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}};GF.touchstart=e=>{e.input.lastTouch=Date.now(),fI(e),XF(e,`pointer`)},GF.touchmove=e=>{e.input.lastTouch=Date.now(),XF(e,`pointer`)},GF.contextmenu=e=>fI(e);function hI(e,t){return e.composing?!0:PN&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var gI=RN?5e3:-1;KF.compositionstart=KF.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof tM&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||MN&&LN&&_I(e)))e.markCursor=e.state.storedMarks||n.marks(),SI(e,!0),e.markCursor=null;else if(SI(e,!t.selection.empty),AN&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&n.nodeType==1&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(t.nodeType==3){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}else n=t,r=-1}}e.input.composing=!0}vI(e,gI)};function _I(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable==`false`}KF.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,vI(e,20))};function vI(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>SI(e),t))}function yI(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=xI());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function bI(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=mN(t.focusNode,t.focusOffset),r=hN(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(!(!e||!e.isText(n.nodeValue)))return r}}return n||r}function xI(){let e=document.createEvent(`Event`);return e.initEvent(`event`,!0,!0),e.timeStamp}function SI(e,t=!1){if(!(RN&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),yI(e),t||e.docView&&e.docView.dirty){let n=JP(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function CI(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var wI=ON&&kN<15||FN&&BN<604;GF.copy=KF.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=wI?null:n.clipboardData,{dom:o,text:s}=OF(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):CI(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function TI(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function EI(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?DI(e,r.value,null,i,t):DI(e,r.textContent,r.innerHTML,i,t)},50)}function DI(e,t,n,r,i){let a=kF(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||X.empty)))return!0;if(!a)return!1;let o=TI(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function OI(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}KF.paste=(e,t)=>{let n=t;if(e.composing&&!RN)return;let r=wI?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&DI(e,OI(r),r.getData(`text/html`),i,n)?n.preventDefault():EI(e,n)};var kI=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},AI=IN?`altKey`:`ctrlKey`;function jI(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[AI]:!n}GF.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(nI(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Z?i.to-1:i.to))){if(r&&r.mightDrag)o=Z.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=Z.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=OF(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!MN||NN>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(wI?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,wI||n.dataTransfer.setData(`text/plain`,c),e.dragging=new kI(l,jI(e,n),o)},GF.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},KF.dragover=KF.dragenter=(e,t)=>t.preventDefault(),KF.drop=(e,t)=>{try{MI(e,t,e.dragging)}finally{e.dragging=null}};function MI(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(nI(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=kF(e,OI(t.dataTransfer),wI?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&jI(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||X.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?Aj(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&Z.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Z(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(aF(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}GF.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&XP(e)},20))},GF.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},GF.beforeinput=(e,t)=>{if(MN&&RN&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,yN(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in KF)GF[e]=KF[e];function NI(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var PI=class e{constructor(e,t){this.toDOM=e,this.spec=t||zI,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new LI(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&NI(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},FI=class e{constructor(e,t){this.attrs=e,this.spec=t||zI}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new LI(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&NI(this.attrs,t.attrs)&&NI(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},II=class e{constructor(e,t){this.attrs=e,this.spec=t||zI}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new LI(i.pos-n,a.pos-n,this)}valid(e,t){let{index:n,offset:r}=e.content.findIndex(t.from),i;return r==t.from&&!(i=e.child(n)).isText&&r+i.nodeSize==t.to}eq(t){return this==t||t instanceof e&&NI(this.attrs,t.attrs)&&NI(this.spec,t.spec)}destroy(){}},LI=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new PI(n,r))}static inline(t,n,r,i){return new e(t,n,new FI(r,i))}static node(t,n,r,i){return new e(t,n,new II(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof FI}get widget(){return this.type instanceof PI}},RI=[],zI={},BI=class e{constructor(e,t){this.local=e.length?e:RI,this.children=t.length?t:RI}static create(e,t){return t.length?JI(t,e,0,zI):VI}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==VI||e.maps.length==0?this:this.mapInner(e,t,0,0,n||zI)}mapInner(t,n,r,i,a){let o;for(let e=0;e<this.local.length;e++){let s=this.local[e].map(t,r,i);s&&s.type.valid(n,s)?(o||=[]).push(s):a.onRemove&&a.onRemove(this.local[e].spec)}return this.children.length?UI(this.children,o||[],t,n,r,i,a):o?new e(o.sort(YI),RI):VI}add(t,n){return n.length?this==VI?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=KI(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,JI(s,e,o+1,zI)),a+=3}});let o=WI(a?qI(n):n,-r);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||o.splice(e--,1);return new e(o.length?this.local.concat(o).sort(YI):this.local,i||this.children)}remove(e){return e.length==0||this==VI?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==VI?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):VI}forChild(t,n){if(this==VI)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof FI){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(YI),RI);return r?new HI([t,r]):t}return r||VI}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return XI(this.localsInner(e))}localsInner(e){if(this==VI)return RI;if(e.inlineContent||!this.local.some(FI.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof FI||t.push(this.local[e]);return t}forEachSet(e){e(this)}};BI.empty=new BI([],[]),BI.removeOverlap=XI;var VI=BI.empty,HI=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,zI));return e.from(r)}forChild(t,n){if(n.isLeaf)return BI.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=VI&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}return t?XI(n?t:t.sort(YI)):RI}static from(t){switch(t.length){case 0:return VI;case 1:return t[0];default:return new e(t.every(e=>e instanceof BI)?t:t.reduce((e,t)=>e.concat(t instanceof BI?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function UI(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==VI?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=JI(GI(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new BI(t.sort(YI),s)}function WI(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new LI(i.from+t,i.to+t,i.type))}return n}function GI(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function KI(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function qI(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function JI(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=KI(e,t,o+n);if(s){a=!0;let e=JI(s,t,n+o+1,r);e!=VI&&i.push(o,o+t.nodeSize,e)}});let o=WI(a?qI(e):e,-n).sort(YI);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||(r.onRemove&&r.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new BI(o,i):VI}function YI(e,t){return e.from-t.from||e.to-t.to}function XI(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from){a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),ZI(t,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),ZI(t,i,r.copy(a.from,r.to)));break}}}return t}function ZI(e,t,n){for(;t<e.length&&YI(n,e[t])>0;)t++;e.splice(t,0,n)}function QI(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=VI&&t.push(r)}),e.cursorWrapper&&t.push(BI.create(e.state.doc,[e.cursorWrapper.deco])),HI.from(t)}var $I={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},eL=ON&&kN<=11,tL=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},nL=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new tL,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);ON&&kN<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():PN&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),eL&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,$I)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(oF(this.view)){if(this.suppressingSelectionUpdates)return XP(this.view);if(ON&&kN<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&uN(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=oN(n))t.add(n);for(let r=e.anchorNode;r;r=oN(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&oF(e)&&!this.ignoreSelectionChange(n),i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&t.nodeType==1;){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(AN&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||cL(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&vN(n)&&(c=JP(e))&&c.eq(Zj.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,XP(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),aL(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,lL(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||XP(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),r.nodeType==3&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(ON&&kN<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?aN(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?aN(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}else if(e.type==`attributes`)return{from:n.posAtStart-n.border,to:n.posAtEnd+n.border};else return this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}},rL=new WeakMap,iL=!1;function aL(e){if(!rL.has(e)&&(rL.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=AN,iL)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),iL=!0}}function oL(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return uN(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function sL(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return oL(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?oL(e,n):null}function cL(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function lL(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||e.nodeType!=1||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function uL(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:o,to:s}=e.docView.parseRange(t,n),c=e.domSelectionRange(),l,u=c.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(l=[{node:u,offset:c.anchorOffset}],vN(c)||l.push({node:c.focusNode,offset:c.focusOffset})),MN&&e.input.lastKeyCode===8)for(let e=a;e>i;e--){let t=r.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){a=e;break}if(!n||n.size)break}let d=e.state.doc,f=e.someProp(`domParser`)||gA.fromSchema(e.state.schema),p=d.resolve(o),m=null,h=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:p.parent.type.whitespace==`pre`?`full`:!0,findPositions:l,ruleFromNode:dL,context:p});if(l&&l[0].pos!=null){let e=l[0].pos,t=l[1]&&l[1].pos;t??=e,m={anchor:e+o,head:t+o}}return{doc:h,sel:m,from:o,to:s}}function dL(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName==`BR`&&e.parentNode){if(PN&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}else if(e.parentNode.lastChild==e||PN&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName==`IMG`&&e.getAttribute(`mark-placeholder`))return{ignore:!0};return null}var fL=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function pL(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=JP(e,t);if(n&&!e.state.selection.eq(n)){if(MN&&RN&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,yN(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=uL(e,t,n),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=vL(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(FN&&e.input.lastIOSEnter>Date.now()-225||RN)&&i.some(e=>e.nodeType==1&&!fL.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,yN(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof tM&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=mL(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof tM&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),ON&&kN<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((FN&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&h.pos<l.doc.content.size&&(!h.sameParent(g)||!h.parent.inlineContent)&&h.pos<g.pos&&!/\S/.test(l.doc.textBetween(h.pos,g.pos,``,``)))&&e.someProp(`handleKeyDown`,t=>t(e,yN(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&gL(u,m.start,m.endA,h,g)&&e.someProp(`handleKeyDown`,t=>t(e,yN(8,`Backspace`)))){RN&&MN&&e.domObserver.suppressSelectionUpdates();return}MN&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),RN&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,yN(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=mL(e,n.doc,l.sel);t&&!(MN&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||ON&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v)if(h.pos==g.pos){ON&&kN<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>XP(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=hL(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-(g.textOffset?0:1)){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x());else e.dispatch(x())}function mL(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:aF(e,t.resolve(n.anchor),t.resolve(n.head))}function hL(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(Y.from(l).eq(e))return{mark:s,type:o}}function gL(e,t,n,r,i){if(n-t<=i.pos-r.pos||_L(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(_L(a,!0,!0));return!o.parent.isTextblock||o.pos>n||_L(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function _L(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function vL(e,t,n,r,i){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:o,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i==`end`){let e=Math.max(0,a-Math.min(o,s));r-=o+e-a}if(o<a&&e.size<t.size){let e=r<=a&&r>=o?a-r:0;a-=e,a&&a<t.size&&yL(t.textBetween(a-1,a+1))&&(a+=e?1:-1),s=a+(s-o),o=a}else if(s<a){let t=r<=a&&r>=s?a-r:0;a-=t,a&&a<e.size&&yL(e.textBetween(a-1,a+1))&&(a+=t?1:-1),o=a+(o-s),s=a}return{start:a,endA:o,endB:s}}function yL(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}var bL=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new JF,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(DL),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=CL(this),SL(this),this.nodeViews=TL(this),this.docView=OP(this.state.doc,xL(this),QI(this),this.dom,this),this.domObserver=new nL(this,(e,t,n,r)=>pL(this,e,t,n,r)),this.domObserver.start(),YF(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&QF(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(DL),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(yI(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=TL(this);EL(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&QF(this),this.editable=CL(this),SL(this);let o=QI(this),s=xL(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&GN(this);if(i){this.domObserver.stop();let t=l&&(ON||MN)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&wL(n.selection,e.selection);if(l){let n=MN?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=bI(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=OP(e.doc,s,o,this.dom,this)),n&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&cF(this))?XP(this,t):(rF(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&qN(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))&&!this.someProp(`handleScrollToSelection`,e=>e(this)))if(this.state.selection instanceof Z){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&WN(this,t.getBoundingClientRect(),e)}else WN(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new kI(e.slice,e.move,r<0?void 0:Z.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(ON){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&XN(this.dom),XP(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return iP(this,e)}coordsAtPos(e,t=1){return cP(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return vP(this,t||this.state,e)}pasteHTML(e,t){return DI(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return DI(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return OF(this,e)}destroy(){this.docView&&(ZF(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],QI(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,lN())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return tI(this,e)}domSelectionRange(){let e=this.domSelection();return e?PN&&this.root.nodeType===11&&bN(this.dom.ownerDocument)==this.dom&&sL(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};bL.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function xL(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[LI.node(0,e.state.doc.content.size,t)]}function SL(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:LI.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function CL(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function wL(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function TL(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function EL(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function DL(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var OL={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},kL={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},AL=typeof navigator<`u`&&/Mac/.test(navigator.platform),jL=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ML=0;ML<10;ML++)OL[48+ML]=OL[96+ML]=String(ML);for(var ML=1;ML<=24;ML++)OL[ML+111]=`F`+ML;for(var ML=65;ML<=90;ML++)OL[ML]=String.fromCharCode(ML+32),kL[ML]=String.fromCharCode(ML);for(var NL in OL)kL.hasOwnProperty(NL)||(kL[NL]=OL[NL]);function PL(e){var t=!(AL&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||jL&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?kL:OL)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var FL=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),IL=typeof navigator<`u`&&/Win/.test(navigator.platform);function LL(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))FL?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function RL(e){let t=Object.create(null);for(let n in e)t[LL(n)]=e[n];return t}function zL(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function BL(e){return new dM({props:{handleKeyDown:VL(e)}})}function VL(e){let t=RL(e);return function(e,n){let r=PL(n),i,a=t[zL(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[zL(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(IL&&n.ctrlKey&&n.altKey)&&(i=OL[n.keyCode])&&i!=r){let r=t[zL(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var HL=Object.defineProperty,UL=(e,t)=>{for(var n in t)HL(e,n,{get:t[n],enumerable:!0})};function WL(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var GL=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:WL({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},KL={};UL(KL,{blur:()=>qL,clearContent:()=>JL,clearNodes:()=>YL,command:()=>XL,createParagraphNear:()=>ZL,cut:()=>QL,deleteCurrentNode:()=>$L,deleteNode:()=>tR,deleteRange:()=>nR,deleteSelection:()=>rR,enter:()=>iR,exitCode:()=>aR,extendMarkRange:()=>fR,first:()=>pR,focus:()=>bR,forEach:()=>xR,insertContent:()=>SR,insertContentAt:()=>OR,joinBackward:()=>jR,joinDown:()=>AR,joinForward:()=>MR,joinItemBackward:()=>NR,joinItemForward:()=>PR,joinTextblockBackward:()=>FR,joinTextblockForward:()=>IR,joinUp:()=>kR,keyboardShortcut:()=>zR,lift:()=>VR,liftEmptyBlock:()=>HR,liftListItem:()=>UR,newlineInCode:()=>WR,resetAttributes:()=>qR,scrollIntoView:()=>JR,selectAll:()=>YR,selectNodeBackward:()=>XR,selectNodeForward:()=>ZR,selectParentNode:()=>QR,selectTextblockEnd:()=>$R,selectTextblockStart:()=>ez,setContent:()=>nz,setMark:()=>Yz,setMeta:()=>Xz,setNode:()=>Zz,setNodeSelection:()=>Qz,setTextDirection:()=>$z,setTextSelection:()=>eB,sinkListItem:()=>tB,splitBlock:()=>rB,splitListItem:()=>iB,toggleList:()=>sB,toggleMark:()=>cB,toggleNode:()=>lB,toggleWrap:()=>uB,undoInputRule:()=>dB,unsetAllMarks:()=>fB,unsetMark:()=>pB,unsetTextDirection:()=>mB,updateAttributes:()=>hB,wrapIn:()=>gB,wrapInList:()=>_B});var qL=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),JL=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),YL=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=uj(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},XL=e=>t=>e(t),ZL=()=>({state:e,dispatch:t})=>PM(e,t),QL=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new tM(r.doc.resolve(Math.max(o-1,0)))),!0},$L=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function eR(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var tR=e=>({tr:t,state:n,dispatch:r})=>{let i=eR(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},nR=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},rR=()=>({state:e,dispatch:t})=>hM(e,t),iR=()=>({commands:e})=>e.keyboardShortcut(`Enter`),aR=()=>({state:e,dispatch:t})=>NM(e,t);function oR(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function sR(e,t,n={strict:!0}){let r=Object.keys(t);return r.length?r.every(r=>n.strict?t[r]===e[r]:oR(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function cR(e,t,n={}){return e.find(e=>e.type===t&&sR(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function lR(e,t,n={}){return!!cR(e,t,n)}function uR(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(e=>e.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!cR([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&lR([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&lR([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function dR(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var fR=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=dR(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=uR(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=tM.create(o,e.from,e.to);n.setSelection(t)}}return!0},pR=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function mR(e){return e instanceof tM}function hR(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function gR(e,t=null){if(!t)return null;let n=Zj.atStart(e),r=Zj.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?tM.create(e,hR(0,i,a),hR(e.content.size,i,a)):tM.create(e,hR(t,i,a),hR(t,i,a))}function _R(){return navigator.platform===`Android`||/android/i.test(navigator.userAgent)}function vR(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function yR(){return typeof navigator<`u`?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var bR=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(vR()||_R())&&r.dom.focus(),yR()&&!vR()&&!_R()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!mR(n.state.selection))return o(),!0;let s=gR(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},xR=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),SR=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),CR=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&CR(r)}return e};function wR(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return CR(n)}function TR(e,t,n){if(e instanceof Vk||e instanceof Y)return e;n={slice:!0,parseOptions:{},...n};let r=typeof e==`object`&&!!e,i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return Y.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),TR(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new fA({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?gA.fromSchema(a).parseSlice(wR(e),n.parseOptions):gA.fromSchema(a).parse(wR(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=gA.fromSchema(t);return n.slice?r.parseSlice(wR(e),n.parseOptions).content:r.parse(wR(e),n.parseOptions)}return TR(``,t,n)}function ER(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof rj||i instanceof ij))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(Zj.near(e.doc.resolve(o),n))}var DR=e=>!(`type`in e),OR=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{TR(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=TR(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0;if((DR(i)?i:[i]).forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let f;if(u){if(Array.isArray(t))f=t.map(e=>e.text||``).join(``);else if(t instanceof Y){let e=``;t.forEach(t=>{t.text&&(e+=t.text)}),f=e}else f=typeof t==`object`&&t&&t.text?t.text:t;r.insertText(f,c,l)}else{f=i;let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,a=t.isText||t.isTextblock,o=t.content.size>0;n&&a&&o&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&ER(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:f}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:f})}return!0},kR=()=>({state:e,dispatch:t})=>OM(e,t),AR=()=>({state:e,dispatch:t})=>kM(e,t),jR=()=>({state:e,dispatch:t})=>_M(e,t),MR=()=>({state:e,dispatch:t})=>TM(e,t),NR=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Dj(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},PR=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Dj(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},FR=()=>({state:e,dispatch:t})=>vM(e,t),IR=()=>({state:e,dispatch:t})=>yM(e,t);function LR(){return typeof navigator<`u`?/Mac/.test(navigator.platform):!1}function RR(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))vR()||LR()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var zR=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=RR(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function BR(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?eR(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>o?o.name===e.node.type.name:!0).filter(e=>sR(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var VR=(e,t={})=>({state:n,dispatch:r})=>BR(n,eR(e,n.schema),t)?AM(n,r):!1,HR=()=>({state:e,dispatch:t})=>FM(e,t),UR=e=>({state:t,dispatch:n})=>tN(eR(e,t.schema))(t,n),WR=()=>({state:e,dispatch:t})=>jM(e,t);function GR(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function KR(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var qR=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=GR(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=eR(e,r.schema)),s===`mark`&&(o=dR(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,KR(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(KR(a.attrs,t))))})})}),c},JR=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),YR=()=>({tr:e,dispatch:t})=>{if(t){let t=new iM(e.doc);e.setSelection(t)}return!0},XR=()=>({state:e,dispatch:t})=>SM(e,t),ZR=()=>({state:e,dispatch:t})=>EM(e,t),QR=()=>({state:e,dispatch:t})=>RM(e,t),$R=()=>({state:e,dispatch:t})=>WM(e,t),ez=()=>({state:e,dispatch:t})=>UM(e,t);function tz(e,t,n={},r={}){return TR(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var nz=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=tz(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});return o&&a.replaceWith(0,c.content.size,s).setMeta(`preventUpdate`,!n),!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function rz(e,t){let n=dR(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function iz(e,t){let n=new Yj(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function az(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function oz(e,t){let n=[];return e.descendants((e,r)=>{t(e)&&n.push({node:e,pos:r})}),n}function sz(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function cz(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function lz(e){return t=>cz(t.$from,e)}function Q(e,t,n){return e.config[t]===void 0&&e.parent?Q(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?Q(e.parent,t,n):null}):e.config[t]}function uz(e){return e.map(e=>{let t=Q(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...uz(t())]:e}).flat(10)}function dz(e,t){let n=AA.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function fz(e){return typeof e==`function`}function pz(e,t=void 0,...n){return fz(e)?t?e.bind(t)(...n):e(...n):e}function mz(e={}){return Object.keys(e).length===0&&e.constructor===Object}function hz(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function gz(e){let t=[],{nodeExtensions:n,markExtensions:r}=hz(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=Q(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=Q(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function _z(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i){r=!r,n+=o;continue}if(o===`"`&&!r){i=!i,n+=o;continue}if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}return n&&t.push(n),t}function vz(e){let t=[],n=_z(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function yz(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...vz(n[e]),...vz(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function bz(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>yz(e,t),{})}function xz(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`?!0:e===`false`?!1:e:e}function Sz(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):xz(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function Cz(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&mz(t)?!1:t!=null))}function wz(e){let t={};return!e?.attribute?.isRequired&&`default`in(e?.attribute||{})&&(t.default=e.attribute.default),e?.attribute?.validate!==void 0&&(t.validate=e.attribute.validate),[e.name,t]}function Tz(e,t){let n=gz(e),{nodeExtensions:r,markExtensions:i}=hz(e);return new fA({topNode:r.find(e=>Q(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=Cz({...e.reduce((e,t)=>{let n=Q(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:pz(Q(r,`content`,a)),marks:pz(Q(r,`marks`,a)),group:pz(Q(r,`group`,a)),inline:pz(Q(r,`inline`,a)),atom:pz(Q(r,`atom`,a)),selectable:pz(Q(r,`selectable`,a)),draggable:pz(Q(r,`draggable`,a)),code:pz(Q(r,`code`,a)),whitespace:pz(Q(r,`whitespace`,a)),linebreakReplacement:pz(Q(r,`linebreakReplacement`,a)),defining:pz(Q(r,`defining`,a)),isolating:pz(Q(r,`isolating`,a)),attrs:Object.fromEntries(i.map(wz))}),s=pz(Q(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>Sz(e,i)));let c=Q(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:bz(e,i)}));let l=Q(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=Cz({...e.reduce((e,t)=>{let n=Q(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:pz(Q(r,`inclusive`,a)),excludes:pz(Q(r,`excludes`,a)),group:pz(Q(r,`group`,a)),spanning:pz(Q(r,`spanning`,a)),code:pz(Q(r,`code`,a)),attrs:Object.fromEntries(i.map(wz))}),s=pz(Q(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>Sz(e,i)));let c=Q(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:bz(e,i)})),[r.name,o]}))})}function Ez(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function Dz(e){return e.sort((e,t)=>{let n=Q(e,`priority`)||100,r=Q(t,`priority`)||100;return n>r?-1:n<r?1:0})}function Oz(e){let t=Dz(uz(e)),n=Ez(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function kz(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
|
|
140
|
+
|
|
141
|
+
`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;e.isText&&(s+=(e?.text)?.slice(Math.max(r,n)-n,i-n))}),s}function Az(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function jz(e,t){let n=eR(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function Mz(e,t){let n=GR(typeof t==`string`?t:t.name,e.schema);return n===`node`?jz(e,t):n===`mark`?rz(e,t):{}}function Nz(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function Pz(e){let t=Nz(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function Fz(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),Pz(r)}function Iz(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=uR(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{!e||e?.nodeSize===void 0||r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var Lz=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]};function Rz(e,t){return t.nodes[e]||t.marks[e]||null}function zz(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var Bz=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function Vz(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?dR(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>a?a.name===e.type.name:!0).find(e=>sR(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>a?a.name===e.mark.type.name:!0).filter(e=>sR(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>a?e.mark.type!==a&&e.mark.type.excludes(a):!0).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}var Hz=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=lz(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Uz=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function Wz(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function Gz(e,t){let{nodeExtensions:n}=hz(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=pz(Q(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`?i.split(` `).includes(`list`):!1}function Kz(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(Kz(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function qz(e){return e instanceof Z}function Jz(e,t,n){let{selection:r}=t,i=null;if(mR(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var Yz=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=dR(e,r.schema);if(i)if(o){let e=rz(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})});return Jz(r,n,c)},Xz=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Zz=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=eR(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>KM(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>KM(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},Qz=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=hR(e,0,n.content.size),i=Z.create(n,r);t.setSelection(i)}return!0},$z=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},eB=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=tM.atStart(n).from,o=tM.atEnd(n).to,s=hR(r,a,o),c=hR(i,a,o),l=tM.create(n,s,c);t.setSelection(l)}return!0},tB=e=>({state:t,dispatch:n})=>iN(eR(e,t.schema))(t,n);function nB(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var rB=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=zz(l,s.node().type.name,s.node().attrs);if(a instanceof Z&&a.node.isBlock)return!s.parentOffset||!Sj(o,s.pos)?!1:(r&&(e&&nB(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:az(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=Sj(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&Sj(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(m&&(a instanceof tM&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){let e=t.mapping.map(s.before()),n=t.doc.resolve(e);s.node(-1).canReplaceWith(n.index(),n.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&nB(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},iB=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=eR(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=Y.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=Y.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...zz(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(Y.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new X(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(tM.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...zz(d,u.type.name,u.attrs),...t},m={...zz(d,s.node().type.name,s.node().attrs),...t};n.delete(s.pos,c.pos);let h=f?[{type:o,attrs:p},{type:f,attrs:m}]:[{type:o,attrs:p}];if(!Sj(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,h).scrollIntoView(),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0},aB=(e,t)=>{let n=lz(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return n.node.type===i?.type&&wj(e.doc,n.pos)&&e.join(n.pos),!0},oB=(e,t)=>{let n=lz(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return n.node.type===i?.type&&wj(e.doc,r)&&e.join(r),!0},sB=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=eR(e,o.schema),m=eR(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=lz(e=>Gz(e.type.name,d))(h);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return l.liftListItem(m);if(Gz(x.node.type.name,d)&&p.validContent(x.node.content)&&s)return c().command(()=>(a.setNodeMarkup(x.pos,p),!0)).command(()=>aB(a,p)).command(()=>oB(a,p)).run()}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>aB(a,p)).command(()=>oB(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>aB(a,p)).command(()=>oB(a,p)).run()},cB=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=dR(e,r.schema);return Vz(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},lB=(e,t,n={})=>({state:r,commands:i})=>{let a=eR(e,r.schema),o=eR(t,r.schema),s=BR(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},uB=(e,t={})=>({state:n,commands:r})=>{let i=eR(e,n.schema);return BR(n,i,t)?r.lift(i):r.wrapIn(i,t)},dB=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},fB=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},pB=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=dR(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=uR(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},mB=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},hB=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=GR(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=eR(e,r.schema)),s===`mark`&&(o=dR(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},gB=(e,t={})=>({state:n,dispatch:r})=>GM(eR(e,n.schema),t)(n,r),_B=(e,t={})=>({state:n,dispatch:r})=>QM(eR(e,n.schema),t)(n,r),vB=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},yB=(e,t)=>{if(oR(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function bB(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o}=e,{view:s}=t;if(s.composing)return!1;let c=s.state.doc.resolve(n);if(c.parent.type.spec.code||(c.nodeBefore||c.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let l=!1,u=Bz(c)+i;return a.forEach(e=>{if(l)return;let a=yB(u,e.find);if(!a)return;let c=s.state.tr,d=WL({state:s.state,transaction:c}),f={from:n-(a[0].length-i.length),to:r},{commands:p,chain:m,can:h}=new GL({editor:t,state:d});e.handler({state:d,range:f,match:a,commands:p,chain:m,can:h})===null||!c.steps.length||(e.undoable&&c.setMeta(o,{transform:c,from:n,to:r,text:i}),s.dispatch(c),l=!0)}),l}function xB(e){let{editor:t,rules:n}=e,r=new dM({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:dz(Y.from(e),a.schema);let{from:i}=s;bB({editor:t,from:i,to:i+e.length,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return bB({editor:t,from:i,to:a,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&bB({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?bB({editor:t,from:a.pos,to:a.pos,text:`
|
|
142
|
+
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function SB(e){return Object.prototype.toString.call(e).slice(8,-1)}function CB(e){return SB(e)===`Object`?e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype:!1}function wB(e,t){let n={...e};return CB(e)&&CB(t)&&Object.keys(t).forEach(r=>{CB(t[r])&&CB(e[r])?n[r]=wB(e[r],t[r]):n[r]=t[r]}),n}var TB=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...pz(Q(this,`addOptions`,{name:this.name}))||{}}}get storage(){return{...pz(Q(this,`addStorage`,{name:this.name,options:this.options}))||{}}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>wB(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},EB=class e extends TB{constructor(){super(...arguments),this.type=`mark`}static create(t={}){return new e(typeof t==`function`?t():t)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function DB(e){return typeof e==`number`}var OB=class{constructor(e){this.find=e.find,this.handler=e.handler}},kB=(e,t,n)=>{if(oR(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function AB(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new GL({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{if(e.type?.spec?.code||!(e.isText||e.isTextblock||e.isInline))return;let f=e.content?.size??e.nodeSize??0,p=Math.max(r,t),m=Math.min(i,t+f);p>=m||kB(e.isText?e.text||``:e.textBetween(p-t,m-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=p+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var jB=null,MB=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function NB(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr;if(!(!AB({editor:t,state:WL({state:e,transaction:c}),from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})||!c.steps.length)){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return n.map(e=>new dM({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(jB=t)},i=()=>{jB&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=jB;e?.isEditable&&setTimeout(()=>{let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:dz(Y.from(t),r.schema);let{from:n}=d,i=n+t.length,a=MB(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(!(!DB(p)||!m||p===m.b))return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var PB=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=Oz(e),this.schema=Tz(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=Q(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Rz(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this;return Dz([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:Rz(t.name,this.schema)},r=[],i=Q(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&Q(t,`exitable`,n)&&(a.ArrowRight=()=>EB.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=BL(a);r.push(o);let s=Q(t,`addInputRules`,n);if(Wz(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=xB({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=Q(t,`addPasteRules`,n);if(Wz(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=NB({editor:e,rules:t});r.push(...n)}}let l=Q(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r})}get attributes(){return gz(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=hz(this.extensions);return Object.fromEntries(t.filter(e=>!!Q(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=Q(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:eR(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:bz(r,n)})]:[]}))}dispatchTransaction(e){let{editor:t}=this;return Dz([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Rz(n.name,this.schema)},i=Q(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return Dz([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Rz(n.name,this.schema)},i=Q(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=hz(this.extensions);return Object.fromEntries(t.filter(e=>!!Q(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=Q(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:dR(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=bz(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{lV(i,e,t)}})}]:[]}))}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Rz(e.name,this.schema)};e.type===`mark`&&(pz(Q(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name);let n=Q(e,`onBeforeCreate`,t),r=Q(e,`onCreate`,t),i=Q(e,`onUpdate`,t),a=Q(e,`onSelectionUpdate`,t),o=Q(e,`onTransaction`,t),s=Q(e,`onFocus`,t),c=Q(e,`onBlur`,t),l=Q(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};PB.resolve=Oz,PB.sort=Dz,PB.flatten=uz,UL({},{ClipboardTextSerializer:()=>IB,Commands:()=>LB,Delete:()=>RB,Drop:()=>zB,Editable:()=>BB,FocusEvents:()=>HB,Keymap:()=>UB,Paste:()=>WB,Tabindex:()=>GB,TextDirection:()=>KB,focusEventsPluginKey:()=>VB});var FB=class e extends TB{constructor(){super(...arguments),this.type=`extension`}static create(t={}){return new e(typeof t==`function`?t():t)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},IB=FB.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new dM({key:new mM(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,o=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),c=Az(n);return kz(r,{from:o,to:s},{...this.options.blockSeparator===void 0?{}:{blockSeparator:this.options.blockSeparator},textSerializers:c})}}})]}}),LB=FB.create({name:`commands`,addCommands(){return{...KL}}}),RB=FB.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){let n=()=>{var n;if(((n=this.editor.options.coreExtensionOptions?.delete)?.filterTransaction)?.call(n,e)??e.getMeta(`y-sync$`))return;let r=iz(e.before,[e,...t]);Fz(r).forEach(t=>{r.mapping.mapResult(t.oldRange.from).deletedAfter&&r.mapping.mapResult(t.oldRange.to).deletedBefore&&r.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,i)=>{let a=i+n.nodeSize-2,o=t.oldRange.from<=i&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:i,to:a,newFrom:r.mapping.map(i),newTo:r.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:r})})});let i=r.mapping;r.steps.forEach((t,n)=>{if(t instanceof ej){let a=i.slice(n).map(t.from,-1),o=i.slice(n).map(t.to),s=i.invert().map(a,-1),c=i.invert().map(o),l=a>0?r.doc.nodeAt(a-1)?.marks.some(e=>e.eq(t.mark)):!1,u=r.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:a,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:r})}})};this.editor.options.coreExtensionOptions?.delete?.async??!0?setTimeout(n,0):n()}}),zB=FB.create({name:`drop`,addProseMirrorPlugins(){return[new dM({key:new mM(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),BB=FB.create({name:`editable`,addProseMirrorPlugins(){return[new dM({key:new mM(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),VB=new mM(`focusEvents`),HB=FB.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new dM({key:VB,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),UB=FB.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:Zj.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return vR()||LR()?i:r},addProseMirrorPlugins(){return[new dM({key:new mM(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=Zj.atStart(t.doc).from,l=Zj.atEnd(t.doc).to;if(a||!(o===c&&s===l)||!Kz(n.doc))return;let u=n.tr,d=WL({state:n,transaction:u}),{commands:f}=new GL({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),WB=FB.create({name:`paste`,addProseMirrorPlugins(){return[new dM({key:new mM(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),GB=FB.create({name:`tabindex`,addProseMirrorPlugins(){return[new dM({key:new mM(`tabindex`),props:{attributes:()=>this.editor.isEditable?{tabindex:`0`}:{}}})]}}),KB=FB.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=hz(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new dM({key:new mM(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}});function qB(e){return new vB({find:e.find,handler:({state:t,range:n,match:r})=>{let i=pz(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(Iz(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function JB(e){return new vB({find:e.find,handler:({state:t,range:n,match:r})=>{let i=pz(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function YB(e){return new vB({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=pz(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function XB(e){return new vB({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=pz(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&fj(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&wj(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var ZB=e=>`touches`in e,QB=class{constructor(e){this.directions=[`bottom-left`,`bottom-right`,`top-left`,`top-right`],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:``,wrapper:``,handle:``,resizing:``},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.clientX-this.startX,n=e.clientY-this.startY;this.handleResize(t,n)},this.handleTouchMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.touches[0];if(!t)return;let n=t.clientX-this.startX,r=t.clientY-this.startY;this.handleResize(n,r)},this.handleMouseUp=()=>{if(!this.isResizing)return;let e=this.element.offsetWidth,t=this.element.offsetHeight;this.onCommit(e,t),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState=`false`,this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),document.removeEventListener(`keydown`,this.handleKeyDown),document.removeEventListener(`keyup`,this.handleKeyUp)},this.handleKeyDown=e=>{e.key===`Shift`&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=e=>{e.key===`Shift`&&(this.isShiftKeyPressed=!1)},this.node=e.node,this.editor=e.editor,this.element=e.element,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,e.options?.min&&(this.minSize={...this.minSize,...e.options.min}),e.options?.max&&(this.maxSize=e.options.max),e?.options?.directions&&(this.directions=e.options.directions),e.options?.preserveAspectRatio&&(this.preserveAspectRatio=e.options.preserveAspectRatio),e.options?.className&&(this.classNames={container:e.options.className.container||``,wrapper:e.options.className.wrapper||``,handle:e.options.className.handle||``,resizing:e.options.className.resizing||``}),e.options?.createCustomHandle&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on(`update`,this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){return this.contentElement??null}handleEditorUpdate(){let e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(e,t,n){return e.type===this.node.type?(this.node=e,this.onUpdate?this.onUpdate(e,t,n):!0):!1}destroy(){this.isResizing&&(this.container.dataset.resizeState=`false`,this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),document.removeEventListener(`keydown`,this.handleKeyDown),document.removeEventListener(`keyup`,this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off(`update`,this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){let e=document.createElement(`div`);return e.dataset.resizeContainer=``,e.dataset.node=this.node.type.name,e.style.display=this.node.type.isInline?`inline-flex`:`flex`,this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){let e=document.createElement(`div`);return e.style.position=`relative`,e.style.display=`block`,e.dataset.resizeWrapper=``,this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){let t=document.createElement(`div`);return t.dataset.resizeHandle=e,t.style.position=`absolute`,this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(e,t){let n=t.includes(`top`),r=t.includes(`bottom`),i=t.includes(`left`),a=t.includes(`right`);n&&(e.style.top=`0`),r&&(e.style.bottom=`0`),i&&(e.style.left=`0`),a&&(e.style.right=`0`),(t===`top`||t===`bottom`)&&(e.style.left=`0`,e.style.right=`0`),(t===`left`||t===`right`)&&(e.style.top=`0`,e.style.bottom=`0`)}attachHandles(){this.directions.forEach(e=>{let t;t=this.createCustomHandle?this.createCustomHandle(e):this.createHandle(e),t instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(e)),this.createCustomHandle||this.positionHandle(t,e),t.addEventListener(`mousedown`,t=>this.handleResizeStart(t,e)),t.addEventListener(`touchstart`,t=>this.handleResizeStart(t,e)),this.handleMap.set(e,t),this.wrapper.appendChild(t)})}removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){let e=this.node.attrs.width,t=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,t){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=t,ZB(e)?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState=`true`,this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener(`mousemove`,this.handleMouseMove),document.addEventListener(`touchmove`,this.handleTouchMove),document.addEventListener(`mouseup`,this.handleMouseUp),document.addEventListener(`keydown`,this.handleKeyDown),document.addEventListener(`keyup`,this.handleKeyUp)}handleResize(e,t){if(!this.activeHandle)return;let n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:i}=this.calculateNewDimensions(this.activeHandle,e,t),a=this.applyConstraints(r,i,n);this.element.style.width=`${a.width}px`,this.element.style.height=`${a.height}px`,this.onResize&&this.onResize(a.width,a.height)}calculateNewDimensions(e,t,n){let r=this.startWidth,i=this.startHeight,a=e.includes(`right`),o=e.includes(`left`),s=e.includes(`bottom`),c=e.includes(`top`);return a?r=this.startWidth+t:o&&(r=this.startWidth-t),s?i=this.startHeight+n:c&&(i=this.startHeight-n),(e===`right`||e===`left`)&&(r=this.startWidth+(a?t:-t)),(e===`top`||e===`bottom`)&&(i=this.startHeight+(s?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,i,e):{width:r,height:i}}applyConstraints(e,t,n){if(!n){let n=Math.max(this.minSize.width,e),r=Math.max(this.minSize.height,t);return this.maxSize?.width&&(n=Math.min(this.maxSize.width,n)),this.maxSize?.height&&(r=Math.min(this.maxSize.height,r)),{width:n,height:r}}let r=e,i=t;return r<this.minSize.width&&(r=this.minSize.width,i=r/this.aspectRatio),i<this.minSize.height&&(i=this.minSize.height,r=i*this.aspectRatio),this.maxSize?.width&&r>this.maxSize.width&&(r=this.maxSize.width,i=r/this.aspectRatio),this.maxSize?.height&&i>this.maxSize.height&&(i=this.maxSize.height,r=i*this.aspectRatio),{width:r,height:i}}applyAspectRatio(e,t,n){return n===`left`||n===`right`?{width:e,height:e/this.aspectRatio}:n===`top`||n===`bottom`?{width:t*this.aspectRatio,height:t}:{width:e,height:e/this.aspectRatio}}};function $B(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof Z){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}UL({},{createAtomBlockMarkdownSpec:()=>nV,createBlockMarkdownSpec:()=>rV,createInlineMarkdownSpec:()=>oV,parseAttributes:()=>eV,parseIndentedBlocks:()=>sV,renderNestedMarkdownContent:()=>cV,serializeAttributes:()=>tV});function eV(e){if(!e?.trim())return{};let t={},n=[],r=e.replace(/["']([^"']*)["']/g,e=>(n.push(e),`__QUOTED_${n.length-1}__`)),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);i&&(t.class=i.map(e=>e.trim().slice(1)).join(` `));let a=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);a&&(t.id=a[1]),Array.from(r.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach(([,e,r])=>{let i=n[parseInt(r.match(/__QUOTED_(\d+)__/)?.[1]||`0`,10)];i&&(t[e]=i.slice(1,-1))});let o=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,``).replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,``).replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,``).trim();return o&&o.split(/\s+/).filter(Boolean).forEach(e=>{e.match(/^[a-zA-Z][\w-]*$/)&&(t[e]=!0)}),t}function tV(e){if(!e||Object.keys(e).length===0)return``;let t=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(e=>t.push(`.${e}`)),e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([e,n])=>{e===`class`||e===`id`||(n===!0?t.push(e):n!==!1&&n!=null&&t.push(`${e}="${String(n)}"`))}),t.join(` `)}function nV(e){let{nodeName:t,name:n,parseAttributes:r=eV,serializeAttributes:i=tV,defaultAttributes:a={},requiredAttributes:o=[],allowedAttributes:s}=e,c=n||t,l=e=>{if(!s)return e;let t={};return s.forEach(n=>{n in e&&(t[n]=e[n])}),t};return{parseMarkdown:(e,n)=>{let r={...a,...e.attributes};return n.createNode(t,r,[])},markdownTokenizer:{name:t,level:`block`,start(e){let t=RegExp(`^:::${c}(?:\\s|$)`,`m`),n=e.match(t)?.index;return n===void 0?-1:n},tokenize(e,n,i){let a=RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),s=e.match(a);if(!s)return;let l=r(s[1]||``);if(!o.find(e=>!(e in l)))return{type:t,raw:s[0],attributes:l}}},renderMarkdown:e=>{let t=i(l(e.attrs||{}));return`:::${c}${t?` {${t}}`:``} :::`}}}function rV(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=eV,serializeAttributes:a=tV,defaultAttributes:o={},content:s=`block`,allowedAttributes:c}=e,l=n||t,u=e=>{if(!c)return e;let t={};return c.forEach(n=>{n in e&&(t[n]=e[n])}),t};return{parseMarkdown:(e,n)=>{let i;if(r){let t=r(e);i=typeof t==`string`?[{type:`text`,text:t}]:t}else i=s===`block`?n.parseChildren(e.tokens||[]):n.parseInline(e.tokens||[]);let a={...o,...e.attributes};return n.createNode(t,a,i)},markdownTokenizer:{name:t,level:`block`,start(e){let t=RegExp(`^:::${l}`,`m`),n=e.match(t)?.index;return n===void 0?-1:n},tokenize(e,n,r){let a=RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),o=e.match(a);if(!o)return;let[c,u=``]=o,d=i(u),f=1,p=c.length,m=``,h=/^:::([\w-]*)(\s.*)?/gm,g=e.slice(p);for(h.lastIndex=0;;){let n=h.exec(g);if(n===null)break;let i=n.index,a=n[1];if(!n[2]?.endsWith(`:::`)){if(a)f+=1;else if(--f,f===0){let a=g.slice(0,i);m=a.trim();let o=e.slice(0,p+i+n[0].length),c=[];if(m)if(s===`block`)for(c=r.blockTokens(a),c.forEach(e=>{e.text&&(!e.tokens||e.tokens.length===0)&&(e.tokens=r.inlineTokens(e.text))});c.length>0;){let e=c[c.length-1];if(e.type===`paragraph`&&(!e.text||e.text.trim()===``))c.pop();else break}else c=r.inlineTokens(m);return{type:t,raw:o,attributes:d,content:m,tokens:c}}}}}},renderMarkdown:(e,t)=>{let n=a(u(e.attrs||{}));return`:::${l}${n?` {${n}}`:``}
|
|
143
|
+
|
|
144
|
+
${t.renderChildren(e.content||[],`
|
|
145
|
+
|
|
146
|
+
`)}
|
|
147
|
+
|
|
148
|
+
:::`}}}function iV(e){if(!e.trim())return{};let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;r!==null;){let[,i,a,o]=r;t[i]=a||o,r=n.exec(e)}return t}function aV(e){return Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e}="${t}"`).join(` `)}function oV(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=iV,serializeAttributes:a=aV,defaultAttributes:o={},selfClosing:s=!1,allowedAttributes:c}=e,l=n||t,u=e=>{if(!c)return e;let t={};return c.forEach(n=>{let r=typeof n==`string`?n:n.name,i=typeof n==`string`?void 0:n.skipIfDefault;if(r in e){let n=e[r];if(i!==void 0&&n===i)return;t[r]=n}}),t},d=l.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return{parseMarkdown:(e,n)=>{let i={...o,...e.attributes};if(s)return n.createNode(t,i);let a=r?r(e):e.content||``;return a?n.createNode(t,i,[n.createTextNode(a)]):n.createNode(t,i,[])},markdownTokenizer:{name:t,level:`inline`,start(e){let t=RegExp(s?`\\[${d}\\s*[^\\]]*\\]`:`\\[${d}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${d}\\]`),n=e.match(t)?.index;return n===void 0?-1:n},tokenize(e,n,r){let a=RegExp(s?`^\\[${d}\\s*([^\\]]*)\\]`:`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`),o=e.match(a);if(!o)return;let c=``,l=``;if(s){let[,e]=o;l=e}else{let[,e,t]=o;l=e,c=t||``}let u=i(l.trim());return{type:t,raw:o[0],content:c.trim(),attributes:u}}},renderMarkdown:e=>{let t=``;r?t=r(e):e.content&&e.content.length>0&&(t=e.content.filter(e=>e.type===`text`).map(e=>e.text).join(``));let n=a(u(e.attrs||{})),i=n?` ${n}`:``;return s?`[${l}${i}]`:`[${l}${i}]${t}[/${l}]`}}}function sV(e,t,n){let r=e.split(`
|
|
149
|
+
`),i=[],a=``,o=0,s=t.baseIndentSize||2;for(;o<r.length;){let e=r[o],c=e.match(t.itemPattern);if(!c){if(i.length>0)break;if(e.trim()===``){o+=1,a=`${a}${e}
|
|
150
|
+
`;continue}else return}let l=t.extractItemData(c),{indentLevel:u,mainContent:d}=l;a=`${a}${e}
|
|
151
|
+
`;let f=[d];for(o+=1;o<r.length;){let e=r[o];if(e.trim()===``){let t=r.slice(o+1).findIndex(e=>e.trim()!==``);if(t===-1)break;if((r[o+1+t].match(/^(\s*)/)?.[1]?.length||0)>u){f.push(e),a=`${a}${e}
|
|
152
|
+
`,o+=1;continue}else break}if((e.match(/^(\s*)/)?.[1]?.length||0)>u)f.push(e),a=`${a}${e}
|
|
153
|
+
`,o+=1;else break}let p,m=f.slice(1);if(m.length>0){let e=m.map(e=>e.slice(u+s)).join(`
|
|
154
|
+
`);e.trim()&&(p=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let h=t.createToken(l,p);i.push(h)}if(i.length!==0)return{items:i,raw:a}}function cV(e,t,n,r){if(!e||!Array.isArray(e.content))return``;let i=typeof n==`function`?n(r):n,[a,...o]=e.content,s=`${i}${t.renderChildren([a])}`;return o&&o.length>0&&o.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=r.split(`
|
|
155
|
+
`).map(e=>e?t.indent(e):t.indent(``)).join(`
|
|
156
|
+
`);s+=e.type===`paragraph`?`
|
|
157
|
+
|
|
158
|
+
${n}`:`
|
|
159
|
+
${n}`}}),s}function lV(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var uV=class e extends TB{constructor(){super(...arguments),this.type=`node`}static create(t={}){return new e(typeof t==`function`?t():t)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function dV(e){return new OB({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=pz(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let r=c.search(/\S/),i=n.from+c.indexOf(s),u=i+s.length;if(Iz(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>i).length)return null;u<n.to&&o.delete(u,n.to),i>n.from&&o.delete(n.from+r,i),l=n.from+r+s.length,o.addMark(n.from+r,l,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}var fV=(e,t)=>{if(e===`slot`)return 0;if(e instanceof Function)return e(t);let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);return[e,r,n]},pV=/^\s*>\s$/,mV=uV.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return fV(`blockquote`,{...yz(this.options.HTMLAttributes,e),children:fV(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(`
|
|
160
|
+
`).map(e=>e.trim()===``?`>`:`> ${e}`);n.push(i.join(`
|
|
161
|
+
`))}),n.join(`
|
|
162
|
+
>
|
|
163
|
+
`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[XB({find:pV,type:this.type})]}}),hV=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,gV=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,_V=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,vV=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,yV=EB.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return fV(`strong`,{...yz(this.options.HTMLAttributes,e),children:fV(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[qB({find:hV,type:this.type}),qB({find:_V,type:this.type})]},addPasteRules(){return[dV({find:gV,type:this.type}),dV({find:vV,type:this.type})]}}),bV=/(^|[^`])`([^`]+)`(?!`)$/,xV=/(^|[^`])`([^`]+)`(?!`)/g,SV=EB.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,yz(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:``,addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[qB({find:bV,type:this.type})]},addPasteRules(){return[dV({find:xV,type:this.type})]}}),CV=4,wV=/^```([a-z]+)?[\s\n]$/,TV=/^~~~([a-z]+)?[\s\n]$/,EV=uV.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:CV,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,yz(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(`
|
|
164
|
+
`):`\`\`\`${r}
|
|
165
|
+
|
|
166
|
+
\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??CV,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,`
|
|
167
|
+
`,`
|
|
168
|
+
`).split(`
|
|
169
|
+
`).map(e=>o+e).join(`
|
|
170
|
+
`);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??CV,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,`
|
|
171
|
+
`,`
|
|
172
|
+
`).split(`
|
|
173
|
+
`),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(tM.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
|
|
174
|
+
`,`
|
|
175
|
+
`).split(`
|
|
176
|
+
`).map(e=>{let n=e.match(/^ */)?.[0]||``,r=Math.min(n.length,t);return e.slice(r)}).join(`
|
|
177
|
+
`);return e.replaceWith(i,a,n.schema.text(o)),!0}):!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(`
|
|
178
|
+
|
|
179
|
+
`);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(Zj.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[YB({find:wV,type:this.type,getAttributes:e=>({language:e[1]})}),YB({find:TV,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new dM({key:new mM(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,`
|
|
180
|
+
`));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(tM.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),DV=uV.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
181
|
+
|
|
182
|
+
`):``}),OV=uV.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,yz(this.options.HTMLAttributes,e)]},renderText(){return`
|
|
183
|
+
`},renderMarkdown:()=>`
|
|
184
|
+
`,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),kV=uV.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,yz(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>YB({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),AV=uV.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,yz(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!$B(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return qz(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(tM.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(Z.create(t.doc,n.pos)):t.setSelection(tM.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(tM.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[JB({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),jV=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,MV=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,NV=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,PV=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,FV=EB.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,yz(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[qB({find:jV,type:this.type}),qB({find:NV,type:this.type})]},addPasteRules(){return[dV({find:MV,type:this.type}),dV({find:PV,type:this.type})]}}),IV=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,LV=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,RV=`numeric`,zV=`ascii`,BV=`alpha`,VV=`asciinumeric`,HV=`alphanumeric`,UV=`domain`,WV=`emoji`,GV=`scheme`,KV=`slashscheme`,qV=`whitespace`;function JV(e,t){return e in t||(t[e]=[]),t[e]}function YV(e,t,n){t[RV]&&(t[VV]=!0,t[HV]=!0),t[zV]&&(t[VV]=!0,t[BV]=!0),t[VV]&&(t[HV]=!0),t[BV]&&(t[HV]=!0),t[HV]&&(t[UV]=!0),t[WV]&&(t[UV]=!0);for(let r in t){let t=JV(r,n);t.indexOf(e)<0&&t.push(e)}}function XV(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function ZV(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}ZV.groups={},ZV.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=ZV.groups;let i;return t&&t.j?i=t:(i=new ZV(t),n&&r&&YV(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=ZV.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new ZV,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new ZV,a&&(r&&(o.t&&typeof o.t==`string`?YV(a,Object.assign(XV(o.t,r),n),r):n&&YV(a,n,r)),o.t=a),i.j[e]=o,o}};var QV=(e,t,n,r,i)=>e.ta(t,n,r,i),$V=(e,t,n,r,i)=>e.tr(t,n,r,i),eH=(e,t,n,r,i)=>e.ts(t,n,r,i),$=(e,t,n,r,i)=>e.tt(t,n,r,i),tH=`WORD`,nH=`UWORD`,rH=`ASCIINUMERICAL`,iH=`ALPHANUMERICAL`,aH=`LOCALHOST`,oH=`TLD`,sH=`UTLD`,cH=`SCHEME`,lH=`SLASH_SCHEME`,uH=`NUM`,dH=`WS`,fH=`NL`,pH=`OPENBRACE`,mH=`CLOSEBRACE`,hH=`OPENBRACKET`,gH=`CLOSEBRACKET`,_H=`OPENPAREN`,vH=`CLOSEPAREN`,yH=`OPENANGLEBRACKET`,bH=`CLOSEANGLEBRACKET`,xH=`FULLWIDTHLEFTPAREN`,SH=`FULLWIDTHRIGHTPAREN`,CH=`LEFTCORNERBRACKET`,wH=`RIGHTCORNERBRACKET`,TH=`LEFTWHITECORNERBRACKET`,EH=`RIGHTWHITECORNERBRACKET`,DH=`FULLWIDTHLESSTHAN`,OH=`FULLWIDTHGREATERTHAN`,kH=`AMPERSAND`,AH=`APOSTROPHE`,jH=`ASTERISK`,MH=`AT`,NH=`BACKSLASH`,PH=`BACKTICK`,FH=`CARET`,IH=`COLON`,LH=`COMMA`,RH=`DOLLAR`,zH=`DOT`,BH=`EQUALS`,VH=`EXCLAMATION`,HH=`HYPHEN`,UH=`PERCENT`,WH=`PIPE`,GH=`PLUS`,KH=`POUND`,qH=`QUERY`,JH=`QUOTE`,YH=`FULLWIDTHMIDDLEDOT`,XH=`SEMI`,ZH=`SLASH`,QH=`TILDE`,$H=`UNDERSCORE`,eU=`EMOJI`,tU=`SYM`,nU=Object.freeze({__proto__:null,ALPHANUMERICAL:iH,AMPERSAND:kH,APOSTROPHE:AH,ASCIINUMERICAL:rH,ASTERISK:jH,AT:MH,BACKSLASH:NH,BACKTICK:PH,CARET:FH,CLOSEANGLEBRACKET:bH,CLOSEBRACE:mH,CLOSEBRACKET:gH,CLOSEPAREN:vH,COLON:IH,COMMA:LH,DOLLAR:RH,DOT:zH,EMOJI:eU,EQUALS:BH,EXCLAMATION:VH,FULLWIDTHGREATERTHAN:OH,FULLWIDTHLEFTPAREN:xH,FULLWIDTHLESSTHAN:DH,FULLWIDTHMIDDLEDOT:YH,FULLWIDTHRIGHTPAREN:SH,HYPHEN:HH,LEFTCORNERBRACKET:CH,LEFTWHITECORNERBRACKET:TH,LOCALHOST:aH,NL:fH,NUM:uH,OPENANGLEBRACKET:yH,OPENBRACE:pH,OPENBRACKET:hH,OPENPAREN:_H,PERCENT:UH,PIPE:WH,PLUS:GH,POUND:KH,QUERY:qH,QUOTE:JH,RIGHTCORNERBRACKET:wH,RIGHTWHITECORNERBRACKET:EH,SCHEME:cH,SEMI:XH,SLASH:ZH,SLASH_SCHEME:lH,SYM:tU,TILDE:QH,TLD:oH,UNDERSCORE:$H,UTLD:sH,UWORD:nH,WORD:tH,WS:dH}),rU=/[a-z]/,iU=/\p{L}/u,aU=/\p{Emoji}/u,oU=/\d/,sU=/\s/,cU=`\r`,lU=`
|
|
185
|
+
`,uU=`️`,dU=``,fU=``,pU=null,mU=null;function hU(e=[]){let t={};ZV.groups=t;let n=new ZV;pU??=yU(IV),mU??=yU(LV),$(n,`'`,AH),$(n,`{`,pH),$(n,`}`,mH),$(n,`[`,hH),$(n,`]`,gH),$(n,`(`,_H),$(n,`)`,vH),$(n,`<`,yH),$(n,`>`,bH),$(n,`(`,xH),$(n,`)`,SH),$(n,`「`,CH),$(n,`」`,wH),$(n,`『`,TH),$(n,`』`,EH),$(n,`<`,DH),$(n,`>`,OH),$(n,`&`,kH),$(n,`*`,jH),$(n,`@`,MH),$(n,"`",PH),$(n,`^`,FH),$(n,`:`,IH),$(n,`,`,LH),$(n,`$`,RH),$(n,`.`,zH),$(n,`=`,BH),$(n,`!`,VH),$(n,`-`,HH),$(n,`%`,UH),$(n,`|`,WH),$(n,`+`,GH),$(n,`#`,KH),$(n,`?`,qH),$(n,`"`,JH),$(n,`/`,ZH),$(n,`;`,XH),$(n,`~`,QH),$(n,`_`,$H),$(n,`\\`,NH),$(n,`・`,YH);let r=$V(n,oU,uH,{[RV]:!0});$V(r,oU,r);let i=$V(r,rU,rH,{[VV]:!0}),a=$V(r,iU,iH,{[HV]:!0}),o=$V(n,rU,tH,{[zV]:!0});$V(o,oU,i),$V(o,rU,o),$V(i,oU,i),$V(i,rU,i);let s=$V(n,iU,nH,{[BV]:!0});$V(s,rU),$V(s,oU,a),$V(s,iU,s),$V(a,oU,a),$V(a,rU),$V(a,iU,a);let c=$(n,lU,fH,{[qV]:!0}),l=$(n,cU,dH,{[qV]:!0}),u=$V(n,sU,dH,{[qV]:!0});$(n,fU,u),$(l,lU,c),$(l,fU,u),$V(l,sU,u),$(u,cU),$(u,lU),$V(u,sU,u),$(u,fU,u);let d=$V(n,aU,eU,{[WV]:!0});$(d,`#`),$V(d,aU,d),$(d,uU,d);let f=$(d,dU);$(f,`#`),$V(f,aU,d);let p=[[rU,o],[oU,i]],m=[[rU,null],[iU,s],[oU,a]];for(let e=0;e<pU.length;e++)vU(n,pU[e],oH,tH,p);for(let e=0;e<mU.length;e++)vU(n,mU[e],sH,nH,m);YV(oH,{tld:!0,ascii:!0},t),YV(sH,{utld:!0,alpha:!0},t),vU(n,`file`,cH,tH,p),vU(n,`mailto`,cH,tH,p),vU(n,`http`,lH,tH,p),vU(n,`https`,lH,tH,p),vU(n,`ftp`,lH,tH,p),vU(n,`ftps`,lH,tH,p),YV(cH,{scheme:!0,ascii:!0},t),YV(lH,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[GV]:!0}:{[KV]:!0};r.indexOf(`-`)>=0?i[UV]=!0:rU.test(r)?oU.test(r)?i[VV]=!0:i[zV]=!0:i[RV]=!0,eH(n,r,r,i)}return eH(n,`localhost`,aH,{ascii:!0}),n.jd=new ZV(tU),{start:n,tokens:Object.assign({groups:t},nU)}}function gU(e,t){let n=_U(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function _U(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function vU(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new ZV(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new ZV(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function yU(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var bU={defaultProtocol:`http`,events:null,format:SU,formatHref:SU,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function xU(e,t=null){let n=Object.assign({},bU);e&&(n=Object.assign(n,e instanceof xU?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}xU.prototype={o:bU,ignoreTags:[],defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:bU[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function SU(e){return e}function CU(e,t){this.t=`token`,this.v=e,this.tk=t}CU.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=bU.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function wU(e,t){class n extends CU{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var TU=wU(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),EU=wU(`text`),DU=wU(`nl`),OU=wU(`url`,{isLink:!0,toHref(e=bU.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==aH&&e[1].t===IH}}),kU=e=>new ZV(e);function AU({groups:e}){let t=e.domain.concat([kH,jH,MH,NH,PH,FH,RH,BH,HH,uH,UH,WH,GH,KH,ZH,tU,QH,$H]),n=[AH,IH,LH,zH,VH,UH,qH,JH,XH,yH,bH,pH,mH,gH,hH,_H,vH,xH,SH,CH,wH,TH,EH,DH,OH],r=[kH,AH,jH,NH,PH,FH,RH,BH,HH,pH,mH,UH,WH,GH,KH,qH,ZH,tU,QH,$H],i=kU(),a=$(i,QH);QV(a,r,a),QV(a,e.domain,a);let o=kU(),s=kU(),c=kU();QV(i,e.domain,o),QV(i,e.scheme,s),QV(i,e.slashscheme,c),QV(o,r,a),QV(o,e.domain,o);let l=$(o,MH);$(a,MH,l),$(s,MH,l),$(c,MH,l);let u=$(a,zH);QV(u,r,a),QV(u,e.domain,a);let d=kU();QV(l,e.domain,d),QV(d,e.domain,d);let f=$(d,zH);QV(f,e.domain,d);let p=kU(TU);QV(f,e.tld,p),QV(f,e.utld,p),$(l,aH,p);let m=$(d,HH);$(m,HH,m),QV(m,e.domain,d),QV(p,e.domain,d),$(p,zH,f),$(p,HH,m),QV($(p,IH),e.numeric,TU);let h=$(o,HH),g=$(o,zH);$(h,HH,h),QV(h,e.domain,o),QV(g,r,a),QV(g,e.domain,o);let _=kU(OU);QV(g,e.tld,_),QV(g,e.utld,_),QV(_,e.domain,o),QV(_,r,a),$(_,zH,g),$(_,HH,h),$(_,MH,l);let v=$(_,IH),y=kU(OU);QV(v,e.numeric,y);let b=kU(OU),x=kU();QV(b,t,b),QV(b,n,x),QV(x,t,b),QV(x,n,x),$(_,ZH,b),$(y,ZH,b);let S=$(s,IH),C=$($($(c,IH),ZH),ZH);QV(s,e.domain,o),$(s,zH,g),$(s,HH,h),QV(c,e.domain,o),$(c,zH,g),$(c,HH,h),QV(S,e.domain,b),$(S,ZH,b),$(S,qH,b),QV(C,e.domain,b),QV(C,t,b),$(C,ZH,b);let w=[[pH,mH],[hH,gH],[_H,vH],[yH,bH],[xH,SH],[CH,wH],[TH,EH],[DH,OH]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=$(b,r);$(x,r,a),$(a,i,b);let o=kU(OU);QV(a,t,o);let s=kU();QV(a,n),QV(o,t,o),QV(o,n,s),QV(s,t,o),QV(s,n,s),$(o,i,b),$(s,i,b)}return $(i,aH,_),$(i,fH,DU),{start:i,tokens:nU}}function jU(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i<r;){let s=e,c=null,l=null,u=0,d=null,f=-1;for(;i<r&&!(c=s.go(n[i].t));)o.push(n[i++]);for(;i<r&&(l=c||s.go(n[i].t));)c=null,s=l,s.accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(MU(EU,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(MU(e,t,r))}}return o.length>0&&a.push(MU(EU,t,o)),a}function MU(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var NU=typeof console<`u`&&console&&console.warn||(()=>{}),PU=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,FU={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function IU(){return ZV.groups={},FU.scanner=null,FU.parser=null,FU.tokenQueue=[],FU.pluginQueue=[],FU.customSchemes=[],FU.initialized=!1,FU}function LU(e,t=!1){if(FU.initialized&&NU(`linkifyjs: already initialized - will not register custom scheme "${e}" ${PU}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
|
|
186
|
+
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
187
|
+
2. Cannot start or end with "-"
|
|
188
|
+
3. "-" cannot repeat`);FU.customSchemes.push([e,t])}function RU(){FU.scanner=hU(FU.customSchemes);for(let e=0;e<FU.tokenQueue.length;e++)FU.tokenQueue[e][1]({scanner:FU.scanner});FU.parser=AU(FU.scanner.tokens);for(let e=0;e<FU.pluginQueue.length;e++)FU.pluginQueue[e][1]({scanner:FU.scanner,parser:FU.parser});return FU.initialized=!0,FU}function zU(e){return FU.initialized||RU(),jU(FU.parser.start,e,gU(FU.scanner.start,e))}zU.scan=gU;function BU(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new xU(n),i=zU(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var VU=`[\0- \xA0 -\u2029 ]`,HU=new RegExp(VU),UU=RegExp(`${VU}$`),WU=new RegExp(VU,`g`);function GU(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function KU(e){return new dM({key:new mM(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r;if(Fz(iz(n.doc,[...t])).forEach(({newRange:t})=>{let n=sz(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!UU.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(HU).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=zU(n).map(t=>t.toObject(e.defaultProtocol));if(!GU(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>r.schema.marks.code?!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code):!0).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{Iz(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function qU(e){return new dM({key:new mM(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=Mz(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}function JU(e){return new dM({key:new mM(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=BU(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function YU(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(WU,``).match(RegExp(`^(?:(?:${n.join(`|`)}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,`i`))}var XU=EB.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e==`string`){LU(e);return}LU(e.scheme,e.optionalSlashes)})},onDestroy(){IU()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!YU(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!YU(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!YU(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,yz(this.options.HTMLAttributes,e),0]:[`a`,yz(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!YU(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!YU(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addPasteRules(){return[dV({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=BU(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!YU(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(KU({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!YU(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(qU({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(JU({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),ZU=Object.defineProperty,QU=(e,t)=>{for(var n in t)ZU(e,n,{get:t[n],enumerable:!0})},$U=`listItem`,eW=`textStyle`,tW=/^\s*([-+*])\s$/,nW=uV.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,yz(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
189
|
+
`):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes($U,this.editor.getAttributes(eW)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=XB({find:tW,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=XB({find:tW,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(eW),editor:this.editor})),[e]}}),rW=uV.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,yz(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>cV(e,t,e=>e.parentType===`bulletList`?`- `:e.parentType===`orderedList`?`${(e.meta?.parentAttrs?.start||1)+e.index}. `:`- `,n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});QU({},{findListItemPos:()=>iW,getNextListDepth:()=>aW,handleBackspace:()=>lW,handleDelete:()=>fW,hasListBefore:()=>oW,hasListItemAfter:()=>pW,hasListItemBefore:()=>sW,listItemHasSubList:()=>cW,nextListIsDeeper:()=>uW,nextListIsHigher:()=>dW});var iW=(e,t)=>{let{$from:n}=t.selection,r=eR(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},aW=(e,t)=>{let n=iW(e,t);if(!n)return!1;let[,r]=Lz(t,e,n.$pos.pos+4);return r},oW=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},sW=(e,t)=>{let{$anchor:n}=t.selection,r=t.doc.resolve(n.pos-2);return!(r.index()===0||r.nodeBefore?.type.name!==e)},cW=(e,t,n)=>{if(!n)return!1;let r=eR(e,t.schema),i=!1;return n.descendants(e=>{e.type===r&&(i=!0)}),i},lW=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!BR(e.state,t)&&oW(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!BR(e.state,t)||!Uz(e.state))return!1;let r=iW(t,e.state);if(!r)return!1;let i=e.state.doc.resolve(r.$pos.pos-2).node(r.depth),a=cW(t,e.state,i);return sW(t,e.state)&&!a?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},uW=(e,t)=>{let n=aW(e,t),r=iW(e,t);return!r||!n?!1:n>r.depth},dW=(e,t)=>{let n=aW(e,t),r=iW(e,t);return!r||!n?!1:n<r.depth},fW=(e,t)=>{if(!BR(e.state,t)||!Hz(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:uW(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():dW(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},pW=(e,t)=>{let{$anchor:n}=t.selection,r=t.doc.resolve(n.pos-n.parentOffset-2);return!(r.index()===r.parent.childCount-1||r.nodeAfter?.type.name!==e)},mW=FB.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&fW(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&fW(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&lW(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&lW(e,n,r)&&(t=!0)}),t}}}}),hW=/^(\s*)(\d+)\.\s+(.*)$/,gW=/^\s/;function _W(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(hW);if(!a)break;let[,o,s,c]=a,l=o.length,u=c,d=n+1,f=[i];for(;d<e.length;){let t=e[d];if(t.match(hW))break;if(t.trim()===``)f.push(t),u+=`
|
|
190
|
+
`,d+=1;else if(t.match(gW))f.push(t),u+=`
|
|
191
|
+
${t.slice(l+2)}`,d+=1;else break}t.push({indent:l,number:parseInt(s,10),content:u.trim(),raw:f.join(`
|
|
192
|
+
`)}),r=d,n=d}return[t,r]}function vW(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let o=a.content.split(`
|
|
193
|
+
`),s=o[0]?.trim()||``,c=[];s&&c.push({type:`paragraph`,raw:s,tokens:n.inlineTokens(s)});let l=o.slice(1).join(`
|
|
194
|
+
`).trim();if(l){let e=n.blockTokens(l);c.push(...e)}let u=i+1,d=[];for(;u<e.length&&e[u].indent>t;)d.push(e[u]),u+=1;if(d.length>0){let e=vW(d,Math.min(...d.map(e=>e.indent)),n);c.push({type:`list`,ordered:!0,start:d[0].number,items:e,raw:d.map(e=>e.raw).join(`
|
|
195
|
+
`)})}r.push({type:`list_item`,raw:a.raw,tokens:c}),i=u}else i+=1}return r}function yW(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var bW=`listItem`,xW=`textStyle`,SW=/^(\d+)\.\s$/,CW=uV.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>e.getAttribute(`type`)}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return t===1?[`ol`,yz(this.options.HTMLAttributes,n),0]:[`ol`,yz(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.items?yW(e.items,t):[];return n===1?{type:`orderedList`,content:r}:{type:`orderedList`,attrs:{start:n},content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
196
|
+
`):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/)?.index;return t===void 0?-1:t},tokenize:(e,t,n)=>{let r=e.split(`
|
|
197
|
+
`),[i,a]=_W(r);if(i.length===0)return;let o=vW(i,0,n);if(o.length!==0)return{type:`list`,ordered:!0,start:i[0]?.number||1,items:o,raw:r.slice(0,a).join(`
|
|
198
|
+
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(bW,this.editor.getAttributes(xW)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=XB({find:SW,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=XB({find:SW,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(xW)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),wW=/^\s*(\[([( |x])?\])\s$/,TW=uV.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,yz(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>cV(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`),l=e=>{var t;s.ariaLabel=((t=this.options.a11y)?.checkboxLabel)?.call(t,e,s.checked)||`Task item checkbox for ${e.textContent||`empty task item`}`};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=bz(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[XB({find:wW,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),EW=uV.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,yz(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
199
|
+
`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=sV(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);return t?[{type:`taskList`,raw:t.raw,items:t.items}]:n.blockTokens(e)},i=sV(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});FB.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(nW.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(rW.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(mW.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(CW.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(TW.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(EW.configure(this.options.taskList)),e}});var DW=` `,OW=`\xA0`,kW=uV.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,yz(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===DW||n[0].text===DW||n[0].raw===OW||n[0].text===OW)&&r.length===1&&r[0].type===`text`&&(r[0].text===DW||r[0].text===OW)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){let e=Array.isArray(n?.previousNode?.content)?n.previousNode.content:[];return n?.previousNode?.type===`paragraph`&&e.length===0?DW:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),AW=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,jW=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,MW=EB.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,yz(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[qB({find:AW,type:this.type})]},addPasteRules(){return[dV({find:jW,type:this.type})]}}),NW=uV.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),PW=EB.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,yz(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function FW(e={}){return new dM({view(t){return new IW(t,e)}})}var IW=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=Aj(this.editorView.state.doc,e,this.editorView.dragging.slice);t!=null&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},LW=class e extends Zj{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):Zj.near(r)}content(){return X.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new RW(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!BW(e)||!VW(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}else if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!Z.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};LW.prototype.visible=!1,LW.findFrom=LW.findGapCursorFrom,Zj.jsonID(`gapcursor`,LW);var RW=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return LW.valid(t)?new LW(t):Zj.near(t)}};function zW(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function BW(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||zW(e.type))return!0;if(e.inlineContent)return!1}}return!0}function VW(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||zW(e.type))return!0;if(e.inlineContent)return!1}}return!0}function HW(){return new dM({props:{decorations:qW,createSelectionBetween(e,t,n){return t.pos==n.pos&&LW.valid(n)?new LW(n):null},handleClick:GW,handleKeyDown:UW,handleDOMEvents:{beforeinput:KW}}})}var UW=VL({ArrowLeft:WW(`horiz`,-1),ArrowRight:WW(`horiz`,1),ArrowUp:WW(`vert`,-1),ArrowDown:WW(`vert`,1)});function WW(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof tM){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=LW.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new LW(c))),!0):!1}}function GW(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!LW.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Z.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new LW(r))),!0)}function KW(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof LW))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=Y.empty;for(let e=r.length-1;e>=0;e--)i=Y.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new X(i,0,0));return a.setSelection(tM.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function qW(e){if(!(e.selection instanceof LW))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,BI.create(e.doc,[LI.widget(e.selection.head,t,{key:`gapcursor`})])}var JW=200,YW=function(){};YW.prototype.append=function(e){return e.length?(e=YW.from(e),!this.length&&e||e.length<JW&&this.leafAppend(e)||this.length<JW&&e.leafPrepend(this)||this.appendInner(e)):this},YW.prototype.prepend=function(e){return e.length?YW.from(e).append(this):this},YW.prototype.appendInner=function(e){return new ZW(this,e)},YW.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?YW.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},YW.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},YW.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},YW.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},YW.from=function(e){return e instanceof YW?e:e&&e.length?new XW(e):YW.empty};var XW=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=JW)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=JW)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(YW);YW.empty=new XW([]);var ZW=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(YW),QW=500,$W=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step){i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);return}if(i){u.push(new tG(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new tG(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new tG(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>rG&&(s=eG(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new JA;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new tG(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new tG(i,o,l))}else r.push(new tG(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new tG(a.maps[e]));let u=new e(this.items.slice(0,i).append(l).append(r),s);return u.emptyItemCount()>QW&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new tG(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(YW.from(i.reverse()),a)}};$W.empty=new $W(YW.empty,0);function eG(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var tG=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},nG=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},rG=20;function iG(e,t,n,r){let i=n.getMeta(fG),a;if(i)return i.historyState;n.getMeta(pG)&&(e=new nG(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(fG))return o.getMeta(fG).redo?new nG(e.done.addTransform(n,void 0,r,dG(t)),e.undone,oG(n.mapping.maps),e.prevTime,e.prevComposition):new nG(e.done,e.undone.addTransform(n,void 0,r,dG(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!aG(n,e.prevRanges)),s=o?sG(e.prevRanges,n.mapping):oG(n.mapping.maps);return new nG(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,dG(t)),$W.empty,s,n.time,i??e.prevComposition)}else if(a=n.getMeta(`rebased`))return new nG(e.done.rebased(n,a),e.undone.rebased(n,a),sG(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new nG(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),sG(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function aG(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function oG(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function sG(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function cG(e,t,n){let r=dG(t),i=fG.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new nG(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(fG,{redo:n,historyState:c})}var lG=!1,uG=null;function dG(e){let t=e.plugins;if(uG!=t){lG=!1,uG=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){lG=!0;break}}return lG}var fG=new mM(`history`),pG=new mM(`closeHistory`);function mG(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new dM({key:fG,state:{init(){return new nG($W.empty,$W.empty,null,0,-1)},apply(t,n,r){return iG(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?gG:n==`historyRedo`?_G:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function hG(e,t){return(n,r)=>{let i=fG.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=cG(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var gG=hG(!1,!0),_G=hG(!0,!0);FB.create({name:`characterCount`,addOptions(){return{limit:null,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new dM({key:new mM(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit;if(i==null||i===0){e=!0;return}let a=this.storage.characters({node:r.doc});if(a>i){let t=a-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}});var vG=FB.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[FW(this.options)]}});FB.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new dM({key:new mM(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return BI.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(LI.node(t,t+e.nodeSize,{class:this.options.className}))}),BI.create(e,a)}}})]}});var yG=FB.create({name:`gapCursor`,addProseMirrorPlugins(){return[HW()]},extendNodeSchema(e){return{allowGapCursor:pz(Q(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),bG=`placeholder`;function xG(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}FB.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:bG,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${xG(this.options.dataAttribute)}`:`data-${bG}`;return[new dM({key:new mM(`placeholder`),props:{decorations:({doc:t,selection:n})=>{let r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=n,a=[];if(!r)return null;let o=this.editor.isEmpty;return t.descendants((t,n)=>{let r=i>=n&&i<=n+t.nodeSize,s=!t.isLeaf&&Kz(t);if(!t.type.isTextblock)return this.options.includeChildren;if((r||!this.options.showOnlyCurrent)&&s){let i=[this.options.emptyNodeClass];o&&i.push(this.options.emptyEditorClass);let s=LI.node(n,n+t.nodeSize,{class:i.join(` `),[e]:typeof this.options.placeholder==`function`?this.options.placeholder({editor:this.editor,node:t,pos:n,hasAnchor:r}):this.options.placeholder});a.push(s)}return this.options.includeChildren}),BI.create(t,a)}}})]}}),FB.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new dM({key:new mM(`selection`),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||qz(n.selection)||e.view.dragging?null:BI.create(n.doc,[LI.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});function SG({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var CG=FB.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new mM(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new dM({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!SG({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!SG({node:r,types:n})}}})]}}),wG=FB.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>gG(e,t),redo:()=>({state:e,dispatch:t})=>_G(e,t)}},addProseMirrorPlugins(){return[mG(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});FB.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(yV.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(mV.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(nW.configure(this.options.bulletList)),this.options.code!==!1&&e.push(SV.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(EV.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(DV.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(vG.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(yG.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(OV.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(kV.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(wG.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(AV.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(FV.configure(this.options.italic)),this.options.listItem!==!1&&e.push(rW.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(mW.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(XU.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(CW.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(kW.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(MW.configure(this.options.strike)),this.options.text!==!1&&e.push(NW.configure(this.options.text)),this.options.underline!==!1&&e.push(PW.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(CG.configure(this.options?.trailingNode)),e}}),FB.create({name:`textAlign`,addOptions(){return{types:[],alignments:[`left`,`center`,`right`,`justify`],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>this.options.alignments.includes(e)?this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).some(e=>e):!1,unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,`textAlign`)).some(e=>e),toggleTextAlign:e=>({editor:t,commands:n})=>this.options.alignments.includes(e)?t.isActive({textAlign:e})?n.unsetTextAlign():n.setTextAlign(e):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign(`left`),"Mod-Shift-e":()=>this.editor.commands.setTextAlign(`center`),"Mod-Shift-r":()=>this.editor.commands.setTextAlign(`right`),"Mod-Shift-j":()=>this.editor.commands.setTextAlign(`justify`)}}});var TG=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/;uV.create({name:`image`,addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?`inline`:`block`},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?`img[src]`:`img[src]:not([src^="data:"])`}]},renderHTML({HTMLAttributes:e}){return[`img`,yz(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode(`image`,{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{let t=e.attrs?.src??``,n=e.attrs?.alt??``,r=e.attrs?.title??``;return r?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>`u`)return null;let{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:r}=this.options.resize;return({node:i,getPos:a,HTMLAttributes:o,editor:s})=>{let c=document.createElement(`img`);Object.entries(o).forEach(([e,t])=>{if(t!=null)switch(e){case`width`:case`height`:break;default:c.setAttribute(e,t);break}}),c.src=o.src;let l=new QB({element:c,editor:s,node:i,getPos:a,onResize:(e,t)=>{c.style.width=`${e}px`,c.style.height=`${t}px`},onCommit:(e,t)=>{let n=a();n!==void 0&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,n)=>e.type===i.type,options:{directions:e,min:{width:t,height:n},preserveAspectRatio:r===!0}}),u=l.dom;return u.style.visibility=`hidden`,u.style.pointerEvents=`none`,c.onload=()=>{u.style.visibility=``,u.style.pointerEvents=``},l}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[JB({find:TG,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}});function EG(e,t=[]){return e.flatMap(e=>{let n=[...t,...e.properties?e.properties.className:[]];return e.children?EG(e.children,n):{text:e.value,classes:n}})}function DG(e){return e.value||e.children||[]}function OG(e){return!!mk.getLanguage(e)}function kG({doc:e,name:t,lowlight:n,defaultLanguage:r}){let i=[];return oz(e,e=>e.type.name===t).forEach(e=>{let t=e.pos+1,a=e.node.attrs.language||r,o=n.listLanguages();EG(a&&(o.includes(a)||OG(a)||n.registered?.call(n,a))?DG(n.highlight(a,e.node.textContent)):DG(n.highlightAuto(e.node.textContent))).forEach(e=>{let n=t+e.text.length;if(e.classes.length){let r=LI.inline(t,n,{class:e.classes.join(` `)});i.push(r)}t=n})}),BI.create(e,i)}function AG(e){return typeof e==`function`}function jG({name:e,lowlight:t,defaultLanguage:n}){if(![`highlight`,`highlightAuto`,`listLanguages`].every(e=>AG(t[e])))throw Error(`You should provide an instance of lowlight to use the code-block-lowlight extension`);let r=new dM({key:new mM(`lowlight`),state:{init:(r,{doc:i})=>kG({doc:i,name:e,lowlight:t,defaultLanguage:n}),apply:(r,i,a,o)=>{let s=a.selection.$head.parent.type.name,c=o.selection.$head.parent.type.name,l=oz(a.doc,t=>t.type.name===e),u=oz(o.doc,t=>t.type.name===e);return r.docChanged&&([s,c].includes(e)||u.length!==l.length||r.steps.some(e=>e.from!==void 0&&e.to!==void 0&&l.some(t=>t.pos>=e.from&&t.pos+t.node.nodeSize<=e.to)))?kG({doc:r.doc,name:e,lowlight:t,defaultLanguage:n}):i.map(r.mapping,r.doc)}},props:{decorations(e){return r.getState(e)}}});return r}EV.extend({addOptions(){return{...this.parent?.call(this),lowlight:{},languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){return[...this.parent?.call(this)||[],jG({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});var MG=e=>`prism-editor-${e}`,NG={root:MG(`root`),toolbar:{root:MG(`toolbar`),hr:MG(`toolbar-hr`),bold:MG(`toolbar-bold`),italic:MG(`toolbar-italic`),underline:MG(`toolbar-underline`),strike:MG(`toolbar-strike`),code:MG(`toolbar-code`),codeBlock:MG(`toolbar-code-block`),link:MG(`toolbar-link`),unlink:MG(`toolbar-unlink`),image:MG(`toolbar-image`),alignLeft:MG(`toolbar-align-left`),alignCenter:MG(`toolbar-align-center`),alignRight:MG(`toolbar-align-right`),alignJustify:MG(`toolbar-align-justify`),bulletList:MG(`toolbar-bullet-list`),orderedList:MG(`toolbar-ordered-list`),taskList:MG(`toolbar-task-list`),blockquote:MG(`toolbar-blockquote`),hardBreak:MG(`toolbar-hard-break`),clear:MG(`toolbar-clear`),undo:MG(`toolbar-undo`),redo:MG(`toolbar-redo`),fullscreen:MG(`toolbar-fullscreen`)},content:{root:MG(`content`),hr:MG(`content-hr`),link:MG(`content-link`),image:MG(`content-image`),heading:MG(`content-heading`),codeInline:MG(`content-code-inline`),codeBlock:MG(`content-code-block`),langSelect:MG(`content-lang-select`),blockquote:MG(`content-blockquote`),bulletList:MG(`content-bullet-list`),orderedList:MG(`content-ordered-list`),listItem:MG(`content-list-item`),taskList:MG(`content-task-list`),taskItem:MG(`content-task-item`),placeholder:MG(`content-placeholder`)},state:{error:MG(`state-error`),disabled:MG(`state-disabled`),fullscreen:MG(`state-fullscreen`)}},PG=`0.75em`;U(`div`)(({theme:e})=>({minHeight:240,display:`flex`,flexDirection:`column`,borderRadius:Number(e.shape.borderRadius)*1.5,border:`solid 1px ${W(e.palette.grey[500],.2)}`,transition:e.transitions.create([`border-color`,`box-shadow`],{duration:e.transitions.duration.short}),"&:focus-within":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 1px ${W(e.palette.primary.main,.2)}`},[`&.${NG.state.error}`]:{borderColor:e.palette.error.main,[`& .${NG.content.root}`]:{backgroundColor:W(e.palette.error.main,.04)}},[`&.${NG.state.disabled}`]:{opacity:.48,pointerEvents:`none`},[`&.${NG.state.fullscreen}`]:{top:16,left:16,position:`fixed`,maxHeight:`unset`,width:`calc(100% - 32px)`,height:`calc(100% - 32px)`,zIndex:e.zIndex.modal,borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:e.palette.background.default,boxShadow:e.shadows[24]},[`& .${NG.content.placeholder}`]:{"&:first-of-type::before":{...e.typography.body2,height:0,float:`left`,pointerEvents:`none`,content:`attr(data-placeholder)`,color:e.palette.text.disabled}},[`& .${NG.content.root}`]:{display:`flex`,flex:`1 1 auto`,overflowY:`auto`,flexDirection:`column`,borderBottomLeftRadius:`inherit`,borderBottomRightRadius:`inherit`,backgroundColor:W(e.palette.grey[500],.04),"& .tiptap":{"> * + *":{marginTop:0,marginBottom:PG},"&.ProseMirror":{flex:`1 1 auto`,outline:`none`,padding:e.spacing(0,2)},h1:{...e.typography.h1,marginTop:40,marginBottom:8},h2:{...e.typography.h2,marginTop:40,marginBottom:8},h3:{...e.typography.h3,marginTop:24,marginBottom:8},h4:{...e.typography.h4,marginTop:24,marginBottom:8},h5:{...e.typography.h5,marginTop:24,marginBottom:8},h6:{...e.typography.h6,marginTop:24,marginBottom:8},p:{...e.typography.body1,marginBottom:`1.25rem`},[`& .${NG.content.link}`]:{color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},[`& .${NG.content.hr}`]:{flexShrink:0,borderWidth:0,margin:`2em 0`,borderStyle:`solid`,borderBottomWidth:`thin`,borderColor:e.palette.divider},[`& .${NG.content.image}`]:{width:`100%`,height:`auto`,maxWidth:`100%`,borderRadius:e.shape.borderRadius,margin:`auto auto 1.25em`,"&.ProseMirror-selectednode":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:2}},[`& .${NG.content.bulletList}`]:{paddingLeft:16,listStyleType:`disc`},[`& .${NG.content.orderedList}`]:{paddingLeft:16},[`& .${NG.content.listItem}`]:{lineHeight:2,"& > p":{margin:0}},[`& .${NG.content.taskList}`]:{listStyle:`none`,padding:0,"& li":{display:`flex`,alignItems:`flex-start`,gap:e.spacing(1),"& > label":{marginTop:4,flexShrink:0},"& > div":{flex:1}}},[`& .${NG.content.blockquote}`]:{lineHeight:1.5,fontSize:`1.5em`,margin:`24px auto`,position:`relative`,fontFamily:`Georgia, serif`,padding:e.spacing(3,3,3,8),color:e.palette.text.secondary,borderLeft:`solid 8px ${W(e.palette.grey[500],.08)}`,[e.breakpoints.up(`md`)]:{width:`100%`,maxWidth:640},"& p":{margin:0,fontSize:`inherit`,fontFamily:`inherit`},"&::before":{left:16,top:-8,display:`block`,fontSize:`3em`,content:`"\\201C"`,position:`absolute`,color:e.palette.text.disabled}},[`& .${NG.content.codeInline}`]:{padding:e.spacing(.25,.5),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:W(e.palette.grey[500],.16),fontFamily:`'JetBrains Mono', 'Fira Code', monospace`},[`& .${NG.content.codeBlock}`]:{position:`relative`,"& pre":{overflowX:`auto`,color:e.palette.common.white,padding:e.spacing(5,3,3,3),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.grey[900],fontFamily:`'JetBrains Mono', 'Fira Code', monospace`,"& code":{fontSize:e.typography.body2.fontSize}},[`& .${NG.content.langSelect}`]:{top:8,right:8,zIndex:1,padding:4,outline:`none`,borderRadius:4,position:`absolute`,color:e.palette.common.white,fontWeight:e.typography.fontWeightMedium,borderColor:W(e.palette.grey[500],.08),backgroundColor:W(e.palette.grey[500],.08)}}}}})),U(Qe,{shouldForwardProp:e=>![`active`,`disabled`,`sx`].includes(e)})(({theme:e})=>({...e.typography.body2,width:28,height:28,padding:e.spacing(0,.75),borderRadius:Number(e.shape.borderRadius)*.75,"&:hover":{backgroundColor:e.palette.action.hover},variants:[{props:e=>!!e.active,style:{backgroundColor:e.palette.action.selected,border:`solid 1px ${e.palette.action.hover}`}},{props:e=>!!e.disabled,style:{opacity:.48,cursor:`default`,pointerEvents:`none`}}]})),U(Qe)(({theme:e})=>({width:28,height:28,borderRadius:Number(e.shape.borderRadius)*.75,justifyContent:`center`,"&:hover":{backgroundColor:e.palette.action.hover}})),U(`div`)(({theme:e})=>({flexWrap:`wrap`,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.spacing(1),padding:e.spacing(1.25),borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,backgroundColor:e.palette.background.paper,borderBottom:`solid 1px ${W(e.palette.grey[500],.2)}`})),U(`div`)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5)})),U(`div`)(({theme:e})=>({display:`flex`,gap:e.spacing(.5),padding:e.spacing(.5),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[8],backgroundColor:e.palette.background.paper,border:`1px solid ${W(e.palette.grey[500],.16)}`})),FB.create({name:`clearFormat`,addKeyboardShortcuts(){return{"Mod-Shift-X":({editor:e})=>e.chain().focus().clearNodes().unsetAllMarks().run()}}});var FG=e=>e instanceof HTMLElement,IG=(e,t)=>typeof e==`string`&&t.includes(e);EB.create({name:`textTransform`,addOptions(){return{allowedValues:[`uppercase`,`lowercase`,`capitalize`],defaultValue:void 0}},addAttributes(){return{textTransform:{default:this.options.defaultValue,parseHTML:e=>{if(!FG(e))return;let t=e.style.textTransform||e.getAttribute(`style`)?.match(/text-transform:\s*(\w+)/)?.[1];return IG(t,this.options.allowedValues)?t:void 0},renderHTML:e=>e.textTransform?{style:`text-transform: ${e.textTransform}`}:{}}}},parseHTML(){return[{tag:`span[style]`,getAttrs:e=>{if(!FG(e))return null;let t=e.style.textTransform;return IG(t,this.options.allowedValues)?{}:!1}}]},renderHTML({HTMLAttributes:e}){return[`span`,e,0]},addCommands(){return{setTextTransform:e=>({commands:t})=>IG(e,this.options.allowedValues)?t.setMark(this.name,{textTransform:e}):!1,unsetTextTransform:()=>({commands:e})=>e.unsetMark(this.name),toggleTextTransform:e=>({editor:t,commands:n})=>IG(e,this.options.allowedValues)?t.isActive(this.name,{textTransform:e})?n.unsetTextTransform():n.setTextTransform(e):!1}}}),kD(`mega-menu`,[`root`,`horizontal`,`vertical`,`mobile`,`ul`,`li`,`item`,`icon`,`title`,`info`,`arrow`,`dropdown`,`subheader`,`subItem`,`tags`,`moreLink`,`slide`,`active`,`disabled`,`open`]),U(`nav`)({display:`flex`,flexShrink:0}),U(`ul`)({display:`flex`,listStyle:`none`,padding:0,margin:0}),U(`li`)({display:`flex`}),U(`button`)(({theme:e,active:t,open:n})=>({all:`unset`,cursor:`pointer`,display:`flex`,alignItems:`center`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,borderRadius:`var(--nav-item-radius)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`},...n&&{backgroundColor:`var(--nav-item-hover-bg)`},"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),U(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:8,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),U(`span`)(({open:e})=>({marginLeft:6,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(180deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 1.5px 1.5px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),U(It)(({theme:e})=>({width:`var(--nav-dropdown-width)`,maxHeight:`var(--nav-dropdown-max-height)`,borderRadius:`var(--nav-dropdown-radius)`,padding:`var(--nav-dropdown-padding)`,overflow:`auto`,display:`flex`,gap:24})),U(`div`)({flex:1,minWidth:0}),U(nt)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:12})),U(op,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`6px 0`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),U(B)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:8,marginTop:16})),U(op)(({theme:e})=>({display:`inline-flex`,padding:`4px 10px`,fontSize:`0.75rem`,fontWeight:500,color:e.palette.text.secondary,backgroundColor:W(e.palette.grey[500],.08),borderRadius:6,textDecoration:`none`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:W(e.palette.grey[500],.16),color:e.palette.text.primary}})),U(op)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,padding:`8px 0`,fontSize:`0.875rem`,fontWeight:600,color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`},"&::after":{content:`"→"`,marginLeft:4}})),U(`nav`)({display:`flex`,flexDirection:`column`,flexShrink:0}),U(`ul`)({display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0}),U(`li`)({display:`flex`,flexDirection:`column`}),U(`button`)(({theme:e,active:t,open:n})=>({all:`unset`,cursor:`pointer`,display:`flex`,alignItems:`center`,width:`100%`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,borderRadius:`var(--nav-item-radius)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`},...n&&{backgroundColor:`var(--nav-item-hover-bg)`},"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),U(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:12,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),U(`span`)(({open:e})=>({marginLeft:`auto`,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,"&::before":{content:`""`,width:5,height:5,borderStyle:`solid`,borderWidth:`0 1.5px 1.5px 0`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),U(It)(({theme:e})=>({width:`var(--nav-dropdown-width)`,maxHeight:`var(--nav-dropdown-max-height)`,borderRadius:`var(--nav-dropdown-radius)`,padding:`var(--nav-dropdown-padding)`,overflow:`auto`})),U(nt)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:8,marginTop:16,"&:first-of-type":{marginTop:0}})),U(op,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`6px 0`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),U(`nav`)({display:`flex`,flexDirection:`column`,flexShrink:0,width:`100%`}),U(`ul`)({display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0,width:`100%`}),U(`li`)({display:`flex`,flexDirection:`column`,width:`100%`});var LG=(e,t)=>({all:`unset`,boxSizing:`border-box`,cursor:`pointer`,display:`flex`,alignItems:`center`,width:`100%`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,borderBottom:`1px solid ${e.palette.divider}`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{color:`var(--nav-item-active-color)`}});U(`button`)(({theme:e,active:t})=>({...LG(e,t),"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),U(`a`)(({theme:e,active:t})=>LG(e,t)),U(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:12,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),U(`span`)(({open:e})=>({marginLeft:`auto`,width:20,height:20,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(180deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 2px 2px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),U(B)(({theme:e})=>({padding:`8px 0`,paddingLeft:40,backgroundColor:e.palette.background.neutral})),U(nt)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,padding:`12px 16px 8px`})),U(op,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`10px 16px`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),(0,G.createContext)({activeId:null,registerSection:()=>{},unregisterSection:()=>{}});var RG=`prism-content`,zG={root:`${RG}__root`,compact:`${RG}__compact`,tiptap:`${RG}__tiptap`,markdown:`${RG}__markdown`,image:`${RG}__image`,link:`${RG}__link`,checkbox:`${RG}__checkbox`,codeBlock:`${RG}__code-block`,codeInline:`${RG}__code-inline`,spoiler:`${RG}__spoiler`},BG=`0.75em`,VG=`'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, Monaco, 'Courier New', monospace`;U(`div`)(({theme:e})=>({"> * + *":{marginTop:0,marginBottom:BG},"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:100},"& > h1:first-of-type, & > h2:first-of-type, & > h3:first-of-type":{marginTop:0},h1:{...e.typography.h1,marginTop:40,marginBottom:12},h2:{...e.typography.h2,marginTop:40,marginBottom:12},h3:{...e.typography.h3,marginTop:32,marginBottom:8},h4:{...e.typography.h4,marginTop:24,marginBottom:8},h5:{...e.typography.h5,marginTop:24,marginBottom:8},h6:{...e.typography.h6,marginTop:24,marginBottom:8},p:{...e.typography.body1,marginBottom:`1.25rem`,lineHeight:1.8},hr:{flexShrink:0,borderWidth:0,margin:`2em 0`,borderStyle:`solid`,borderBottomWidth:`thin`,borderColor:e.palette.divider},[`& .${zG.image}`]:{width:`100%`,height:`auto`,maxWidth:`100%`,margin:`auto auto 1.25em`,borderRadius:Number(e.shape.borderRadius)*2},"& img:not([class])":{maxWidth:`100%`,height:`auto`,borderRadius:Number(e.shape.borderRadius)*2,marginBottom:`1.25em`},"& a":{color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},"& ul":{listStyleType:`disc`},"& ul, & ol":{paddingLeft:24,marginBottom:`1.25rem`,"& > li":{lineHeight:2,"& > p":{margin:0,display:`inline-block`}}},"& ul ul, & ol ol, & ul ol, & ol ul":{marginBottom:0},'& ul[data-type="taskList"]':{listStyle:`none`,paddingLeft:4,"& li":{display:`flex`,alignItems:`flex-start`,gap:8,"& > label":{marginTop:4}}},"& blockquote":{lineHeight:1.6,fontSize:`1em`,margin:`24px 0`,position:`relative`,padding:e.spacing(2.5,3,2.5,7),color:e.palette.text.secondary,borderLeft:`4px solid ${e.palette.primary.main}`,borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:W(e.palette.primary.main,.04),"& p":{margin:0,fontSize:`inherit`},"& p + p":{marginTop:8},"&::before":{left:16,top:8,display:`block`,fontSize:`2.5em`,content:`"\\201C"`,position:`absolute`,color:W(e.palette.primary.main,.3),lineHeight:1}},[`& .${zG.codeInline}`]:{padding:e.spacing(.25,.75),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:W(e.palette.grey[500],.2),fontFamily:VG},"& :not(pre) > code:not([class])":{padding:e.spacing(.25,.75),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:W(e.palette.grey[500],.2),fontFamily:VG},[`& .${zG.codeBlock}`]:{position:`relative`,marginBottom:`1.25rem`,"& pre":{overflowX:`auto`,padding:e.spacing(3),color:e.palette.common.white,borderRadius:Number(e.shape.borderRadius)*1.5,fontFamily:VG,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],...e.palette.mode===`dark`&&{backgroundColor:W(e.palette.grey[800],.9)},"& code":{fontSize:`inherit`,fontFamily:`inherit`,backgroundColor:`transparent`,padding:0,borderRadius:0,color:`inherit`}}},"& pre:not([class])":{overflowX:`auto`,padding:e.spacing(3),color:e.palette.common.white,borderRadius:Number(e.shape.borderRadius)*1.5,fontFamily:VG,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],marginBottom:`1.25rem`,...e.palette.mode===`dark`&&{backgroundColor:W(e.palette.grey[800],.9)},"& code":{fontSize:`inherit`,fontFamily:`inherit`,backgroundColor:`transparent`,padding:0,color:`inherit`}},"& table":{width:`100%`,borderCollapse:`collapse`,fontSize:e.typography.body2.fontSize,border:`1px solid ${e.palette.divider}`,marginBottom:`1.25rem`,"& th, & td":{padding:e.spacing(1,1.5),border:`1px solid ${e.palette.divider}`,verticalAlign:`top`},"& th":{fontWeight:700,backgroundColor:W(e.palette.grey[500],.08)},"& tbody tr:nth-of-type(odd)":{backgroundColor:W(e.palette.grey[500],.04)}},[`& .${zG.checkbox}`]:{cursor:`pointer`,position:`relative`,"&:before":{content:`""`,top:-2,left:-2,width:17,height:17,borderRadius:3,position:`absolute`,backgroundColor:e.palette.grey[300],...e.palette.mode===`dark`&&{backgroundColor:e.palette.grey[700]}},"&:checked":{"&:before":{backgroundColor:e.palette.primary.main},"&:after":{top:1,left:5,width:4,height:9,content:`""`,position:`absolute`,borderStyle:`solid`,transform:`rotate(45deg)`,borderWidth:`0 2px 2px 0`,borderColor:e.palette.common.white}}},"& details":{marginBottom:`1rem`,"& summary":{cursor:`pointer`,fontWeight:600,marginBottom:8}},"& dl":{marginBottom:`1.25rem`,"& dt":{fontWeight:700,marginTop:12},"& dd":{marginLeft:24,marginBottom:4}},"& kbd":{display:`inline-block`,padding:e.spacing(.25,.5),fontSize:`0.8em`,fontFamily:VG,borderRadius:4,border:`1px solid ${e.palette.divider}`,boxShadow:`0 1px 0 ${W(e.palette.grey[500],.1)}`,backgroundColor:W(e.palette.grey[500],.06)},"& mark":{padding:e.spacing(0,.5),borderRadius:2,backgroundColor:W(e.palette.warning.main,.3)},"& sup, & sub":{fontSize:`0.75em`},[`& .${zG.spoiler}`]:{backgroundColor:e.palette.text.primary,color:e.palette.text.primary,borderRadius:4,padding:e.spacing(0,.5),cursor:`pointer`,transition:`all 0.15s ease`,userSelect:`none`,'&:hover, &[data-revealed="true"]':{backgroundColor:`transparent`,color:`inherit`,userSelect:`auto`}},[`&.${zG.compact}`]:{"> * + *":{marginTop:0,marginBottom:2},"& > :first-of-type:not(p)":{marginTop:4},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:0,marginBottom:2},h1:{fontSize:`1.25rem`,fontWeight:600,marginTop:0,marginBottom:2},h2:{fontSize:`1.125rem`,fontWeight:600,marginTop:0,marginBottom:2},h3:{fontSize:`1rem`,fontWeight:600,marginTop:0,marginBottom:2},"h4, h5, h6":{fontSize:`0.875rem`,fontWeight:600,marginTop:0,marginBottom:2},p:{fontSize:`0.8125rem`,lineHeight:1.5,marginBottom:2,"&:last-child":{marginBottom:0}},hr:{margin:`4px 0`},"& blockquote":{margin:`4px 0`,padding:e.spacing(.5,0,.5,1.5),borderRadius:0,backgroundColor:`transparent`,"&::before":{display:`none`}},"& ul, & ol":{paddingLeft:20,marginBottom:2,"& > li":{lineHeight:1.5,fontSize:`0.8125rem`}},"& img:not([class])":{marginBottom:4},[`& .${zG.codeBlock}`]:{marginBottom:4},[`& .${zG.codeBlock} pre, & pre:not([class])`]:{padding:e.spacing(1.5),fontSize:`0.75rem`,lineHeight:1.5,marginBottom:4},[`& .${zG.codeInline}, & :not(pre) > code:not([class])`]:{fontSize:`0.75rem`},"& table":{fontSize:`0.75rem`,marginBottom:4}}}));function HG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}function UG(e,t){return Array(t+1).join(e)}function WG(e){return e.replace(/^\n*/,``)}function GG(e){for(var t=e.length;t>0&&e[t-1]===`
|
|
200
|
+
`;)t--;return e.substring(0,t)}function KG(e){return GG(WG(e))}var qG=`ADDRESS.ARTICLE.ASIDE.AUDIO.BLOCKQUOTE.BODY.CANVAS.CENTER.DD.DIR.DIV.DL.DT.FIELDSET.FIGCAPTION.FIGURE.FOOTER.FORM.FRAMESET.H1.H2.H3.H4.H5.H6.HEADER.HGROUP.HR.HTML.ISINDEX.LI.MAIN.MENU.NAV.NOFRAMES.NOSCRIPT.OL.OUTPUT.P.PRE.SECTION.TABLE.TBODY.TD.TFOOT.TH.THEAD.TR.UL`.split(`.`);function JG(e){return tK(e,qG)}var YG=[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`];function XG(e){return tK(e,YG)}function ZG(e){return nK(e,YG)}var QG=[`A`,`TABLE`,`THEAD`,`TBODY`,`TFOOT`,`TH`,`TD`,`IFRAME`,`SCRIPT`,`AUDIO`,`VIDEO`];function $G(e){return tK(e,QG)}function eK(e){return nK(e,QG)}function tK(e,t){return t.indexOf(e.nodeName)>=0}function nK(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var rK={};rK.paragraph={filter:`p`,replacement:function(e){return`
|
|
201
|
+
|
|
202
|
+
`+e+`
|
|
203
|
+
|
|
204
|
+
`}},rK.lineBreak={filter:`br`,replacement:function(e,t,n){return n.br+`
|
|
205
|
+
`}},rK.heading={filter:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));if(n.headingStyle===`setext`&&r<3){var i=UG(r===1?`=`:`-`,e.length);return`
|
|
206
|
+
|
|
207
|
+
`+e+`
|
|
208
|
+
`+i+`
|
|
209
|
+
|
|
210
|
+
`}else return`
|
|
211
|
+
|
|
212
|
+
`+UG(`#`,r)+` `+e+`
|
|
213
|
+
|
|
214
|
+
`}},rK.blockquote={filter:`blockquote`,replacement:function(e){return e=KG(e).replace(/^/gm,`> `),`
|
|
215
|
+
|
|
216
|
+
`+e+`
|
|
217
|
+
|
|
218
|
+
`}},rK.list={filter:[`ul`,`ol`],replacement:function(e,t){var n=t.parentNode;return n.nodeName===`LI`&&n.lastElementChild===t?`
|
|
219
|
+
`+e:`
|
|
220
|
+
|
|
221
|
+
`+e+`
|
|
222
|
+
|
|
223
|
+
`}},rK.listItem={filter:`li`,replacement:function(e,t,n){var r=n.bulletListMarker+` `,i=t.parentNode;if(i.nodeName===`OL`){var a=i.getAttribute(`start`),o=Array.prototype.indexOf.call(i.children,t);r=(a?Number(a)+o:o+1)+`. `}var s=/\n$/.test(e);return e=KG(e)+(s?`
|
|
224
|
+
`:``),e=e.replace(/\n/gm,`
|
|
225
|
+
`+` `.repeat(r.length)),r+e+(t.nextSibling?`
|
|
226
|
+
`:``)}},rK.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`indented`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){return`
|
|
227
|
+
|
|
228
|
+
`+t.firstChild.textContent.replace(/\n/g,`
|
|
229
|
+
`)+`
|
|
230
|
+
|
|
231
|
+
`}},rK.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`fenced`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){for(var r=((t.firstChild.getAttribute(`class`)||``).match(/language-(\S+)/)||[null,``])[1],i=t.firstChild.textContent,a=n.fence.charAt(0),o=3,s=RegExp(`^`+a+`{3,}`,`gm`),c;c=s.exec(i);)c[0].length>=o&&(o=c[0].length+1);var l=UG(a,o);return`
|
|
232
|
+
|
|
233
|
+
`+l+r+`
|
|
234
|
+
`+i.replace(/\n$/,``)+`
|
|
235
|
+
`+l+`
|
|
236
|
+
|
|
237
|
+
`}},rK.horizontalRule={filter:`hr`,replacement:function(e,t,n){return`
|
|
238
|
+
|
|
239
|
+
`+n.hr+`
|
|
240
|
+
|
|
241
|
+
`}},rK.inlineLink={filter:function(e,t){return t.linkStyle===`inlined`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t){var n=t.getAttribute(`href`);n&&=n.replace(/([()])/g,`\\$1`);var r=iK(t.getAttribute(`title`));return r&&=` "`+r.replace(/"/g,`\\"`)+`"`,`[`+e+`](`+n+r+`)`}},rK.referenceLink={filter:function(e,t){return t.linkStyle===`referenced`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t,n){var r=t.getAttribute(`href`),i=iK(t.getAttribute(`title`));i&&=` "`+i+`"`;var a,o;switch(n.linkReferenceStyle){case`collapsed`:a=`[`+e+`][]`,o=`[`+e+`]: `+r+i;break;case`shortcut`:a=`[`+e+`]`,o=`[`+e+`]: `+r+i;break;default:var s=this.references.length+1;a=`[`+e+`][`+s+`]`,o=`[`+s+`]: `+r+i}return this.references.push(o),a},references:[],append:function(e){var t=``;return this.references.length&&(t=`
|
|
242
|
+
|
|
243
|
+
`+this.references.join(`
|
|
244
|
+
`)+`
|
|
245
|
+
|
|
246
|
+
`,this.references=[]),t}},rK.emphasis={filter:[`em`,`i`],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:``}},rK.strong={filter:[`strong`,`b`],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:``}},rK.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n=e.parentNode.nodeName===`PRE`&&!t;return e.nodeName===`CODE`&&!n},replacement:function(e){if(!e)return``;e=e.replace(/\r?\n|\r/g,` `);for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?` `:``,n="`",r=e.match(/`+/gm)||[];r.indexOf(n)!==-1;)n+="`";return n+t+e+t+n}},rK.image={filter:`img`,replacement:function(e,t){var n=iK(t.getAttribute(`alt`)),r=t.getAttribute(`src`)||``,i=iK(t.getAttribute(`title`)),a=i?` "`+i+`"`:``;return r?``:``}};function iK(e){return e?e.replace(/(\n+\s*)+/g,`
|
|
247
|
+
`):``}function aK(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}aK.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return``}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=oK(this.array,e,this.options))||(t=oK(this._keep,e,this.options))||(t=oK(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function oK(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(sK(i,t,n))return i}}function sK(e,t,n){var r=e.filter;if(typeof r==`string`){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof r==`function`){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}function cK(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return e.nodeName===`PRE`};if(!(!t.firstChild||i(t))){for(var a=null,o=!1,s=null,c=uK(s,t,i);c!==t;){if(c.nodeType===3||c.nodeType===4){var l=c.data.replace(/[ \r\n\t]+/g,` `);if((!a||/ $/.test(a.data))&&!o&&l[0]===` `&&(l=l.substr(1)),!l){c=lK(c);continue}c.data=l,a=c}else if(c.nodeType===1)n(c)||c.nodeName===`BR`?(a&&(a.data=a.data.replace(/ $/,``)),a=null,o=!1):r(c)||i(c)?(a=null,o=!0):a&&(o=!1);else{c=lK(c);continue}var u=uK(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||lK(a))}}function lK(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function uK(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var dK=typeof window<`u`?window:{};function fK(){var e=dK.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function pK(){var e=function(){};return mK()?e.prototype.parseFromString=function(e){var t=new window.ActiveXObject(`htmlfile`);return t.designMode=`on`,t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument(``);return t.open(),t.write(e),t.close(),t},e}function mK(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{dK.ActiveXObject&&(e=!0)}return e}var hK=fK()?dK.DOMParser:pK();function gK(e,t){var n=typeof e==`string`?vK().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return cK({element:n,isBlock:JG,isVoid:XG,isPre:t.preformattedCode?yK:null}),n}var _K;function vK(){return _K||=new hK,_K}function yK(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function bK(e,t){return e.isBlock=JG(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=xK(e),e.flankingWhitespace=SK(e,t),e}function xK(e){return!XG(e)&&!$G(e)&&/^\s*$/i.test(e.textContent)&&!ZG(e)&&!eK(e)}function SK(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=CK(e.textContent);return n.leadingAscii&&wK(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&wK(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function CK(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function wK(e,t,n){var r,i,a;return e===`left`?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?a=i.test(r.nodeValue):n.preformattedCode&&r.nodeName===`CODE`?a=!1:r.nodeType===1&&!JG(r)&&(a=i.test(r.textContent))),a}var TK=Array.prototype.reduce,EK=[[/\\/g,`\\\\`],[/\*/g,`\\*`],[/^-/g,`\\-`],[/^\+ /g,`\\+ `],[/^(=+)/g,`\\$1`],[/^(#{1,6}) /g,`\\$1 `],[/`/g,"\\`"],[/^~~~/g,`\\~~~`],[/\[/g,`\\[`],[/\]/g,`\\]`],[/^>/g,`\\>`],[/_/g,`\\_`],[/^(\d+)\. /g,`$1\\. `]];function DK(e){if(!(this instanceof DK))return new DK(e);this.options=HG({},{rules:rK,headingStyle:`setext`,hr:`* * *`,bulletListMarker:`*`,codeBlockStyle:`indented`,fence:"```",emDelimiter:`_`,strongDelimiter:`**`,linkStyle:`inlined`,linkReferenceStyle:`full`,br:` `,preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?`
|
|
248
|
+
|
|
249
|
+
`:``},keepReplacement:function(e,t){return t.isBlock?`
|
|
250
|
+
|
|
251
|
+
`+t.outerHTML+`
|
|
252
|
+
|
|
253
|
+
`:t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?`
|
|
254
|
+
|
|
255
|
+
`+e+`
|
|
256
|
+
|
|
257
|
+
`:e}},e),this.rules=new aK(this.options)}DK.prototype={turndown:function(e){if(!MK(e))throw TypeError(e+` is not a string, or an element/document/fragment node.`);if(e===``)return``;var t=OK.call(this,new gK(e,this.options));return kK.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e==`function`)e(this);else throw TypeError(`plugin must be a Function or an Array of Functions`);return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return EK.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};function OK(e){var t=this;return TK.call(e.childNodes,function(e,n){n=new bK(n,t.options);var r=``;return n.nodeType===3?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(r=AK.call(t,n)),jK(e,r)},``)}function kK(e){var t=this;return this.rules.forEach(function(n){typeof n.append==`function`&&(e=jK(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,``).replace(/[\t\r\n\s]+$/,``)}function AK(e){var t=this.rules.forNode(e),n=OK.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function jK(e,t){var n=GG(e),r=WG(t),i=Math.max(e.length-n.length,t.length-r.length);return n+`
|
|
258
|
+
|
|
259
|
+
`.substring(0,i)+r}function MK(e){return e!=null&&(typeof e==`string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var NK=`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.circle.cite.clipPath.code.col.colgroup.command.content.data.datalist.dd.defs.del.details.dfn.dialog.dir.div.dl.dt.element.ellipse.em.embed.fieldset.figcaption.figure.font.footer.foreignObject.form.frame.frameset.g.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.line.linearGradient.link.listing.main.map.mark.marquee.mask.math.menu.menuitem.meta.meter.multicol.nav.nextid.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.path.pattern.picture.plaintext.polygon.polyline.pre.progress.q.radialGradient.rb.rbc.rect.rp.rt.rtc.ruby.s.samp.script.section.select.shadow.slot.small.source.spacer.span.stop.strike.strong.style.sub.summary.sup.svg.table.tbody.td.template.text.textarea.tfoot.th.thead.time.title.tr.track.tspan.tt.u.ul.var.video.wbr.xmp`.split(`.`),PK=[`pre`,`code`],FK=NK.filter(e=>!PK.includes(e));new DK({codeBlockStyle:`fenced`,fence:"```"}).addRule(`keep`,{filter:FK,replacement(e,t){let{isBlock:n,outerHTML:r}=t;return t&&n?`\n\n${r}\n\n`:r}});var IK=3600,LK=86400;6*IK,7*LK,30*LK;var RK=class{locks=new Map;resolvers=new Map;rejecters=new Map;options;constructor(e={}){this.options={timeout:e.timeout??3e4,timeoutMessage:e.timeoutMessage??`Lock acquisition timed out`}}getState(e){return this.locks.has(e)?`locked`:`idle`}isLocked(e){return this.locks.has(e)}getActiveLocks(){return Array.from(this.locks.keys())}async acquire(e,t){let n=this.locks.get(e);if(n)return{value:await this.waitWithTimeout(n,e),wasExecutor:!1};let r,i,a=new Promise((e,t)=>{r=e,i=t});this.locks.set(e,a),this.resolvers.set(e,r),this.rejecters.set(e,i);try{let n=await t(),r=this.resolvers.get(e);return r&&r(n),{value:n,wasExecutor:!0}}catch(t){let n=this.rejecters.get(e);throw n&&n(t),t}finally{this.locks.delete(e),this.resolvers.delete(e),this.rejecters.delete(e)}}async tryAcquire(e,t){return this.isLocked(e)?null:this.acquire(e,t)}forceRelease(e,t){let n=this.rejecters.get(e);n&&n(t??Error(`Lock forcefully released`)),this.locks.delete(e),this.resolvers.delete(e),this.rejecters.delete(e)}clearAll(e){for(let t of this.locks.keys())this.forceRelease(t,e)}async waitWithTimeout(e,t){let{timeout:n,timeoutMessage:r}=this.options;return n<=0?e:Promise.race([e,new Promise((e,i)=>{setTimeout(()=>{i(new zK(`${r} (key: ${t})`))},n)})])}},zK=class e extends Error{name=`AsyncLockTimeoutError`;constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};new RK,new class{options;registries=new Map;cache=new Map;loaders=new Map;constructor(e={}){this.options={baseDir:e.baseDir??(typeof process<`u`&&process.cwd?process.cwd():`/`),defaultRegistry:e.defaultRegistry??`prism`,config:e.config??{default:`prism`,registries:{}},cacheTtl:e.cacheTtl??300*1e3}}registerLoader(e,t){this.loaders.set(e,t)}async loadRegistry(e){let t=this.cache.get(e);if(t&&Date.now()-t.timestamp<this.options.cacheTtl)return t.data;let n=this.registries.get(e);if(n&&!t)return n;let r=this.loaders.get(e);if(r){let t=await r();return this.cacheRegistry(e,t),t}let i=this.options.config.registries[e];if(!i)throw Error(`Registry "${e}" not found in configuration`);let a=typeof i==`string`?await this.loadFromPath(i):await this.loadFromRemote(i);if(a.extends){let t=await this.loadRegistry(a.extends),n=this.mergeRegistries(t,a);return this.cacheRegistry(e,n),n}return this.cacheRegistry(e,a),a}async loadFromPath(e){let t=e.startsWith(`/`)?e:`${this.options.baseDir}/${e}`;if(typeof process<`u`&&(process.versions?.node||process.versions?.bun)){let e=await(await De(()=>import(`./fs-uP8eiZAR.js`),[])).readFile(t,`utf-8`);return JSON.parse(e)}if(e.startsWith(`http://`)||e.startsWith(`https://`)){let t=await fetch(e);if(!t.ok)throw Error(`Failed to load registry from ${e}: ${t.statusText}`);return t.json()}throw Error(`Cannot load local file "${t}" in browser environment. Register a custom loader with manager.registerLoader() or use a remote URL.`)}async loadFromRemote(e){let t=await fetch(e.url,{headers:e.headers});if(!t.ok)throw Error(`Failed to load registry from ${e.url}: ${t.statusText}`);return t.json()}cacheRegistry(e,t){this.registries.set(e,t),this.cache.set(e,{data:t,timestamp:Date.now()})}mergeRegistries(e,t){return{...e,...t,components:{...e.components,...t.components},blocks:{...e.blocks,...t.blocks},themes:{...e.themes,...t.themes}}}clearCache(e){e?this.cache.delete(e):this.cache.clear()}async getComponent(e,t){return(await this.loadRegistry(t??this.options.defaultRegistry)).components[e]??null}async getComponents(e){return(await this.loadRegistry(e??this.options.defaultRegistry)).components}async searchComponents(e,t){let n=await this.loadRegistry(t??this.options.defaultRegistry),r=Object.values(n.components);if(e.category&&(r=r.filter(t=>t.category===e.category)),e.query){let t=e.query.toLowerCase();r=r.filter(e=>e.name.toLowerCase().includes(t)||e.displayName?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t))}return e.limit&&e.limit>0&&(r=r.slice(0,e.limit)),r}async getComponentCategories(e){let t=await this.loadRegistry(e??this.options.defaultRegistry),n=new Set;for(let e of Object.values(t.components))n.add(e.category);return Array.from(n).sort()}async getBlock(e,t){return(await this.loadRegistry(t??this.options.defaultRegistry)).blocks[e]??null}async getBlocks(e){return(await this.loadRegistry(e??this.options.defaultRegistry)).blocks}async searchBlocks(e,t){let n=await this.loadRegistry(t??this.options.defaultRegistry),r=Object.values(n.blocks);if(e.category&&(r=r.filter(t=>t.category===e.category)),e.query){let t=e.query.toLowerCase();r=r.filter(e=>e.name.toLowerCase().includes(t)||e.displayName?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t))}return e.limit&&e.limit>0&&(r=r.slice(0,e.limit)),r}async getBlockCategories(e){let t=await this.loadRegistry(e??this.options.defaultRegistry),n=new Set;for(let e of Object.values(t.blocks))n.add(e.category);return Array.from(n).sort()}async resolveComponentDependencies(e,t){let n=t??this.options.defaultRegistry,r=await this.getComponent(e,n);if(!r)throw Error(`Component "${e}" not found in registry "${n}"`);let i=[];for(let e of r.dependencies.components){let t=await this.resolveComponentDependencies(e,n);i.push(t)}return{definition:r,registry:n,dependencies:i}}async resolveBlockDependencies(e,t){let n=t??this.options.defaultRegistry,r=await this.getBlock(e,n);if(!r)throw Error(`Block "${e}" not found in registry "${n}"`);let i=[];for(let e of r.dependencies.components){let t=await this.resolveComponentDependencies(e,n);i.push(t)}for(let e of r.dependencies.blocks){let t=await this.resolveBlockDependencies(e,n);i.push(t)}return{definition:r,registry:n,dependencies:i}}getNpmDependencies(e){let t=new Set;function n(e){let r=e.definition;if(`dependencies`in r)for(let e of r.dependencies.npm)t.add(e);for(let t of e.dependencies)n(t)}return n(e),Array.from(t).sort()}getFilePaths(e){let t=new Set;function n(e){let r=e.definition;for(let e of r.files)t.add(e.path);for(let t of e.dependencies)n(t)}return n(e),Array.from(t).sort()}async checkComponentVersion(e,t,n){let r=await this.getComponent(e,n);return r?this.isVersionCompatible(r.version,t):!1}isVersionCompatible(e,t){let[n,r]=e.split(`.`).map(Number),[i,a]=t.split(`.`).map(Number);return n===i?r>=a:!1}async getRegistryInfo(e){let t=await this.loadRegistry(e??this.options.defaultRegistry);return{name:t.name,version:t.version,description:t.description,componentCount:Object.keys(t.components).length,blockCount:Object.keys(t.blocks).length,themeCount:Object.keys(t.themes).length}}getLoadedRegistries(){return Array.from(this.registries.keys())}};var BK={full:280,mini:73,mobile:280,stackedCollapsed:72,stackedExpanded:300},VK={mobile:64,desktop:72},HK={headerHeight:`--layout-header-height`,headerMobileHeight:`--layout-header-mobile-height`,headerDesktopHeight:`--layout-header-desktop-height`,headerBlur:`--layout-header-blur`,headerZIndex:`--layout-header-z-index`,navWidth:`--layout-nav-width`,navMiniWidth:`--layout-nav-mini-width`,navMobileWidth:`--layout-nav-mobile-width`,navZIndex:`--layout-nav-z-index`,navBg:`--layout-nav-bg`,navTextColor:`--layout-nav-text-color`,navTextSecondaryColor:`--layout-nav-text-secondary-color`,mainPaddingTop:`--layout-main-padding-top`,mainPaddingBottom:`--layout-main-padding-bottom`,mainPaddingLeft:`--layout-main-padding-left`,mainPaddingRight:`--layout-main-padding-right`};HK.headerMobileHeight,`${VK.mobile}`,HK.headerDesktopHeight,`${VK.desktop}`,HK.headerBlur,HK.navWidth,`${BK.full}`,HK.navMiniWidth,`${BK.mini}`,HK.navMobileWidth,`${BK.mobile}`;var UK={navigationMenuType:`sidenav`,sidenavVariant:`default`,sidenavCollapsed:!1,topnavVariant:`default`,navColor:`default`,drawerOpen:!1,drawerWidth:BK.full,compactLayout:!1},WK=(0,G.createContext)(null);WK.displayName=`LayoutContext`;function GK({children:e,initialConfig:t,persistKey:n}){let r=Nh(jt().breakpoints.down(`md`)),i=b_(e=>e.sidebarCollapsed),a=b_(e=>e.setSidebarCollapsed),[o,s]=(0,G.useState)(()=>{let e=n?i[n]??!1:!1;return{...UK,...t,...n?{sidenavCollapsed:e}:{}}}),[c,l]=(0,G.useState)([]),u=(0,G.useMemo)(()=>o.sidenavVariant===`mini`||o.sidenavCollapsed?o.sidenavVariant===`stacked`?BK.stackedCollapsed:BK.mini:o.sidenavVariant===`stacked`?BK.stackedExpanded:BK.full,[o.sidenavVariant,o.sidenavCollapsed]),d=(0,G.useMemo)(()=>({...o,drawerWidth:u}),[o,u]),f=(0,G.useCallback)(e=>{s(t=>({...t,...e}))},[]),p=(0,G.useCallback)(()=>{s(e=>({...e,drawerOpen:!e.drawerOpen}))},[]),m=(0,G.useCallback)(()=>{s(e=>{let t=!e.sidenavCollapsed;return n&&queueMicrotask(()=>a(n,t)),{...e,sidenavCollapsed:t}})},[n,a]),h=(0,G.useCallback)(e=>{s(t=>({...t,navigationMenuType:e}))},[]),g=(0,G.useCallback)(e=>{s(t=>({...t,sidenavVariant:e}))},[]),_=(0,G.useCallback)(e=>{s(t=>({...t,navColor:e}))},[]),v=(0,G.useCallback)(e=>c.includes(e),[c]),y=(0,G.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),b=(0,G.useCallback)((e,t)=>{if(!e.path)return!1;let n=t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`;if(e.path===n||e.selectionPrefix&&n.startsWith(e.selectionPrefix))return!0;if(e.deepMatch!==!1&&n.startsWith(e.path)){let t=n[e.path.length];return!t||t===`/`}return!1},[]),x=(0,G.useCallback)((e,t)=>{if(!e||e.length===0)return!1;let n=e=>b(e,t)?!0:e.children&&e.children.length>0?e.children.some(n):!1;return e.some(n)},[b]),S=(0,G.useMemo)(()=>({config:d,isMobile:r,setConfig:f,toggleDrawer:p,toggleSidenavCollapse:m,setNavigationMenuType:h,setSidenavVariant:g,setNavColor:_,openItems:c,setOpenItems:l,isItemOpen:v,toggleItem:y,isNestedItemActive:x,isNavItemActive:b}),[d,r,f,p,m,h,g,_,c,v,y,x,b]);return(0,K.jsx)(WK.Provider,{value:S,children:e})}function KK(){let e=(0,G.useContext)(WK);if(!e)throw Error(`useLayoutContext must be used within a LayoutProvider`);return e}function qK(){let{config:e}=KK();return e}function JK(e){let{isNavItemActive:t,isNestedItemActive:n}=KK();return(0,G.useMemo)(()=>({isItemActive:n=>t(n,e),isNestedActive:t=>n(t,e)}),[t,n,e])}U(B)({minHeight:`100%`,display:`flex`,flex:`1 1 auto`,flexDirection:`column`}),U(B)({display:`flex`,flex:`1 1 auto`,flexDirection:`row`,minHeight:0});function YK(e=10){let[t,n]=(0,G.useState)(!1);return(0,G.useEffect)(()=>{if(typeof window>`u`)return;let t=!1,r=()=>{t||(t=!0,requestAnimationFrame(()=>{n(window.scrollY>e),t=!1}))};return window.addEventListener(`scroll`,r,{passive:!0}),r(),()=>{window.removeEventListener(`scroll`,r)}},[e]),t}var XK=U(md,{shouldForwardProp:e=>![`isOffset`,`disableOffset`,`disableElevation`].includes(e)})(({theme:e,isOffset:t,disableOffset:n,disableElevation:r})=>{let i={opacity:0,content:`""`,visibility:`hidden`,position:`absolute`,transition:e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})},a={...i,top:0,left:0,width:`100%`,height:`100%`,zIndex:-1,backdropFilter:`blur(var(${HK.headerBlur}, 8px))`,WebkitBackdropFilter:`blur(var(${HK.headerBlur}, 8px))`,backgroundColor:W(e.palette.background.default,.8),...t&&{opacity:1,visibility:`visible`}},o={...i,left:0,right:0,bottom:0,height:24,margin:`auto`,borderRadius:`50%`,width:`calc(100% - 48px)`,zIndex:-2,boxShadow:e.shadows[8],...t&&{opacity:.48,visibility:`visible`}};return{backgroundColor:`transparent`,boxShadow:`none`,zIndex:`var(${HK.headerZIndex}, ${e.zIndex.appBar})`,...!n&&{"&::before":a},...!r&&{"&::after":o}}}),ZK=U(Lm)(({theme:e})=>({minHeight:VK.mobile,[e.breakpoints.up(`md`)]:{minHeight:VK.desktop,paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}})),QK=U(B)({display:`flex`,alignItems:`center`});function $K({slots:e,slotProps:t,disableSticky:n=!1,disableOffset:r=!1,disableElevation:i=!1,containerized:a=!1,maxWidth:o=`lg`,sx:s}){let c=YK(),l=(0,K.jsxs)(K.Fragment,{children:[e?.leftArea&&(0,K.jsx)(QK,{sx:{gap:1,...t?.leftArea},children:e.leftArea}),(0,K.jsx)(QK,{sx:{flex:1,justifyContent:`center`,mx:2,...t?.centerArea},children:e?.centerArea}),e?.rightArea&&(0,K.jsx)(QK,{sx:{gap:1,...t?.rightArea},children:e.rightArea})]});return(0,K.jsxs)(XK,{position:n?`static`:`sticky`,isOffset:c,disableOffset:r,disableElevation:i,sx:s,children:[e?.topArea&&(0,K.jsx)(B,{sx:t?.topArea,children:e.topArea}),(0,K.jsx)(ZK,{children:a?(0,K.jsx)(hf,{maxWidth:o,sx:{display:`flex`,alignItems:`center`,...t?.container},children:l}):l}),e?.bottomArea&&(0,K.jsx)(B,{sx:t?.bottomArea,children:e.bottomArea})]})}U(Qe)(({theme:e})=>({borderRadius:`50%`,padding:0,transition:e.transitions.create([`box-shadow`,`background-color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:W(e.palette.primary.main,.08)},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:2}})),U(p)(({theme:e})=>({"& .MuiPopover-paper":{minWidth:220,maxWidth:280,borderRadius:Number(e.shape.borderRadius)*1.5,boxShadow:e.shadows[8],overflow:`hidden`}})),U(B)(({theme:e})=>({padding:e.spacing(2),display:`flex`,alignItems:`center`,gap:e.spacing(1.5)})),U(B)({flex:1,minWidth:0,overflow:`hidden`}),U(Op,{shouldForwardProp:e=>e!==`destructive`})(({theme:e,destructive:t})=>({padding:e.spacing(1,2),minHeight:40,gap:e.spacing(1.5),...t&&{color:e.palette.error.main,"&:hover":{backgroundColor:W(e.palette.error.main,.08)}}}));var eq=U(B,{shouldForwardProp:e=>![`variant`,`collapsed`].includes(e)})(({theme:e,variant:t,collapsed:n})=>{let r=BK.full;return n?r=t===`stacked`?BK.stackedCollapsed:BK.mini:t===`mini`?r=BK.mini:t===`stacked`&&(r=BK.stackedExpanded),{position:`fixed`,top:0,left:0,height:`100%`,width:r,flexShrink:0,display:`flex`,flexDirection:`column`,zIndex:e.zIndex.drawer,backgroundColor:`var(${HK.navBg}, ${e.palette.background.paper})`,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create(`width`,{duration:e.transitions.duration.shorter})}}),tq=U(B)({display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`}),nq=U(B)({flex:1,overflow:`auto`,"&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-thumb":{backgroundColor:`rgba(0, 0, 0, 0.2)`,borderRadius:3}}),rq=U(xt)(({theme:e})=>({position:`absolute`,top:VK.desktop/2,transform:`translateY(-50%)`,right:-12,width:24,height:24,backgroundColor:e.palette.background.paper,border:`1px solid ${e.palette.divider}`,boxShadow:e.shadows[1],"&:hover":{backgroundColor:e.palette.action.hover},"& svg":{width:16,height:16}}));function iq({logo:e,navData:t,renderNavItem:n,footer:r,showCollapseButton:i=!0,layoutQuery:a=`md`,"aria-label":o=T_.mainNav,sx:s}){let{config:c,toggleSidenavCollapse:l}=KK(),{sidenavVariant:u,sidenavCollapsed:d}=c,f=!d&&u!==`mini`;return(0,K.jsxs)(eq,{role:`navigation`,"aria-label":o,variant:u,collapsed:d,sx:[e=>({display:{xs:`none`,[a]:`flex`}}),...Array.isArray(s)?s:[s]],children:[(0,K.jsx)(B,{sx:{display:`flex`,alignItems:`center`,justifyContent:f?`flex-start`:`center`,height:{xs:VK.mobile,md:VK.desktop},px:f?3:1,flexShrink:0},children:e}),(0,K.jsx)(qt,{}),(0,K.jsxs)(tq,{children:[(0,K.jsx)(nq,{children:t?.map((e,t)=>(0,K.jsx)(w,{subheader:f&&e.subheader?(0,K.jsx)(Wo,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):!f&&t>0?(0,K.jsx)(qt,{sx:{my:1,mx:1.5}}):null,sx:{px:f?1:.5},children:e.items.map(e=>n?n(e,0):(0,K.jsx)(sq,{item:e,showText:f,depth:0},e.id))},e.id))}),r&&(0,K.jsx)(B,{sx:{flexShrink:0,p:2},children:r})]}),i&&u!==`mini`&&(0,K.jsx)(rq,{onClick:l,size:`small`,"aria-label":d?`Expand sidebar`:`Collapse sidebar`,"aria-expanded":!d,children:(0,K.jsx)(cq,{direction:d?`right`:`left`})})]})}function aq({logo:e,navData:t,renderNavItem:n,footer:r,layoutQuery:i=`md`,"aria-label":a=T_.mainNav,sx:o}){let{config:s,toggleDrawer:c}=KK(),{drawerOpen:l}=s;return(0,K.jsxs)(Rf,{open:l,onClose:c,"aria-label":a,sx:[e=>({display:{xs:`block`,[i]:`none`},"& .MuiDrawer-paper":{width:BK.mobile,backgroundColor:`var(${HK.navBg}, ${e.palette.background.paper})`}}),...Array.isArray(o)?o:[o]],children:[(0,K.jsx)(B,{sx:{display:`flex`,alignItems:`center`,height:{xs:VK.mobile,md:VK.desktop},px:2.5},children:e}),(0,K.jsx)(qt,{}),(0,K.jsx)(B,{component:`nav`,role:`navigation`,sx:{flex:1,overflow:`auto`},children:t?.map(e=>(0,K.jsx)(w,{subheader:e.subheader?(0,K.jsx)(Wo,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:1},children:e.items.map(e=>n?n(e,0):(0,K.jsx)(sq,{item:e,showText:!0,depth:0},e.id))},e.id))}),r&&(0,K.jsx)(B,{sx:{p:2},children:r})]})}function oq({item:e,showText:t,depth:n,active:r}){let i=(0,K.jsxs)(fp,{component:e.path?Ce:`div`,...e.path?{to:e.path}:{},disabled:e.disabled,selected:r,sx:e=>({minHeight:44,borderRadius:1,pl:t?n*2+2:void 0,...!t&&{justifyContent:`center`,px:1,mx:.5},...r&&{color:`primary.main`,bgcolor:W(e.palette.primary.main,.08),"&:hover":{bgcolor:W(e.palette.primary.main,.16)}}}),children:[e.icon&&(0,K.jsx)(_p,{sx:{minWidth:t?36:`unset`,color:r?`primary.main`:`text.secondary`,...!t&&{mr:0,justifyContent:`center`}},children:(0,K.jsx)(B,{component:`span`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24},children:e.icon})}),t&&(0,K.jsx)(Sp,{primary:e.title,primaryTypographyProps:{variant:`body2`,fontWeight:r?600:500,noWrap:!0}}),t&&e.info]});return t?i:(0,K.jsx)(Zp,{title:e.title,placement:`right`,arrow:!0,children:i},e.id)}function sq({item:e,showText:t,depth:n}){let{pathname:r}=we(),{isItemActive:i}=JK(r);return(0,K.jsx)(oq,{item:e,showText:t,depth:n,active:i(e)},e.id)}function cq({direction:e}){return(0,K.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,style:{transform:e===`right`?`rotate(180deg)`:void 0},children:(0,K.jsx)(`polyline`,{points:`15 18 9 12 15 6`})})}var lq=U(`nav`)(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,minHeight:48,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:`var(${HK.navBg}, ${e.palette.background.paper})`,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),gap:e.spacing(.5),overflowX:`auto`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}));function uq({navData:e,renderNavItem:t,layoutQuery:n=`lg`,"aria-label":r=T_.mainNav,sx:i}){return(0,K.jsx)(lq,{"aria-label":r,sx:i,children:e?.map(e=>e.items.map(e=>t?t(e,0):(0,K.jsx)(dq,{item:e},e.id)))})}function dq({item:e}){let{pathname:t}=we(),{isItemActive:n}=JK(t),r=n(e);return(0,K.jsxs)(B,{component:e.path?Ce:`div`,...e.path?{to:e.path}:{},role:`menuitem`,tabIndex:0,"aria-disabled":e.disabled||void 0,"aria-current":r?`page`:void 0,sx:t=>({display:`flex`,alignItems:`center`,gap:1,px:1.5,py:.75,borderRadius:1,whiteSpace:`nowrap`,textDecoration:`none`,color:r?`primary.main`:`text.primary`,typography:`body2`,fontWeight:r?600:500,cursor:e.disabled?`default`:`pointer`,opacity:e.disabled?.5:1,...r&&{bgcolor:W(t.palette.primary.main,.08)},"&:hover":{bgcolor:e.disabled?void 0:r?W(t.palette.primary.main,.16):`action.hover`},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:-2}}),children:[e.icon&&(0,K.jsx)(B,{component:`span`,"aria-hidden":`true`,sx:{display:`flex`,color:r?`primary.main`:`text.secondary`},children:e.icon}),(0,K.jsx)(`span`,{children:e.title}),e.info]})}function fq(){return(0,K.jsx)(Ge,{children:(0,K.jsx)(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`})})}var pq=U(B,{shouldForwardProp:e=>![`hasSidebar`,`sidebarWidth`,`layoutQuery`].includes(e)})(({theme:e,hasSidebar:t,sidebarWidth:n,layoutQuery:r})=>({display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:`100vh`,...t&&{[e.breakpoints.up(r)]:{marginLeft:n}},transition:e.transitions.create(`margin-left`,{duration:e.transitions.duration.shorter})}));function mq({children:e,layoutQuery:t,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,slotProps:s}){let c=qK(),{toggleDrawer:l}=KK(),{navigationMenuType:u,sidenavCollapsed:d,sidenavVariant:f,drawerWidth:p}=c,m=u===`sidenav`||u===`combo`,h=u===`topnav`||u===`combo`,g=m?p:0,_=(0,G.useMemo)(()=>{if(!m)return r;let e=(0,K.jsx)(xt,{onClick:l,"aria-label":`Open menu`,sx:{display:{xs:`inline-flex`,[t]:`none`},bgcolor:`transparent`,transition:`transform 0.2s ease`,"&:hover":{bgcolor:`transparent`,transform:`scale(1.1)`}},children:(0,K.jsx)(fq,{})});return{...r,leftArea:(0,K.jsxs)(K.Fragment,{children:[e,r?.leftArea]})}},[m,r,l,t]);return(0,K.jsxs)(pq,{hasSidebar:m,sidebarWidth:g,layoutQuery:t,children:[(0,K.jsx)(w_,{href:`#main-content`,children:`Skip to main content`}),(0,K.jsx)($K,{slots:_,"aria-label":T_.header,sx:{...s?.header?.sx},...s?.header}),h&&(0,K.jsx)(uq,{navData:n,layoutQuery:t,"aria-label":m?`Secondary navigation`:T_.mainNav}),m&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(iq,{logo:i,navData:n,footer:o,layoutQuery:t,"aria-label":T_.mainNav}),(0,K.jsx)(aq,{logo:i,navData:n,footer:o,layoutQuery:t,"aria-label":T_.mainNav})]}),(0,K.jsx)(B,{component:`main`,id:`main-content`,role:`main`,"aria-label":T_.main,tabIndex:-1,sx:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,"&:focus":{outline:`none`},...!s?.main?.disablePadding&&{py:{xs:2,sm:3,md:4},px:{xs:2,sm:3,md:4}},...s?.main?.sx},children:s?.main?.maxWidth?(0,K.jsx)(hf,{maxWidth:s.main.maxWidth,sx:{flex:1,display:`flex`,flexDirection:`column`},children:e}):e}),a]})}function hq({children:e,layoutQuery:t=`lg`,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,initialConfig:s,persistKey:c,slotProps:l}){return(0,K.jsx)(GK,{initialConfig:s,persistKey:c,children:(0,K.jsx)(mq,{layoutQuery:t,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,slotProps:l,children:e})})}var gq=U(B)(({theme:e})=>({display:`flex`,flexDirection:`column`,minHeight:`100vh`,background:e.palette.mode===`dark`?`linear-gradient(135deg, ${W(e.palette.primary.dark,.1)} 0%, ${e.palette.background.default} 100%)`:`linear-gradient(135deg, ${W(e.palette.primary.light,.1)} 0%, ${e.palette.background.default} 100%)`})),_q=U(B)({display:`flex`,flex:`1 1 auto`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24}),vq=U(Jd)(({theme:e})=>({width:`100%`,maxWidth:420,padding:e.spacing(5,3),position:`relative`,zIndex:2}));function yq({children:e,logo:t,maxWidth:n=420,sx:r}){return(0,K.jsxs)(gq,{sx:r,children:[t&&(0,K.jsx)(B,{sx:{position:{xs:`static`,md:`fixed`},top:0,left:0,p:3,zIndex:3},children:t}),(0,K.jsx)(_q,{children:(0,K.jsx)(vq,{sx:{maxWidth:n},children:e})})]})}U(B)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),U(B)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,[e.breakpoints.up(`md`)]:{flexDirection:`row`}})),U(B)(({theme:e})=>({display:`none`,[e.breakpoints.up(`md`)]:{display:`flex`,flexDirection:`column`,width:`50%`,position:`relative`,background:`linear-gradient(135deg, ${e.palette.primary.main} 0%, ${e.palette.primary.dark} 100%)`,color:e.palette.primary.contrastText,padding:e.spacing(8),justifyContent:`center`,alignItems:`center`}})),U(B)({maxWidth:480,textAlign:`center`,position:`relative`,zIndex:1}),U(B)(({theme:e})=>({display:`flex`,flexDirection:`column`,flex:1,[e.breakpoints.up(`md`)]:{width:`50%`}})),U(B)(({theme:e})=>({display:`flex`,flexDirection:`column`,justifyContent:`center`,flex:1,padding:e.spacing(3),[e.breakpoints.up(`sm`)]:{padding:e.spacing(5)},[e.breakpoints.up(`md`)]:{padding:e.spacing(8),maxWidth:480,marginLeft:`auto`,marginRight:`auto`}})),U(B)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),U(B)({display:`flex`,flexDirection:`column`,flex:`1 1 auto`}),U(B)(({theme:e})=>({flex:`1 1 auto`,display:`flex`,flexDirection:`column`,justifyContent:`center`,padding:e.spacing(3,2,10,2),[e.breakpoints.up(`sm`)]:{padding:e.spacing(10,0),maxWidth:448,margin:`0 auto`,width:`100%`}}));var bq={mode:`light`,direction:`ltr`,preset:`default`,compactLayout:!1,contrast:`default`,primaryColor:null};v_(__(e=>({...bq,setMode:t=>e({mode:t}),toggleMode:()=>e(e=>{e.mode=e.mode===`light`?`dark`:`light`}),setDirection:t=>e({direction:t}),setPreset:t=>e({preset:t}),setCompactLayout:t=>e({compactLayout:t}),setContrast:t=>e({contrast:t}),setPrimaryColor:t=>e({primaryColor:t}),reset:()=>e(bq)}),`theme`));var xq=g_(e=>({token:null,setToken:t=>e({token:t})}),`token`);v_(__(e=>({status:`loading`,sessionId:null,setStatus:t=>e({status:t}),setAuthenticated:t=>{e({status:`authenticated`,sessionId:t??null})},setUnauthenticated:()=>{xq.getState().setToken(null),e({status:`unauthenticated`,sessionId:null})},clearSession:()=>{xq.getState().setToken(null),typeof window<`u`&&window.sessionStorage.removeItem(`sessionId`),e({status:`unauthenticated`,sessionId:null})}}),`auth`,{partialize:e=>({status:e.status,sessionId:e.sessionId})})),v_(g_(e=>({sidebarOpen:!0,sidebarCollapsed:!1,activeDialog:null,globalLoading:!1,searchOpen:!1,toggleSidebar:()=>e(e=>{e.sidebarOpen=!e.sidebarOpen}),setSidebarOpen:t=>e({sidebarOpen:t}),setSidebarCollapsed:t=>e({sidebarCollapsed:t}),openDialog:t=>e({activeDialog:t}),closeDialog:()=>e({activeDialog:null}),setGlobalLoading:t=>e({globalLoading:t}),toggleSearch:()=>e(e=>{e.searchOpen=!e.searchOpen}),setSearchOpen:t=>e({searchOpen:t})}),`ui`)),[`a[href]`,`button:not([disabled])`,`input:not([disabled]):not([type="hidden"])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`,`[contenteditable="true"]`].join(`,`);var Sq=(0,G.createContext)(null);Sq.displayName=`MultiBackendContext`;var Cq=(0,G.createContext)(null);Cq.displayName=`MultiBackendConnectionContext`;function wq({client:e,children:t,autoConnect:n=!0,connectTimeout:r=3e4,onConnect:i,onDisconnect:a,onError:o}){let s=(0,G.useRef)(!0),c=(0,G.useMemo)(()=>`getBackendNames`in e&&typeof e.getBackendNames==`function`?e.getBackendNames():[],[e]),[l,u]=(0,G.useState)(()=>{let t=new Map;for(let n of c)t.set(n,{name:n,isConnected:e.isConnected(n),isConnecting:!1,error:null});return t}),[d,f]=(0,G.useState)(null),p=(0,G.useCallback)((e,t)=>{s.current&&u(n=>{let r=new Map(n),i=r.get(e)||{name:e,isConnected:!1,isConnecting:!1,error:null};return r.set(e,{...i,...t}),r})},[]),m=(0,G.useCallback)(async t=>{p(t,{isConnecting:!0,error:null});try{let n=new Promise((e,n)=>{setTimeout(()=>{n(Error(`Connection timeout for backend '${t}' after ${r}ms`))},r)});await Promise.race([e.connect(t),n]),s.current&&(p(t,{isConnected:!0,isConnecting:!1}),i?.(t))}catch(e){if(s.current){let n=e;p(t,{isConnected:!1,isConnecting:!1,error:n}),o?.(t,n)}throw e}},[e,r,p,i,o]),h=(0,G.useCallback)(async t=>{try{await e.disconnect(t),s.current&&(p(t,{isConnected:!1,isConnecting:!1}),a?.(t))}catch(e){if(s.current){let n=e;p(t,{error:n}),o?.(t,n)}throw e}},[e,p,a,o]),g=(0,G.useCallback)(async e=>{if(e)await m(e);else{let e=c.map(e=>m(e).catch(t=>{console.error(`Failed to connect to backend '${e}':`,t)}));await Promise.all(e)}},[c,m]),_=(0,G.useCallback)(async e=>{if(e)await h(e);else{let e=c.map(e=>h(e).catch(t=>{console.error(`Failed to disconnect from backend '${e}':`,t)}));await Promise.all(e)}},[c,h]),v=(0,G.useCallback)(t=>t?l.get(t)?.isConnected??e.isConnected(t):e.isConnected(),[e,l]),y=(0,G.useCallback)(t=>e.backend(t),[e]);(0,G.useEffect)(()=>{n&&c.some(t=>!e.isConnected(t))&&g().catch(e=>{s.current&&f(e)})},[n,c,e,g]),(0,G.useEffect)(()=>()=>{s.current=!1},[]);let b=(0,G.useMemo)(()=>({backends:l,allConnected:c.length>0&&c.every(e=>l.get(e)?.isConnected??!1),anyConnected:c.some(e=>l.get(e)?.isConnected??!1),anyConnecting:c.some(e=>l.get(e)?.isConnecting??!1),globalError:d}),[c,l,d]),x=(0,G.useMemo)(()=>({client:e,getBackend:y,backendNames:c,isConnected:v,connect:g,disconnect:_}),[e,y,c,v,g,_]);return(0,K.jsx)(Sq.Provider,{value:x,children:(0,K.jsx)(Cq.Provider,{value:b,children:t})})}var Tq=`omnitron_token`,Eq=30*1e3,Dq=5*1e3,Oq=300*1e3,kq=3,Aq=2e3,jq=new Set([`SESSION_EXPIRED`,`SESSION_REVOKED`]),Mq=class{refreshTimer=null;expiresAt=null;lastRefreshAt=0;inflightRefresh=null;running=!1;handler=null;boundVisibilityHandler=null;start(e,t){this.stop(),this.running=!0,this.handler=t,this.expiresAt=new Date(e),this.scheduleRefresh(),this.setupVisibilityListener()}stop(){this.running=!1,this.handler=null,this.cancelTimer(),this.removeVisibilityListener(),this.expiresAt=null,this.inflightRefresh=null}get isActive(){return this.running}async refresh(){if(!this.getSessionId())return!1;if(this.inflightRefresh)return this.inflightRefresh;if(Date.now()-this.lastRefreshAt<Dq)return!0;this.inflightRefresh=this.performRefreshWithRetry();try{return await this.inflightRefresh}finally{this.inflightRefresh=null}}async performRefreshWithRetry(){for(let e=0;e<=kq;e++)try{return await this.performRefresh()}catch(t){let n=String(t?.code??``);if(jq.has(n)){let e=this.handler;return this.stop(),e?.(`expired`),!1}if(e<kq){let t=Aq*2**e;await new Promise(e=>setTimeout(e,t))}else return!1}return!1}async performRefresh(){let e=this.getSessionId();if(!e)return!1;let t=await At(`refreshSession`,e);if(!t?.success||!t?.result)return!1;let{accessToken:n,session:r}=t.result;return n&&(sessionStorage.setItem(Tq,n),ht(n)),r?.expiresAt&&(this.expiresAt=new Date(r.expiresAt)),this.lastRefreshAt=Date.now(),this.running&&this.scheduleRefresh(),this.handler?.(`refreshed`),!0}scheduleRefresh(){if(this.cancelTimer(),!this.running||!this.expiresAt)return;let e=Date.now(),t=this.expiresAt.getTime(),n=this.getJwtExpiryMs();n&&n<t&&(t=n);let r=t-e-Eq;r<=0&&(r=0),r=Math.min(r,Oq),this.refreshTimer=setTimeout(()=>{this.running&&this.refresh()},r)}getJwtExpiryMs(){try{let e=sessionStorage.getItem(Tq);if(!e)return null;let t=e.split(`.`);if(t.length!==3)return null;let n=JSON.parse(atob(t[1].replace(/-/g,`+`).replace(/_/g,`/`)));return typeof n.exp==`number`?n.exp*1e3:null}catch{return null}}getSessionId(){try{let e=sessionStorage.getItem(Tq);if(!e)return null;let t=e.split(`.`);return t.length===3?JSON.parse(atob(t[1].replace(/-/g,`+`).replace(/_/g,`/`))).sid??null:null}catch{return null}}cancelTimer(){this.refreshTimer!==null&&(clearTimeout(this.refreshTimer),this.refreshTimer=null)}setupVisibilityListener(){this.removeVisibilityListener(),this.boundVisibilityHandler=()=>{this.running&&document.visibilityState===`visible`&&this.refresh()},document.addEventListener(`visibilitychange`,this.boundVisibilityHandler)}removeVisibilityListener(){this.boundVisibilityHandler&&=(document.removeEventListener(`visibilitychange`,this.boundVisibilityHandler),null)}},Nq=`__omnitronSessionManager`;function Pq(){let e=window[Nq];if(e)return e;let t=new Mq;return window[Nq]=t,t}var Fq=typeof window<`u`?Pq():new Mq;function Iq(e){if(e===`expired`&&(yt(),Lq.setState({user:null,sessionId:null}),typeof window<`u`)){let e=encodeURIComponent(window.location.pathname+window.location.search);window.location.href=`/auth/sign-in?returnTo=${e}`}}var Lq=be((e,t)=>({user:null,sessionId:null,initialized:!1,loading:!1,initialize:async()=>{if(t().initialized)return;let n=Ct();if(!n){e({initialized:!0});return}try{let t=await At(`validateSession`,{sessionId:n});if(t.valid&&t.user){let r=t.session?.expiresAt??new Date(Date.now()+3600*1e3).toISOString();e({user:{id:t.user.id,username:t.user.username,displayName:t.user.displayName??t.user.username,role:t.user.role??`admin`},sessionId:n,initialized:!0}),Fq.start(r,Iq);return}}catch{try{if(await Fq.refresh()){let t=await At(`validateSession`,{sessionId:Ct()});if(t.valid&&t.user){e({user:{id:t.user.id,username:t.user.username,displayName:t.user.displayName??t.user.username,role:t.user.role??`admin`},sessionId:Ct(),initialized:!0});return}}}catch{}}yt(),e({initialized:!0})},signIn:async(t,n)=>{e({loading:!0});try{let r=await At(`signIn`,{username:t,password:n});if(!r||typeof r!=`object`||Array.isArray(r)||!r.user)throw Error(`Invalid credentials`);r.accessToken&&ht(r.accessToken);let i=r.session?.id??Ct(),a=r.session?.expiresAt??new Date(Date.now()+3600*1e3).toISOString();e({user:{id:r.user.id,username:r.user.username,displayName:r.user.displayName??r.user.username,role:r.user.role??`admin`},sessionId:i,loading:!1}),Fq.start(a,Iq)}catch(t){throw e({loading:!1}),t}},signOut:async()=>{Fq.stop();let{sessionId:n}=t();try{n&&await At(`signOut`,{sessionId:n})}finally{yt(),e({user:null,sessionId:null})}},setUser:t=>e({user:t})}));function Rq({children:e}){let{user:t,initialized:n,initialize:r}=Lq(),i=we();return(0,G.useEffect)(()=>{r()},[r]),n?t?(0,K.jsx)(K.Fragment,{children:e}):(0,K.jsx)(xe,{to:`/auth/sign-in?returnTo=${encodeURIComponent(i.pathname+i.search)}`,replace:!0}):(0,K.jsx)($D,{})}function zq({children:e}){let{user:t,initialized:n,initialize:r}=Lq();return(0,G.useEffect)(()=>{r()},[r]),n?t?(0,K.jsx)(xe,{to:`/`,replace:!0}):(0,K.jsx)(K.Fragment,{children:e}):(0,K.jsx)($D,{})}var Bq=e=>Symbol.iterator in e,Vq=e=>`entries`in e,Hq=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},Uq=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function Wq(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:Bq(e)&&Bq(t)?Vq(e)&&Vq(t)?Hq(e,t):Uq(e,t):Hq({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Gq(e){let t=G.useRef(void 0);return n=>{let r=e(n);return Wq(t.current,r)?t.current:t.current=r}}var Kq=`omnitron_active_project`,qq=`omnitron_active_stack`,Jq=`omnitron_workspace_routes`,Yq=`__omnitron__`;function Xq(e,t){e?localStorage.setItem(Kq,e):localStorage.removeItem(Kq),t?localStorage.setItem(qq,t):localStorage.removeItem(qq)}function Zq(){let e={};try{let t=localStorage.getItem(Jq);t&&(e=JSON.parse(t))}catch{}return{project:localStorage.getItem(Kq),stack:localStorage.getItem(qq),routes:e}}function Qq(e){localStorage.setItem(Jq,JSON.stringify(e))}var $q=be((e,t)=>{let n=Zq();return{projects:[],stacksByProject:{},stackRuntimes:{},pendingOps:{},activeProject:n.project,activeStack:n.stack,workspaceRoutes:n.routes,loading:!1,error:null,fetchProjects:async()=>{try{e({loading:!0,error:null});let n=await _t.listProjects();e({projects:n,loading:!1});let r=t().activeProject;if(r)n.some(e=>e.name===r)?t().fetchStacks(r):(e({activeProject:null,activeStack:null}),Xq(null,null));else if(n.length===1){let r=n[0].name;e({activeProject:r}),Xq(r,null),t().fetchStacks(r)}}catch(t){e({error:t.message,loading:!1})}},fetchStacks:async n=>{try{let r=await _t.listStacks({project:n});if(e(e=>({stacksByProject:{...e.stacksByProject,[n]:r}})),r.length===1&&!t().activeStack){let t=r[0].name;e({activeStack:t}),Xq(n,t)}}catch(t){e({error:t.message})}},fetchStackStatus:async(t,n)=>{try{let r=await _t.getStackStatus({project:t,stack:n});return e(e=>({stackRuntimes:{...e.stackRuntimes,[`${t}/${n}`]:r}})),r}catch(t){return e({error:t.message}),null}},selectProject:(n,r)=>{let i=t(),a={...i.workspaceRoutes};if(r){let e=i.activeProject??Yq;a[e]=r}let o=a[n]??`/`;return e({activeProject:n,activeStack:null,workspaceRoutes:a}),Xq(n,null),Qq(a),t().fetchStacks(n),o},deselectProject:n=>{let r=t(),i={...r.workspaceRoutes};n&&r.activeProject&&(i[r.activeProject]=n);let a=i[Yq]??`/`;return e({activeProject:null,activeStack:null,workspaceRoutes:i}),Xq(null,null),Qq(i),a},saveCurrentRoute:n=>{let r=t(),i=r.activeProject??Yq,a={...r.workspaceRoutes,[i]:n};e({workspaceRoutes:a}),Qq(a)},selectStack:n=>{e({activeStack:n}),Xq(t().activeProject,n)},addProject:async(n,r)=>{try{e({loading:!0,error:null}),await _t.addProject({name:n,path:r}),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},removeProject:async n=>{try{e({loading:!0,error:null}),await _t.removeProject({name:n}),t().activeProject===n&&(e({activeProject:null,activeStack:null}),Xq(null,null)),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},startStack:async(n,r)=>{let i=`${n}/${r}`;if(!t().pendingOps[i]){e(e=>({error:null,pendingOps:{...e.pendingOps,[i]:`starting`},stacksByProject:tJ(e.stacksByProject,n,r,`starting`)}));try{await _t.startStack({project:n,stack:r})}catch(t){let n=t.message;eJ(n)||e({error:n})}finally{e(e=>{let t={...e.pendingOps};return delete t[i],{pendingOps:t}}),await t().fetchStacks(n)}}},stopStack:async(n,r)=>{let i=`${n}/${r}`;if(!t().pendingOps[i]){e(e=>({error:null,pendingOps:{...e.pendingOps,[i]:`stopping`},stacksByProject:tJ(e.stacksByProject,n,r,`stopping`)}));try{await _t.stopStack({project:n,stack:r})}catch(t){let n=t.message;eJ(n)||e({error:n})}finally{e(e=>{let t={...e.pendingOps};return delete t[i],{pendingOps:t}}),await t().fetchStacks(n)}}},createStack:async(n,r)=>{try{e({error:null});let i=await _t.createStack({project:n,...r});return await t().fetchStacks(n),i}catch(t){throw e({error:t.message}),t}},deleteStack:async(n,r)=>{try{e({error:null}),await _t.deleteStack({project:n,stack:r}),await t().fetchStacks(n)}catch(t){throw e({error:t.message}),t}},getStackPendingOp:(e,n)=>t().pendingOps[`${e}/${n}`]??null,clearError:()=>e({error:null})}});function eJ(e){return/timeout|timed?\s*out|ETIMEDOUT|ECONNABORTED/i.test(e)}function tJ(e,t,n,r){let i=e[t];return i?{...e,[t]:i.map(e=>e.name===n?{...e,status:r}:e)}:e}var nJ=()=>$q(e=>e.activeProject);function rJ(){return $q(Gq(e=>(e.activeProject?e.stacksByProject[e.activeProject]:void 0)??iJ))}var iJ=[];function aJ({children:e}){return nJ()?(0,K.jsx)(K.Fragment,{children:e}):(0,K.jsx)(xe,{to:`/`,replace:!0})}var oJ=class{ws=null;reconnectTimer=null;heartbeatTimer=null;reconnectAttempts=0;intentionalClose=!1;eventListeners=new Map;connectionListeners=new Set;_connected=!1;url;autoReconnect;maxReconnectAttempts;reconnectDelay;maxReconnectDelay;heartbeatInterval;constructor(e={}){let t=window.location.protocol===`https:`?`wss:`:`ws:`,n=parseInt(window.location.port||`9802`,10);this.url=e.url??`${t}//${window.location.hostname}:${n}/ws`,this.autoReconnect=e.autoReconnect??!0,this.maxReconnectAttempts=e.maxReconnectAttempts??1/0,this.reconnectDelay=e.reconnectDelay??1e3,this.maxReconnectDelay=e.maxReconnectDelay??3e4,this.heartbeatInterval=e.heartbeatInterval??3e4}get connected(){return this._connected}connect(){if(!(this.ws&&(this.ws.readyState===WebSocket.CONNECTING||this.ws.readyState===WebSocket.OPEN))){this.intentionalClose=!1;try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{this._connected=!0,this.reconnectAttempts=0,this.startHeartbeat(),this.notifyConnection(!0)},this.ws.onmessage=e=>{try{let t=JSON.parse(e.data);this.dispatchEvent(t)}catch{}},this.ws.onclose=()=>{this._connected=!1,this.stopHeartbeat(),this.notifyConnection(!1),!this.intentionalClose&&this.autoReconnect&&this.scheduleReconnect()},this.ws.onerror=()=>{}}catch{this.autoReconnect&&this.scheduleReconnect()}}}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&=(clearTimeout(this.reconnectTimer),null),this.stopHeartbeat(),this.ws&&=(this.ws.close(),null),this._connected=!1}on(e,t){let n=this.eventListeners.get(e);return n||(n=new Set,this.eventListeners.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this.eventListeners.delete(e)}}onConnection(e){return this.connectionListeners.add(e),()=>this.connectionListeners.delete(e)}dispatchEvent(e){let t=this.eventListeners.get(e.channel);if(t)for(let n of t)n(e);for(let[t,n]of this.eventListeners)if(t===`*`)for(let t of n)t(e);else if(t.endsWith(`.*`)){let r=t.slice(0,-2);if(e.channel.startsWith(r+`.`))for(let t of n)t(e)}}notifyConnection(e){for(let t of this.connectionListeners)try{t(e)}catch{}}scheduleReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts)return;let e=Math.min(this.reconnectDelay*2**this.reconnectAttempts,this.maxReconnectDelay);this.reconnectTimer=setTimeout(()=>{this.reconnectAttempts++,this.connect()},e)}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:`ping`}))},this.heartbeatInterval)}stopHeartbeat(){this.heartbeatTimer&&=(clearInterval(this.heartbeatTimer),null)}},sJ=null;function cJ(){return sJ||=new oJ,sJ}var lJ=be((e,t)=>({connected:!1,appEvents:[],infraEvents:[],alerts:[],lastMetricsUpdate:0,lastEvent:null,deployProgress:[],initialize:()=>{let t=cJ(),n=[];return n.push(t.onConnection(t=>{e({connected:t})})),n.push(t.on(`app.*`,t=>{let n=t.data,r={name:n.name??`unknown`,pid:n.pid??null,status:t.channel.split(`.`)[1]??`unknown`,timestamp:t.timestamp};e(e=>({appEvents:[r,...e.appEvents].slice(0,50),lastEvent:t}))})),n.push(t.on(`infra.*`,t=>{let n=t.data,r={service:n.service??n.services?.join(`, `)??`unknown`,status:t.channel.split(`.`)[1]??`unknown`,timestamp:t.timestamp};e(e=>({infraEvents:[r,...e.infraEvents].slice(0,20),lastEvent:t}))})),n.push(t.on(`alert.*`,t=>{let n=t.data,r={ruleId:n.ruleId??``,ruleName:n.ruleName??``,severity:n.severity??`info`,message:n.message,timestamp:t.timestamp};e(e=>t.channel===`alert.resolved`?{alerts:e.alerts.filter(e=>e.ruleId!==r.ruleId),lastEvent:t}:{alerts:[r,...e.alerts.filter(e=>e.ruleId!==r.ruleId)],lastEvent:t})})),n.push(t.on(`metrics.collected`,t=>{e({lastMetricsUpdate:t.timestamp,lastEvent:t})})),n.push(t.on(`project.*`,t=>{e({lastEvent:t})})),n.push(t.on(`stack.*`,t=>{if(t.channel===`stack.deploy_progress`){let n=t.data;e(e=>({deployProgress:[...e.deployProgress.filter(e=>!(e.node===n.node&&e.app===n.app)).filter(e=>Date.now()-e.timestamp<3e4||e.status!==`success`&&e.status!==`failed`),{...n,timestamp:t.timestamp}],lastEvent:t}))}else e({lastEvent:t})})),n.push(t.on(`daemon.*`,t=>{e({lastEvent:t})})),t.connect(),()=>{for(let e of n)e();t.disconnect()}}}));function uJ({color:e,pulse:t}){return(0,K.jsx)(B,{sx:{width:6,height:6,borderRadius:`50%`,bgcolor:e,flexShrink:0,...t&&{boxShadow:`0 0 4px ${e}`,animation:`pulse 2s ease-in-out infinite`,"@keyframes pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.5}}}}})}function dJ(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?r>0?`${n}d ${r}h`:`${n}d`:r>0?i>0?`${r}h ${i}m`:`${r}h`:`${i}m`}function fJ({children:e}){return(0,K.jsx)(B,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:e})}function pJ({children:e,highlight:t}){return(0,K.jsx)(nt,{variant:`caption`,sx:{fontSize:`inherit`,color:t?`#e4e4e7`:`text.secondary`,fontWeight:t?600:400},children:e})}function mJ({label:e,value:t}){return(0,K.jsxs)(pJ,{children:[e,` `,(0,K.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:t})]})}function hJ(){let[e,t]=(0,G.useState)(null),n=lJ(e=>e.connected),r=lJ(e=>e.lastEvent);return(0,G.useEffect)(()=>{let e=!0,r=async()=>{try{let[n,r,i]=await Promise.allSettled([dt.status(),Ot.listNodes(),Nt.getSummary()]);if(!e)return;let a=n.status===`fulfilled`?n.value:null,o=r.status===`fulfilled`?r.value:[],s=i.status===`fulfilled`?Nt.value:null,c=a?.apps??[],l=Array.isArray(c)?c.filter(e=>e.status===`online`).length:0;t({daemonOnline:!!a,appsOnline:l,appsTotal:Array.isArray(c)?c.length:0,nodesOnline:Array.isArray(o)?o.filter(e=>e.status?.omnitronConnected).length:0,nodesTotal:Array.isArray(o)?o.length:0,firingAlerts:s?.firing??0,uptimeMs:a?.uptime??0,version:a?.version??``,pid:a?.pid??0,lastFetch:Date.now()})}catch{e&&t(e=>e?{...e,daemonOnline:!1}:null)}};r();let i=setInterval(r,n?3e4:1e4);return()=>{e=!1,clearInterval(i)}},[n]),(0,G.useEffect)(()=>{if(!r)return;let e=r.channel;(e.startsWith(`app.`)||e.startsWith(`alert.`)||e.startsWith(`daemon.`)||e.startsWith(`stack.`))&&(async()=>{try{let e=await dt.status(),n=e?.apps??[],r=Array.isArray(n)?n.filter(e=>e.status===`online`).length:0;t(t=>t&&{...t,daemonOnline:!0,appsOnline:r,appsTotal:n.length,uptimeMs:e?.uptime??t.uptimeMs,version:e?.version??t.version,pid:e?.pid??t.pid,lastFetch:Date.now()})}catch{}})()},[r]),e?(0,K.jsxs)(B,{sx:{position:`fixed`,bottom:0,left:0,right:0,height:28,bgcolor:W(`#0a0a10`,.96),backdropFilter:`blur(12px)`,borderTop:`1px solid`,borderColor:W(`#fff`,.06),display:`flex`,alignItems:`center`,px:2,gap:2.5,zIndex:1300,fontSize:`0.68rem`,userSelect:`none`},children:[(0,K.jsxs)(fJ,{children:[(0,K.jsx)(uJ,{color:e.daemonOnline?`#22c55e`:`#ef4444`,pulse:e.daemonOnline}),(0,K.jsx)(pJ,{highlight:e.daemonOnline,children:e.daemonOnline?`Online`:`Offline`})]}),(0,K.jsx)(B,{sx:{width:`1px`,height:12,bgcolor:W(`#fff`,.08)}}),(0,K.jsx)(_J,{}),(0,K.jsx)(fJ,{children:(0,K.jsx)(mJ,{label:`Apps`,value:`${e.appsOnline}/${e.appsTotal}`})}),e.nodesTotal>0&&(0,K.jsx)(fJ,{children:(0,K.jsx)(mJ,{label:`Nodes`,value:`${e.nodesOnline}/${e.nodesTotal}`})}),e.firingAlerts>0&&(0,K.jsxs)(fJ,{children:[(0,K.jsx)(uJ,{color:`#ef4444`,pulse:!0}),(0,K.jsxs)(nt,{variant:`caption`,sx:{fontSize:`inherit`,color:`#ef4444`,fontWeight:600},children:[e.firingAlerts,` alert`,e.firingAlerts>1?`s`:``]})]}),(0,K.jsxs)(fJ,{children:[(0,K.jsx)(uJ,{color:n?`#3b82f6`:`#6b7280`}),(0,K.jsx)(pJ,{children:n?`Live`:`Polling`})]}),(0,K.jsx)(B,{sx:{flex:1}}),e.daemonOnline&&e.uptimeMs>0&&(0,K.jsx)(fJ,{children:(0,K.jsx)(mJ,{label:`Uptime`,value:dJ(e.uptimeMs)})}),(0,K.jsx)(gJ,{serverTimestamp:e.lastFetch}),(0,K.jsx)(B,{sx:{px:.75,py:.1,borderRadius:.5,border:`1px solid`,borderColor:W(`#fff`,.08),fontSize:`inherit`,color:`text.disabled`,lineHeight:1},children:`⌘K`})]}):null}function gJ({serverTimestamp:e}){let[t]=(0,G.useState)(()=>e?e-Date.now():0),[n,r]=(0,G.useState)(()=>Date.now()+t);(0,G.useEffect)(()=>{let e=setInterval(()=>r(Date.now()+t),1e3);return()=>clearInterval(e)},[t]);let i=new Date(n);return(0,K.jsx)(fJ,{children:(0,K.jsxs)(pJ,{children:[String(i.getHours()).padStart(2,`0`),`:`,String(i.getMinutes()).padStart(2,`0`),`:`,String(i.getSeconds()).padStart(2,`0`)]})})}function _J(){let e=$q(e=>e.activeProject),t=$q(e=>e.activeStack),n=rJ();if(!e)return null;let r=n.filter(e=>e.status===`running`).length;return(0,K.jsx)(fJ,{children:(0,K.jsxs)(pJ,{children:[(0,K.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:e}),t&&(0,K.jsxs)(`span`,{style:{color:`#60a5fa`},children:[` / `,t]}),r>0&&!t&&(0,K.jsxs)(`span`,{style:{color:`#6b7280`},children:[` (`,r,` stack`,r>1?`s`:``,`)`]})]})})}function vJ({size:e=32,sx:t}){return(0,K.jsxs)(B,{component:`svg`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 210 210`,sx:{width:e,height:e,flexShrink:0,...t},children:[(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{id:`omni-logo-grad`,x1:`105`,y1:`165.47`,x2:`105`,y2:`52.73`,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{offset:`0`,stopColor:`#ff4fff`}),(0,K.jsx)(`stop`,{offset:`0.01`,stopColor:`#ff51fb`}),(0,K.jsx)(`stop`,{offset:`0.29`,stopColor:`#ff75af`}),(0,K.jsx)(`stop`,{offset:`0.53`,stopColor:`#ff9272`}),(0,K.jsx)(`stop`,{offset:`0.73`,stopColor:`#ffa747`}),(0,K.jsx)(`stop`,{offset:`0.89`,stopColor:`#ffb32c`}),(0,K.jsx)(`stop`,{offset:`0.98`,stopColor:`#ffb822`})]})}),(0,K.jsx)(`path`,{fill:`url(#omni-logo-grad)`,d:`M66.92,144.68l-27,15.59L102,52.73V83.92Zm3,5.2-27,15.59H167.09l-27-15.59Zm100.17,10.39L108,52.73V83.92l35.08,60.76Zm-34.4-16.39L105,90.72,74.31,143.88Z`})]})}var yJ=class extends G.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?(0,K.jsxs)(B,{sx:{p:4,textAlign:`center`},children:[(0,K.jsx)(nt,{variant:`h5`,gutterBottom:!0,children:`Something went wrong`}),(0,K.jsx)(nt,{color:`text.secondary`,sx:{mb:2,fontFamily:`monospace`,fontSize:`0.85rem`},children:this.state.error?.message}),(0,K.jsx)(k,{variant:`contained`,onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:`Reload`})]}):this.props.children}};function bJ(){let{open:e,anchorEl:t,onClose:n,onOpen:r}=iO(),i=je(),{pathname:a}=we(),o=$q(e=>e.projects),s=nJ(),c=$q(e=>e.selectProject),l=$q(e=>e.deselectProject),d=$q(e=>e.fetchProjects);(0,G.useEffect)(()=>{d()},[d]);let f=(0,G.useCallback)(()=>{i(l(a)),n()},[l,i,a,n]),p=(0,G.useCallback)(e=>{i(c(e,a)),n()},[c,i,a,n]),m=o.find(e=>e.name===s),h=!s,g={height:1,zIndex:-1,opacity:0,content:`''`,borderRadius:1,position:`absolute`,visibility:`hidden`,bgcolor:`action.hover`,width:`calc(100% + 8px)`,transition:e=>e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),...e&&{opacity:1,visibility:`visible`}},_={fontSize:22,color:`text.secondary`},v={fontSize:22,color:`primary.main`};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(Qe,{disableRipple:!0,onClick:r,sx:{py:.5,gap:{xs:.5,sm:1},"&::before":g},children:[(0,K.jsx)(B,{sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:h?(0,K.jsx)(O,{sx:{fontSize:20}}):(0,K.jsx)(te,{sx:{fontSize:20}})}),(0,K.jsx)(B,{component:`span`,sx:{typography:`subtitle2`,display:{xs:`none`,sm:`inline-flex`}},children:h?`Omnitron`:m?.displayName??s}),m&&(0,K.jsxs)(ZD,{color:m.runningStacks>0?`success`:`default`,sx:{height:22,cursor:`inherit`,display:{xs:`none`,sm:`inline-flex`}},children:[m.runningStacks,`/`,m.totalStacks,` stacks`]}),(0,K.jsx)(B,{component:`svg`,viewBox:`0 0 16 16`,sx:{width:16,height:16,color:`text.disabled`,flexShrink:0},children:(0,K.jsx)(`path`,{fill:`currentColor`,d:`M11.2 5.6L8 2.4 4.8 5.6m0 4.8L8 13.6l3.2-3.2`})})]}),(0,K.jsxs)(rO,{open:e,anchorEl:t,onClose:n,arrow:{placement:`top-left`},slotProps:{paper:{sx:{mt:.5,ml:-1.55,width:280}}},children:[(0,K.jsx)(B,{sx:{maxHeight:320,overflow:`auto`},children:(0,K.jsxs)(C,{children:[(0,K.jsxs)(Op,{selected:h,onClick:f,sx:{height:48,gap:1.5},children:[(0,K.jsx)(O,{sx:h?v:_}),(0,K.jsxs)(B,{sx:{flexGrow:1,minWidth:0},children:[(0,K.jsx)(nt,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:`Omnitron`}),(0,K.jsx)(nt,{noWrap:!0,variant:`caption`,color:`text.disabled`,children:`System`})]})]}),o.length>0&&(0,K.jsx)(qt,{sx:{my:.5,borderStyle:`dashed`}}),o.map(e=>{let t=e.name===s;return(0,K.jsx)(Zp,{title:e.path,placement:`right`,arrow:!0,enterDelay:500,children:(0,K.jsxs)(Op,{selected:t,onClick:()=>p(e.name),sx:{height:48,gap:1.5},children:[(0,K.jsx)(te,{sx:t?v:_}),(0,K.jsx)(B,{sx:{flexGrow:1,minWidth:0},children:(0,K.jsx)(nt,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:e.displayName})}),(0,K.jsx)(ZD,{color:e.runningStacks>0?`success`:`default`,children:e.runningStacks>0?`${e.runningStacks} live`:`idle`})]})},e.name)})]})}),(0,K.jsx)(qt,{sx:{my:.5,borderStyle:`dashed`}}),(0,K.jsx)(k,{fullWidth:!0,startIcon:(0,K.jsx)(u,{sx:{fontSize:18}}),onClick:n,sx:{gap:2,justifyContent:`flex-start`,fontWeight:`fontWeightMedium`,[`& .${N.startIcon}`]:{m:0,width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`}},children:`Add project`})]})]})}function xJ(){let e=nJ();return(0,G.useMemo)(()=>e?[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,K.jsx)(fe,{})},{id:`apps`,title:`Applications`,path:`/apps`,icon:(0,K.jsx)(le,{}),selectionPrefix:`/apps`}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,K.jsx)(_e,{})},{id:`metrics`,title:`Metrics`,path:`/metrics`,icon:(0,K.jsx)(b,{})},{id:`traces`,title:`Traces`,path:`/traces`,icon:(0,K.jsx)(m,{})},{id:`alerts`,title:`Alerts`,path:`/alerts`,icon:(0,K.jsx)(ue,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`stacks`,title:`Stacks`,path:`/stacks`,icon:(0,K.jsx)(_,{}),selectionPrefix:`/stacks`},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,K.jsx)(s,{})},{id:`containers`,title:`Containers`,path:`/containers`,icon:(0,K.jsx)(M,{})},{id:`deployments`,title:`Deployments`,path:`/deployments`,icon:(0,K.jsx)(I,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,K.jsx)(he,{}),selectionPrefix:`/pipelines`}]},{id:`system`,subheader:`System`,items:[{id:`dashboard-builder`,title:`Dashboard Builder`,path:`/dashboard-builder`,icon:(0,K.jsx)(se,{})},{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,K.jsx)(re,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,K.jsx)(i,{})}]}]:[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,K.jsx)(fe,{})}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,K.jsx)(_e,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,K.jsx)(s,{})}]},{id:`system`,subheader:`System`,items:[{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,K.jsx)(re,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,K.jsx)(i,{})}]}],[e])}function SJ(){let{sidenavCollapsed:e,sidenavVariant:t}=qK();return(0,K.jsxs)(Bt,{direction:`row`,alignItems:`center`,spacing:1,children:[(0,K.jsx)(vJ,{size:48}),!e&&t!==`mini`&&(0,K.jsx)(nt,{variant:`subtitle1`,fontWeight:800,letterSpacing:2,noWrap:!0,sx:{textTransform:`uppercase`,fontSize:`0.85rem`},children:`Omnitron`})]})}function CJ({mode:e}){return e===`dark`?(0,K.jsxs)(B,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,K.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67C21.89 14.81 21.7 14.94 21.5 14.08Z`}),(0,K.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67`})]}):e===`light`?(0,K.jsxs)(B,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,K.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`5`}),(0,K.jsx)(`circle`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,cx:`12`,cy:`12`,r:`5`}),(0,K.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 2V4M12 20V22M4 12H2M22 12H20M19.78 4.22L18.36 5.64M5.64 18.36L4.22 19.78M19.78 19.78L18.36 18.36M5.64 5.64L4.22 4.22`})]}):(0,K.jsxs)(B,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,K.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V11C22 11.55 21.55 12 21 12H3C2.45 12 2 11.55 2 11V10Z`}),(0,K.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V14C22 17.77 22 19.66 20.83 20.83C19.66 22 17.77 22 14 22H10C6.23 22 4.34 22 3.17 20.83C2 19.66 2 17.77 2 14V10Z`}),(0,K.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 12H22`})]})}var wJ={p:.75,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.1)`,bgcolor:`transparent`}};function TJ(){let e=Lq(e=>e.signOut),{setMode:t}=ld(),n=b_(e=>e.mode);return(0,K.jsxs)(Bt,{direction:`row`,alignItems:`center`,spacing:.5,children:[(0,K.jsx)(Zp,{title:n===`light`?`Dark mode`:n===`dark`?`System mode`:`Light mode`,children:(0,K.jsx)(xt,{disableRipple:!0,onClick:()=>{let e=[`light`,`dark`,`system`];t(e[(e.indexOf(n)+1)%e.length])},sx:wJ,children:(0,K.jsx)(CJ,{mode:n})})}),(0,K.jsx)(Zp,{title:`Sign out`,children:(0,K.jsx)(xt,{disableRipple:!0,onClick:()=>e(),sx:wJ,children:(0,K.jsx)(A,{sx:{fontSize:20}})})})]})}function EJ(){let e=xJ();return(0,K.jsxs)(hq,{logo:(0,K.jsx)(SJ,{}),navData:e,persistKey:`console`,initialConfig:{navigationMenuType:`sidenav`,sidenavVariant:`default`,navColor:`default`},headerSlots:{leftArea:(0,K.jsx)(bJ,{}),rightArea:(0,K.jsx)(TJ,{})},slotProps:{main:{sx:{pb:{xs:6,sm:7,md:8}}}},children:[(0,K.jsx)(yJ,{children:(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)($D,{}),children:(0,K.jsx)(Ee,{})})}),(0,K.jsx)(hJ,{})]})}function DJ(){return(0,K.jsx)(yq,{maxWidth:460,children:(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(B,{sx:{width:`100%`,pt:2},children:(0,K.jsx)($f,{})}),children:(0,K.jsx)(Ee,{})})})}var OJ=(0,G.lazy)(()=>De(()=>import(`./sign-in-DQEAkJum.js`),__vite__mapDeps([2,1,3,4,5,6,7]))),kJ=(0,G.lazy)(()=>De(()=>import(`./dashboard-C0Fre9pC.js`),__vite__mapDeps([8,1,4,5,9,10,11,12,13,7]))),AJ=(0,G.lazy)(()=>De(()=>import(`./apps-DMPysEKB.js`),__vite__mapDeps([14,1,3,4,5,9,15,10,11,12,16]))),jJ=(0,G.lazy)(()=>De(()=>import(`./detail-DqoSGKT1.js`),__vite__mapDeps([17,1,3,4,5,9,15,10,11,12,6,7,16,0]))),MJ=(0,G.lazy)(()=>De(()=>import(`./logs-IovIij1C.js`),__vite__mapDeps([18,1,3,4,5,9,15,11,12,6,7]))),NJ=(0,G.lazy)(()=>De(()=>import(`./topology-6N8-Az_Z.js`),__vite__mapDeps([19,1,4,5,9,10,11,12,20,6,7,21]))),PJ=(0,G.lazy)(()=>De(()=>import(`./alerts-JEQALS7Y.js`),__vite__mapDeps([22,1,4,5,9,10,11,12,13,7,23,16]))),FJ=(0,G.lazy)(()=>De(()=>import(`./containers-CvkC7do8.js`),__vite__mapDeps([24,1,4,5,9,11,12,20,13,7,16]))),IJ=(0,G.lazy)(()=>De(()=>import(`./deployments-Cg1lI1uT.js`),__vite__mapDeps([25,1,4,5,10,11,12,20,6,7,16]))),LJ=(0,G.lazy)(()=>De(()=>import(`./metrics-Dufwtwjq.js`),__vite__mapDeps([26,1,4,5,9,12,13,7,23,0]))),RJ=(0,G.lazy)(()=>De(()=>import(`./settings-DTAIST3v.js`),__vite__mapDeps([27,1,3,4,5,10,11,12,6,7,28,23,16]))),zJ=(0,G.lazy)(()=>De(()=>import(`./pipelines-t40X4MuC.js`),__vite__mapDeps([29,1,4,5,10,11,12,20,6,7,16]))),BJ=(0,G.lazy)(()=>De(()=>import(`./traces-DVXyb-4m.js`),__vite__mapDeps([30,1,4,5,9,10,11,12,6,7,13,16]))),VJ=(0,G.lazy)(()=>De(()=>import(`./dashboard-builder-DAghqdpE.js`),__vite__mapDeps([31,1,4,5,10,11,12,20,6,7,13,23,0]))),HJ=(0,G.lazy)(()=>De(()=>import(`./stacks-BjM1f45N.js`),__vite__mapDeps([32,1,3,4,5,10,11,12,20,33,6,7,28,13]))),UJ=(0,G.lazy)(()=>De(()=>import(`./detail-CyFtEson.js`),__vite__mapDeps([34,1,3,4,5,10,11,12,20,33]))),WJ=(0,G.lazy)(()=>De(()=>import(`./system-info-BQSbSEK-.js`),__vite__mapDeps([35,1,5,10,11,12,13,7]))),GJ=(0,G.lazy)(()=>De(()=>import(`./nodes-Brvu8W3j.js`),__vite__mapDeps([36,1,4,5,11,12,20,6,7,13])));function KJ(){return(0,K.jsxs)(Se,{children:[(0,K.jsx)(ke,{element:(0,K.jsx)(zq,{children:(0,K.jsx)(DJ,{})}),children:(0,K.jsx)(ke,{path:`/auth/sign-in`,element:(0,K.jsx)(qJ,{children:(0,K.jsx)(OJ,{})})})}),(0,K.jsxs)(ke,{element:(0,K.jsx)(Rq,{children:(0,K.jsx)(EJ,{})}),children:[(0,K.jsx)(ke,{index:!0,element:(0,K.jsx)(qJ,{children:(0,K.jsx)(kJ,{})})}),(0,K.jsx)(ke,{path:`nodes`,element:(0,K.jsx)(qJ,{children:(0,K.jsx)(GJ,{})})}),(0,K.jsx)(ke,{path:`system`,element:(0,K.jsx)(qJ,{children:(0,K.jsx)(WJ,{})})}),(0,K.jsx)(ke,{path:`settings`,element:(0,K.jsx)(qJ,{children:(0,K.jsx)(RJ,{})})}),(0,K.jsx)(ke,{path:`logs`,element:(0,K.jsx)(qJ,{children:(0,K.jsx)(MJ,{})})}),(0,K.jsx)(ke,{path:`apps`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(AJ,{})})}),(0,K.jsx)(ke,{path:`apps/:name`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(jJ,{})})}),(0,K.jsx)(ke,{path:`stacks`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(HJ,{})})}),(0,K.jsx)(ke,{path:`stacks/:name`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(UJ,{})})}),(0,K.jsx)(ke,{path:`metrics`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(LJ,{})})}),(0,K.jsx)(ke,{path:`topology`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(NJ,{})})}),(0,K.jsx)(ke,{path:`containers`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(FJ,{})})}),(0,K.jsx)(ke,{path:`deployments`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(IJ,{})})}),(0,K.jsx)(ke,{path:`alerts`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(PJ,{})})}),(0,K.jsx)(ke,{path:`pipelines`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(zJ,{})})}),(0,K.jsx)(ke,{path:`traces`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(BJ,{})})}),(0,K.jsx)(ke,{path:`dashboard-builder`,element:(0,K.jsx)(JJ,{children:(0,K.jsx)(VJ,{})})})]}),(0,K.jsx)(ke,{path:`*`,element:(0,K.jsx)(xe,{to:`/`,replace:!0})})]})}function qJ({children:e}){return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)($D,{}),children:e})}function JJ({children:e}){return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)($D,{}),children:(0,K.jsx)(aJ,{children:e})})}var YJ=[{id:`nav-dashboard`,label:`Dashboard`,icon:fe,action:`navigate`,target:`/`,keywords:[`home`,`overview`],section:`Navigation`},{id:`nav-apps`,label:`Applications`,icon:le,action:`navigate`,target:`/apps`,keywords:[`processes`,`services`],section:`Navigation`},{id:`nav-stacks`,label:`Stacks`,icon:_,action:`navigate`,target:`/stacks`,keywords:[`environments`,`dev`,`prod`,`test`,`deploy`,`cluster`,`remote`],section:`Navigation`},{id:`nav-logs`,label:`Logs`,icon:_e,action:`navigate`,target:`/logs`,keywords:[`terminal`,`output`,`stream`],section:`Navigation`},{id:`nav-metrics`,label:`Metrics`,icon:b,action:`navigate`,target:`/metrics`,keywords:[`charts`,`cpu`,`memory`,`performance`],section:`Navigation`},{id:`nav-alerts`,label:`Alerts`,icon:ue,action:`navigate`,target:`/alerts`,keywords:[`rules`,`notifications`,`warnings`],section:`Navigation`},{id:`nav-topology`,label:`Topology`,icon:s,action:`navigate`,target:`/topology`,keywords:[`nodes`,`fleet`,`servers`,`infrastructure`],section:`Navigation`},{id:`nav-containers`,label:`Containers`,icon:M,action:`navigate`,target:`/containers`,keywords:[`docker`,`images`],section:`Navigation`},{id:`nav-deployments`,label:`Deployments`,icon:I,action:`navigate`,target:`/deployments`,keywords:[`deploy`,`rollback`,`releases`],section:`Navigation`},{id:`nav-settings`,label:`Settings`,icon:re,action:`navigate`,target:`/settings`,keywords:[`profile`,`password`,`sessions`],section:`Navigation`},{id:`nav-pipelines`,label:`Pipelines`,action:`navigate`,target:`/pipelines`,keywords:[`ci`,`cd`,`jobs`,`workflow`],section:`Navigation`},{id:`nav-traces`,label:`Traces`,action:`navigate`,target:`/traces`,keywords:[`spans`,`distributed`,`tracing`],section:`Navigation`},{id:`act-logs-error`,label:`View error logs`,icon:_e,action:`navigate`,target:`/logs?level=error`,keywords:[`errors`,`failures`],section:`Quick Actions`},{id:`act-logs-live`,label:`Live log stream`,icon:_e,action:`navigate`,target:`/logs?live=true`,keywords:[`tail`,`stream`,`follow`],section:`Quick Actions`}];function XJ(){let[e,t]=(0,G.useState)(!1),[n,r]=(0,G.useState)(``),[i,a]=(0,G.useState)(0),o=(0,G.useRef)(null),s=je();(0,G.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),t(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]),(0,G.useEffect)(()=>{e&&(r(``),a(0),setTimeout(()=>o.current?.focus(),50))},[e]);let c=(0,G.useMemo)(()=>{if(!n.trim())return YJ;let e=n.toLowerCase();return YJ.filter(t=>t.label.toLowerCase().includes(e)||t.keywords.some(t=>t.includes(e))||(t.description?.toLowerCase().includes(e)??!1))},[n]);(0,G.useEffect)(()=>{a(0)},[c.length]);let l=(0,G.useCallback)(e=>{t(!1),e.action===`navigate`&&s(e.target)},[s]),u=(0,G.useCallback)(e=>{e.key===`ArrowDown`?(e.preventDefault(),a(e=>Math.min(e+1,c.length-1))):e.key===`ArrowUp`?(e.preventDefault(),a(e=>Math.max(e-1,0))):e.key===`Enter`&&c[i]?l(c[i]):e.key===`Escape`&&t(!1)},[c,i,l]),d=(0,G.useMemo)(()=>{let e=new Map;for(let t of c){let n=e.get(t.section)??[];n.push(t),e.set(t.section,n)}return e},[c]),f=0;return(0,K.jsxs)(wf,{open:e,onClose:()=>t(!1),maxWidth:`sm`,fullWidth:!0,PaperProps:{sx:{bgcolor:W(`#111118`,.95),backdropFilter:`blur(20px)`,border:`1px solid`,borderColor:`rgba(255,255,255,0.08)`,borderRadius:2,mt:`15vh`,alignSelf:`flex-start`,maxHeight:`60vh`,overflow:`hidden`}},slotProps:{backdrop:{sx:{bgcolor:`rgba(0,0,0,0.5)`,backdropFilter:`blur(4px)`}}},children:[(0,K.jsxs)(B,{sx:{display:`flex`,alignItems:`center`,gap:1.5,px:2,py:1.5,borderBottom:`1px solid rgba(255,255,255,0.06)`},children:[(0,K.jsx)(ae,{sx:{fontSize:20,color:`text.secondary`}}),(0,K.jsx)(P,{inputRef:o,placeholder:`Search commands, pages, apps...`,value:n,onChange:e=>r(e.target.value),onKeyDown:u,fullWidth:!0,sx:{fontSize:`0.95rem`,color:`text.primary`,"& input::placeholder":{color:`text.secondary`,opacity:1}}}),(0,K.jsx)(nt,{variant:`caption`,sx:{px:.75,py:.25,borderRadius:.5,border:`1px solid rgba(255,255,255,0.1)`,color:`text.secondary`,fontSize:`0.65rem`,whiteSpace:`nowrap`},children:`ESC`})]}),(0,K.jsxs)(B,{sx:{overflow:`auto`,maxHeight:`calc(60vh - 56px)`,py:.5},children:[c.length===0&&(0,K.jsxs)(nt,{color:`text.secondary`,sx:{px:2,py:3,textAlign:`center`,fontSize:`0.85rem`},children:[`No results for "`,n,`"`]}),Array.from(d.entries()).map(([e,t])=>(0,K.jsxs)(B,{children:[(0,K.jsx)(nt,{variant:`caption`,sx:{display:`block`,px:2,py:.75,color:`text.secondary`,fontSize:`0.65rem`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:e}),t.map(e=>{let t=f++===i,n=e.icon;return(0,K.jsxs)(B,{onClick:()=>l(e),sx:{display:`flex`,alignItems:`center`,gap:1.5,px:2,py:1,cursor:`pointer`,bgcolor:t?`rgba(255,255,255,0.06)`:`transparent`,"&:hover":{bgcolor:`rgba(255,255,255,0.04)`},transition:`background-color 100ms`},children:[n&&(0,K.jsx)(n,{sx:{fontSize:18,color:t?`primary.main`:`text.secondary`}}),(0,K.jsx)(nt,{variant:`body2`,sx:{flex:1,fontWeight:t?600:400,color:t?`text.primary`:`text.secondary`},children:e.label}),e.description&&(0,K.jsx)(nt,{variant:`caption`,color:`text.secondary`,sx:{fontSize:`0.7rem`},children:e.description})]},e.id)})]},e))]})]})}function ZJ(){let{pathname:e}=we(),t=$q(e=>e.saveCurrentRoute);return(0,G.useEffect)(()=>{e.startsWith(`/auth`)||t(e)},[e,t]),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(TO,{pathname:e}),(0,K.jsx)(EO,{pathname:e}),(0,K.jsx)(XJ,{}),(0,K.jsx)(NO,{children:(0,K.jsx)(KJ,{})})]})}function QJ(){return(0,K.jsx)(C_,{defaultSettings:{mode:`dark`,preset:`midnight`,direction:`ltr`},children:(0,K.jsx)(AD,{children:(0,K.jsx)(wq,{client:Et,autoConnect:!0,children:(0,K.jsx)(uO,{children:(0,K.jsx)(Oe,{children:(0,K.jsx)(ZJ,{})})})})})})}var $J=document.getElementById(`root`);if(!$J)throw Error(`Root element not found`);(0,rn.createRoot)($J).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(QJ,{})}));export{nf as A,Qo as B,Sp as C,wf as D,Rf as E,Lc as F,Rc as I,Fc as L,Jd as M,Md as N,vf as O,rl as P,wc as R,Op as S,$f as T,Ni as V,Nm as _,$q as a,Zp as b,JO as c,gO as d,cO as f,Mh as g,BD as h,rJ as i,Qd as j,df as k,KO as l,HD as m,lJ as n,Lq as o,WD as p,nJ as r,qO as s,vJ as t,_O as u,Dm as v,_p as w,zp as x,xm as y,is as z};
|