@undefineds.co/xpod 0.1.7 → 0.2.0
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/README.md +164 -3
- package/config/cli.json +9 -71
- package/config/cloud.json +34 -7
- package/config/local.json +6 -2
- package/config/resolver.json +11 -49
- package/config/runtime-open.json +22 -0
- package/config/xpod.base.json +32 -0
- package/config/xpod.cluster.json +2 -44
- package/config/xpod.json +5 -2
- package/dist/agents/AgentExecutorFactory.js +1 -1
- package/dist/agents/AgentExecutorFactory.js.map +1 -1
- package/dist/agents/AgentManager.js +1 -1
- package/dist/agents/AgentManager.js.map +1 -1
- package/dist/agents/config/agent-meta-schema.d.ts +7 -7
- package/dist/agents/config/agent-meta-schema.js +1 -1
- package/dist/agents/config/agent-meta-schema.js.map +1 -1
- package/dist/agents/config/resolve.js +1 -1
- package/dist/agents/config/resolve.js.map +1 -1
- package/dist/agents/schema/agent-config.d.ts +18 -18
- package/dist/agents/schema/agent-config.js +1 -1
- package/dist/agents/schema/agent-config.js.map +1 -1
- package/dist/agents/schema/tables.d.ts +8 -8
- package/dist/agents/schema/tables.js +1 -1
- package/dist/agents/schema/tables.js.map +1 -1
- package/dist/ai/schema/config.d.ts +7 -7
- package/dist/ai/schema/config.js +1 -1
- package/dist/ai/schema/config.js.map +1 -1
- package/dist/ai/schema/model.d.ts +13 -13
- package/dist/ai/schema/model.js +1 -1
- package/dist/ai/schema/model.js.map +1 -1
- package/dist/ai/schema/provider.d.ts +7 -7
- package/dist/ai/schema/provider.js +1 -1
- package/dist/ai/schema/provider.js.map +1 -1
- package/dist/ai/schema/vector-store.d.ts +17 -17
- package/dist/ai/schema/vector-store.js +1 -1
- package/dist/ai/schema/vector-store.js.map +1 -1
- package/dist/ai/service/CredentialReaderImpl.js +1 -1
- package/dist/ai/service/CredentialReaderImpl.js.map +1 -1
- package/dist/ai/service/DefaultAiConfigService.js.map +1 -1
- package/dist/api/ApiServer.d.ts +3 -1
- package/dist/api/ApiServer.js +14 -1
- package/dist/api/ApiServer.js.map +1 -1
- package/dist/api/auth/AuthContext.d.ts +12 -1
- package/dist/api/auth/AuthContext.js +18 -1
- package/dist/api/auth/AuthContext.js.map +1 -1
- package/dist/api/auth/ClientCredentialsAuthenticator.d.ts +0 -1
- package/dist/api/auth/ClientCredentialsAuthenticator.js.map +1 -1
- package/dist/api/auth/ServiceTokenAuthenticator.d.ts +18 -0
- package/dist/api/auth/ServiceTokenAuthenticator.js +50 -0
- package/dist/api/auth/ServiceTokenAuthenticator.js.map +1 -0
- package/dist/api/auth/index.d.ts +1 -0
- package/dist/api/auth/index.js +1 -0
- package/dist/api/auth/index.js.map +1 -1
- package/dist/api/chatkit/ai-provider.d.ts +0 -10
- package/dist/api/chatkit/ai-provider.js +11 -120
- package/dist/api/chatkit/ai-provider.js.map +1 -1
- package/dist/api/chatkit/default-agent.js +11 -8
- package/dist/api/chatkit/default-agent.js.map +1 -1
- package/dist/api/chatkit/pod-store.d.ts +6 -0
- package/dist/api/chatkit/pod-store.js +103 -36
- package/dist/api/chatkit/pod-store.js.map +1 -1
- package/dist/api/chatkit/schema.d.ts +32 -26
- package/dist/api/chatkit/schema.js +16 -8
- package/dist/api/chatkit/schema.js.map +1 -1
- package/dist/api/container/business-token.d.ts +9 -0
- package/dist/api/container/business-token.js +32 -0
- package/dist/api/container/business-token.js.map +1 -0
- package/dist/api/container/cloud.js +36 -12
- package/dist/api/container/cloud.js.map +1 -1
- package/dist/api/container/common.js +13 -5
- package/dist/api/container/common.js.map +1 -1
- package/dist/api/container/index.js +94 -14
- package/dist/api/container/index.js.map +1 -1
- package/dist/api/container/local.js +2 -1
- package/dist/api/container/local.js.map +1 -1
- package/dist/api/container/routes.js +81 -9
- package/dist/api/container/routes.js.map +1 -1
- package/dist/api/container/types.d.ts +8 -6
- package/dist/api/container/types.js.map +1 -1
- package/dist/api/handlers/AdminHandler.js +9 -9
- package/dist/api/handlers/AdminHandler.js.map +1 -1
- package/dist/api/handlers/ApiKeyHandler.js +0 -6
- package/dist/api/handlers/ApiKeyHandler.js.map +1 -1
- package/dist/api/handlers/EdgeNodeSignalHandler.d.ts +17 -0
- package/dist/api/handlers/EdgeNodeSignalHandler.js +171 -0
- package/dist/api/handlers/EdgeNodeSignalHandler.js.map +1 -0
- package/dist/api/handlers/PodManagementHandler.d.ts +5 -4
- package/dist/api/handlers/PodManagementHandler.js +11 -10
- package/dist/api/handlers/PodManagementHandler.js.map +1 -1
- package/dist/api/handlers/ProvisionHandler.d.ts +42 -0
- package/dist/api/handlers/ProvisionHandler.js +161 -0
- package/dist/api/handlers/ProvisionHandler.js.map +1 -0
- package/dist/api/handlers/QuotaHandler.d.ts +7 -7
- package/dist/api/handlers/QuotaHandler.js +143 -73
- package/dist/api/handlers/QuotaHandler.js.map +1 -1
- package/dist/api/handlers/SubdomainClientHandler.js +2 -2
- package/dist/api/handlers/SubdomainClientHandler.js.map +1 -1
- package/dist/api/handlers/SubdomainHandler.js +13 -8
- package/dist/api/handlers/SubdomainHandler.js.map +1 -1
- package/dist/api/handlers/UsageHandler.d.ts +14 -0
- package/dist/api/handlers/UsageHandler.js +123 -0
- package/dist/api/handlers/UsageHandler.js.map +1 -0
- package/dist/api/handlers/index.d.ts +3 -1
- package/dist/api/handlers/index.js +3 -1
- package/dist/api/handlers/index.js.map +1 -1
- package/dist/api/main.js +18 -0
- package/dist/api/main.js.map +1 -1
- package/dist/api/middleware/OpenAuthMiddleware.d.ts +12 -0
- package/dist/api/middleware/OpenAuthMiddleware.js +27 -0
- package/dist/api/middleware/OpenAuthMiddleware.js.map +1 -0
- package/dist/api/runtime.d.ts +15 -0
- package/dist/api/runtime.js +125 -0
- package/dist/api/runtime.js.map +1 -0
- package/dist/api/service/VectorStoreService.js +1 -1
- package/dist/api/service/VectorStoreService.js.map +1 -1
- package/dist/api/service/VercelChatService.d.ts +16 -7
- package/dist/api/service/VercelChatService.js +98 -178
- package/dist/api/service/VercelChatService.js.map +1 -1
- package/dist/api/store/DrizzleClientCredentialsStore.d.ts +6 -11
- package/dist/api/store/DrizzleClientCredentialsStore.js +9 -39
- package/dist/api/store/DrizzleClientCredentialsStore.js.map +1 -1
- package/dist/authorization/AuthModeSelector.d.ts +10 -0
- package/dist/authorization/AuthModeSelector.js +27 -0
- package/dist/authorization/AuthModeSelector.js.map +1 -0
- package/dist/authorization/AuthModeSelector.jsonld +81 -0
- package/dist/cli/commands/account.d.ts +6 -0
- package/dist/cli/commands/account.js +119 -0
- package/dist/cli/commands/account.js.map +1 -0
- package/dist/cli/commands/auth.js +20 -29
- package/dist/cli/commands/auth.js.map +1 -1
- package/dist/cli/commands/backup.d.ts +15 -0
- package/dist/cli/commands/backup.js +286 -0
- package/dist/cli/commands/backup.js.map +1 -0
- package/dist/cli/commands/config.d.ts +34 -3
- package/dist/cli/commands/config.js +195 -258
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +6 -0
- package/dist/cli/commands/doctor.js +94 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/pod.d.ts +6 -0
- package/dist/cli/commands/pod.js +124 -0
- package/dist/cli/commands/pod.js.map +1 -0
- package/dist/cli/commands/start.js +28 -5
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/index.js +9 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/lib/credentials-store.d.ts +17 -0
- package/dist/cli/lib/credentials-store.js +73 -0
- package/dist/cli/lib/credentials-store.js.map +1 -0
- package/dist/cli/lib/css-account.d.ts +17 -0
- package/dist/cli/lib/css-account.js +56 -0
- package/dist/cli/lib/css-account.js.map +1 -1
- package/dist/cli/lib/pod-thread-store.d.ts +57 -0
- package/dist/cli/lib/pod-thread-store.js +310 -0
- package/dist/cli/lib/pod-thread-store.js.map +1 -0
- package/dist/cli/lib/solid-auth.d.ts +20 -0
- package/dist/cli/lib/solid-auth.js +70 -0
- package/dist/cli/lib/solid-auth.js.map +1 -0
- package/dist/components/components.jsonld +5 -8
- package/dist/components/context.jsonld +114 -244
- package/dist/credential/schema/tables.d.ts +14 -14
- package/dist/credential/schema/tables.js +1 -1
- package/dist/credential/schema/tables.js.map +1 -1
- package/dist/edge/EdgeNodeAgent.js +2 -2
- package/dist/edge/EdgeNodeAgent.js.map +1 -1
- package/dist/edge/EdgeNodeDnsCoordinator.d.ts +1 -7
- package/dist/edge/EdgeNodeDnsCoordinator.js +31 -41
- package/dist/edge/EdgeNodeDnsCoordinator.js.map +1 -1
- package/dist/edge/EdgeNodeDnsCoordinator.jsonld +1 -27
- package/dist/edge/EdgeNodeModeDetector.d.ts +1 -1
- package/dist/edge/EdgeNodeModeDetector.js +9 -11
- package/dist/edge/EdgeNodeModeDetector.js.map +1 -1
- package/dist/http/ClusterIngressRouter.js +3 -3
- package/dist/http/ClusterIngressRouter.js.map +1 -1
- package/dist/http/ClusterWebSocketConfigurator.js +2 -2
- package/dist/http/ClusterWebSocketConfigurator.js.map +1 -1
- package/dist/http/PodRoutingHttpHandler.js +2 -2
- package/dist/http/PodRoutingHttpHandler.js.map +1 -1
- package/dist/http/cluster/PodMigrationHttpHandler.d.ts +1 -1
- package/dist/http/cluster/PodMigrationHttpHandler.js +1 -1
- package/dist/http/cluster/PodMigrationHttpHandler.js.map +1 -1
- package/dist/identity/drizzle/EdgeNodeRepository.d.ts +37 -4
- package/dist/identity/drizzle/EdgeNodeRepository.js +120 -128
- package/dist/identity/drizzle/EdgeNodeRepository.js.map +1 -1
- package/dist/identity/drizzle/ServiceTokenRepository.d.ts +52 -0
- package/dist/identity/drizzle/ServiceTokenRepository.js +142 -0
- package/dist/identity/drizzle/ServiceTokenRepository.js.map +1 -0
- package/dist/identity/drizzle/db.d.ts +9 -0
- package/dist/identity/drizzle/db.js +235 -3
- package/dist/identity/drizzle/db.js.map +1 -1
- package/dist/identity/drizzle/schema.pg.d.ts +5 -0
- package/dist/identity/drizzle/schema.pg.js +49 -20
- package/dist/identity/drizzle/schema.pg.js.map +1 -1
- package/dist/identity/drizzle/schema.sqlite.d.ts +332 -57
- package/dist/identity/drizzle/schema.sqlite.js +48 -18
- package/dist/identity/drizzle/schema.sqlite.js.map +1 -1
- package/dist/identity/oidc/AutoDetectIdentityProviderHandler.js +6 -4
- package/dist/identity/oidc/AutoDetectIdentityProviderHandler.js.map +1 -1
- package/dist/index.d.ts +6 -9
- package/dist/index.js +12 -14
- package/dist/index.js.map +1 -1
- package/dist/main.js +25 -8
- package/dist/main.js.map +1 -1
- package/dist/provision/ProvisionCodeCodec.d.ts +39 -0
- package/dist/provision/ProvisionCodeCodec.js +65 -0
- package/dist/provision/ProvisionCodeCodec.js.map +1 -0
- package/dist/provision/ProvisionCodeCodec.jsonld +47 -0
- package/dist/provision/ProvisionPodCreator.d.ts +20 -0
- package/dist/provision/ProvisionPodCreator.js +84 -0
- package/dist/provision/ProvisionPodCreator.js.map +1 -0
- package/dist/provision/ProvisionPodCreator.jsonld +118 -0
- package/dist/quota/DrizzleQuotaService.d.ts +17 -3
- package/dist/quota/DrizzleQuotaService.js +108 -8
- package/dist/quota/DrizzleQuotaService.js.map +1 -1
- package/dist/quota/DrizzleQuotaService.jsonld +33 -22
- package/dist/quota/NoopQuotaService.d.ts +7 -1
- package/dist/quota/NoopQuotaService.js +12 -0
- package/dist/quota/NoopQuotaService.js.map +1 -1
- package/dist/quota/NoopQuotaService.jsonld +24 -0
- package/dist/quota/QuotaService.d.ts +17 -0
- package/dist/quota/QuotaService.js +5 -0
- package/dist/quota/QuotaService.js.map +1 -1
- package/dist/quota/QuotaService.jsonld +50 -0
- package/dist/runtime/Proxy.d.ts +22 -4
- package/dist/runtime/Proxy.js +154 -35
- package/dist/runtime/Proxy.js.map +1 -1
- package/dist/runtime/XpodRuntime.d.ts +49 -0
- package/dist/runtime/XpodRuntime.js +374 -0
- package/dist/runtime/XpodRuntime.js.map +1 -0
- package/dist/runtime/env-utils.d.ts +2 -0
- package/dist/runtime/env-utils.js +55 -0
- package/dist/runtime/env-utils.js.map +1 -0
- package/dist/runtime/index.d.ts +4 -0
- package/dist/runtime/index.js +8 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/socket-fetch.d.ts +1 -0
- package/dist/runtime/socket-fetch.js +72 -0
- package/dist/runtime/socket-fetch.js.map +1 -0
- package/dist/runtime/socket-http.d.ts +1 -0
- package/dist/runtime/socket-http.js +142 -0
- package/dist/runtime/socket-http.js.map +1 -0
- package/dist/runtime/socket-utils.d.ts +2 -0
- package/dist/runtime/socket-utils.js +34 -0
- package/dist/runtime/socket-utils.js.map +1 -0
- package/dist/service/{EdgeNodeHeartbeatService.d.ts → EdgeNodeSignalClient.d.ts} +3 -3
- package/dist/service/{EdgeNodeHeartbeatService.js → EdgeNodeSignalClient.js} +4 -4
- package/dist/service/EdgeNodeSignalClient.js.map +1 -0
- package/dist/service/PodMigrationService.d.ts +1 -2
- package/dist/service/PodMigrationService.js +1 -2
- package/dist/service/PodMigrationService.js.map +1 -1
- package/dist/storage/SparqlUpdateResourceStore.js +1 -1
- package/dist/storage/SparqlUpdateResourceStore.js.map +1 -1
- package/dist/storage/accessors/MinioDataAccessor.d.ts +6 -0
- package/dist/storage/accessors/MinioDataAccessor.js +10 -0
- package/dist/storage/accessors/MinioDataAccessor.js.map +1 -1
- package/dist/storage/accessors/MinioDataAccessor.jsonld +4 -0
- package/dist/storage/accessors/MixDataAccessor.d.ts +2 -1
- package/dist/storage/accessors/MixDataAccessor.js +12 -1
- package/dist/storage/accessors/MixDataAccessor.js.map +1 -1
- package/dist/storage/accessors/MixDataAccessor.jsonld +19 -0
- package/dist/storage/locking/UrlAwareRedisLocker.d.ts +18 -0
- package/dist/storage/locking/UrlAwareRedisLocker.js +60 -0
- package/dist/storage/locking/UrlAwareRedisLocker.js.map +1 -0
- package/dist/storage/locking/UrlAwareRedisLocker.jsonld +123 -0
- package/dist/storage/quota/UsageRepository.d.ts +41 -8
- package/dist/storage/quota/UsageRepository.js +252 -50
- package/dist/storage/quota/UsageRepository.js.map +1 -1
- package/dist/storage/sparql/ComunicaQuintEngine.d.ts +9 -0
- package/dist/storage/sparql/ComunicaQuintEngine.js +50 -9
- package/dist/storage/sparql/ComunicaQuintEngine.js.map +1 -1
- package/dist/storage/sparql/QueryOptimizer.js +13 -1
- package/dist/storage/sparql/QueryOptimizer.js.map +1 -1
- package/dist/storage/sparql/QuintQuerySource.d.ts +14 -0
- package/dist/storage/sparql/QuintQuerySource.js +152 -1
- package/dist/storage/sparql/QuintQuerySource.js.map +1 -1
- package/dist/storage/sparql/SubgraphQueryEngine.d.ts +1 -0
- package/dist/storage/sparql/SubgraphQueryEngine.js +6 -2
- package/dist/storage/sparql/SubgraphQueryEngine.js.map +1 -1
- package/dist/storage/sparql/SubgraphQueryEngine.jsonld +4 -0
- package/dist/subdomain/SubdomainClient.d.ts +3 -3
- package/dist/subdomain/SubdomainClient.js +1 -1
- package/dist/subdomain/SubdomainClient.js.map +1 -1
- package/dist/subdomain/SubdomainService.d.ts +15 -16
- package/dist/subdomain/SubdomainService.js +80 -54
- package/dist/subdomain/SubdomainService.js.map +1 -1
- package/dist/subdomain/SubdomainService.jsonld +22 -26
- package/dist/supervisor/Supervisor.d.ts +7 -2
- package/dist/supervisor/Supervisor.js +33 -1
- package/dist/supervisor/Supervisor.js.map +1 -1
- package/dist/task/DrizzleTaskQueue.d.ts +1 -1
- package/dist/task/DrizzleTaskQueue.js +1 -1
- package/dist/task/DrizzleTaskQueue.js.map +1 -1
- package/dist/task/schema.d.ts +10 -10
- package/dist/task/schema.js +1 -1
- package/dist/task/schema.js.map +1 -1
- package/dist/test-utils/index.d.ts +4 -0
- package/dist/test-utils/index.js +8 -0
- package/dist/test-utils/index.js.map +1 -0
- package/dist/test-utils/no-auth-xpod.d.ts +11 -0
- package/dist/test-utils/no-auth-xpod.js +25 -0
- package/dist/test-utils/no-auth-xpod.js.map +1 -0
- package/dist/test-utils/seed-pod.d.ts +5 -0
- package/dist/test-utils/seed-pod.js +61 -0
- package/dist/test-utils/seed-pod.js.map +1 -0
- package/package.json +38 -10
- package/templates/identity/account/create-pod.html.ejs +110 -0
- package/templates/main.html.ejs +10 -0
- package/dist/api/handlers/DevHandler.d.ts +0 -18
- package/dist/api/handlers/DevHandler.js +0 -276
- package/dist/api/handlers/DevHandler.js.map +0 -1
- package/dist/api/handlers/SignalHandler.d.ts +0 -13
- package/dist/api/handlers/SignalHandler.js +0 -122
- package/dist/api/handlers/SignalHandler.js.map +0 -1
- package/dist/gateway/Proxy.d.ts +0 -24
- package/dist/gateway/Proxy.js +0 -209
- package/dist/gateway/Proxy.js.map +0 -1
- package/dist/gateway/Supervisor.d.ts +0 -2
- package/dist/gateway/Supervisor.js +0 -7
- package/dist/gateway/Supervisor.js.map +0 -1
- package/dist/gateway/port-finder.d.ts +0 -4
- package/dist/gateway/port-finder.js +0 -15
- package/dist/gateway/port-finder.js.map +0 -1
- package/dist/gateway/types.d.ts +0 -1
- package/dist/gateway/types.js +0 -3
- package/dist/gateway/types.js.map +0 -1
- package/dist/http/SignalInterceptHttpHandler.d.ts +0 -24
- package/dist/http/SignalInterceptHttpHandler.js +0 -47
- package/dist/http/SignalInterceptHttpHandler.js.map +0 -1
- package/dist/http/SignalInterceptHttpHandler.jsonld +0 -103
- package/dist/http/admin/EdgeNodeSignalHttpHandler.d.ts +0 -71
- package/dist/http/admin/EdgeNodeSignalHttpHandler.js +0 -674
- package/dist/http/admin/EdgeNodeSignalHttpHandler.js.map +0 -1
- package/dist/http/admin/EdgeNodeSignalHttpHandler.jsonld +0 -406
- package/dist/http/cluster/PodMigrationHttpHandler.jsonld +0 -169
- package/dist/quota/DefaultQuotaService.d.ts +0 -16
- package/dist/quota/DefaultQuotaService.js +0 -37
- package/dist/quota/DefaultQuotaService.js.map +0 -1
- package/dist/quota/DefaultQuotaService.jsonld +0 -85
- package/dist/service/EdgeNodeHeartbeatService.js.map +0 -1
- package/dist/service/PodMigrationService.jsonld +0 -76
- package/dist/storage/MigratableDataAccessor.d.ts +0 -63
- package/dist/storage/MigratableDataAccessor.js +0 -11
- package/dist/storage/MigratableDataAccessor.js.map +0 -1
- package/dist/storage/MigratableDataAccessor.jsonld +0 -60
- package/dist/storage/accessors/TieredMinioDataAccessor.d.ts +0 -150
- package/dist/storage/accessors/TieredMinioDataAccessor.js +0 -582
- package/dist/storage/accessors/TieredMinioDataAccessor.js.map +0 -1
- package/dist/storage/accessors/TieredMinioDataAccessor.jsonld +0 -333
- package/static/app/assets/index.css +0 -1
- package/static/app/assets/main.js +0 -11
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))o(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const y of h.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&o(y)}).observe(document,{childList:!0,subtree:!0});function d(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(m){if(m.ep)return;m.ep=!0;const h=d(m);fetch(m.href,h)}})();function My(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Hs={exports:{}},Bn={};var mh;function Uy(){if(mh)return Bn;mh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function d(o,m,h){var y=null;if(h!==void 0&&(y=""+h),m.key!==void 0&&(y=""+m.key),"key"in m){h={};for(var j in m)j!=="key"&&(h[j]=m[j])}else h=m;return m=h.ref,{$$typeof:i,type:o,key:y,ref:m!==void 0?m:null,props:h}}return Bn.Fragment=r,Bn.jsx=d,Bn.jsxs=d,Bn}var yh;function Ly(){return yh||(yh=1,Hs.exports=Uy()),Hs.exports}var s=Ly(),Bs={exports:{}},ae={};var ph;function Hy(){if(ph)return ae;ph=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),U=Symbol.iterator;function G(b){return b===null||typeof b!="object"?null:(b=U&&b[U]||b["@@iterator"],typeof b=="function"?b:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,Y={};function Q(b,M,q){this.props=b,this.context=M,this.refs=Y,this.updater=q||k}Q.prototype.isReactComponent={},Q.prototype.setState=function(b,M){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,M,"setState")},Q.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function X(){}X.prototype=Q.prototype;function F(b,M,q){this.props=b,this.context=M,this.refs=Y,this.updater=q||k}var ne=F.prototype=new X;ne.constructor=F,H(ne,Q.prototype),ne.isPureReactComponent=!0;var te=Array.isArray;function fe(){}var $={H:null,A:null,T:null,S:null},ye=Object.prototype.hasOwnProperty;function pe(b,M,q){var V=q.ref;return{$$typeof:i,type:b,key:M,ref:V!==void 0?V:null,props:q}}function ce(b,M){return pe(b.type,M,b.props)}function Ee(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function W(b){var M={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(q){return M[q]})}var se=/\/+/g;function De(b,M){return typeof b=="object"&&b!==null&&b.key!=null?W(""+b.key):M.toString(36)}function Ge(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(fe,fe):(b.status="pending",b.then(function(M){b.status==="pending"&&(b.status="fulfilled",b.value=M)},function(M){b.status==="pending"&&(b.status="rejected",b.reason=M)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function T(b,M,q,V,le){var L=typeof b;(L==="undefined"||L==="boolean")&&(b=null);var ee=!1;if(b===null)ee=!0;else switch(L){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(b.$$typeof){case i:case r:ee=!0;break;case D:return ee=b._init,T(ee(b._payload),M,q,V,le)}}if(ee)return le=le(b),ee=V===""?"."+De(b,0):V,te(le)?(q="",ee!=null&&(q=ee.replace(se,"$&/")+"/"),T(le,M,q,"",function(Za){return Za})):le!=null&&(Ee(le)&&(le=ce(le,q+(le.key==null||b&&b.key===le.key?"":(""+le.key).replace(se,"$&/")+"/")+ee)),M.push(le)),1;ee=0;var Se=V===""?".":V+":";if(te(b))for(var _e=0;_e<b.length;_e++)V=b[_e],L=Se+De(V,_e),ee+=T(V,M,q,L,le);else if(_e=G(b),typeof _e=="function")for(b=_e.call(b),_e=0;!(V=b.next()).done;)V=V.value,L=Se+De(V,_e++),ee+=T(V,M,q,L,le);else if(L==="object"){if(typeof b.then=="function")return T(Ge(b),M,q,V,le);throw M=String(b),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ee}function B(b,M,q){if(b==null)return b;var V=[],le=0;return T(b,V,"","",function(L){return M.call(q,L,le++)}),V}function K(b){if(b._status===-1){var M=b._result;M=M(),M.then(function(q){(b._status===0||b._status===-1)&&(b._status=1,b._result=q)},function(q){(b._status===0||b._status===-1)&&(b._status=2,b._result=q)}),b._status===-1&&(b._status=0,b._result=M)}if(b._status===1)return b._result.default;throw b._result}var be=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},je={map:B,forEach:function(b,M,q){B(b,function(){M.apply(this,arguments)},q)},count:function(b){var M=0;return B(b,function(){M++}),M},toArray:function(b){return B(b,function(M){return M})||[]},only:function(b){if(!Ee(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ae.Activity=w,ae.Children=je,ae.Component=Q,ae.Fragment=d,ae.Profiler=m,ae.PureComponent=F,ae.StrictMode=o,ae.Suspense=v,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ae.__COMPILER_RUNTIME={__proto__:null,c:function(b){return $.H.useMemoCache(b)}},ae.cache=function(b){return function(){return b.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(b,M,q){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var V=H({},b.props),le=b.key;if(M!=null)for(L in M.key!==void 0&&(le=""+M.key),M)!ye.call(M,L)||L==="key"||L==="__self"||L==="__source"||L==="ref"&&M.ref===void 0||(V[L]=M[L]);var L=arguments.length-2;if(L===1)V.children=q;else if(1<L){for(var ee=Array(L),Se=0;Se<L;Se++)ee[Se]=arguments[Se+2];V.children=ee}return pe(b.type,le,V)},ae.createContext=function(b){return b={$$typeof:y,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:h,_context:b},b},ae.createElement=function(b,M,q){var V,le={},L=null;if(M!=null)for(V in M.key!==void 0&&(L=""+M.key),M)ye.call(M,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(le[V]=M[V]);var ee=arguments.length-2;if(ee===1)le.children=q;else if(1<ee){for(var Se=Array(ee),_e=0;_e<ee;_e++)Se[_e]=arguments[_e+2];le.children=Se}if(b&&b.defaultProps)for(V in ee=b.defaultProps,ee)le[V]===void 0&&(le[V]=ee[V]);return pe(b,L,le)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(b){return{$$typeof:j,render:b}},ae.isValidElement=Ee,ae.lazy=function(b){return{$$typeof:D,_payload:{_status:-1,_result:b},_init:K}},ae.memo=function(b,M){return{$$typeof:g,type:b,compare:M===void 0?null:M}},ae.startTransition=function(b){var M=$.T,q={};$.T=q;try{var V=b(),le=$.S;le!==null&&le(q,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(fe,be)}catch(L){be(L)}finally{M!==null&&q.types!==null&&(M.types=q.types),$.T=M}},ae.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ae.use=function(b){return $.H.use(b)},ae.useActionState=function(b,M,q){return $.H.useActionState(b,M,q)},ae.useCallback=function(b,M){return $.H.useCallback(b,M)},ae.useContext=function(b){return $.H.useContext(b)},ae.useDebugValue=function(){},ae.useDeferredValue=function(b,M){return $.H.useDeferredValue(b,M)},ae.useEffect=function(b,M){return $.H.useEffect(b,M)},ae.useEffectEvent=function(b){return $.H.useEffectEvent(b)},ae.useId=function(){return $.H.useId()},ae.useImperativeHandle=function(b,M,q){return $.H.useImperativeHandle(b,M,q)},ae.useInsertionEffect=function(b,M){return $.H.useInsertionEffect(b,M)},ae.useLayoutEffect=function(b,M){return $.H.useLayoutEffect(b,M)},ae.useMemo=function(b,M){return $.H.useMemo(b,M)},ae.useOptimistic=function(b,M){return $.H.useOptimistic(b,M)},ae.useReducer=function(b,M,q){return $.H.useReducer(b,M,q)},ae.useRef=function(b){return $.H.useRef(b)},ae.useState=function(b){return $.H.useState(b)},ae.useSyncExternalStore=function(b,M,q){return $.H.useSyncExternalStore(b,M,q)},ae.useTransition=function(){return $.H.useTransition()},ae.version="19.2.3",ae}var gh;function ao(){return gh||(gh=1,Bs.exports=Hy()),Bs.exports}var S=ao();const Fs=My(S);var qs={exports:{}},qn={},Ys={exports:{}},Gs={};var vh;function By(){return vh||(vh=1,(function(i){function r(T,B){var K=T.length;T.push(B);e:for(;0<K;){var be=K-1>>>1,je=T[be];if(0<m(je,B))T[be]=B,T[K]=je,K=be;else break e}}function d(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var B=T[0],K=T.pop();if(K!==B){T[0]=K;e:for(var be=0,je=T.length,b=je>>>1;be<b;){var M=2*(be+1)-1,q=T[M],V=M+1,le=T[V];if(0>m(q,K))V<je&&0>m(le,q)?(T[be]=le,T[V]=K,be=V):(T[be]=q,T[M]=K,be=M);else if(V<je&&0>m(le,K))T[be]=le,T[V]=K,be=V;else break e}}return B}function m(T,B){var K=T.sortIndex-B.sortIndex;return K!==0?K:T.id-B.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var y=Date,j=y.now();i.unstable_now=function(){return y.now()-j}}var v=[],g=[],D=1,w=null,U=3,G=!1,k=!1,H=!1,Y=!1,Q=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var B=d(g);B!==null;){if(B.callback===null)o(g);else if(B.startTime<=T)o(g),B.sortIndex=B.expirationTime,r(v,B);else break;B=d(g)}}function te(T){if(H=!1,ne(T),!k)if(d(v)!==null)k=!0,fe||(fe=!0,W());else{var B=d(g);B!==null&&Ge(te,B.startTime-T)}}var fe=!1,$=-1,ye=5,pe=-1;function ce(){return Y?!0:!(i.unstable_now()-pe<ye)}function Ee(){if(Y=!1,fe){var T=i.unstable_now();pe=T;var B=!0;try{e:{k=!1,H&&(H=!1,X($),$=-1),G=!0;var K=U;try{t:{for(ne(T),w=d(v);w!==null&&!(w.expirationTime>T&&ce());){var be=w.callback;if(typeof be=="function"){w.callback=null,U=w.priorityLevel;var je=be(w.expirationTime<=T);if(T=i.unstable_now(),typeof je=="function"){w.callback=je,ne(T),B=!0;break t}w===d(v)&&o(v),ne(T)}else o(v);w=d(v)}if(w!==null)B=!0;else{var b=d(g);b!==null&&Ge(te,b.startTime-T),B=!1}}break e}finally{w=null,U=K,G=!1}B=void 0}}finally{B?W():fe=!1}}}var W;if(typeof F=="function")W=function(){F(Ee)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,De=se.port2;se.port1.onmessage=Ee,W=function(){De.postMessage(null)}}else W=function(){Q(Ee,0)};function Ge(T,B){$=Q(function(){T(i.unstable_now())},B)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(T){T.callback=null},i.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ye=0<T?Math.floor(1e3/T):5},i.unstable_getCurrentPriorityLevel=function(){return U},i.unstable_next=function(T){switch(U){case 1:case 2:case 3:var B=3;break;default:B=U}var K=U;U=B;try{return T()}finally{U=K}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(T,B){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var K=U;U=T;try{return B()}finally{U=K}},i.unstable_scheduleCallback=function(T,B,K){var be=i.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?be+K:be):K=be,T){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=K+je,T={id:D++,callback:B,priorityLevel:T,startTime:K,expirationTime:je,sortIndex:-1},K>be?(T.sortIndex=K,r(g,T),d(v)===null&&T===d(g)&&(H?(X($),$=-1):H=!0,Ge(te,K-be))):(T.sortIndex=je,r(v,T),k||G||(k=!0,fe||(fe=!0,W()))),T},i.unstable_shouldYield=ce,i.unstable_wrapCallback=function(T){var B=U;return function(){var K=U;U=B;try{return T.apply(this,arguments)}finally{U=K}}}})(Gs)),Gs}var xh;function qy(){return xh||(xh=1,Ys.exports=By()),Ys.exports}var Xs={exports:{}},et={};var bh;function Yy(){if(bh)return et;bh=1;var i=ao();function r(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)g+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var o={d:{f:d,r:function(){throw Error(r(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(v,g,D){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:w==null?null:""+w,children:v,containerInfo:g,implementation:D}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,et.createPortal=function(v,g){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return h(v,g,null,D)},et.flushSync=function(v){var g=y.T,D=o.p;try{if(y.T=null,o.p=2,v)return v()}finally{y.T=g,o.p=D,o.d.f()}},et.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(v,g))},et.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},et.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var D=g.as,w=j(D,g.crossOrigin),U=typeof g.integrity=="string"?g.integrity:void 0,G=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;D==="style"?o.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:w,integrity:U,fetchPriority:G}):D==="script"&&o.d.X(v,{crossOrigin:w,integrity:U,fetchPriority:G,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},et.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var D=j(g.as,g.crossOrigin);o.d.M(v,{crossOrigin:D,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(v)},et.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var D=g.as,w=j(D,g.crossOrigin);o.d.L(v,D,{crossOrigin:w,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},et.preloadModule=function(v,g){if(typeof v=="string")if(g){var D=j(g.as,g.crossOrigin);o.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:D,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(v)},et.requestFormReset=function(v){o.d.r(v)},et.unstable_batchedUpdates=function(v,g){return v(g)},et.useFormState=function(v,g,D){return y.H.useFormState(v,g,D)},et.useFormStatus=function(){return y.H.useHostTransitionStatus()},et.version="19.2.3",et}var Sh;function Gy(){if(Sh)return Xs.exports;Sh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Xs.exports=Yy(),Xs.exports}var jh;function Xy(){if(jh)return qn;jh=1;var i=qy(),r=ao(),d=Gy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(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 j(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 v(e){if(h(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return v(n),e;if(u===a)return v(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,f=n.child;f;){if(f===l){c=!0,l=n,a=u;break}if(f===a){c=!0,a=n,l=u;break}f=f.sibling}if(!c){for(f=u.child;f;){if(f===l){c=!0,l=u,a=n;break}if(f===a){c=!0,a=u,l=n;break}f=f.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function D(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=D(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,U=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=Ee&&e[Ee]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case Q:return"Profiler";case Y:return"StrictMode";case te:return"Suspense";case fe:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case F:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Ge=Array.isArray,T=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},be=[],je=-1;function b(e){return{current:e}}function M(e){0>je||(e.current=be[je],be[je]=null,je--)}function q(e,t){je++,be[je]=e.current,e.current=t}var V=b(null),le=b(null),L=b(null),ee=b(null);function Se(e,t){switch(q(L,t),q(le,e),q(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Bd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(V),q(V,e)}function _e(){M(V),M(le),M(L)}function Za(e){e.memoizedState!==null&&q(ee,e);var t=V.current,l=Bd(t,e.type);t!==l&&(q(le,e),q(V,l))}function kn(e){le.current===e&&(M(V),M(le)),ee.current===e&&(M(ee),Mn._currentValue=K)}var xi,fo;function Ul(e){if(xi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);xi=t&&t[1]||"",fo=-1<l.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+xi+e+fo}var bi=!1;function Si(e,t){if(!e||bi)return"";bi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(A){var C=A}Reflect.construct(e,[],O)}else{try{O.call()}catch(A){C=A}e.call(O.prototype)}}else{try{throw Error()}catch(A){C=A}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(A){if(A&&C&&typeof A.stack=="string")return[A.stack,C.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],f=u[1];if(c&&f){var p=c.split(`
|
|
4
|
-
`),E=f.split(`
|
|
5
|
-
`);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===E.length)for(a=p.length-1,n=E.length-1;1<=a&&0<=n&&p[a]!==E[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==E[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==E[n]){var _=`
|
|
6
|
-
`+p[a].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=a&&0<=n);break}}}finally{bi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ul(l):""}function fm(e,t){switch(e.tag){case 26:case 27:case 5:return Ul(e.type);case 16:return Ul("Lazy");case 13:return e.child!==t&&t!==null?Ul("Suspense Fallback"):Ul("Suspense");case 19:return Ul("SuspenseList");case 0:case 15:return Si(e.type,!1);case 11:return Si(e.type.render,!1);case 1:return Si(e.type,!0);case 31:return Ul("Activity");default:return""}}function ho(e){try{var t="",l=null;do t+=fm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var ji=Object.prototype.hasOwnProperty,zi=i.unstable_scheduleCallback,Ni=i.unstable_cancelCallback,dm=i.unstable_shouldYield,hm=i.unstable_requestPaint,ot=i.unstable_now,mm=i.unstable_getCurrentPriorityLevel,mo=i.unstable_ImmediatePriority,yo=i.unstable_UserBlockingPriority,Jn=i.unstable_NormalPriority,ym=i.unstable_LowPriority,po=i.unstable_IdlePriority,pm=i.log,gm=i.unstable_setDisableYieldValue,Va=null,rt=null;function rl(e){if(typeof pm=="function"&&gm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Va,e)}catch{}}var ft=Math.clz32?Math.clz32:bm,vm=Math.log,xm=Math.LN2;function bm(e){return e>>>=0,e===0?32:31-(vm(e)/xm|0)|0}var Fn=256,$n=262144,Wn=4194304;function Ll(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 In(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Ll(a):(c&=f,c!==0?n=Ll(c):l||(l=f&~e,l!==0&&(n=Ll(l))))):(f=a&~u,f!==0?n=Ll(f):c!==0?n=Ll(c):l||(l=a&~e,l!==0&&(n=Ll(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Sm(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 go(){var e=Wn;return Wn<<=1,(Wn&62914560)===0&&(Wn=4194304),e}function Ei(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jm(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,p=e.expirationTimes,E=e.hiddenUpdates;for(l=c&~l;0<l;){var _=31-ft(l),O=1<<_;f[_]=0,p[_]=-1;var C=E[_];if(C!==null)for(E[_]=null,_=0;_<C.length;_++){var A=C[_];A!==null&&(A.lane&=-536870913)}l&=~O}a!==0&&vo(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function vo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ft(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function xo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ft(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function bo(e,t){var l=t&-t;return l=(l&42)!==0?1:Ci(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ci(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 wi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function So(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:ch(e.type))}function jo(e,t){var l=B.p;try{return B.p=e,t()}finally{B.p=l}}var fl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+fl,lt="__reactProps$"+fl,ta="__reactContainer$"+fl,Ai="__reactEvents$"+fl,zm="__reactListeners$"+fl,Nm="__reactHandles$"+fl,zo="__reactResources$"+fl,Ja="__reactMarker$"+fl;function Ti(e){delete e[Fe],delete e[lt],delete e[Ai],delete e[zm],delete e[Nm]}function la(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ta]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Vd(e);e!==null;){if(l=e[Fe])return l;e=Vd(e)}return t}e=l,l=e.parentNode}return null}function aa(e){if(e=e[Fe]||e[ta]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Fa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function na(e){var t=e[zo];return t||(t=e[zo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ke(e){e[Ja]=!0}var No=new Set,Eo={};function Hl(e,t){ua(e,t),ua(e+"Capture",t)}function ua(e,t){for(Eo[e]=t,e=0;e<t.length;e++)No.add(t[e])}var Em=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]*$"),Co={},wo={};function Cm(e){return ji.call(wo,e)?!0:ji.call(Co,e)?!1:Em.test(e)?wo[e]=!0:(Co[e]=!0,!1)}function Pn(e,t,l){if(Cm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function eu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Xt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ao(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Di(e){if(!e._valueTracker){var t=Ao(e)?"checked":"value";e._valueTracker=wm(e,t,""+e[t])}}function To(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ao(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function tu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Am=/[\n"\\]/g;function jt(e){return e.replace(Am,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _i(e,t,l,a,n,u,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ri(e,c,St(t)):l!=null?Ri(e,c,St(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+St(f):e.removeAttribute("name")}function Do(e,t,l,a,n,u,c,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Di(e);return}l=l!=null?""+St(l):"",t=t!=null?""+St(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Di(e)}function Ri(e,t,l){t==="number"&&tu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ia(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+St(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function _o(e,t,l){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+St(l):""}function Ro(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ge(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=St(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Di(e)}function ca(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Tm=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 Oo(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Tm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Mo(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Oo(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Oo(e,u,t[u])}function Oi(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 Dm=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"]]),_m=/^[\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 lu(e){return _m.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qt(){}var Mi=null;function Ui(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,oa=null;function Uo(e){var t=aa(e);if(t&&(e=t.stateNode)){var l=e[lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(_i(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[lt]||null;if(!n)throw Error(o(90));_i(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&To(a)}break e;case"textarea":_o(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ia(e,!!l.multiple,t,!1)}}}var Li=!1;function Lo(e,t,l){if(Li)return e(t,l);Li=!0;try{var a=e(t);return a}finally{if(Li=!1,(sa!==null||oa!==null)&&(Qu(),sa&&(t=sa,e=oa,oa=sa=null,Uo(t),e)))for(t=0;t<e.length;t++)Uo(e[t])}}function $a(e,t){var l=e.stateNode;if(l===null)return null;var a=l[lt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hi=!1;if(Zt)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{Hi=!1}var dl=null,Bi=null,au=null;function Ho(){if(au)return au;var e,t=Bi,l=t.length,a,n="value"in dl?dl.value:dl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return au=n.slice(e,1<a?1-a:void 0)}function nu(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 uu(){return!0}function Bo(){return!1}function at(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?uu:Bo,this.isPropagationStopped=Bo,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=uu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=at(Bl),Ia=w({},Bl,{view:0,detail:0}),Rm=at(Ia),qi,Yi,Pa,cu=w({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xi,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!==Pa&&(Pa&&e.type==="mousemove"?(qi=e.screenX-Pa.screenX,Yi=e.screenY-Pa.screenY):Yi=qi=0,Pa=e),qi)},movementY:function(e){return"movementY"in e?e.movementY:Yi}}),qo=at(cu),Om=w({},cu,{dataTransfer:0}),Mm=at(Om),Um=w({},Ia,{relatedTarget:0}),Gi=at(Um),Lm=w({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),Hm=at(Lm),Bm=w({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qm=at(Bm),Ym=w({},Bl,{data:0}),Yo=at(Ym),Gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xm={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"},Qm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qm[e])?!!t[e]:!1}function Xi(){return Zm}var Vm=w({},Ia,{key:function(e){if(e.key){var t=Gm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xi,charCode:function(e){return e.type==="keypress"?nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Km=at(Vm),km=w({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Go=at(km),Jm=w({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xi}),Fm=at(Jm),$m=w({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wm=at($m),Im=w({},cu,{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}),Pm=at(Im),e0=w({},Bl,{newState:0,oldState:0}),t0=at(e0),l0=[9,13,27,32],Qi=Zt&&"CompositionEvent"in window,en=null;Zt&&"documentMode"in document&&(en=document.documentMode);var a0=Zt&&"TextEvent"in window&&!en,Xo=Zt&&(!Qi||en&&8<en&&11>=en),Qo=" ",Zo=!1;function Vo(e,t){switch(e){case"keyup":return l0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ko(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function n0(e,t){switch(e){case"compositionend":return Ko(t);case"keypress":return t.which!==32?null:(Zo=!0,Qo);case"textInput":return e=t.data,e===Qo&&Zo?null:e;default:return null}}function u0(e,t){if(ra)return e==="compositionend"||!Qi&&Vo(e,t)?(e=Ho(),au=Bi=dl=null,ra=!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 Xo&&t.locale!=="ko"?null:t.data;default:return null}}var i0={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 ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!i0[e.type]:t==="textarea"}function Jo(e,t,l,a){sa?oa?oa.push(a):oa=[a]:sa=a,t=$u(t,"onChange"),0<t.length&&(l=new iu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var tn=null,ln=null;function c0(e){_d(e,0)}function su(e){var t=Fa(e);if(To(t))return e}function Fo(e,t){if(e==="change")return t}var $o=!1;if(Zt){var Zi;if(Zt){var Vi="oninput"in document;if(!Vi){var Wo=document.createElement("div");Wo.setAttribute("oninput","return;"),Vi=typeof Wo.oninput=="function"}Zi=Vi}else Zi=!1;$o=Zi&&(!document.documentMode||9<document.documentMode)}function Io(){tn&&(tn.detachEvent("onpropertychange",Po),ln=tn=null)}function Po(e){if(e.propertyName==="value"&&su(ln)){var t=[];Jo(t,ln,e,Ui(e)),Lo(c0,t)}}function s0(e,t,l){e==="focusin"?(Io(),tn=t,ln=l,tn.attachEvent("onpropertychange",Po)):e==="focusout"&&Io()}function o0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return su(ln)}function r0(e,t){if(e==="click")return su(t)}function f0(e,t){if(e==="input"||e==="change")return su(t)}function d0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:d0;function an(e,t){if(dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ji.call(t,n)||!dt(e[n],t[n]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var l=er(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=er(l)}}function lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=tu(e.document)}return t}function Ki(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 h0=Zt&&"documentMode"in document&&11>=document.documentMode,fa=null,ki=null,nn=null,Ji=!1;function nr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ji||fa==null||fa!==tu(a)||(a=fa,"selectionStart"in a&&Ki(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),nn&&an(nn,a)||(nn=a,a=$u(ki,"onSelect"),0<a.length&&(t=new iu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var da={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},Fi={},ur={};Zt&&(ur=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function Yl(e){if(Fi[e])return Fi[e];if(!da[e])return e;var t=da[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ur)return Fi[e]=t[l];return e}var ir=Yl("animationend"),cr=Yl("animationiteration"),sr=Yl("animationstart"),m0=Yl("transitionrun"),y0=Yl("transitionstart"),p0=Yl("transitioncancel"),or=Yl("transitionend"),rr=new Map,$i="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(" ");$i.push("scrollEnd");function Rt(e,t){rr.set(e,t),Hl(t,[e])}var ou=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!==null&&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)},zt=[],ha=0,Wi=0;function ru(){for(var e=ha,t=Wi=ha=0;t<e;){var l=zt[t];zt[t++]=null;var a=zt[t];zt[t++]=null;var n=zt[t];zt[t++]=null;var u=zt[t];if(zt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&fr(l,n,u)}}function fu(e,t,l,a){zt[ha++]=e,zt[ha++]=t,zt[ha++]=l,zt[ha++]=a,Wi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ii(e,t,l,a){return fu(e,t,l,a),du(e)}function Gl(e,t){return fu(e,null,null,t),du(e)}function fr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ft(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function du(e){if(50<wn)throw wn=0,cs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function g0(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,l,a){return new g0(e,t,l,a)}function Pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vt(e,t){var l=e.alternate;return l===null?(l=ht(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function dr(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Pi(e)&&(c=1);else if(typeof e=="string")c=jy(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=ht(31,l,t,n),e.elementType=pe,e.lanes=u,e;case H:return Xl(l.children,n,u,t);case Y:c=8,n|=24;break;case Q:return e=ht(12,l,t,n|2),e.elementType=Q,e.lanes=u,e;case te:return e=ht(13,l,t,n),e.elementType=te,e.lanes=u,e;case fe:return e=ht(19,l,t,n),e.elementType=fe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:c=10;break e;case X:c=9;break e;case ne:c=11;break e;case $:c=14;break e;case ye:c=16,a=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ht(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Xl(e,t,l,a){return e=ht(7,e,a,t),e.lanes=l,e}function ec(e,t,l){return e=ht(6,e,null,t),e.lanes=l,e}function hr(e){var t=ht(18,null,null,0);return t.stateNode=e,t}function tc(e,t,l){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mr=new WeakMap;function Nt(e,t){if(typeof e=="object"&&e!==null){var l=mr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ho(t)},mr.set(e,t),t)}return{value:e,source:t,stack:ho(t)}}var ya=[],pa=0,mu=null,un=0,Et=[],Ct=0,hl=null,Lt=1,Ht="";function Kt(e,t){ya[pa++]=un,ya[pa++]=mu,mu=e,un=t}function yr(e,t,l){Et[Ct++]=Lt,Et[Ct++]=Ht,Et[Ct++]=hl,hl=e;var a=Lt;e=Ht;var n=32-ft(a)-1;a&=~(1<<n),l+=1;var u=32-ft(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Lt=1<<32-ft(t)+n|l<<n|a,Ht=u+e}else Lt=1<<u|l<<n|a,Ht=e}function lc(e){e.return!==null&&(Kt(e,1),yr(e,1,0))}function ac(e){for(;e===mu;)mu=ya[--pa],ya[pa]=null,un=ya[--pa],ya[pa]=null;for(;e===hl;)hl=Et[--Ct],Et[Ct]=null,Ht=Et[--Ct],Et[Ct]=null,Lt=Et[--Ct],Et[Ct]=null}function pr(e,t){Et[Ct++]=Lt,Et[Ct++]=Ht,Et[Ct++]=hl,Lt=t.id,Ht=t.overflow,hl=e}var $e=null,Re=null,me=!1,ml=null,wt=!1,nc=Error(o(519));function yl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(Nt(t,e)),nc}function gr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[lt]=a,l){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(l=0;l<Tn.length;l++)re(Tn[l],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),Do(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),Ro(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Ud(t.textContent,l)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=Qt),t=!0):t=!1,t||yl(e,!0)}function vr(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:$e=$e.return}}function ga(e){if(e!==$e)return!1;if(!me)return vr(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||js(e.type,e.memoizedProps)),l=!l),l&&Re&&yl(e),vr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Re=Zd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Re=Zd(e)}else t===27?(t=Re,Tl(e.type)?(e=ws,ws=null,Re=e):Re=t):Re=$e?Tt(e.stateNode.nextSibling):null;return!0}function Ql(){Re=$e=null,me=!1}function uc(){var e=ml;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),ml=null),e}function cn(e){ml===null?ml=[e]:ml.push(e)}var ic=b(null),Zl=null,kt=null;function pl(e,t,l){q(ic,t._currentValue),t._currentValue=l}function Jt(e){e._currentValue=ic.current,M(ic)}function cc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function sc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var f=u;u=n;for(var p=0;p<t.length;p++)if(f.context===t[p]){u.lanes|=l,f=u.alternate,f!==null&&(f.lanes|=l),cc(u.return,l,e),a||(c=null);break e}u=f.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),cc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function va(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var f=n.type;dt(n.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(n===ee.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&sc(t,e,l,a),t.flags|=262144}function yu(e){for(e=e.firstContext;e!==null;){if(!dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vl(e){Zl=e,kt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return xr(Zl,e)}function pu(e,t){return Zl===null&&Vl(e),xr(e,t)}function xr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},kt===null){if(e===null)throw Error(o(308));kt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kt=kt.next=t;return l}var v0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},x0=i.unstable_scheduleCallback,b0=i.unstable_NormalPriority,Xe={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new v0,data:new Map,refCount:0}}function sn(e){e.refCount--,e.refCount===0&&x0(b0,function(){e.controller.abort()})}var on=null,rc=0,xa=0,ba=null;function S0(e,t){if(on===null){var l=on=[];rc=0,xa=hs(),ba={status:"pending",value:void 0,then:function(a){l.push(a)}}}return rc++,t.then(br,br),t}function br(){if(--rc===0&&on!==null){ba!==null&&(ba.status="fulfilled");var e=on;on=null,xa=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function j0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Sr=T.S;T.S=function(e,t){ud=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&S0(e,t),Sr!==null&&Sr(e,t)};var Kl=b(null);function fc(){var e=Kl.current;return e!==null?e:Te.pooledCache}function gu(e,t){t===null?q(Kl,Kl.current):q(Kl,t.pool)}function jr(){var e=fc();return e===null?null:{parent:Xe._currentValue,pool:e}}var Sa=Error(o(460)),dc=Error(o(474)),vu=Error(o(542)),xu={then:function(){}};function zr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nr(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Qt,Qt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cr(e),e;default:if(typeof t.status=="string")t.then(Qt,Qt);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cr(e),e}throw Jl=t,Sa}}function kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Jl=l,Sa):l}}var Jl=null;function Er(){if(Jl===null)throw Error(o(459));var e=Jl;return Jl=null,e}function Cr(e){if(e===Sa||e===vu)throw Error(o(483))}var ja=null,rn=0;function bu(e){var t=rn;return rn+=1,ja===null&&(ja=[]),Nr(ja,e,t)}function fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Su(e,t){throw t.$$typeof===U?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wr(e){function t(z,x){if(e){var N=z.deletions;N===null?(z.deletions=[x],z.flags|=16):N.push(x)}}function l(z,x){if(!e)return null;for(;x!==null;)t(z,x),x=x.sibling;return null}function a(z){for(var x=new Map;z!==null;)z.key!==null?x.set(z.key,z):x.set(z.index,z),z=z.sibling;return x}function n(z,x){return z=Vt(z,x),z.index=0,z.sibling=null,z}function u(z,x,N){return z.index=N,e?(N=z.alternate,N!==null?(N=N.index,N<x?(z.flags|=67108866,x):N):(z.flags|=67108866,x)):(z.flags|=1048576,x)}function c(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function f(z,x,N,R){return x===null||x.tag!==6?(x=ec(N,z.mode,R),x.return=z,x):(x=n(x,N),x.return=z,x)}function p(z,x,N,R){var I=N.type;return I===H?_(z,x,N.props.children,R,N.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ye&&kl(I)===x.type)?(x=n(x,N.props),fn(x,N),x.return=z,x):(x=hu(N.type,N.key,N.props,null,z.mode,R),fn(x,N),x.return=z,x)}function E(z,x,N,R){return x===null||x.tag!==4||x.stateNode.containerInfo!==N.containerInfo||x.stateNode.implementation!==N.implementation?(x=tc(N,z.mode,R),x.return=z,x):(x=n(x,N.children||[]),x.return=z,x)}function _(z,x,N,R,I){return x===null||x.tag!==7?(x=Xl(N,z.mode,R,I),x.return=z,x):(x=n(x,N),x.return=z,x)}function O(z,x,N){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=ec(""+x,z.mode,N),x.return=z,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case G:return N=hu(x.type,x.key,x.props,null,z.mode,N),fn(N,x),N.return=z,N;case k:return x=tc(x,z.mode,N),x.return=z,x;case ye:return x=kl(x),O(z,x,N)}if(Ge(x)||W(x))return x=Xl(x,z.mode,N,null),x.return=z,x;if(typeof x.then=="function")return O(z,bu(x),N);if(x.$$typeof===F)return O(z,pu(z,x),N);Su(z,x)}return null}function C(z,x,N,R){var I=x!==null?x.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return I!==null?null:f(z,x,""+N,R);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case G:return N.key===I?p(z,x,N,R):null;case k:return N.key===I?E(z,x,N,R):null;case ye:return N=kl(N),C(z,x,N,R)}if(Ge(N)||W(N))return I!==null?null:_(z,x,N,R,null);if(typeof N.then=="function")return C(z,x,bu(N),R);if(N.$$typeof===F)return C(z,x,pu(z,N),R);Su(z,N)}return null}function A(z,x,N,R,I){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return z=z.get(N)||null,f(x,z,""+R,I);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case G:return z=z.get(R.key===null?N:R.key)||null,p(x,z,R,I);case k:return z=z.get(R.key===null?N:R.key)||null,E(x,z,R,I);case ye:return R=kl(R),A(z,x,N,R,I)}if(Ge(R)||W(R))return z=z.get(N)||null,_(x,z,R,I,null);if(typeof R.then=="function")return A(z,x,N,bu(R),I);if(R.$$typeof===F)return A(z,x,N,pu(x,R),I);Su(x,R)}return null}function Z(z,x,N,R){for(var I=null,ge=null,J=x,ie=x=0,he=null;J!==null&&ie<N.length;ie++){J.index>ie?(he=J,J=null):he=J.sibling;var ve=C(z,J,N[ie],R);if(ve===null){J===null&&(J=he);break}e&&J&&ve.alternate===null&&t(z,J),x=u(ve,x,ie),ge===null?I=ve:ge.sibling=ve,ge=ve,J=he}if(ie===N.length)return l(z,J),me&&Kt(z,ie),I;if(J===null){for(;ie<N.length;ie++)J=O(z,N[ie],R),J!==null&&(x=u(J,x,ie),ge===null?I=J:ge.sibling=J,ge=J);return me&&Kt(z,ie),I}for(J=a(J);ie<N.length;ie++)he=A(J,z,ie,N[ie],R),he!==null&&(e&&he.alternate!==null&&J.delete(he.key===null?ie:he.key),x=u(he,x,ie),ge===null?I=he:ge.sibling=he,ge=he);return e&&J.forEach(function(Ml){return t(z,Ml)}),me&&Kt(z,ie),I}function P(z,x,N,R){if(N==null)throw Error(o(151));for(var I=null,ge=null,J=x,ie=x=0,he=null,ve=N.next();J!==null&&!ve.done;ie++,ve=N.next()){J.index>ie?(he=J,J=null):he=J.sibling;var Ml=C(z,J,ve.value,R);if(Ml===null){J===null&&(J=he);break}e&&J&&Ml.alternate===null&&t(z,J),x=u(Ml,x,ie),ge===null?I=Ml:ge.sibling=Ml,ge=Ml,J=he}if(ve.done)return l(z,J),me&&Kt(z,ie),I;if(J===null){for(;!ve.done;ie++,ve=N.next())ve=O(z,ve.value,R),ve!==null&&(x=u(ve,x,ie),ge===null?I=ve:ge.sibling=ve,ge=ve);return me&&Kt(z,ie),I}for(J=a(J);!ve.done;ie++,ve=N.next())ve=A(J,z,ie,ve.value,R),ve!==null&&(e&&ve.alternate!==null&&J.delete(ve.key===null?ie:ve.key),x=u(ve,x,ie),ge===null?I=ve:ge.sibling=ve,ge=ve);return e&&J.forEach(function(Oy){return t(z,Oy)}),me&&Kt(z,ie),I}function Ae(z,x,N,R){if(typeof N=="object"&&N!==null&&N.type===H&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case G:e:{for(var I=N.key;x!==null;){if(x.key===I){if(I=N.type,I===H){if(x.tag===7){l(z,x.sibling),R=n(x,N.props.children),R.return=z,z=R;break e}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ye&&kl(I)===x.type){l(z,x.sibling),R=n(x,N.props),fn(R,N),R.return=z,z=R;break e}l(z,x);break}else t(z,x);x=x.sibling}N.type===H?(R=Xl(N.props.children,z.mode,R,N.key),R.return=z,z=R):(R=hu(N.type,N.key,N.props,null,z.mode,R),fn(R,N),R.return=z,z=R)}return c(z);case k:e:{for(I=N.key;x!==null;){if(x.key===I)if(x.tag===4&&x.stateNode.containerInfo===N.containerInfo&&x.stateNode.implementation===N.implementation){l(z,x.sibling),R=n(x,N.children||[]),R.return=z,z=R;break e}else{l(z,x);break}else t(z,x);x=x.sibling}R=tc(N,z.mode,R),R.return=z,z=R}return c(z);case ye:return N=kl(N),Ae(z,x,N,R)}if(Ge(N))return Z(z,x,N,R);if(W(N)){if(I=W(N),typeof I!="function")throw Error(o(150));return N=I.call(N),P(z,x,N,R)}if(typeof N.then=="function")return Ae(z,x,bu(N),R);if(N.$$typeof===F)return Ae(z,x,pu(z,N),R);Su(z,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,x!==null&&x.tag===6?(l(z,x.sibling),R=n(x,N),R.return=z,z=R):(l(z,x),R=ec(N,z.mode,R),R.return=z,z=R),c(z)):l(z,x)}return function(z,x,N,R){try{rn=0;var I=Ae(z,x,N,R);return ja=null,I}catch(J){if(J===Sa||J===vu)throw J;var ge=ht(29,J,null,z.mode);return ge.lanes=R,ge.return=z,ge}}}var Fl=wr(!0),Ar=wr(!1),gl=!1;function hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(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 vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=du(e),fr(e,null,l),t}return fu(e,a,t,l),du(e)}function dn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,xo(e,l)}}function yc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var pc=!1;function hn(){if(pc){var e=ba;if(e!==null)throw e}}function mn(e,t,l,a){pc=!1;var n=e.updateQueue;gl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var p=f,E=p.next;p.next=null,c===null?u=E:c.next=E,c=p;var _=e.alternate;_!==null&&(_=_.updateQueue,f=_.lastBaseUpdate,f!==c&&(f===null?_.firstBaseUpdate=E:f.next=E,_.lastBaseUpdate=p))}if(u!==null){var O=n.baseState;c=0,_=E=p=null,f=u;do{var C=f.lane&-536870913,A=C!==f.lane;if(A?(de&C)===C:(a&C)===C){C!==0&&C===xa&&(pc=!0),_!==null&&(_=_.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var Z=e,P=f;C=t;var Ae=l;switch(P.tag){case 1:if(Z=P.payload,typeof Z=="function"){O=Z.call(Ae,O,C);break e}O=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=P.payload,C=typeof Z=="function"?Z.call(Ae,O,C):Z,C==null)break e;O=w({},O,C);break e;case 2:gl=!0}}C=f.callback,C!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[C]:A.push(C))}else A={lane:C,tag:f.tag,payload:f.payload,callback:f.callback,next:null},_===null?(E=_=A,p=O):_=_.next=A,c|=C;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;A=f,f=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);_===null&&(p=O),n.baseState=p,n.firstBaseUpdate=E,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),Nl|=c,e.lanes=c,e.memoizedState=O}}function Tr(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Dr(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tr(l[e],t)}var za=b(null),ju=b(0);function _r(e,t){e=al,q(ju,e),q(za,t),al=e|t.baseLanes}function gc(){q(ju,al),q(za,za.current)}function vc(){al=ju.current,M(za),M(ju)}var mt=b(null),At=null;function bl(e){var t=e.alternate;q(qe,qe.current&1),q(mt,e),At===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(At=e)}function xc(e){q(qe,qe.current),q(mt,e),At===null&&(At=e)}function Rr(e){e.tag===22?(q(qe,qe.current),q(mt,e),At===null&&(At=e)):Sl()}function Sl(){q(qe,qe.current),q(mt,mt.current)}function yt(e){M(mt),At===e&&(At=null),M(qe)}var qe=b(0);function zu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Es(l)||Cs(l)))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)!==0)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 Ft=0,ue=null,Ce=null,Qe=null,Nu=!1,Na=!1,$l=!1,Eu=0,yn=0,Ea=null,z0=0;function Le(){throw Error(o(321))}function bc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!dt(e[l],t[l]))return!1;return!0}function Sc(e,t,l,a,n,u){return Ft=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?pf:Lc,$l=!1,u=l(a,n),$l=!1,Na&&(u=Mr(t,l,a,n)),Or(e),u}function Or(e){T.H=vn;var t=Ce!==null&&Ce.next!==null;if(Ft=0,Qe=Ce=ue=null,Nu=!1,yn=0,Ea=null,t)throw Error(o(300));e===null||Ze||(e=e.dependencies,e!==null&&yu(e)&&(Ze=!0))}function Mr(e,t,l,a){ue=e;var n=0;do{if(Na&&(Ea=null),yn=0,Na=!1,25<=n)throw Error(o(301));if(n+=1,Qe=Ce=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=gf,u=t(l,a)}while(Na);return u}function N0(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ue.flags|=1024),t}function jc(){var e=Eu!==0;return Eu=0,e}function zc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Nc(e){if(Nu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Nu=!1}Ft=0,Qe=Ce=ue=null,Na=!1,yn=Eu=0,Ea=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ye(){if(Ce===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Qe===null?ue.memoizedState:Qe.next;if(t!==null)Qe=t,Ce=e;else{if(e===null)throw ue.alternate===null?Error(o(467)):Error(o(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=yn;return yn+=1,Ea===null&&(Ea=[]),e=Nr(Ea,e,t),t=ue,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?pf:Lc),e}function wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===F)return We(e)}throw Error(o(438,String(e)))}function Ec(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Cu(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ce;return t.index++,l}function $t(e,t){return typeof t=="function"?t(e):t}function Au(e){var t=Ye();return Cc(t,Ce,e)}function Cc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var f=c=null,p=null,E=t,_=!1;do{var O=E.lane&-536870913;if(O!==E.lane?(de&O)===O:(Ft&O)===O){var C=E.revertLane;if(C===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),O===xa&&(_=!0);else if((Ft&C)===C){E=E.next,C===xa&&(_=!0);continue}else O={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},p===null?(f=p=O,c=u):p=p.next=O,ue.lanes|=C,Nl|=C;O=E.action,$l&&l(u,O),u=E.hasEagerState?E.eagerState:l(u,O)}else C={lane:O,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},p===null?(f=p=C,c=u):p=p.next=C,ue.lanes|=O,Nl|=O;E=E.next}while(E!==null&&E!==t);if(p===null?c=u:p.next=f,!dt(u,e.memoizedState)&&(Ze=!0,_&&(l=ba,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wc(e){var t=Ye(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);dt(u,t.memoizedState)||(Ze=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Ur(e,t,l){var a=ue,n=Ye(),u=me;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!dt((Ce||n).memoizedState,l);if(c&&(n.memoizedState=l,Ze=!0),n=n.queue,Dc(Br.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Qe!==null&&Qe.memoizedState.tag&1){if(a.flags|=2048,Ca(9,{destroy:void 0},Hr.bind(null,a,n,l,t),null),Te===null)throw Error(o(349));u||(Ft&127)!==0||Lr(a,t,l)}return l}function Lr(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=Cu(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Hr(e,t,l,a){t.value=l,t.getSnapshot=a,qr(t)&&Yr(e)}function Br(e,t,l){return l(function(){qr(t)&&Yr(e)})}function qr(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!dt(e,l)}catch{return!0}}function Yr(e){var t=Gl(e,2);t!==null&&st(t,e,2)}function Ac(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),$l){rl(!0);try{l()}finally{rl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:e},t}function Gr(e,t,l,a){return e.baseState=l,Cc(e,Ce,typeof a=="function"?a:$t)}function E0(e,t,l,a,n){if(_u(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};T.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Xr(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Xr(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=T.T,c={};T.T=c;try{var f=l(n,a),p=T.S;p!==null&&p(c,f),Qr(e,t,f)}catch(E){Tc(e,t,E)}finally{u!==null&&c.types!==null&&(u.types=c.types),T.T=u}}else try{u=l(n,a),Qr(e,t,u)}catch(E){Tc(e,t,E)}}function Qr(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Zr(e,t,a)},function(a){return Tc(e,t,a)}):Zr(e,t,l)}function Zr(e,t,l){t.status="fulfilled",t.value=l,Vr(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Xr(e,l)))}function Tc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Vr(t),t=t.next;while(t!==a)}e.action=null}function Vr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kr(e,t){return t}function kr(e,t){if(me){var l=Te.formState;if(l!==null){e:{var a=ue;if(me){if(Re){t:{for(var n=Re,u=wt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Tt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Re=Tt(n.nextSibling),a=n.data==="F!";break e}}yl(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:t},l.queue=a,l=hf.bind(null,ue,a),a.dispatch=l,a=Ac(!1),u=Uc.bind(null,ue,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=E0.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Jr(e){var t=Ye();return Fr(t,Ce,e)}function Fr(e,t,l){if(t=Cc(e,t,Kr)[0],e=Au($t)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(c){throw c===Sa?vu:c}else a=t;t=Ye();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Ca(9,{destroy:void 0},C0.bind(null,n,l),null)),[a,u,e]}function C0(e,t){e.action=t}function $r(e){var t=Ye(),l=Ce;if(l!==null)return Fr(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ca(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=Cu(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Wr(){return Ye().memoizedState}function Tu(e,t,l,a){var n=tt();ue.flags|=e,n.memoizedState=Ca(1|t,{destroy:void 0},l,a===void 0?null:a)}function Du(e,t,l,a){var n=Ye();a=a===void 0?null:a;var u=n.memoizedState.inst;Ce!==null&&a!==null&&bc(a,Ce.memoizedState.deps)?n.memoizedState=Ca(t,u,l,a):(ue.flags|=e,n.memoizedState=Ca(1|t,u,l,a))}function Ir(e,t){Tu(8390656,8,e,t)}function Dc(e,t){Du(2048,8,e,t)}function w0(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=Cu(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Pr(e){var t=Ye().memoizedState;return w0({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ef(e,t){return Du(4,2,e,t)}function tf(e,t){return Du(4,4,e,t)}function lf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function af(e,t,l){l=l!=null?l.concat([e]):null,Du(4,4,lf.bind(null,t,e),l)}function _c(){}function nf(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&bc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function uf(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&bc(t,a[1]))return a[0];if(a=e(),$l){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a}function Rc(e,t,l){return l===void 0||(Ft&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=cd(),ue.lanes|=e,Nl|=e,l)}function cf(e,t,l,a){return dt(l,t)?l:za.current!==null?(e=Rc(e,l,a),dt(e,t)||(Ze=!0),e):(Ft&42)===0||(Ft&1073741824)!==0&&(de&261930)===0?(Ze=!0,e.memoizedState=l):(e=cd(),ue.lanes|=e,Nl|=e,t)}function sf(e,t,l,a,n){var u=B.p;B.p=u!==0&&8>u?u:8;var c=T.T,f={};T.T=f,Uc(e,!1,t,l);try{var p=n(),E=T.S;if(E!==null&&E(f,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var _=j0(p,a);gn(e,t,_,vt(e))}else gn(e,t,a,vt(e))}catch(O){gn(e,t,{then:function(){},status:"rejected",reason:O},vt())}finally{B.p=u,c!==null&&f.types!==null&&(c.types=f.types),T.T=c}}function A0(){}function Oc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=of(e).queue;sf(e,n,t,K,l===null?A0:function(){return rf(e),l(a)})}function of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rf(e){var t=of(e);t.next===null&&(t=e.alternate.memoizedState),gn(e,t.next.queue,{},vt())}function Mc(){return We(Mn)}function ff(){return Ye().memoizedState}function df(){return Ye().memoizedState}function T0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=vl(l);var a=xl(t,e,l);a!==null&&(st(a,t,l),dn(a,t,l)),t={cache:oc()},e.payload=t;return}t=t.return}}function D0(e,t,l){var a=vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_u(e)?mf(t,l):(l=Ii(e,t,l,a),l!==null&&(st(l,e,a),yf(l,t,a)))}function hf(e,t,l){var a=vt();gn(e,t,l,a)}function gn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(_u(e))mf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,f=u(c,l);if(n.hasEagerState=!0,n.eagerState=f,dt(f,c))return fu(e,t,n,0),Te===null&&ru(),!1}catch{}if(l=Ii(e,t,n,a),l!==null)return st(l,e,a),yf(l,t,a),!0}return!1}function Uc(e,t,l,a){if(a={lane:2,revertLane:hs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_u(e)){if(t)throw Error(o(479))}else t=Ii(e,l,a,2),t!==null&&st(t,e,2)}function _u(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function mf(e,t){Na=Nu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function yf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,xo(e,l)}}var vn={readContext:We,use:wu,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};vn.useEffectEvent=Le;var pf={readContext:We,use:wu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:Ir,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Tu(4194308,4,lf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Tu(4194308,4,e,t)},useInsertionEffect:function(e,t){Tu(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if($l){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var n=l(t);if($l){rl(!0);try{l(t)}finally{rl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=D0.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=hf.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_c,useDeferredValue:function(e,t){var l=tt();return Rc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=sf.bind(null,ue,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=tt();if(me){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Te===null)throw Error(o(349));(de&127)!==0||Lr(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Ir(Br.bind(null,a,u,e),[e]),a.flags|=2048,Ca(9,{destroy:void 0},Hr.bind(null,a,u,l,t),null),l},useId:function(){var e=tt(),t=Te.identifierPrefix;if(me){var l=Ht,a=Lt;l=(a&~(1<<32-ft(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Eu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=z0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mc,useFormState:kr,useActionState:kr,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Uc.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ec,useCacheRefresh:function(){return tt().memoizedState=T0.bind(null,ue)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Lc={readContext:We,use:wu,useCallback:nf,useContext:We,useEffect:Dc,useImperativeHandle:af,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:uf,useReducer:Au,useRef:Wr,useState:function(){return Au($t)},useDebugValue:_c,useDeferredValue:function(e,t){var l=Ye();return cf(l,Ce.memoizedState,e,t)},useTransition:function(){var e=Au($t)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Ur,useId:ff,useHostTransitionStatus:Mc,useFormState:Jr,useActionState:Jr,useOptimistic:function(e,t){var l=Ye();return Gr(l,Ce,e,t)},useMemoCache:Ec,useCacheRefresh:df};Lc.useEffectEvent=Pr;var gf={readContext:We,use:wu,useCallback:nf,useContext:We,useEffect:Dc,useImperativeHandle:af,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:uf,useReducer:wc,useRef:Wr,useState:function(){return wc($t)},useDebugValue:_c,useDeferredValue:function(e,t){var l=Ye();return Ce===null?Rc(l,e,t):cf(l,Ce.memoizedState,e,t)},useTransition:function(){var e=wc($t)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Ur,useId:ff,useHostTransitionStatus:Mc,useFormState:$r,useActionState:$r,useOptimistic:function(e,t){var l=Ye();return Ce!==null?Gr(l,Ce,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:df};gf.useEffectEvent=Pr;function Hc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:w({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Bc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=vt(),n=vl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(st(t,e,a),dn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=vt(),n=vl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(st(t,e,a),dn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vt(),a=vl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(st(t,e,l),dn(t,e,l))}};function vf(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!an(l,a)||!an(n,u):!0}function xf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Bc.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=w({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function bf(e){ou(e)}function Sf(e){console.error(e)}function jf(e){ou(e)}function Ru(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function qc(e,t,l){return l=vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ru(e,t)},l}function Nf(e){return e=vl(e),e.tag=3,e}function Ef(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){zf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){zf(t,l,a),typeof n!="function"&&(El===null?El=new Set([this]):El.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function _0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&va(t,l,n,!0),l=mt.current,l!==null){switch(l.tag){case 31:case 13:return At===null?Zu():l.alternate===null&&He===0&&(He=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===xu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),rs(e,a,n)),!1;case 22:return l.flags|=65536,a===xu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),rs(e,a,n)),!1}throw Error(o(435,l.tag))}return rs(e,a,n),Zu(),!1}if(me)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==nc&&(e=Error(o(422),{cause:a}),cn(Nt(e,l)))):(a!==nc&&(t=Error(o(423),{cause:a}),cn(Nt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Nt(a,l),n=qc(e.stateNode,a,n),yc(e,n),He!==4&&(He=2)),!1;var u=Error(o(520),{cause:a});if(u=Nt(u,l),Cn===null?Cn=[u]:Cn.push(u),He!==4&&(He=2),t===null)return!0;a=Nt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=qc(l.stateNode,a,e),yc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(El===null||!El.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Nf(n),Ef(n,e,l,a),yc(l,n),!1}l=l.return}while(l!==null);return!1}var Yc=Error(o(461)),Ze=!1;function Ie(e,t,l,a){t.child=e===null?Ar(t,null,l,a):Fl(t,e.child,l,a)}function Cf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return Vl(t),a=Sc(e,t,l,c,u,n),f=jc(),e!==null&&!Ze?(zc(e,t,n),Wt(e,t,n)):(me&&f&&lc(t),t.flags|=1,Ie(e,t,a,n),t.child)}function wf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Pi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Af(e,t,u,a,n)):(e=hu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Jc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:an,l(c,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Vt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Af(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(an(u,a)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=a=u,Jc(e,n))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return Gc(e,t,l,a,n)}function Tf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Df(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gu(t,u!==null?u.cachePool:null),u!==null?_r(t,u):gc(),Rr(t);else return a=t.lanes=536870912,Df(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(gu(t,u.cachePool),_r(t,u),Sl(),t.memoizedState=null):(e!==null&&gu(t,null),gc(),Sl());return Ie(e,t,n,l),t.child}function xn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Df(e,t,l,a,n){var u=fc();return u=u===null?null:{parent:Xe._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&gu(t,null),gc(),Rr(t),e!==null&&va(e,t,a,!0),t.childLanes=n,null}function Ou(e,t){return t=Uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _f(e,t,l){return Fl(t,e.child,null,l),e=Ou(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function R0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(a.mode==="hidden")return e=Ou(t,a),t.lanes=536870912,xn(null,e);if(xc(t),(e=Re)?(e=Qd(e,wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=hr(e),l.return=t,t.child=l,$e=t,Re=null)):e=null,e===null)throw yl(t);return t.lanes=536870912,null}return Ou(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(xc(t),n)if(t.flags&256)t.flags&=-257,t=_f(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ze||va(e,t,l,!1),n=(l&e.childLanes)!==0,Ze||n){if(a=Te,a!==null&&(c=bo(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Gl(e,c),st(a,e,c),Yc;Zu(),t=_f(e,t,l)}else e=u.treeContext,Re=Tt(c.nextSibling),$e=t,me=!0,ml=null,wt=!1,e!==null&&pr(t,e),t=Ou(t,a),t.flags|=4096;return t}return e=Vt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Mu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Gc(e,t,l,a,n){return Vl(t),l=Sc(e,t,l,a,void 0,n),a=jc(),e!==null&&!Ze?(zc(e,t,n),Wt(e,t,n)):(me&&a&&lc(t),t.flags|=1,Ie(e,t,l,n),t.child)}function Rf(e,t,l,a,n,u){return Vl(t),t.updateQueue=null,l=Mr(t,a,l,n),Or(e),a=jc(),e!==null&&!Ze?(zc(e,t,u),Wt(e,t,u)):(me&&a&&lc(t),t.flags|=1,Ie(e,t,l,u),t.child)}function Of(e,t,l,a,n){if(Vl(t),t.stateNode===null){var u=ma,c=l.contextType;typeof c=="object"&&c!==null&&(u=We(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},hc(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?We(c):ma,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Hc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Bc.enqueueReplaceState(u,u.state,null),mn(t,a,u,n),hn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var f=t.memoizedProps,p=Wl(l,f);u.props=p;var E=u.context,_=l.contextType;c=ma,typeof _=="object"&&_!==null&&(c=We(_));var O=l.getDerivedStateFromProps;_=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||E!==c)&&xf(t,u,a,c),gl=!1;var C=t.memoizedState;u.state=C,mn(t,a,u,n),hn(),E=t.memoizedState,f||C!==E||gl?(typeof O=="function"&&(Hc(t,l,O,a),E=t.memoizedState),(p=gl||vf(t,l,p,a,C,E,c))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=E),u.props=a,u.state=E,u.context=c,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,mc(e,t),c=t.memoizedProps,_=Wl(l,c),u.props=_,O=t.pendingProps,C=u.context,E=l.contextType,p=ma,typeof E=="object"&&E!==null&&(p=We(E)),f=l.getDerivedStateFromProps,(E=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==O||C!==p)&&xf(t,u,a,p),gl=!1,C=t.memoizedState,u.state=C,mn(t,a,u,n),hn();var A=t.memoizedState;c!==O||C!==A||gl||e!==null&&e.dependencies!==null&&yu(e.dependencies)?(typeof f=="function"&&(Hc(t,l,f,a),A=t.memoizedState),(_=gl||vf(t,l,_,a,C,A,p)||e!==null&&e.dependencies!==null&&yu(e.dependencies))?(E||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=p,a=_):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Mu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Fl(t,e.child,null,n),t.child=Fl(t,null,l,n)):Ie(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Wt(e,t,n),e}function Mf(e,t,l,a){return Ql(),t.flags|=256,Ie(e,t,l,a),t.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(e){return{baseLanes:e,cachePool:jr()}}function Zc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=gt),e}function Uf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?bl(t):Sl(),(e=Re)?(e=Qd(e,wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=hr(e),l.return=t,t.child=l,$e=t,Re=null)):e=null,e===null)throw yl(t);return Cs(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(Sl(),n=t.mode,f=Uu({mode:"hidden",children:f},n),a=Xl(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=Qc(l),a.childLanes=Zc(e,c,l),t.memoizedState=Xc,xn(null,a)):(bl(t),Vc(t,f))}var p=e.memoizedState;if(p!==null&&(f=p.dehydrated,f!==null)){if(u)t.flags&256?(bl(t),t.flags&=-257,t=Kc(e,t,l)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),f=a.fallback,n=t.mode,a=Uu({mode:"visible",children:a.children},n),f=Xl(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,Fl(t,e.child,null,l),a=t.child,a.memoizedState=Qc(l),a.childLanes=Zc(e,c,l),t.memoizedState=Xc,t=xn(null,a));else if(bl(t),Cs(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var E=c.dgst;c=E,a=Error(o(419)),a.stack="",a.digest=c,cn({value:a,source:null,stack:null}),t=Kc(e,t,l)}else if(Ze||va(e,t,l,!1),c=(l&e.childLanes)!==0,Ze||c){if(c=Te,c!==null&&(a=bo(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Gl(e,a),st(c,e,a),Yc;Es(f)||Zu(),t=Kc(e,t,l)}else Es(f)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Re=Tt(f.nextSibling),$e=t,me=!0,ml=null,wt=!1,e!==null&&pr(t,e),t=Vc(t,a.children),t.flags|=4096);return t}return n?(Sl(),f=a.fallback,n=t.mode,p=e.child,E=p.sibling,a=Vt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,E!==null?f=Vt(E,f):(f=Xl(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,xn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=Qc(l):(n=f.cachePool,n!==null?(p=Xe._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=jr(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Zc(e,c,l),t.memoizedState=Xc,xn(e.child,a)):(bl(t),l=e.child,e=l.sibling,l=Vt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Vc(e,t){return t=Uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uu(e,t){return e=ht(22,e,null,t),e.lanes=0,e}function Kc(e,t,l){return Fl(t,e.child,null,l),e=Vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),cc(e.return,t,l)}function kc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Hf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=qe.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,q(qe,c),Ie(e,t,a,l),a=me?un:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,l,t);else if(e.tag===19)Lf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&zu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),kc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&zu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}kc(t,!0,l,null,u,a);break;case"together":kc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Nl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(va(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Vt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Vt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yu(e)))}function O0(e,t,l){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),pl(t,Xe,e.memoizedState.cache),Ql();break;case 27:case 5:Za(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(bl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Uf(e,t,l):(bl(t),e=Wt(e,t,l),e!==null?e.sibling:null);bl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(va(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Hf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),q(qe,qe.current),a)break;return null;case 22:return t.lanes=0,Tf(e,t,l,t.pendingProps);case 24:pl(t,Xe,e.memoizedState.cache)}return Wt(e,t,l)}function Bf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!Jc(e,l)&&(t.flags&128)===0)return Ze=!1,O0(e,t,l);Ze=(e.flags&131072)!==0}else Ze=!1,me&&(t.flags&1048576)!==0&&yr(t,un,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=kl(t.elementType),t.type=e,typeof e=="function")Pi(e)?(a=Wl(e,a),t.tag=1,t=Of(null,t,e,a,l)):(t.tag=0,t=Gc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ne){t.tag=11,t=Cf(null,t,e,a,l);break e}else if(n===$){t.tag=14,t=wf(null,t,e,a,l);break e}}throw t=De(e)||e,Error(o(306,t,""))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Wl(a,t.pendingProps),Of(e,t,a,n,l);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,mc(e,t),mn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,pl(t,Xe,a),a!==u.cache&&sc(t,[Xe],l,!0),hn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Mf(e,t,a,l);break e}else if(a!==n){n=Nt(Error(o(424)),t),cn(n),t=Mf(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Re=Tt(e.firstChild),$e=t,me=!0,ml=null,wt=!0,l=Ar(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ql(),a===n){t=Wt(e,t,l);break e}Ie(e,t,a,l)}t=t.child}return t;case 26:return Mu(e,t),e===null?(l=Fd(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(l=t.type,e=t.pendingProps,a=Wu(L.current).createElement(l),a[Fe]=t,a[lt]=e,Pe(a,l,e),ke(a),t.stateNode=a):t.memoizedState=Fd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Za(t),e===null&&me&&(a=t.stateNode=Kd(t.type,t.pendingProps,L.current),$e=t,wt=!0,n=Re,Tl(t.type)?(ws=n,Re=Tt(a.firstChild)):Re=n),Ie(e,t,t.pendingProps.children,l),Mu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=Re)&&(a=oy(a,t.type,t.pendingProps,wt),a!==null?(t.stateNode=a,$e=t,Re=Tt(a.firstChild),wt=!1,n=!0):n=!1),n||yl(t)),Za(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,js(n,u)?a=null:c!==null&&js(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Sc(e,t,N0,null,null,l),Mn._currentValue=n),Mu(e,t),Ie(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=Re)&&(l=ry(l,t.pendingProps,wt),l!==null?(t.stateNode=l,$e=t,Re=null,e=!0):e=!1),e||yl(t)),null;case 13:return Uf(e,t,l);case 4:return Se(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fl(t,null,a,l):Ie(e,t,a,l),t.child;case 11:return Cf(e,t,t.type,t.pendingProps,l);case 7:return Ie(e,t,t.pendingProps,l),t.child;case 8:return Ie(e,t,t.pendingProps.children,l),t.child;case 12:return Ie(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),Ie(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Vl(t),n=We(n),a=a(n),t.flags|=1,Ie(e,t,a,l),t.child;case 14:return wf(e,t,t.type,t.pendingProps,l);case 15:return Af(e,t,t.type,t.pendingProps,l);case 19:return Hf(e,t,l);case 31:return R0(e,t,l);case 22:return Tf(e,t,l,t.pendingProps);case 24:return Vl(t),a=We(Xe),e===null?(n=fc(),n===null&&(n=Te,u=oc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},hc(t),pl(t,Xe,n)):((e.lanes&l)!==0&&(mc(e,t),mn(t,null,null,l),hn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),pl(t,Xe,a)):(a=u.cache,pl(t,Xe,a),a!==n.cache&&sc(t,[Xe],l,!0))),Ie(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function It(e){e.flags|=4}function Fc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(fd())e.flags|=8192;else throw Jl=xu,dc}else e.flags&=-16777217}function qf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!eh(t))if(fd())e.flags|=8192;else throw Jl=xu,dc}function Lu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?go():536870912,e.lanes|=t,Da|=t)}function bn(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function M0(e,t,l){var a=t.pendingProps;switch(ac(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Jt(Xe),_e(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ga(t)?It(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uc())),Oe(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(It(t),u!==null?(Oe(t),qf(t,u)):(Oe(t),Fc(t,n,null,a,l))):u?u!==e.memoizedState?(It(t),Oe(t),qf(t,u)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&It(t),Oe(t),Fc(t,n,e,a,l)),null;case 27:if(kn(t),l=L.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&It(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=V.current,ga(t)?gr(t):(e=Kd(n,a,l),t.stateNode=e,It(t))}return Oe(t),null;case 5:if(kn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&It(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(u=V.current,ga(t))gr(t);else{var c=Wu(L.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Fe]=t,u[lt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Pe(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&It(t)}}return Oe(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&It(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=L.current,ga(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=$e,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Ud(e.nodeValue,l)),e||yl(t,!0)}else e=Wu(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ga(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ga(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Fe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Lu(t,t.updateQueue),Oe(t),null);case 4:return _e(),e===null&&gs(t.stateNode.containerInfo),Oe(t),null;case 10:return Jt(t.type),Oe(t),null;case 19:if(M(qe),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)bn(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=zu(e),u!==null){for(t.flags|=128,bn(a,!1),e=u.updateQueue,t.updateQueue=e,Lu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)dr(l,e),l=l.sibling;return q(qe,qe.current&1|2),me&&Kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ot()>Gu&&(t.flags|=128,n=!0,bn(a,!1),t.lanes=4194304)}else{if(!n)if(e=zu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Lu(t,e),bn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!me)return Oe(t),null}else 2*ot()-a.renderingStartTime>Gu&&l!==536870912&&(t.flags|=128,n=!0,bn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ot(),e.sibling=null,l=qe.current,q(qe,n?l&1|2:l&1),me&&Kt(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return yt(t),vc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&Lu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&M(Kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Jt(Xe),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function U0(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jt(Xe),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kn(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(qe),null;case 4:return _e(),null;case 10:return Jt(t.type),null;case 22:case 23:return yt(t),vc(),e!==null&&M(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Jt(Xe),null;case 25:return null;default:return null}}function Yf(e,t){switch(ac(t),t.tag){case 3:Jt(Xe),_e();break;case 26:case 27:case 5:kn(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:M(qe);break;case 10:Jt(t.type);break;case 22:case 23:yt(t),vc(),e!==null&&M(Kl);break;case 24:Jt(Xe)}}function Sn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(f){Ne(t,t.return,f)}}function jl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,n=t;var p=l,E=f;try{E()}catch(_){Ne(n,p,_)}}}a=a.next}while(a!==u)}}catch(_){Ne(t,t.return,_)}}function Gf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Dr(t,l)}catch(a){Ne(e,e.return,a)}}}function Xf(e,t,l){l.props=Wl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function jn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function Bt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Qf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function $c(e,t,l){try{var a=e.stateNode;ay(a,e.type,l,t),a[lt]=t}catch(n){Ne(e,e.return,n)}}function Zf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zf(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&&Tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Qt));else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,l),e=e.sibling;e!==null;)Ic(e,t,l),e=e.sibling}function Hu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hu(e,t,l),e=e.sibling;e!==null;)Hu(e,t,l),e=e.sibling}function Vf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Pe(t,a,l),t[Fe]=e,t[lt]=l}catch(u){Ne(e,e.return,u)}}var Pt=!1,Ve=!1,Pc=!1,Kf=typeof WeakSet=="function"?WeakSet:Set,Je=null;function L0(e,t){if(e=e.containerInfo,bs=ni,e=ar(e),Ki(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,f=-1,p=-1,E=0,_=0,O=e,C=null;t:for(;;){for(var A;O!==l||n!==0&&O.nodeType!==3||(f=c+n),O!==u||a!==0&&O.nodeType!==3||(p=c+a),O.nodeType===3&&(c+=O.nodeValue.length),(A=O.firstChild)!==null;)C=O,O=A;for(;;){if(O===e)break t;if(C===l&&++E===n&&(f=c),C===u&&++_===a&&(p=c),(A=O.nextSibling)!==null)break;O=C,C=O.parentNode}O=A}l=f===-1||p===-1?null:{start:f,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ss={focusedElem:e,selectionRange:l},ni=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Z=Wl(l.type,n);e=a.getSnapshotBeforeUpdate(Z,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){Ne(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ns(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ns(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function kf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:tl(e,l),a&4&&Sn(5,l);break;case 1:if(tl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ne(l,l.return,c)}else{var n=Wl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ne(l,l.return,c)}}a&64&&Gf(l),a&512&&jn(l,l.return);break;case 3:if(tl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Dr(e,t)}catch(c){Ne(l,l.return,c)}}break;case 27:t===null&&a&4&&Vf(l);case 26:case 5:tl(e,l),t===null&&a&4&&Qf(l),a&512&&jn(l,l.return);break;case 12:tl(e,l);break;case 31:tl(e,l),a&4&&$f(e,l);break;case 13:tl(e,l),a&4&&Wf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=V0.bind(null,l),fy(e,l))));break;case 22:if(a=l.memoizedState!==null||Pt,!a){t=t!==null&&t.memoizedState!==null||Ve,n=Pt;var u=Ve;Pt=a,(Ve=t)&&!u?ll(e,l,(l.subtreeFlags&8772)!==0):tl(e,l),Pt=n,Ve=u}break;case 30:break;default:tl(e,l)}}function Jf(e){var t=e.alternate;t!==null&&(e.alternate=null,Jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ti(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 Me=null,nt=!1;function el(e,t,l){for(l=l.child;l!==null;)Ff(e,t,l),l=l.sibling}function Ff(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Va,l)}catch{}switch(l.tag){case 26:Ve||Bt(l,t),el(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||Bt(l,t);var a=Me,n=nt;Tl(l.type)&&(Me=l.stateNode,nt=!1),el(e,t,l),_n(l.stateNode),Me=a,nt=n;break;case 5:Ve||Bt(l,t);case 6:if(a=Me,n=nt,Me=null,el(e,t,l),Me=a,nt=n,Me!==null)if(nt)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(l.stateNode)}catch(u){Ne(l,t,u)}else try{Me.removeChild(l.stateNode)}catch(u){Ne(l,t,u)}break;case 18:Me!==null&&(nt?(e=Me,Gd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ba(e)):Gd(Me,l.stateNode));break;case 4:a=Me,n=nt,Me=l.stateNode.containerInfo,nt=!0,el(e,t,l),Me=a,nt=n;break;case 0:case 11:case 14:case 15:jl(2,l,t),Ve||jl(4,l,t),el(e,t,l);break;case 1:Ve||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Xf(l,t,a)),el(e,t,l);break;case 21:el(e,t,l);break;case 22:Ve=(a=Ve)||l.memoizedState!==null,el(e,t,l),Ve=a;break;default:el(e,t,l)}}function $f(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ba(e)}catch(l){Ne(t,t.return,l)}}}function Wf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ba(e)}catch(l){Ne(t,t.return,l)}}function H0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kf),t;default:throw Error(o(435,e.tag))}}function Bu(e,t){var l=H0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=K0.bind(null,e,a);a.then(n,n)}})}function ut(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(Tl(f.type)){Me=f.stateNode,nt=!1;break e}break;case 5:Me=f.stateNode,nt=!1;break e;case 3:case 4:Me=f.stateNode.containerInfo,nt=!0;break e}f=f.return}if(Me===null)throw Error(o(160));Ff(u,c,n),Me=null,nt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)If(t,e),t=t.sibling}var Ot=null;function If(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),it(e),a&4&&(jl(3,e,e.return),Sn(3,e),jl(5,e,e.return));break;case 1:ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),a&64&&Pt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ot;if(ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ja]||u[Fe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Pe(u,a,l),u[Fe]=e,ke(u),a=u;break e;case"link":var c=Id("link","href",n).get(a+(l.href||""));if(c){for(var f=0;f<c.length;f++)if(u=c[f],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(f,1);break t}}u=n.createElement(a),Pe(u,a,l),n.head.appendChild(u);break;case"meta":if(c=Id("meta","content",n).get(a+(l.content||""))){for(f=0;f<c.length;f++)if(u=c[f],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(f,1);break t}}u=n.createElement(a),Pe(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Fe]=e,ke(u),a=u}e.stateNode=a}else Pd(n,e.type,e.stateNode);else e.stateNode=Wd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Pd(n,e.type,e.stateNode):Wd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&$c(e,e.memoizedProps,l.memoizedProps)}break;case 27:ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),l!==null&&a&4&&$c(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{ca(n,"")}catch(Z){Ne(e,e.return,Z)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,$c(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Pc=!0);break;case 6:if(ut(t,e),it(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Z){Ne(e,e.return,Z)}}break;case 3:if(ei=null,n=Ot,Ot=Iu(t.containerInfo),ut(t,e),Ot=n,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ba(t.containerInfo)}catch(Z){Ne(e,e.return,Z)}Pc&&(Pc=!1,Pf(e));break;case 4:a=Ot,Ot=Iu(e.stateNode.containerInfo),ut(t,e),it(e),Ot=a;break;case 12:ut(t,e),it(e);break;case 31:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 13:ut(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Yu=ot()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,E=Pt,_=Ve;if(Pt=E||n,Ve=_||p,ut(t,e),Ve=_,Pt=E,it(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||Pt||Ve||Il(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=p.stateNode;var O=p.memoizedProps.style,C=O!=null&&O.hasOwnProperty("display")?O.display:null;f.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(Z){Ne(p,p.return,Z)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(Z){Ne(p,p.return,Z)}}}else if(t.tag===18){if(l===null){p=t;try{var A=p.stateNode;n?Xd(A,!0):Xd(p.stateNode,!1)}catch(Z){Ne(p,p.return,Z)}}}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 e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Bu(e,l))));break;case 19:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 30:break;case 21:break;default:ut(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Zf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Wc(e);Hu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ca(c,""),l.flags&=-33);var f=Wc(e);Hu(e,f,c);break;case 3:case 4:var p=l.stateNode.containerInfo,E=Wc(e);Ic(e,E,p);break;default:throw Error(o(161))}}catch(_){Ne(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)kf(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jl(4,t,t.return),Il(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Xf(t,t.return,l),Il(t);break;case 27:_n(t.stateNode);case 26:case 5:Bt(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function ll(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:ll(n,u,l),Sn(4,u);break;case 1:if(ll(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(E){Ne(a,a.return,E)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)Tr(p[n],f)}catch(E){Ne(a,a.return,E)}}l&&c&64&&Gf(u),jn(u,u.return);break;case 27:Vf(u);case 26:case 5:ll(n,u,l),l&&a===null&&c&4&&Qf(u),jn(u,u.return);break;case 12:ll(n,u,l);break;case 31:ll(n,u,l),l&&c&4&&$f(n,u);break;case 13:ll(n,u,l),l&&c&4&&Wf(n,u);break;case 22:u.memoizedState===null&&ll(n,u,l),jn(u,u.return);break;case 30:break;default:ll(n,u,l)}t=t.sibling}}function es(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&sn(l))}function ts(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sn(e))}function Mt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ed(e,t,l,a),t=t.sibling}function ed(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,l,a),n&2048&&Sn(9,t);break;case 1:Mt(e,t,l,a);break;case 3:Mt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sn(e)));break;case 12:if(n&2048){Mt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,f=u.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){Ne(t,t.return,p)}}else Mt(e,t,l,a);break;case 31:Mt(e,t,l,a);break;case 13:Mt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Mt(e,t,l,a):zn(e,t):u._visibility&2?Mt(e,t,l,a):(u._visibility|=2,wa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&es(c,t);break;case 24:Mt(e,t,l,a),n&2048&&ts(t.alternate,t);break;default:Mt(e,t,l,a)}}function wa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,f=l,p=a,E=c.flags;switch(c.tag){case 0:case 11:case 15:wa(u,c,f,p,n),Sn(8,c);break;case 23:break;case 22:var _=c.stateNode;c.memoizedState!==null?_._visibility&2?wa(u,c,f,p,n):zn(u,c):(_._visibility|=2,wa(u,c,f,p,n)),n&&E&2048&&es(c.alternate,c);break;case 24:wa(u,c,f,p,n),n&&E&2048&&ts(c.alternate,c);break;default:wa(u,c,f,p,n)}t=t.sibling}}function zn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:zn(l,a),n&2048&&es(a.alternate,a);break;case 24:zn(l,a),n&2048&&ts(a.alternate,a);break;default:zn(l,a)}t=t.sibling}}var Nn=8192;function Aa(e,t,l){if(e.subtreeFlags&Nn)for(e=e.child;e!==null;)td(e,t,l),e=e.sibling}function td(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&Nn&&e.memoizedState!==null&&zy(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var a=Ot;Ot=Iu(e.stateNode.containerInfo),Aa(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Nn,Nn=16777216,Aa(e,t,l),Nn=a):Aa(e,t,l));break;default:Aa(e,t,l)}}function ld(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 En(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,nd(a,e)}ld(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ad(e),e=e.sibling}function ad(e){switch(e.tag){case 0:case 11:case 15:En(e),e.flags&2048&&jl(9,e,e.return);break;case 3:En(e);break;case 12:En(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):En(e);break;default:En(e)}}function qu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,nd(a,e)}ld(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jl(8,t,t.return),qu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function nd(e,t){for(;Je!==null;){var l=Je;switch(l.tag){case 0:case 11:case 15:jl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:sn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Je=a;else e:for(l=e;Je!==null;){a=Je;var n=a.sibling,u=a.return;if(Jf(a),a===l){Je=null;break e}if(n!==null){n.return=u,Je=n;break e}Je=u}}}var B0={getCacheForType:function(e){var t=We(Xe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(Xe).controller.signal}},q0=typeof WeakMap=="function"?WeakMap:Map,xe=0,Te=null,oe=null,de=0,ze=0,pt=null,zl=!1,Ta=!1,ls=!1,al=0,He=0,Nl=0,Pl=0,as=0,gt=0,Da=0,Cn=null,ct=null,ns=!1,Yu=0,ud=0,Gu=1/0,Xu=null,El=null,Ke=0,Cl=null,_a=null,nl=0,us=0,is=null,id=null,wn=0,cs=null;function vt(){return(xe&2)!==0&&de!==0?de&-de:T.T!==null?hs():So()}function cd(){if(gt===0)if((de&536870912)===0||me){var e=$n;$n<<=1,($n&3932160)===0&&($n=262144),gt=e}else gt=536870912;return e=mt.current,e!==null&&(e.flags|=32),gt}function st(e,t,l){(e===Te&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Ra(e,0),wl(e,de,gt,!1)),ka(e,l),((xe&2)===0||e!==Te)&&(e===Te&&((xe&2)===0&&(Pl|=l),He===4&&wl(e,de,gt,!1)),qt(e))}function sd(e,t,l){if((xe&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ka(e,t),n=a?X0(e,t):os(e,t,!0),u=a;do{if(n===0){Ta&&!a&&wl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Y0(l)){n=os(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;n=Cn;var p=f.current.memoizedState.isDehydrated;if(p&&(Ra(f,c).flags|=256),c=os(f,c,!1),c!==2){if(ls&&!p){f.errorRecoveryDisabledLanes|=u,Pl|=u,n=4;break e}u=ct,ct=n,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ra(e,0),wl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:wl(a,t,gt,!zl);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Yu+300-ot(),10<n)){if(wl(a,t,gt,!zl),In(a,0,!0)!==0)break e;nl=t,a.timeoutHandle=qd(od.bind(null,a,l,ct,Xu,ns,t,gt,Pl,Da,zl,u,"Throttled",-0,0),n);break e}od(a,l,ct,Xu,ns,t,gt,Pl,Da,zl,u,null,-0,0)}}break}while(!0);qt(e)}function od(e,t,l,a,n,u,c,f,p,E,_,O,C,A){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qt},td(t,u,O);var Z=(u&62914560)===u?Yu-ot():(u&4194048)===u?ud-ot():0;if(Z=Ny(O,Z),Z!==null){nl=u,e.cancelPendingCommit=Z(gd.bind(null,e,t,u,l,a,n,c,f,p,_,O,null,C,A)),wl(e,u,c,!E);return}}gd(e,t,u,l,a,n,c,f,p)}function Y0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!dt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 wl(e,t,l,a){t&=~as,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ft(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&vo(e,l,t)}function Qu(){return(xe&6)===0?(An(0),!1):!0}function ss(){if(oe!==null){if(ze===0)var e=oe.return;else e=oe,kt=Zl=null,Nc(e),ja=null,rn=0,e=oe;for(;e!==null;)Yf(e.alternate,e),e=e.return;oe=null}}function Ra(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,iy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),nl=0,ss(),Te=e,oe=l=Vt(e.current,null),de=t,ze=0,pt=null,zl=!1,Ta=Ka(e,t),ls=!1,Da=gt=as=Pl=Nl=He=0,ct=Cn=null,ns=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ft(a),u=1<<n;t|=e[n],a&=~u}return al=t,ru(),l}function rd(e,t){ue=null,T.H=vn,t===Sa||t===vu?(t=Er(),ze=3):t===dc?(t=Er(),ze=4):ze=t===Yc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,oe===null&&(He=1,Ru(e,Nt(t,e.current)))}function fd(){var e=mt.current;return e===null?!0:(de&4194048)===de?At===null:(de&62914560)===de||(de&536870912)!==0?e===At:!1}function dd(){var e=T.H;return T.H=vn,e===null?vn:e}function hd(){var e=T.A;return T.A=B0,e}function Zu(){He=4,zl||(de&4194048)!==de&&mt.current!==null||(Ta=!0),(Nl&134217727)===0&&(Pl&134217727)===0||Te===null||wl(Te,de,gt,!1)}function os(e,t,l){var a=xe;xe|=2;var n=dd(),u=hd();(Te!==e||de!==t)&&(Xu=null,Ra(e,t)),t=!1;var c=He;e:do try{if(ze!==0&&oe!==null){var f=oe,p=pt;switch(ze){case 8:ss(),c=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var E=ze;if(ze=0,pt=null,Oa(e,f,p,E),l&&Ta){c=0;break e}break;default:E=ze,ze=0,pt=null,Oa(e,f,p,E)}}G0(),c=He;break}catch(_){rd(e,_)}while(!0);return t&&e.shellSuspendCounter++,kt=Zl=null,xe=a,T.H=n,T.A=u,oe===null&&(Te=null,de=0,ru()),c}function G0(){for(;oe!==null;)md(oe)}function X0(e,t){var l=xe;xe|=2;var a=dd(),n=hd();Te!==e||de!==t?(Xu=null,Gu=ot()+500,Ra(e,t)):Ta=Ka(e,t);e:do try{if(ze!==0&&oe!==null){t=oe;var u=pt;t:switch(ze){case 1:ze=0,pt=null,Oa(e,t,u,1);break;case 2:case 9:if(zr(u)){ze=0,pt=null,yd(t);break}t=function(){ze!==2&&ze!==9||Te!==e||(ze=7),qt(e)},u.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:zr(u)?(ze=0,pt=null,yd(t)):(ze=0,pt=null,Oa(e,t,u,7));break;case 5:var c=null;switch(oe.tag){case 26:c=oe.memoizedState;case 5:case 27:var f=oe;if(c?eh(c):f.stateNode.complete){ze=0,pt=null;var p=f.sibling;if(p!==null)oe=p;else{var E=f.return;E!==null?(oe=E,Vu(E)):oe=null}break t}}ze=0,pt=null,Oa(e,t,u,5);break;case 6:ze=0,pt=null,Oa(e,t,u,6);break;case 8:ss(),He=6;break e;default:throw Error(o(462))}}Q0();break}catch(_){rd(e,_)}while(!0);return kt=Zl=null,T.H=a,T.A=n,xe=l,oe!==null?0:(Te=null,de=0,ru(),He)}function Q0(){for(;oe!==null&&!dm();)md(oe)}function md(e){var t=Bf(e.alternate,e,al);e.memoizedProps=e.pendingProps,t===null?Vu(e):oe=t}function yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Rf(l,t,t.pendingProps,t.type,void 0,de);break;case 11:t=Rf(l,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Nc(t);default:Yf(l,t),t=oe=dr(t,al),t=Bf(l,t,al)}e.memoizedProps=e.pendingProps,t===null?Vu(e):oe=t}function Oa(e,t,l,a){kt=Zl=null,Nc(t),ja=null,rn=0;var n=t.return;try{if(_0(e,n,t,l,de)){He=1,Ru(e,Nt(l,e.current)),oe=null;return}}catch(u){if(n!==null)throw oe=n,u;He=1,Ru(e,Nt(l,e.current)),oe=null;return}t.flags&32768?(me||a===1?e=!0:Ta||(de&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),pd(t,e)):Vu(t)}function Vu(e){var t=e;do{if((t.flags&32768)!==0){pd(t,zl);return}e=t.return;var l=M0(t.alternate,t,al);if(l!==null){oe=l;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);He===0&&(He=5)}function pd(e,t){do{var l=U0(e.alternate,e);if(l!==null){l.flags&=32767,oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=l}while(e!==null);He=6,oe=null}function gd(e,t,l,a,n,u,c,f,p){e.cancelPendingCommit=null;do Ku();while(Ke!==0);if((xe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Wi,jm(e,l,u,c,f,p),e===Te&&(oe=Te=null,de=0),_a=t,Cl=e,nl=l,us=u,is=n,id=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,k0(Jn,function(){return jd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,n=B.p,B.p=2,c=xe,xe|=4;try{L0(e,t,l)}finally{xe=c,B.p=n,T.T=a}}Ke=1,vd(),xd(),bd()}}function vd(){if(Ke===1){Ke=0;var e=Cl,t=_a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=B.p;B.p=2;var n=xe;xe|=4;try{If(t,e);var u=Ss,c=ar(e.containerInfo),f=u.focusedElem,p=u.selectionRange;if(c!==f&&f&&f.ownerDocument&&lr(f.ownerDocument.documentElement,f)){if(p!==null&&Ki(f)){var E=p.start,_=p.end;if(_===void 0&&(_=E),"selectionStart"in f)f.selectionStart=E,f.selectionEnd=Math.min(_,f.value.length);else{var O=f.ownerDocument||document,C=O&&O.defaultView||window;if(C.getSelection){var A=C.getSelection(),Z=f.textContent.length,P=Math.min(p.start,Z),Ae=p.end===void 0?P:Math.min(p.end,Z);!A.extend&&P>Ae&&(c=Ae,Ae=P,P=c);var z=tr(f,P),x=tr(f,Ae);if(z&&x&&(A.rangeCount!==1||A.anchorNode!==z.node||A.anchorOffset!==z.offset||A.focusNode!==x.node||A.focusOffset!==x.offset)){var N=O.createRange();N.setStart(z.node,z.offset),A.removeAllRanges(),P>Ae?(A.addRange(N),A.extend(x.node,x.offset)):(N.setEnd(x.node,x.offset),A.addRange(N))}}}}for(O=[],A=f;A=A.parentNode;)A.nodeType===1&&O.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<O.length;f++){var R=O[f];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}ni=!!bs,Ss=bs=null}finally{xe=n,B.p=a,T.T=l}}e.current=t,Ke=2}}function xd(){if(Ke===2){Ke=0;var e=Cl,t=_a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=B.p;B.p=2;var n=xe;xe|=4;try{kf(e,t.alternate,t)}finally{xe=n,B.p=a,T.T=l}}Ke=3}}function bd(){if(Ke===4||Ke===3){Ke=0,hm();var e=Cl,t=_a,l=nl,a=id;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,_a=Cl=null,Sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),wi(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Va,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,n=B.p,B.p=2,T.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];u(f.value,{componentStack:f.stack})}}finally{T.T=t,B.p=n}}(nl&3)!==0&&Ku(),qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===cs?wn++:(wn=0,cs=e):wn=0,An(0)}}function Sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sn(t)))}function Ku(){return vd(),xd(),bd(),jd()}function jd(){if(Ke!==5)return!1;var e=Cl,t=us;us=0;var l=wi(nl),a=T.T,n=B.p;try{B.p=32>l?32:l,T.T=null,l=is,is=null;var u=Cl,c=nl;if(Ke=0,_a=Cl=null,nl=0,(xe&6)!==0)throw Error(o(331));var f=xe;if(xe|=4,ad(u.current),ed(u,u.current,c,l),xe=f,An(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Va,u)}catch{}return!0}finally{B.p=n,T.T=a,Sd(e,t)}}function zd(e,t,l){t=Nt(l,t),t=qc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(ka(e,2),qt(e))}function Ne(e,t,l){if(e.tag===3)zd(e,e,l);else for(;t!==null;){if(t.tag===3){zd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=Nt(l,e),l=Nf(2),a=xl(t,l,2),a!==null&&(Ef(l,a,t,e),ka(a,2),qt(a));break}}t=t.return}}function rs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new q0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(ls=!0,n.add(l),e=Z0.bind(null,e,t,l),t.then(e,e))}function Z0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Te===e&&(de&l)===l&&(He===4||He===3&&(de&62914560)===de&&300>ot()-Yu?(xe&2)===0&&Ra(e,0):as|=l,Da===de&&(Da=0)),qt(e)}function Nd(e,t){t===0&&(t=go()),e=Gl(e,t),e!==null&&(ka(e,t),qt(e))}function V0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Nd(e,l)}function K0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Nd(e,l)}function k0(e,t){return zi(e,t)}var ku=null,Ma=null,fs=!1,Ju=!1,ds=!1,Al=0;function qt(e){e!==Ma&&e.next===null&&(Ma===null?ku=Ma=e:Ma=Ma.next=e),Ju=!0,fs||(fs=!0,F0())}function An(e,t){if(!ds&&Ju){ds=!0;do for(var l=!1,a=ku;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ft(42|e)+1)-1,u&=n&~(c&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ad(a,u))}else u=de,u=In(a,a===Te?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ka(a,u)||(l=!0,Ad(a,u));a=a.next}while(l);ds=!1}}function J0(){Ed()}function Ed(){Ju=fs=!1;var e=0;Al!==0&&uy()&&(e=Al);for(var t=ot(),l=null,a=ku;a!==null;){var n=a.next,u=Cd(a,t);u===0?(a.next=null,l===null?ku=n:l.next=n,n===null&&(Ma=l)):(l=a,(e!==0||(u&3)!==0)&&(Ju=!0)),a=n}Ke!==0&&Ke!==5||An(e),Al!==0&&(Al=0)}function Cd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-ft(u),f=1<<c,p=n[c];p===-1?((f&l)===0||(f&a)!==0)&&(n[c]=Sm(f,t)):p<=t&&(e.expiredLanes|=f),u&=~f}if(t=Te,l=de,l=In(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ni(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ni(a),wi(l)){case 2:case 8:l=yo;break;case 32:l=Jn;break;case 268435456:l=po;break;default:l=Jn}return a=wd.bind(null,e),l=zi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ni(a),e.callbackPriority=2,e.callbackNode=null,2}function wd(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ku()&&e.callbackNode!==l)return null;var a=de;return a=In(e,e===Te?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(sd(e,a,t),Cd(e,ot()),e.callbackNode!=null&&e.callbackNode===l?wd.bind(null,e):null)}function Ad(e,t){if(Ku())return null;sd(e,t,!0)}function F0(){cy(function(){(xe&6)!==0?zi(mo,J0):Ed()})}function hs(){if(Al===0){var e=xa;e===0&&(e=Fn,Fn<<=1,(Fn&261888)===0&&(Fn=256)),Al=e}return Al}function Td(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(""+e)}function Dd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function $0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Td((n[lt]||null).action),c=a.submitter;c&&(t=(t=c[lt]||null)?Td(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var f=new iu("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var p=c?Dd(n,c):new FormData(n);Oc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(f.preventDefault(),p=c?Dd(n,c):new FormData(n),Oc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var ms=0;ms<$i.length;ms++){var ys=$i[ms],W0=ys.toLowerCase(),I0=ys[0].toUpperCase()+ys.slice(1);Rt(W0,"on"+I0)}Rt(ir,"onAnimationEnd"),Rt(cr,"onAnimationIteration"),Rt(sr,"onAnimationStart"),Rt("dblclick","onDoubleClick"),Rt("focusin","onFocus"),Rt("focusout","onBlur"),Rt(m0,"onTransitionRun"),Rt(y0,"onTransitionStart"),Rt(p0,"onTransitionCancel"),Rt(or,"onTransitionEnd"),ua("onMouseEnter",["mouseout","mouseover"]),ua("onMouseLeave",["mouseout","mouseover"]),ua("onPointerEnter",["pointerout","pointerover"]),ua("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tn="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(" "),P0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tn));function _d(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var f=a[c],p=f.instance,E=f.currentTarget;if(f=f.listener,p!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=E;try{u(n)}catch(_){ou(_)}n.currentTarget=null,u=p}else for(c=0;c<a.length;c++){if(f=a[c],p=f.instance,E=f.currentTarget,f=f.listener,p!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=E;try{u(n)}catch(_){ou(_)}n.currentTarget=null,u=p}}}}function re(e,t){var l=t[Ai];l===void 0&&(l=t[Ai]=new Set);var a=e+"__bubble";l.has(a)||(Rd(t,e,2,!1),l.add(a))}function ps(e,t,l){var a=0;t&&(a|=4),Rd(l,e,a,t)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[Fu]){e[Fu]=!0,No.forEach(function(l){l!=="selectionchange"&&(P0.has(l)||ps(l,!1,e),ps(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,ps("selectionchange",!1,t))}}function Rd(e,t,l,a){switch(ch(t)){case 2:var n=wy;break;case 8:n=Ay;break;default:n=Rs}l=n.bind(null,t,l,e),n=void 0,!Hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function vs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;f!==null;){if(c=la(f),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=u=c;continue e}f=f.parentNode}}a=a.return}Lo(function(){var E=u,_=Ui(l),O=[];e:{var C=rr.get(e);if(C!==void 0){var A=iu,Z=e;switch(e){case"keypress":if(nu(l)===0)break e;case"keydown":case"keyup":A=Km;break;case"focusin":Z="focus",A=Gi;break;case"focusout":Z="blur",A=Gi;break;case"beforeblur":case"afterblur":A=Gi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=qo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Mm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Fm;break;case ir:case cr:case sr:A=Hm;break;case or:A=Wm;break;case"scroll":case"scrollend":A=Rm;break;case"wheel":A=Pm;break;case"copy":case"cut":case"paste":A=qm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Go;break;case"toggle":case"beforetoggle":A=t0}var P=(t&4)!==0,Ae=!P&&(e==="scroll"||e==="scrollend"),z=P?C!==null?C+"Capture":null:C;P=[];for(var x=E,N;x!==null;){var R=x;if(N=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||N===null||z===null||(R=$a(x,z),R!=null&&P.push(Dn(x,R,N))),Ae)break;x=x.return}0<P.length&&(C=new A(C,Z,null,l,_),O.push({event:C,listeners:P}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",C&&l!==Mi&&(Z=l.relatedTarget||l.fromElement)&&(la(Z)||Z[ta]))break e;if((A||C)&&(C=_.window===_?_:(C=_.ownerDocument)?C.defaultView||C.parentWindow:window,A?(Z=l.relatedTarget||l.toElement,A=E,Z=Z?la(Z):null,Z!==null&&(Ae=h(Z),P=Z.tag,Z!==Ae||P!==5&&P!==27&&P!==6)&&(Z=null)):(A=null,Z=E),A!==Z)){if(P=qo,R="onMouseLeave",z="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(P=Go,R="onPointerLeave",z="onPointerEnter",x="pointer"),Ae=A==null?C:Fa(A),N=Z==null?C:Fa(Z),C=new P(R,x+"leave",A,l,_),C.target=Ae,C.relatedTarget=N,R=null,la(_)===E&&(P=new P(z,x+"enter",Z,l,_),P.target=N,P.relatedTarget=Ae,R=P),Ae=R,A&&Z)t:{for(P=ey,z=A,x=Z,N=0,R=z;R;R=P(R))N++;R=0;for(var I=x;I;I=P(I))R++;for(;0<N-R;)z=P(z),N--;for(;0<R-N;)x=P(x),R--;for(;N--;){if(z===x||x!==null&&z===x.alternate){P=z;break t}z=P(z),x=P(x)}P=null}else P=null;A!==null&&Od(O,C,A,P,!1),Z!==null&&Ae!==null&&Od(O,Ae,Z,P,!0)}}e:{if(C=E?Fa(E):window,A=C.nodeName&&C.nodeName.toLowerCase(),A==="select"||A==="input"&&C.type==="file")var ge=Fo;else if(ko(C))if($o)ge=f0;else{ge=o0;var J=s0}else A=C.nodeName,!A||A.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?E&&Oi(E.elementType)&&(ge=Fo):ge=r0;if(ge&&(ge=ge(e,E))){Jo(O,ge,l,_);break e}J&&J(e,C,E),e==="focusout"&&E&&C.type==="number"&&E.memoizedProps.value!=null&&Ri(C,"number",C.value)}switch(J=E?Fa(E):window,e){case"focusin":(ko(J)||J.contentEditable==="true")&&(fa=J,ki=E,nn=null);break;case"focusout":nn=ki=fa=null;break;case"mousedown":Ji=!0;break;case"contextmenu":case"mouseup":case"dragend":Ji=!1,nr(O,l,_);break;case"selectionchange":if(h0)break;case"keydown":case"keyup":nr(O,l,_)}var ie;if(Qi)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else ra?Vo(e,l)&&(he="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(he="onCompositionStart");he&&(Xo&&l.locale!=="ko"&&(ra||he!=="onCompositionStart"?he==="onCompositionEnd"&&ra&&(ie=Ho()):(dl=_,Bi="value"in dl?dl.value:dl.textContent,ra=!0)),J=$u(E,he),0<J.length&&(he=new Yo(he,e,null,l,_),O.push({event:he,listeners:J}),ie?he.data=ie:(ie=Ko(l),ie!==null&&(he.data=ie)))),(ie=a0?n0(e,l):u0(e,l))&&(he=$u(E,"onBeforeInput"),0<he.length&&(J=new Yo("onBeforeInput","beforeinput",null,l,_),O.push({event:J,listeners:he}),J.data=ie)),$0(O,e,E,l,_)}_d(O,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function $u(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=$a(e,l),n!=null&&a.unshift(Dn(e,n,u)),n=$a(e,t),n!=null&&a.push(Dn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function ey(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var f=l,p=f.alternate,E=f.stateNode;if(f=f.tag,p!==null&&p===a)break;f!==5&&f!==26&&f!==27||E===null||(p=E,n?(E=$a(l,u),E!=null&&c.unshift(Dn(l,E,p))):n||(E=$a(l,u),E!=null&&c.push(Dn(l,E,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var ty=/\r\n?/g,ly=/\u0000|\uFFFD/g;function Md(e){return(typeof e=="string"?e:""+e).replace(ty,`
|
|
9
|
-
`).replace(ly,"")}function Ud(e,t){return t=Md(t),Md(e)===t}function we(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ca(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ca(e,""+a);break;case"className":eu(e,"class",a);break;case"tabIndex":eu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":eu(e,l,a);break;case"style":Mo(e,a,u);break;case"data":if(t!=="object"){eu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=lu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 u=="function"&&(l==="formAction"?(t!=="input"&&we(e,t,"name",n.name,n,null),we(e,t,"formEncType",n.formEncType,n,null),we(e,t,"formMethod",n.formMethod,n,null),we(e,t,"formTarget",n.formTarget,n,null)):(we(e,t,"encType",n.encType,n,null),we(e,t,"method",n.method,n,null),we(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=lu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Qt);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=lu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":re("beforetoggle",e),re("toggle",e),Pn(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Pn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Dm.get(l)||l,Pn(e,l,a))}}function xs(e,t,l,a,n,u){switch(l){case"style":Mo(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ca(e,a):(typeof a=="number"||typeof a=="bigint")&&ca(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Qt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Eo.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[lt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Pn(e,l,a)}}}function Pe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:we(e,t,u,c,l,null)}}n&&we(e,t,"srcSet",l.srcSet,l,null),a&&we(e,t,"src",l.src,l,null);return;case"input":re("invalid",e);var f=u=c=n=null,p=null,E=null;for(a in l)if(l.hasOwnProperty(a)){var _=l[a];if(_!=null)switch(a){case"name":n=_;break;case"type":c=_;break;case"checked":p=_;break;case"defaultChecked":E=_;break;case"value":u=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:we(e,t,a,_,l,null)}}Do(e,u,f,p,E,c,n,!1);return;case"select":re("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:we(e,t,n,f,l,null)}t=u,l=c,e.multiple=!!a,t!=null?ia(e,!!a,t,!1):l!=null&&ia(e,!!a,l,!0);return;case"textarea":re("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(f=l[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:we(e,t,c,f,l,null)}Ro(e,a,n,u);return;case"option":for(p in l)l.hasOwnProperty(p)&&(a=l[p],a!=null)&&(p==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":we(e,t,p,a,l,null));return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<Tn.length;a++)re(Tn[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("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(E in l)if(l.hasOwnProperty(E)&&(a=l[E],a!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:we(e,t,E,a,l,null)}return;default:if(Oi(t)){for(_ in l)l.hasOwnProperty(_)&&(a=l[_],a!==void 0&&xs(e,t,_,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&we(e,t,f,a,l,null))}function ay(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,f=null,p=null,E=null,_=null;for(A in l){var O=l[A];if(l.hasOwnProperty(A)&&O!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":p=O;default:a.hasOwnProperty(A)||we(e,t,A,null,a,O)}}for(var C in a){var A=a[C];if(O=l[C],a.hasOwnProperty(C)&&(A!=null||O!=null))switch(C){case"type":u=A;break;case"name":n=A;break;case"checked":E=A;break;case"defaultChecked":_=A;break;case"value":c=A;break;case"defaultValue":f=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==O&&we(e,t,C,A,a,O)}}_i(e,c,f,p,E,_,u,n);return;case"select":A=c=f=C=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":A=p;default:a.hasOwnProperty(u)||we(e,t,u,null,a,p)}for(n in a)if(u=a[n],p=l[n],a.hasOwnProperty(n)&&(u!=null||p!=null))switch(n){case"value":C=u;break;case"defaultValue":f=u;break;case"multiple":c=u;default:u!==p&&we(e,t,n,u,a,p)}t=f,l=c,a=A,C!=null?ia(e,!!l,C,!1):!!a!=!!l&&(t!=null?ia(e,!!l,t,!0):ia(e,!!l,l?[]:"",!1));return;case"textarea":A=C=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:we(e,t,f,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":C=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&we(e,t,c,n,a,u)}_o(e,C,A);return;case"option":for(var Z in l)C=l[Z],l.hasOwnProperty(Z)&&C!=null&&!a.hasOwnProperty(Z)&&(Z==="selected"?e.selected=!1:we(e,t,Z,null,a,C));for(p in a)C=a[p],A=l[p],a.hasOwnProperty(p)&&C!==A&&(C!=null||A!=null)&&(p==="selected"?e.selected=C&&typeof C!="function"&&typeof C!="symbol":we(e,t,p,C,a,A));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 P in l)C=l[P],l.hasOwnProperty(P)&&C!=null&&!a.hasOwnProperty(P)&&we(e,t,P,null,a,C);for(E in a)if(C=a[E],A=l[E],a.hasOwnProperty(E)&&C!==A&&(C!=null||A!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:we(e,t,E,C,a,A)}return;default:if(Oi(t)){for(var Ae in l)C=l[Ae],l.hasOwnProperty(Ae)&&C!==void 0&&!a.hasOwnProperty(Ae)&&xs(e,t,Ae,void 0,a,C);for(_ in a)C=a[_],A=l[_],!a.hasOwnProperty(_)||C===A||C===void 0&&A===void 0||xs(e,t,_,C,a,A);return}}for(var z in l)C=l[z],l.hasOwnProperty(z)&&C!=null&&!a.hasOwnProperty(z)&&we(e,t,z,null,a,C);for(O in a)C=a[O],A=l[O],!a.hasOwnProperty(O)||C===A||C==null&&A==null||we(e,t,O,C,a,A)}function Ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ny(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,f=n.duration;if(u&&f&&Ld(c)){for(c=0,f=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],E=p.startTime;if(E>f)break;var _=p.transferSize,O=p.initiatorType;_&&Ld(O)&&(p=p.responseEnd,c+=_*(p<f?1:(f-E)/(p-E)))}if(--a,t+=8*(u+c)/(n.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 bs=null,Ss=null;function Wu(e){return e.nodeType===9?e:e.ownerDocument}function Hd(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 Bd(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 js(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 zs=null;function uy(){var e=window.event;return e&&e.type==="popstate"?e===zs?!1:(zs=e,!0):(zs=null,!1)}var qd=typeof setTimeout=="function"?setTimeout:void 0,iy=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,cy=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(e){return Yd.resolve(null).then(e).catch(sy)}:qd;function sy(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function Gd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ba(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")_n(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,_n(l);for(var u=l.firstChild;u;){var c=u.nextSibling,f=u.nodeName;u[Ja]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&_n(e.ownerDocument.body);l=n}while(l);Ba(t)}function Xd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Ns(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ns(l),Ti(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function oy(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ja])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Tt(e.nextSibling),e===null)break}return null}function ry(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Tt(e.nextSibling),e===null))return null;return e}function Qd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tt(e.nextSibling),e===null))return null;return e}function Es(e){return e.data==="$?"||e.data==="$~"}function Cs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function fy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Tt(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 ws=null;function Zd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Tt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Kd(e,t,l){switch(t=Wu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function _n(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ti(e)}var Dt=new Map,kd=new Set;function Iu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ul=B.d;B.d={f:dy,r:hy,D:my,C:yy,L:py,m:gy,X:xy,S:vy,M:by};function dy(){var e=ul.f(),t=Qu();return e||t}function hy(e){var t=aa(e);t!==null&&t.tag===5&&t.type==="form"?rf(t):ul.r(e)}var Ua=typeof document>"u"?null:document;function Jd(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),kd.has(n)||(kd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Pe(t,"link",e),ke(t),a.head.appendChild(t)))}}function my(e){ul.D(e),Jd("dns-prefetch",e,null)}function yy(e,t){ul.C(e,t),Jd("preconnect",e,t)}function py(e,t,l){ul.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+jt(l.imageSizes)+'"]')):n+='[href="'+jt(e)+'"]';var u=n;switch(t){case"style":u=La(e);break;case"script":u=Ha(e)}Dt.has(u)||(e=w({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Rn(u))||t==="script"&&a.querySelector(On(u))||(t=a.createElement("link"),Pe(t,"link",e),ke(t),a.head.appendChild(t)))}}function gy(e,t){ul.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ha(e)}if(!Dt.has(u)&&(e=w({rel:"modulepreload",href:e},t),Dt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(On(u)))return}a=l.createElement("link"),Pe(a,"link",e),ke(a),l.head.appendChild(a)}}}function vy(e,t,l){ul.S(e,t,l);var a=Ua;if(a&&e){var n=na(a).hoistableStyles,u=La(e);t=t||"default";var c=n.get(u);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(Rn(u)))f.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(u))&&As(e,l);var p=c=a.createElement("link");ke(p),Pe(p,"link",e),p._p=new Promise(function(E,_){p.onload=E,p.onerror=_}),p.addEventListener("load",function(){f.loading|=1}),p.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Pu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(u,c)}}}function xy(e,t){ul.X(e,t);var l=Ua;if(l&&e){var a=na(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=w({src:e,async:!0},t),(t=Dt.get(n))&&Ts(e,t),u=l.createElement("script"),ke(u),Pe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function by(e,t){ul.M(e,t);var l=Ua;if(l&&e){var a=na(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=w({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&Ts(e,t),u=l.createElement("script"),ke(u),Pe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Fd(e,t,l,a){var n=(n=L.current)?Iu(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=La(l.href),l=na(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=La(l.href);var u=na(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Rn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Dt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dt.set(e,l),u||Sy(n,e,l,c.state))),t&&a===null)throw Error(o(528,""));return c}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(l),l=na(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function La(e){return'href="'+jt(e)+'"'}function Rn(e){return'link[rel="stylesheet"]['+e+"]"}function $d(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Sy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pe(t,"link",l),ke(t),e.head.appendChild(t))}function Ha(e){return'[src="'+jt(e)+'"]'}function On(e){return"script[async]"+e}function Wd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(l.href)+'"]');if(a)return t.instance=a,ke(a),a;var n=w({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ke(a),Pe(a,"style",n),Pu(a,l.precedence,e),t.instance=a;case"stylesheet":n=La(l.href);var u=e.querySelector(Rn(n));if(u)return t.state.loading|=4,t.instance=u,ke(u),u;a=$d(l),(n=Dt.get(n))&&As(a,n),u=(e.ownerDocument||e).createElement("link"),ke(u);var c=u;return c._p=new Promise(function(f,p){c.onload=f,c.onerror=p}),Pe(u,"link",a),t.state.loading|=4,Pu(u,l.precedence,e),t.instance=u;case"script":return u=Ha(l.src),(n=e.querySelector(On(u)))?(t.instance=n,ke(n),n):(a=l,(n=Dt.get(u))&&(a=w({},l),Ts(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ke(n),Pe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pu(a,l.precedence,e));return t.instance}function Pu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function As(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ts(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ei=null;function Id(e,t,l){if(ei===null){var a=new Map,n=ei=new Map;n.set(l,a)}else n=ei,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ja]||u[Fe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(u):a.set(c,[u])}}return a}function Pd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function jy(e,t,l){if(l===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 eh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function zy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=La(a.href),u=t.querySelector(Rn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ti.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ke(u);return}u=t.ownerDocument||t,a=$d(a),(n=Dt.get(n))&&As(a,n),u=u.createElement("link"),ke(u);var c=u;c._p=new Promise(function(f,p){c.onload=f,c.onerror=p}),Pe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ti.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ds=0;function Ny(e,t){return e.stylesheets&&e.count===0&&ai(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ai(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Ds===0&&(Ds=62500*ny());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ai(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Ds?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ai(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var li=null;function ai(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,li=new Map,t.forEach(Ey,e),li=null,ti.call(e))}function Ey(e,t){if(!(t.state.loading&4)){var l=li.get(e);if(l)var a=l.get(null);else{l=new Map,li.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=ti.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:F,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Cy(e,t,l,a,n,u,c,f,p){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=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function th(e,t,l,a,n,u,c,f,p,E,_,O){return e=new Cy(e,t,l,c,p,E,_,O,f),t=1,u===!0&&(t|=24),u=ht(3,null,null,t),e.current=u,u.stateNode=e,t=oc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},hc(u),e}function lh(e){return e?(e=ma,e):ma}function ah(e,t,l,a,n,u){n=lh(n),a.context===null?a.context=n:a.pendingContext=n,a=vl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=xl(e,a,t),l!==null&&(st(l,e,t),dn(l,e,t))}function nh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function _s(e,t){nh(e,t),(e=e.alternate)&&nh(e,t)}function uh(e){if(e.tag===13||e.tag===31){var t=Gl(e,67108864);t!==null&&st(t,e,67108864),_s(e,67108864)}}function ih(e){if(e.tag===13||e.tag===31){var t=vt();t=Ci(t);var l=Gl(e,t);l!==null&&st(l,e,t),_s(e,t)}}var ni=!0;function wy(e,t,l,a){var n=T.T;T.T=null;var u=B.p;try{B.p=2,Rs(e,t,l,a)}finally{B.p=u,T.T=n}}function Ay(e,t,l,a){var n=T.T;T.T=null;var u=B.p;try{B.p=8,Rs(e,t,l,a)}finally{B.p=u,T.T=n}}function Rs(e,t,l,a){if(ni){var n=Os(a);if(n===null)vs(e,t,a,ui,l),sh(e,a);else if(Dy(n,e,t,l,a))a.stopPropagation();else if(sh(e,a),t&4&&-1<Ty.indexOf(e)){for(;n!==null;){var u=aa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Ll(u.pendingLanes);if(c!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var p=1<<31-ft(c);f.entanglements[1]|=p,c&=~p}qt(u),(xe&6)===0&&(Gu=ot()+500,An(0))}}break;case 31:case 13:f=Gl(u,2),f!==null&&st(f,u,2),Qu(),_s(u,2)}if(u=Os(a),u===null&&vs(e,t,a,ui,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else vs(e,t,a,null,l)}}function Os(e){return e=Ui(e),Ms(e)}var ui=null;function Ms(e){if(ui=null,e=la(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=j(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ui=e,null}function ch(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(mm()){case mo:return 2;case yo:return 8;case Jn:case ym:return 32;case po:return 268435456;default:return 32}default:return 32}}var Us=!1,Dl=null,_l=null,Rl=null,Un=new Map,Ln=new Map,Ol=[],Ty="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 sh(e,t){switch(e){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":_l=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ln.delete(t.pointerId)}}function Hn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=aa(t),t!==null&&uh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Dy(e,t,l,a,n){switch(t){case"focusin":return Dl=Hn(Dl,e,t,l,a,n),!0;case"dragenter":return _l=Hn(_l,e,t,l,a,n),!0;case"mouseover":return Rl=Hn(Rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Un.set(u,Hn(Un.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Ln.set(u,Hn(Ln.get(u)||null,e,t,l,a,n)),!0}return!1}function oh(e){var t=la(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,jo(e.priority,function(){ih(l)});return}}else if(t===31){if(t=j(l),t!==null){e.blockedOn=t,jo(e.priority,function(){ih(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ii(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Os(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Mi=a,l.target.dispatchEvent(a),Mi=null}else return t=aa(l),t!==null&&uh(t),e.blockedOn=l,!1;t.shift()}return!0}function rh(e,t,l){ii(e)&&l.delete(t)}function _y(){Us=!1,Dl!==null&&ii(Dl)&&(Dl=null),_l!==null&&ii(_l)&&(_l=null),Rl!==null&&ii(Rl)&&(Rl=null),Un.forEach(rh),Ln.forEach(rh)}function ci(e,t){e.blockedOn===t&&(e.blockedOn=null,Us||(Us=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_y)))}var si=null;function fh(e){si!==e&&(si=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){si===e&&(si=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Ms(a||l)===null)continue;break}var u=aa(l);u!==null&&(e.splice(t,3),t-=3,Oc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ba(e){function t(p){return ci(p,e)}Dl!==null&&ci(Dl,e),_l!==null&&ci(_l,e),Rl!==null&&ci(Rl,e),Un.forEach(t),Ln.forEach(t);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)oh(l),l.blockedOn===null&&Ol.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[lt]||null;if(typeof u=="function")c||fh(l);else if(c){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[lt]||null)f=c.formAction;else if(Ms(n)!==null)continue}else f=c.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),fh(l)}}}function dh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Ls(e){this._internalRoot=e}oi.prototype.render=Ls.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=vt();ah(l,a,e,t,null,null)},oi.prototype.unmount=Ls.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ah(e.current,2,null,e,null,null),Qu(),t[ta]=null}};function oi(e){this._internalRoot=e}oi.prototype.unstable_scheduleHydration=function(e){if(e){var t=So();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ol.length&&t!==0&&t<Ol[l].priority;l++);Ol.splice(l,0,e),l===0&&oh(e)}};var hh=r.version;if(hh!=="19.2.3")throw Error(o(527,hh,"19.2.3"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?D(e):null,e=e===null?null:e.stateNode,e};var Ry={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ri=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ri.isDisabled&&ri.supportsFiber)try{Va=ri.inject(Ry),rt=ri}catch{}}return qn.createRoot=function(e,t){if(!m(e))throw Error(o(299));var l=!1,a="",n=bf,u=Sf,c=jf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=th(e,1,!1,null,null,l,a,null,n,u,c,dh),e[ta]=t.current,gs(e),new Ls(t)},qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(o(299));var a=!1,n="",u=bf,c=Sf,f=jf,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=th(e,1,!0,t,l??null,a,n,p,u,c,f,dh),t.context=lh(null),l=t.current,a=vt(),a=Ci(a),n=vl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,ka(t,l),qt(t),e[ta]=t.current,gs(e),new oi(t)},qn.version="19.2.3",qn}var zh;function Qy(){if(zh)return qs.exports;zh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),qs.exports=Xy(),qs.exports}var Zy=Qy();var Nh="popstate";function Vy(i={}){function r(o,m){let{pathname:h,search:y,hash:j}=o.location;return $s("",{pathname:h,search:y,hash:j},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function d(o,m){return typeof m=="string"?m:Xn(m)}return ky(r,d,null,i)}function Ue(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function xt(i,r){if(!i){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Ky(){return Math.random().toString(36).substring(2,10)}function Eh(i,r){return{usr:i.state,key:i.key,idx:r}}function $s(i,r,d=null,o){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof r=="string"?Ga(r):r,state:d,key:r&&r.key||o||Ky()}}function Xn({pathname:i="/",search:r="",hash:d=""}){return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),d&&d!=="#"&&(i+=d.charAt(0)==="#"?d:"#"+d),i}function Ga(i){let r={};if(i){let d=i.indexOf("#");d>=0&&(r.hash=i.substring(d),i=i.substring(0,d));let o=i.indexOf("?");o>=0&&(r.search=i.substring(o),i=i.substring(0,o)),i&&(r.pathname=i)}return r}function ky(i,r,d,o={}){let{window:m=document.defaultView,v5Compat:h=!1}=o,y=m.history,j="POP",v=null,g=D();g==null&&(g=0,y.replaceState({...y.state,idx:g},""));function D(){return(y.state||{idx:null}).idx}function w(){j="POP";let Y=D(),Q=Y==null?null:Y-g;g=Y,v&&v({action:j,location:H.location,delta:Q})}function U(Y,Q){j="PUSH";let X=$s(H.location,Y,Q);g=D()+1;let F=Eh(X,g),ne=H.createHref(X);try{y.pushState(F,"",ne)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;m.location.assign(ne)}h&&v&&v({action:j,location:H.location,delta:1})}function G(Y,Q){j="REPLACE";let X=$s(H.location,Y,Q);g=D();let F=Eh(X,g),ne=H.createHref(X);y.replaceState(F,"",ne),h&&v&&v({action:j,location:H.location,delta:0})}function k(Y){return Jy(Y)}let H={get action(){return j},get location(){return i(m,y)},listen(Y){if(v)throw new Error("A history only accepts one active listener");return m.addEventListener(Nh,w),v=Y,()=>{m.removeEventListener(Nh,w),v=null}},createHref(Y){return r(m,Y)},createURL:k,encodeLocation(Y){let Q=k(Y);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:U,replace:G,go(Y){return y.go(Y)}};return H}function Jy(i,r=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(d,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Xn(i);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=d+o),new URL(o,d)}function Hh(i,r,d="/"){return Fy(i,r,d,!1)}function Fy(i,r,d,o){let m=typeof r=="string"?Ga(r):r,h=cl(m.pathname||"/",d);if(h==null)return null;let y=Bh(i);$y(y);let j=null;for(let v=0;j==null&&v<y.length;++v){let g=cp(h);j=up(y[v],g,o)}return j}function Bh(i,r=[],d=[],o="",m=!1){let h=(y,j,v=m,g)=>{let D={relativePath:g===void 0?y.path||"":g,caseSensitive:y.caseSensitive===!0,childrenIndex:j,route:y};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(o)&&v)return;Ue(D.relativePath.startsWith(o),`Absolute route path "${D.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),D.relativePath=D.relativePath.slice(o.length)}let w=il([o,D.relativePath]),U=d.concat(D);y.children&&y.children.length>0&&(Ue(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${w}".`),Bh(y.children,r,U,w,v)),!(y.path==null&&!y.index)&&r.push({path:w,score:ap(w,y.index),routesMeta:U})};return i.forEach((y,j)=>{if(y.path===""||!y.path?.includes("?"))h(y,j);else for(let v of qh(y.path))h(y,j,!0,v)}),r}function qh(i){let r=i.split("/");if(r.length===0)return[];let[d,...o]=r,m=d.endsWith("?"),h=d.replace(/\?$/,"");if(o.length===0)return m?[h,""]:[h];let y=qh(o.join("/")),j=[];return j.push(...y.map(v=>v===""?h:[h,v].join("/"))),m&&j.push(...y),j.map(v=>i.startsWith("/")&&v===""?"/":v)}function $y(i){i.sort((r,d)=>r.score!==d.score?d.score-r.score:np(r.routesMeta.map(o=>o.childrenIndex),d.routesMeta.map(o=>o.childrenIndex)))}var Wy=/^:[\w-]+$/,Iy=3,Py=2,ep=1,tp=10,lp=-2,Ch=i=>i==="*";function ap(i,r){let d=i.split("/"),o=d.length;return d.some(Ch)&&(o+=lp),r&&(o+=Py),d.filter(m=>!Ch(m)).reduce((m,h)=>m+(Wy.test(h)?Iy:h===""?ep:tp),o)}function np(i,r){return i.length===r.length&&i.slice(0,-1).every((o,m)=>o===r[m])?i[i.length-1]-r[r.length-1]:0}function up(i,r,d=!1){let{routesMeta:o}=i,m={},h="/",y=[];for(let j=0;j<o.length;++j){let v=o[j],g=j===o.length-1,D=h==="/"?r:r.slice(h.length)||"/",w=mi({path:v.relativePath,caseSensitive:v.caseSensitive,end:g},D),U=v.route;if(!w&&g&&d&&!o[o.length-1].route.index&&(w=mi({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},D)),!w)return null;Object.assign(m,w.params),y.push({params:m,pathname:il([h,w.pathname]),pathnameBase:fp(il([h,w.pathnameBase])),route:U}),w.pathnameBase!=="/"&&(h=il([h,w.pathnameBase]))}return y}function mi(i,r){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[d,o]=ip(i.path,i.caseSensitive,i.end),m=r.match(d);if(!m)return null;let h=m[0],y=h.replace(/(.)\/+$/,"$1"),j=m.slice(1);return{params:o.reduce((g,{paramName:D,isOptional:w},U)=>{if(D==="*"){let k=j[U]||"";y=h.slice(0,h.length-k.length).replace(/(.)\/+$/,"$1")}const G=j[U];return w&&!G?g[D]=void 0:g[D]=(G||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:y,pattern:i}}function ip(i,r=!1,d=!0){xt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,j,v)=>(o.push({paramName:j,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,r?void 0:"i"),o]}function cp(i){try{return i.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return xt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),i}}function cl(i,r){if(r==="/")return i;if(!i.toLowerCase().startsWith(r.toLowerCase()))return null;let d=r.endsWith("/")?r.length-1:r.length,o=i.charAt(d);return o&&o!=="/"?null:i.slice(d)||"/"}var Yh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sp=i=>Yh.test(i);function op(i,r="/"){let{pathname:d,search:o="",hash:m=""}=typeof i=="string"?Ga(i):i,h;if(d)if(sp(d))h=d;else{if(d.includes("//")){let y=d;d=d.replace(/\/\/+/g,"/"),xt(!1,`Pathnames cannot have embedded double slashes - normalizing ${y} -> ${d}`)}d.startsWith("/")?h=wh(d.substring(1),"/"):h=wh(d,r)}else h=r;return{pathname:h,search:dp(o),hash:hp(m)}}function wh(i,r){let d=r.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?d.length>1&&d.pop():m!=="."&&d.push(m)}),d.length>1?d.join("/"):"/"}function Qs(i,r,d,o){return`Cannot include a '${i}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rp(i){return i.filter((r,d)=>d===0||r.route.path&&r.route.path.length>0)}function no(i){let r=rp(i);return r.map((d,o)=>o===r.length-1?d.pathname:d.pathnameBase)}function uo(i,r,d,o=!1){let m;typeof i=="string"?m=Ga(i):(m={...i},Ue(!m.pathname||!m.pathname.includes("?"),Qs("?","pathname","search",m)),Ue(!m.pathname||!m.pathname.includes("#"),Qs("#","pathname","hash",m)),Ue(!m.search||!m.search.includes("#"),Qs("#","search","hash",m)));let h=i===""||m.pathname==="",y=h?"/":m.pathname,j;if(y==null)j=d;else{let w=r.length-1;if(!o&&y.startsWith("..")){let U=y.split("/");for(;U[0]==="..";)U.shift(),w-=1;m.pathname=U.join("/")}j=w>=0?r[w]:"/"}let v=op(m,j),g=y&&y!=="/"&&y.endsWith("/"),D=(h||y===".")&&d.endsWith("/");return!v.pathname.endsWith("/")&&(g||D)&&(v.pathname+="/"),v}var il=i=>i.join("/").replace(/\/\/+/g,"/"),fp=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),dp=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,hp=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,mp=class{constructor(i,r,d,o=!1){this.status=i,this.statusText=r||"",this.internal=o,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function yp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function pp(i){return i.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Gh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xh(i,r){let d=i;if(typeof d!="string"||!Yh.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let o=d,m=!1;if(Gh)try{let h=new URL(window.location.href),y=d.startsWith("//")?new URL(h.protocol+d):new URL(d),j=cl(y.pathname,r);y.origin===h.origin&&j!=null?d=j+y.search+y.hash:m=!0}catch{xt(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:m,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Qh=["POST","PUT","PATCH","DELETE"];new Set(Qh);var gp=["GET",...Qh];new Set(gp);var Xa=S.createContext(null);Xa.displayName="DataRouter";var pi=S.createContext(null);pi.displayName="DataRouterState";var vp=S.createContext(!1),Zh=S.createContext({isTransitioning:!1});Zh.displayName="ViewTransition";var xp=S.createContext(new Map);xp.displayName="Fetchers";var bp=S.createContext(null);bp.displayName="Await";var bt=S.createContext(null);bt.displayName="Navigation";var Zn=S.createContext(null);Zn.displayName="Location";var Yt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.displayName="Route";var io=S.createContext(null);io.displayName="RouteError";var Vh="REACT_ROUTER_ERROR",Sp="REDIRECT",jp="ROUTE_ERROR_RESPONSE";function zp(i){if(i.startsWith(`${Vh}:${Sp}:{`))try{let r=JSON.parse(i.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Np(i){if(i.startsWith(`${Vh}:${jp}:{`))try{let r=JSON.parse(i.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new mp(r.status,r.statusText,r.data)}catch{}}function Ep(i,{relative:r}={}){Ue(Qa(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:o}=S.useContext(bt),{hash:m,pathname:h,search:y}=Vn(i,{relative:r}),j=h;return d!=="/"&&(j=h==="/"?d:il([d,h])),o.createHref({pathname:j,search:y,hash:m})}function Qa(){return S.useContext(Zn)!=null}function Gt(){return Ue(Qa(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Zn).location}var Kh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kh(i){S.useContext(bt).static||S.useLayoutEffect(i)}function ol(){let{isDataRoute:i}=S.useContext(Yt);return i?Bp():Cp()}function Cp(){Ue(Qa(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(Xa),{basename:r,navigator:d}=S.useContext(bt),{matches:o}=S.useContext(Yt),{pathname:m}=Gt(),h=JSON.stringify(no(o)),y=S.useRef(!1);return kh(()=>{y.current=!0}),S.useCallback((v,g={})=>{if(xt(y.current,Kh),!y.current)return;if(typeof v=="number"){d.go(v);return}let D=uo(v,JSON.parse(h),m,g.relative==="path");i==null&&r!=="/"&&(D.pathname=D.pathname==="/"?r:il([r,D.pathname])),(g.replace?d.replace:d.push)(D,g.state,g)},[r,d,h,m,i])}S.createContext(null);function Vn(i,{relative:r}={}){let{matches:d}=S.useContext(Yt),{pathname:o}=Gt(),m=JSON.stringify(no(d));return S.useMemo(()=>uo(i,JSON.parse(m),o,r==="path"),[i,m,o,r])}function wp(i,r){return Jh(i,r)}function Jh(i,r,d,o,m){Ue(Qa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=S.useContext(bt),{matches:y}=S.useContext(Yt),j=y[y.length-1],v=j?j.params:{},g=j?j.pathname:"/",D=j?j.pathnameBase:"/",w=j&&j.route;{let X=w&&w.path||"";$h(g,!w||X.endsWith("*")||X.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${X}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
-
|
|
11
|
-
Please change the parent <Route path="${X}"> to <Route path="${X==="/"?"*":`${X}/*`}">.`)}let U=Gt(),G;if(r){let X=typeof r=="string"?Ga(r):r;Ue(D==="/"||X.pathname?.startsWith(D),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${D}" but pathname "${X.pathname}" was given in the \`location\` prop.`),G=X}else G=U;let k=G.pathname||"/",H=k;if(D!=="/"){let X=D.replace(/^\//,"").split("/");H="/"+k.replace(/^\//,"").split("/").slice(X.length).join("/")}let Y=Hh(i,{pathname:H});xt(w||Y!=null,`No routes matched location "${G.pathname}${G.search}${G.hash}" `),xt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${G.pathname}${G.search}${G.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=Rp(Y&&Y.map(X=>Object.assign({},X,{params:Object.assign({},v,X.params),pathname:il([D,h.encodeLocation?h.encodeLocation(X.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?D:il([D,h.encodeLocation?h.encodeLocation(X.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathnameBase])})),y,d,o,m);return r&&Q?S.createElement(Zn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...G},navigationType:"POP"}},Q):Q}function Ap(){let i=Hp(),r=yp(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),d=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},r),d?S.createElement("pre",{style:m},d):null,y)}var Tp=S.createElement(Ap,null),Fh=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){this.props.onError?this.props.onError(i,r):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const d=Np(i.digest);d&&(i=d)}let r=i!==void 0?S.createElement(Yt.Provider,{value:this.props.routeContext},S.createElement(io.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Dp,{error:i},r):r}};Fh.contextType=vp;var Zs=new WeakMap;function Dp({children:i,error:r}){let{basename:d}=S.useContext(bt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let o=zp(r.digest);if(o){let m=Zs.get(r);if(m)throw m;let h=Xh(o.location,d);if(Gh&&!Zs.get(r))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Zs.set(r,y),y}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function _p({routeContext:i,match:r,children:d}){let o=S.useContext(Xa);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(Yt.Provider,{value:i},d)}function Rp(i,r=[],d=null,o=null,m=null){if(i==null){if(!d)return null;if(d.errors)i=d.matches;else if(r.length===0&&!d.initialized&&d.matches.length>0)i=d.matches;else return null}let h=i,y=d?.errors;if(y!=null){let D=h.findIndex(w=>w.route.id&&y?.[w.route.id]!==void 0);Ue(D>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),h=h.slice(0,Math.min(h.length,D+1))}let j=!1,v=-1;if(d)for(let D=0;D<h.length;D++){let w=h[D];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(v=D),w.route.id){let{loaderData:U,errors:G}=d,k=w.route.loader&&!U.hasOwnProperty(w.route.id)&&(!G||G[w.route.id]===void 0);if(w.route.lazy||k){j=!0,v>=0?h=h.slice(0,v+1):h=[h[0]];break}}}let g=d&&o?(D,w)=>{o(D,{location:d.location,params:d.matches?.[0]?.params??{},unstable_pattern:pp(d.matches),errorInfo:w})}:void 0;return h.reduceRight((D,w,U)=>{let G,k=!1,H=null,Y=null;d&&(G=y&&w.route.id?y[w.route.id]:void 0,H=w.route.errorElement||Tp,j&&(v<0&&U===0?($h("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,Y=null):v===U&&(k=!0,Y=w.route.hydrateFallbackElement||null)));let Q=r.concat(h.slice(0,U+1)),X=()=>{let F;return G?F=H:k?F=Y:w.route.Component?F=S.createElement(w.route.Component,null):w.route.element?F=w.route.element:F=D,S.createElement(_p,{match:w,routeContext:{outlet:D,matches:Q,isDataRoute:d!=null},children:F})};return d&&(w.route.ErrorBoundary||w.route.errorElement||U===0)?S.createElement(Fh,{location:d.location,revalidation:d.revalidation,component:H,error:G,children:X(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:g}):X()},null)}function co(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Op(i){let r=S.useContext(Xa);return Ue(r,co(i)),r}function Mp(i){let r=S.useContext(pi);return Ue(r,co(i)),r}function Up(i){let r=S.useContext(Yt);return Ue(r,co(i)),r}function so(i){let r=Up(i),d=r.matches[r.matches.length-1];return Ue(d.route.id,`${i} can only be used on routes that contain a unique "id"`),d.route.id}function Lp(){return so("useRouteId")}function Hp(){let i=S.useContext(io),r=Mp("useRouteError"),d=so("useRouteError");return i!==void 0?i:r.errors?.[d]}function Bp(){let{router:i}=Op("useNavigate"),r=so("useNavigate"),d=S.useRef(!1);return kh(()=>{d.current=!0}),S.useCallback(async(m,h={})=>{xt(d.current,Kh),d.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:r,...h}))},[i,r])}var Ah={};function $h(i,r,d){!r&&!Ah[i]&&(Ah[i]=!0,xt(!1,d))}S.memo(qp);function qp({routes:i,future:r,state:d,onError:o}){return Jh(i,void 0,d,o,r)}function sl({to:i,replace:r,state:d,relative:o}){Ue(Qa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=S.useContext(bt);xt(!m,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=S.useContext(Yt),{pathname:y}=Gt(),j=ol(),v=uo(i,no(h),y,o==="path"),g=JSON.stringify(v);return S.useEffect(()=>{j(JSON.parse(g),{replace:r,state:d,relative:o})},[j,g,o,r,d]),null}function _t(i){Ue(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yp({basename:i="/",children:r=null,location:d,navigationType:o="POP",navigator:m,static:h=!1,unstable_useTransitions:y}){Ue(!Qa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=i.replace(/^\/*/,"/"),v=S.useMemo(()=>({basename:j,navigator:m,static:h,unstable_useTransitions:y,future:{}}),[j,m,h,y]);typeof d=="string"&&(d=Ga(d));let{pathname:g="/",search:D="",hash:w="",state:U=null,key:G="default"}=d,k=S.useMemo(()=>{let H=cl(g,j);return H==null?null:{location:{pathname:H,search:D,hash:w,state:U,key:G},navigationType:o}},[j,g,D,w,U,G,o]);return xt(k!=null,`<Router basename="${j}"> is not able to match the URL "${g}${D}${w}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:S.createElement(bt.Provider,{value:v},S.createElement(Zn.Provider,{children:r,value:k}))}function Gp({children:i,location:r}){return wp(Ws(i),r)}function Ws(i,r=[]){let d=[];return S.Children.forEach(i,(o,m)=>{if(!S.isValidElement(o))return;let h=[...r,m];if(o.type===S.Fragment){d.push.apply(d,Ws(o.props.children,h));return}Ue(o.type===_t,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ue(!o.props.index||!o.props.children,"An index route cannot have child routes.");let y={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(y.children=Ws(o.props.children,h)),d.push(y)}),d}var di="get",hi="application/x-www-form-urlencoded";function gi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Xp(i){return gi(i)&&i.tagName.toLowerCase()==="button"}function Qp(i){return gi(i)&&i.tagName.toLowerCase()==="form"}function Zp(i){return gi(i)&&i.tagName.toLowerCase()==="input"}function Vp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Kp(i,r){return i.button===0&&(!r||r==="_self")&&!Vp(i)}function Is(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((r,d)=>{let o=i[d];return r.concat(Array.isArray(o)?o.map(m=>[d,m]):[[d,o]])},[]))}function kp(i,r){let d=Is(i);return r&&r.forEach((o,m)=>{d.has(m)||r.getAll(m).forEach(h=>{d.append(m,h)})}),d}var fi=null;function Jp(){if(fi===null)try{new FormData(document.createElement("form"),0),fi=!1}catch{fi=!0}return fi}var Fp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vs(i){return i!=null&&!Fp.has(i)?(xt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hi}"`),null):i}function $p(i,r){let d,o,m,h,y;if(Qp(i)){let j=i.getAttribute("action");o=j?cl(j,r):null,d=i.getAttribute("method")||di,m=Vs(i.getAttribute("enctype"))||hi,h=new FormData(i)}else if(Xp(i)||Zp(i)&&(i.type==="submit"||i.type==="image")){let j=i.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||j.getAttribute("action");if(o=v?cl(v,r):null,d=i.getAttribute("formmethod")||j.getAttribute("method")||di,m=Vs(i.getAttribute("formenctype"))||Vs(j.getAttribute("enctype"))||hi,h=new FormData(j,i),!Jp()){let{name:g,type:D,value:w}=i;if(D==="image"){let U=g?`${g}.`:"";h.append(`${U}x`,"0"),h.append(`${U}y`,"0")}else g&&h.append(g,w)}}else{if(gi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=di,o=null,m=hi,y=i}return h&&m==="text/plain"&&(y=h,h=void 0),{action:o,method:d.toLowerCase(),encType:m,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function oo(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function Wp(i,r,d,o){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return d?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${o}`:m.pathname=`${m.pathname}.${o}`:m.pathname==="/"?m.pathname=`_root.${o}`:r&&cl(m.pathname,r)==="/"?m.pathname=`${r.replace(/\/$/,"")}/_root.${o}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${o}`,m}async function Ip(i,r){if(i.id in r)return r[i.id];try{let d=await import(i.module);return r[i.id]=d,d}catch(d){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Pp(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function eg(i,r,d){let o=await Promise.all(i.map(async m=>{let h=r.routes[m.route.id];if(h){let y=await Ip(h,d);return y.links?y.links():[]}return[]}));return ng(o.flat(1).filter(Pp).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function Th(i,r,d,o,m,h){let y=(v,g)=>d[g]?v.route.id!==d[g].route.id:!0,j=(v,g)=>d[g].pathname!==v.pathname||d[g].route.path?.endsWith("*")&&d[g].params["*"]!==v.params["*"];return h==="assets"?r.filter((v,g)=>y(v,g)||j(v,g)):h==="data"?r.filter((v,g)=>{let D=o.routes[v.route.id];if(!D||!D.hasLoader)return!1;if(y(v,g)||j(v,g))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:d[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function tg(i,r,{includeHydrateFallback:d}={}){return lg(i.map(o=>{let m=r.routes[o.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),d&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function lg(i){return[...new Set(i)]}function ag(i){let r={},d=Object.keys(i).sort();for(let o of d)r[o]=i[o];return r}function ng(i,r){let d=new Set;return new Set(r),i.reduce((o,m)=>{let h=JSON.stringify(ag(m));return d.has(h)||(d.add(h),o.push({key:h,link:m})),o},[])}function Wh(){let i=S.useContext(Xa);return oo(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function ug(){let i=S.useContext(pi);return oo(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var ro=S.createContext(void 0);ro.displayName="FrameworkContext";function Ih(){let i=S.useContext(ro);return oo(i,"You must render this element inside a <HydratedRouter> element"),i}function ig(i,r){let d=S.useContext(ro),[o,m]=S.useState(!1),[h,y]=S.useState(!1),{onFocus:j,onBlur:v,onMouseEnter:g,onMouseLeave:D,onTouchStart:w}=r,U=S.useRef(null);S.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let H=Q=>{Q.forEach(X=>{y(X.isIntersecting)})},Y=new IntersectionObserver(H,{threshold:.5});return U.current&&Y.observe(U.current),()=>{Y.disconnect()}}},[i]),S.useEffect(()=>{if(o){let H=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(H)}}},[o]);let G=()=>{m(!0)},k=()=>{m(!1),y(!1)};return d?i!=="intent"?[h,U,{}]:[h,U,{onFocus:Yn(j,G),onBlur:Yn(v,k),onMouseEnter:Yn(g,G),onMouseLeave:Yn(D,k),onTouchStart:Yn(w,G)}]:[!1,U,{}]}function Yn(i,r){return d=>{i&&i(d),d.defaultPrevented||r(d)}}function cg({page:i,...r}){let{router:d}=Wh(),o=S.useMemo(()=>Hh(d.routes,i,d.basename),[d.routes,i,d.basename]);return o?S.createElement(og,{page:i,matches:o,...r}):null}function sg(i){let{manifest:r,routeModules:d}=Ih(),[o,m]=S.useState([]);return S.useEffect(()=>{let h=!1;return eg(i,r,d).then(y=>{h||m(y)}),()=>{h=!0}},[i,r,d]),o}function og({page:i,matches:r,...d}){let o=Gt(),{future:m,manifest:h,routeModules:y}=Ih(),{basename:j}=Wh(),{loaderData:v,matches:g}=ug(),D=S.useMemo(()=>Th(i,r,g,h,o,"data"),[i,r,g,h,o]),w=S.useMemo(()=>Th(i,r,g,h,o,"assets"),[i,r,g,h,o]),U=S.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let H=new Set,Y=!1;if(r.forEach(X=>{let F=h.routes[X.route.id];!F||!F.hasLoader||(!D.some(ne=>ne.route.id===X.route.id)&&X.route.id in v&&y[X.route.id]?.shouldRevalidate||F.hasClientLoader?Y=!0:H.add(X.route.id))}),H.size===0)return[];let Q=Wp(i,j,m.unstable_trailingSlashAwareDataRequests,"data");return Y&&H.size>0&&Q.searchParams.set("_routes",r.filter(X=>H.has(X.route.id)).map(X=>X.route.id).join(",")),[Q.pathname+Q.search]},[j,m.unstable_trailingSlashAwareDataRequests,v,o,h,D,r,i,y]),G=S.useMemo(()=>tg(w,h),[w,h]),k=sg(w);return S.createElement(S.Fragment,null,U.map(H=>S.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...d})),G.map(H=>S.createElement("link",{key:H,rel:"modulepreload",href:H,...d})),k.map(({key:H,link:Y})=>S.createElement("link",{key:H,nonce:d.nonce,...Y})))}function rg(...i){return r=>{i.forEach(d=>{typeof d=="function"?d(r):d!=null&&(d.current=r)})}}var fg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fg&&(window.__reactRouterVersion="7.12.0")}catch{}function dg({basename:i,children:r,unstable_useTransitions:d,window:o}){let m=S.useRef();m.current==null&&(m.current=Vy({window:o,v5Compat:!0}));let h=m.current,[y,j]=S.useState({action:h.action,location:h.location}),v=S.useCallback(g=>{d===!1?j(g):S.startTransition(()=>j(g))},[d]);return S.useLayoutEffect(()=>h.listen(v),[h,v]),S.createElement(Yp,{basename:i,children:r,location:y.location,navigationType:y.action,navigator:h,unstable_useTransitions:d})}var Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yi=S.forwardRef(function({onClick:r,discover:d="render",prefetch:o="none",relative:m,reloadDocument:h,replace:y,state:j,target:v,to:g,preventScrollReset:D,viewTransition:w,unstable_defaultShouldRevalidate:U,...G},k){let{basename:H,unstable_useTransitions:Y}=S.useContext(bt),Q=typeof g=="string"&&Ph.test(g),X=Xh(g,H);g=X.to;let F=Ep(g,{relative:m}),[ne,te,fe]=ig(o,G),$=pg(g,{replace:y,state:j,target:v,preventScrollReset:D,relative:m,viewTransition:w,unstable_defaultShouldRevalidate:U,unstable_useTransitions:Y});function ye(ce){r&&r(ce),ce.defaultPrevented||$(ce)}let pe=S.createElement("a",{...G,...fe,href:X.absoluteURL||F,onClick:X.isExternal||h?r:ye,ref:rg(k,te),target:v,"data-discover":!Q&&d==="render"?"true":void 0});return ne&&!Q?S.createElement(S.Fragment,null,pe,S.createElement(cg,{page:F})):pe});yi.displayName="Link";var hg=S.forwardRef(function({"aria-current":r="page",caseSensitive:d=!1,className:o="",end:m=!1,style:h,to:y,viewTransition:j,children:v,...g},D){let w=Vn(y,{relative:g.relative}),U=Gt(),G=S.useContext(pi),{navigator:k,basename:H}=S.useContext(bt),Y=G!=null&&jg(w)&&j===!0,Q=k.encodeLocation?k.encodeLocation(w).pathname:w.pathname,X=U.pathname,F=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;d||(X=X.toLowerCase(),F=F?F.toLowerCase():null,Q=Q.toLowerCase()),F&&H&&(F=cl(F,H)||F);const ne=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let te=X===Q||!m&&X.startsWith(Q)&&X.charAt(ne)==="/",fe=F!=null&&(F===Q||!m&&F.startsWith(Q)&&F.charAt(Q.length)==="/"),$={isActive:te,isPending:fe,isTransitioning:Y},ye=te?r:void 0,pe;typeof o=="function"?pe=o($):pe=[o,te?"active":null,fe?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let ce=typeof h=="function"?h($):h;return S.createElement(yi,{...g,"aria-current":ye,className:pe,ref:D,style:ce,to:y,viewTransition:j},typeof v=="function"?v($):v)});hg.displayName="NavLink";var mg=S.forwardRef(({discover:i="render",fetcherKey:r,navigate:d,reloadDocument:o,replace:m,state:h,method:y=di,action:j,onSubmit:v,relative:g,preventScrollReset:D,viewTransition:w,unstable_defaultShouldRevalidate:U,...G},k)=>{let{unstable_useTransitions:H}=S.useContext(bt),Y=bg(),Q=Sg(j,{relative:g}),X=y.toLowerCase()==="get"?"get":"post",F=typeof j=="string"&&Ph.test(j),ne=te=>{if(v&&v(te),te.defaultPrevented)return;te.preventDefault();let fe=te.nativeEvent.submitter,$=fe?.getAttribute("formmethod")||y,ye=()=>Y(fe||te.currentTarget,{fetcherKey:r,method:$,navigate:d,replace:m,state:h,relative:g,preventScrollReset:D,viewTransition:w,unstable_defaultShouldRevalidate:U});H&&d!==!1?S.startTransition(()=>ye()):ye()};return S.createElement("form",{ref:k,method:X,action:Q,onSubmit:o?v:ne,...G,"data-discover":!F&&i==="render"?"true":void 0})});mg.displayName="Form";function yg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function em(i){let r=S.useContext(Xa);return Ue(r,yg(i)),r}function pg(i,{target:r,replace:d,state:o,preventScrollReset:m,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:j,unstable_useTransitions:v}={}){let g=ol(),D=Gt(),w=Vn(i,{relative:h});return S.useCallback(U=>{if(Kp(U,r)){U.preventDefault();let G=d!==void 0?d:Xn(D)===Xn(w),k=()=>g(i,{replace:G,state:o,preventScrollReset:m,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:j});v?S.startTransition(()=>k()):k()}},[D,g,w,d,o,r,i,m,h,y,j,v])}function gg(i){xt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=S.useRef(Is(i)),d=S.useRef(!1),o=Gt(),m=S.useMemo(()=>kp(o.search,d.current?null:r.current),[o.search]),h=ol(),y=S.useCallback((j,v)=>{const g=Is(typeof j=="function"?j(new URLSearchParams(m)):j);d.current=!0,h("?"+g,v)},[h,m]);return[m,y]}var vg=0,xg=()=>`__${String(++vg)}__`;function bg(){let{router:i}=em("useSubmit"),{basename:r}=S.useContext(bt),d=Lp(),o=i.fetch,m=i.navigate;return S.useCallback(async(h,y={})=>{let{action:j,method:v,encType:g,formData:D,body:w}=$p(h,r);if(y.navigate===!1){let U=y.fetcherKey||xg();await o(U,d,y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:D,body:w,formMethod:y.method||v,formEncType:y.encType||g,flushSync:y.flushSync})}else await m(y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:D,body:w,formMethod:y.method||v,formEncType:y.encType||g,replace:y.replace,state:y.state,fromRouteId:d,flushSync:y.flushSync,viewTransition:y.viewTransition})},[o,m,r,d])}function Sg(i,{relative:r}={}){let{basename:d}=S.useContext(bt),o=S.useContext(Yt);Ue(o,"useFormAction must be used inside a RouteContext");let[m]=o.matches.slice(-1),h={...Vn(i||".",{relative:r})},y=Gt();if(i==null){h.search=y.search;let j=new URLSearchParams(h.search),v=j.getAll("index");if(v.some(D=>D==="")){j.delete("index"),v.filter(w=>w).forEach(w=>j.append("index",w));let D=j.toString();h.search=D?`?${D}`:""}}return(!i||i===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(h.pathname=h.pathname==="/"?d:il([d,h.pathname])),Xn(h)}function jg(i,{relative:r}={}){let d=S.useContext(Zh);Ue(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=em("useViewTransitionState"),m=Vn(i,{relative:r});if(!d.isTransitioning)return!1;let h=cl(d.currentLocation.pathname,o)||d.currentLocation.pathname,y=cl(d.nextLocation.pathname,o)||d.nextLocation.pathname;return mi(m.pathname,y)!=null||mi(m.pathname,h)!=null}const tm=S.createContext(null);function Ut(){const i=S.useContext(tm);if(!i)throw new Error("useAuth must be used within AuthProvider");return i}function zg({children:i}){const r="/.account/",[d,o]=S.useState(null),[m,h]=S.useState(!0),[y,j]=S.useState(null),[v,g]=S.useState(!1),D=!!d?.account?.logout,w=m,U=async()=>{try{const H=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return H.ok?!!(await H.json()).client:!1}catch{return!1}},G=async()=>{try{const H=await fetch(r,{headers:{Accept:"application/json"},credentials:"include"});if(H.ok){const Y=await H.json();let Q=!1;Y.controls?.account?.logout&&(Q=await U()),g(Q),o(Y.controls||{})}else j(`Failed to load configuration (Status: ${H.status})`)}catch{j("Network error: Could not connect to authentication server")}};S.useEffect(()=>{(async()=>(await G(),h(!1)))()},[r]);const k=async()=>{await G()};return s.jsx(tm.Provider,{value:{controls:d,isInitializing:m,initError:y,idpIndex:r,isLoggedIn:D,authenticating:w,hasOidcPending:v,refetchControls:k},children:i})}const lm=(...i)=>i.filter((r,d,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===d).join(" ").trim();const Ng=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Eg=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,d,o)=>o?o.toUpperCase():d.toLowerCase());const Dh=i=>{const r=Eg(i);return r.charAt(0).toUpperCase()+r.slice(1)};var Cg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const wg=i=>{for(const r in i)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const Ag=S.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:d=2,absoluteStrokeWidth:o,className:m="",children:h,iconNode:y,...j},v)=>S.createElement("svg",{ref:v,...Cg,width:r,height:r,stroke:i,strokeWidth:o?Number(d)*24/Number(r):d,className:lm("lucide",m),...!h&&!wg(j)&&{"aria-hidden":"true"},...j},[...y.map(([g,D])=>S.createElement(g,D)),...Array.isArray(h)?h:[h]]));const Be=(i,r)=>{const d=S.forwardRef(({className:o,...m},h)=>S.createElement(Ag,{ref:h,iconNode:r,className:lm(`lucide-${Ng(Dh(i))}`,`lucide-${i}`,o),...m}));return d.displayName=Dh(i),d};const Tg=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],am=Be("arrow-left",Tg);const Dg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],vi=Be("arrow-right",Dg);const _g=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ea=Be("check",_g);const Rg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Og=Be("chevron-down",Rg);const Mg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],nm=Be("circle-alert",Mg);const Ug=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],um=Be("clock",Ug);const Lg=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ks=Be("copy",Lg);const Hg=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Bg=Be("database",Hg);const qg=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],_h=Be("external-link",qg);const Yg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Gg=Be("globe",Yg);const Xg=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Qg=Be("hard-drive",Xg);const Zg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vg=Be("info",Zg);const Kg=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ks=Be("key",Kg);const kg=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],im=Be("layers",kg);const Jg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ya=Be("loader-circle",Jg);const Fg=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Gn=Be("lock",Fg);const $g=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Wg=Be("log-out",$g);const Ig=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ps=Be("mail",Ig);const Pg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Js=Be("plus",Pg);const ev=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Qn=Be("shield",ev);const tv=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Rh=Be("trash-2",tv);const lv=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],av=Be("user",lv);function cm(){return s.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:s.jsx(Ya,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Kn({children:i,title:r,subtitle:d,icon:o,showBack:m,onBack:h}){return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[s.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),s.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[s.jsxs("div",{className:"flex flex-col items-center mb-6",children:[s.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[m?s.jsx("button",{onClick:h,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:s.jsx(am,{className:"w-4 h-4"})}):s.jsx("div",{className:"w-8"}),s.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:o?s.jsx(o,{className:"w-5 h-5 text-white"}):s.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),s.jsx("div",{className:"w-8"})]}),s.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:r}),d&&s.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:d})]}),i]})]})}function nv({message:i}){return s.jsx(Kn,{title:"Error",subtitle:i,icon:nm,children:s.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const eo="xpod:returnTo";function qa(i){try{i&&sessionStorage.setItem(eo,i)}catch{}}function uv(){try{const i=sessionStorage.getItem(eo);return i&&sessionStorage.removeItem(eo),i}catch{return null}}function iv(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function cv({children:i}){const{isLoggedIn:r,hasOidcPending:d}=Ut(),o=Gt();return r&&d?s.jsx(sl,{to:"/.account/oidc/consent/",replace:!0}):r?s.jsx(s.Fragment,{children:i}):(qa(o.pathname+o.search),s.jsx(sl,{to:"/.account/login/password/",replace:!0}))}function sm(i){var r,d,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var m=i.length;for(r=0;r<m;r++)i[r]&&(d=sm(i[r]))&&(o&&(o+=" "),o+=d)}else for(d in i)i[d]&&(o&&(o+=" "),o+=d);return o}function om(){for(var i,r,d=0,o="",m=arguments.length;d<m;d++)(i=arguments[d])&&(r=sm(i))&&(o&&(o+=" "),o+=r);return o}function to({initialIsRegister:i=!1}){const{controls:r,idpIndex:d,isLoggedIn:o,authenticating:m}=Ut(),h=ol(),[y,j]=S.useState(!1),[v,g]=S.useState(i),[D,w]=S.useState(""),[U,G]=S.useState(""),[k,H]=S.useState(!1),Y=D.length>0&&U.length>0&&D===U;if(S.useEffect(()=>{const te=iv();te&&qa(te)},[]),o)return s.jsx(sl,{to:"/.account/account/",replace:!0});const Q=[{icon:um,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:im,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Qn,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}],X=async te=>{te.preventDefault(),j(!0);const fe=new FormData(te.currentTarget),$=fe.get("email"),ye=fe.get("password");try{if(v){const pe=fe.get("confirmPassword");if(ye!==pe){alert("Passwords do not match"),j(!1);return}let ce=await fetch(r?.account?.create||"/.account/account/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!ce.ok)throw new Error((await ce.json().catch(()=>({}))).message||"Failed to create account");ce=await fetch(d,{headers:{Accept:"application/json"},credentials:"include"});const Ee=await ce.json(),W=Ee.controls?.password?.create;if(!W)throw new Error("Password endpoint not found");if(ce=await fetch(W,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:$,password:ye})}),!ce.ok)throw new Error((await ce.json().catch(()=>({}))).message||"Failed to set password");const se=Ee.controls?.password?.login||r?.password?.login||"/.account/login/password/";if(ce=await fetch(se,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:$,password:ye})}),!ce.ok)throw new Error((await ce.json().catch(()=>({}))).message||"Auto-login failed");window.location.href="/.account/account/"}else{const pe=await fetch(r?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:$,password:ye})}),ce=await pe.json().catch(()=>({}));if(console.log("[Login] Response status:",pe.status),console.log("[Login] Response json:",ce),console.log("[Login] Location header:",pe.headers.get("Location")),pe.ok){const Ee=pe.headers.get("Location");if(console.log("[Login] json.location:",ce.location),console.log("[Login] headerLocation:",Ee),ce.location){console.log("[Login] Redirecting to json.location:",ce.location),window.location.href=ce.location;return}if(Ee){console.log("[Login] Redirecting to headerLocation:",Ee),window.location.href=Ee;return}const W=uv();if(console.log("[Login] returnTo:",W),W){console.log("[Login] Redirecting to returnTo:",W),window.location.href=W;return}console.log("[Login] Checking for OIDC consent...");try{const se=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Login] Consent check status:",se.status),se.ok){console.log("[Login] OIDC flow waiting, redirecting to consent"),window.location.href="/.account/oidc/consent/";return}}catch(se){console.log("[Login] Consent check error:",se)}console.log("[Login] No redirect found, going to dashboard"),window.location.href="/.account/account/"}else alert(ce.message||"Login failed")}}catch(pe){alert(pe.message||"Operation failed")}finally{j(!1)}},F=()=>{g(!v),w(""),G("")},ne=async()=>{if(r?.oidc?.cancel){H(!0);try{const fe=await(await fetch(r.oidc.cancel,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include"})).json();fe.location&&(window.location.href=fe.location)}catch{alert("Failed to cancel"),H(!1)}}};return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[s.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[s.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),s.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),s.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[s.jsx("div",{className:"hidden lg:block px-8",children:s.jsxs("div",{className:"max-w-md ml-auto",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",s.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),s.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),s.jsx("div",{className:"space-y-4",children:s.jsx("div",{className:"space-y-3",children:Q.map(({icon:te,title:fe,desc:$})=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:s.jsx(te,{className:"w-4 h-4 text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:fe}),s.jsx("p",{className:"text-[10px] text-zinc-500",children:$})]})]},fe))})}),s.jsx("div",{className:"mt-12",children:s.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",s.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),s.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:s.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[s.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:s.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),s.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:v?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),s.jsxs("form",{className:"space-y-4",onSubmit:X,children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ps,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Email"})]}),s.jsxs("div",{className:"relative",children:[s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"password",type:"password",required:!0,value:D,onChange:te=>w(te.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),v&&s.jsxs("div",{className:"relative",children:[Y?s.jsx(ea,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:U,onChange:te=>G(te.target.value),className:om("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",Y?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),!v&&s.jsx("div",{className:"flex justify-end",children:s.jsx("button",{type:"button",onClick:()=>h("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),s.jsx("button",{type:"submit",disabled:y||k,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:y?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):s.jsxs(s.Fragment,{children:[v?"Sign up":"Sign in",s.jsx(vi,{className:"h-4 w-4"})]})}),m&&!v&&s.jsx("button",{type:"button",onClick:ne,disabled:k||y,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:k?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),s.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:s.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",s.jsx("button",{onClick:F,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function sv(){const{isLoggedIn:i,hasOidcPending:r}=Ut();return i&&r?s.jsx(sl,{to:"/.account/oidc/consent/",replace:!0}):i?s.jsx(sl,{to:"/.account/account/",replace:!0}):s.jsx(to,{})}function ov(){const i=ol(),{isLoggedIn:r}=Ut(),d=[{icon:um,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:im,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Qn,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}];return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[s.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[s.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),s.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),s.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[s.jsx("div",{className:"hidden lg:block px-8",children:s.jsxs("div",{className:"max-w-md ml-auto",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",s.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),s.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),s.jsx("div",{className:"space-y-4",children:s.jsx("div",{className:"space-y-3",children:d.map(({icon:o,title:m,desc:h})=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:s.jsx(o,{className:"w-4 h-4 text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:m}),s.jsx("p",{className:"text-[10px] text-zinc-500",children:h})]})]},m))})}),s.jsx("div",{className:"mt-12",children:s.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",s.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),s.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:s.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[s.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:s.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("div",{className:"lg:hidden mb-8",children:[s.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",s.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),s.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),s.jsx("div",{className:"space-y-2",children:d.map(({icon:o,title:m,desc:h})=>s.jsxs("div",{className:"flex gap-2",children:[s.jsx(o,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-medium text-zinc-900",children:m}),s.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",h]})]})]},m))})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),s.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),s.jsxs("div",{className:"space-y-3 mb-6",children:[s.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:s.jsx(_h,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),s.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),s.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:s.jsx(_h,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),s.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),s.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[s.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),s.jsxs("button",{onClick:()=>i(r?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[s.jsx(am,{className:"w-4 h-4"}),r?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function Oh(i,r){return`sk-${btoa(`${i}:${r}`)}`}function rv(){const{controls:i,refetchControls:r,hasOidcPending:d}=Ut(),o=ol(),[m,h]=S.useState(!1),[y,j]=S.useState([]),[v,g]=S.useState([]),[D,w]=S.useState(!1),[U,G]=S.useState(""),[k,H]=S.useState(!1),[Y,Q]=S.useState(""),[X,F]=S.useState([]),[ne,te]=S.useState(null),[fe,$]=S.useState(!1),[ye,pe]=S.useState(""),[ce,Ee]=S.useState(""),[W,se]=S.useState(null),[De,Ge]=S.useState(!1),T=S.useRef(null);S.useEffect(()=>{const L=ee=>{T.current&&!T.current.contains(ee.target)&&Ge(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);const B=async(L,ee)=>{try{await navigator.clipboard.writeText(L),se(ee),setTimeout(()=>se(null),2e3)}catch{}},K=async()=>{try{if(i?.account?.webId){const L=await fetch(i.account.webId,{headers:{Accept:"application/json"},credentials:"include"});if(L.ok){const Se=(await L.json()).webIdLinks||{};j(Object.keys(Se))}else j([])}if(i?.account?.pod){const L=await fetch(i.account.pod,{headers:{Accept:"application/json"},credentials:"include"});if(L.ok){const Se=(await L.json()).pods||{};g(Object.keys(Se).map(_e=>({id:_e})))}else g([])}if(i?.account?.clientCredentials){const L=await fetch(i.account.clientCredentials,{headers:{Accept:"application/json"},credentials:"include"});if(L.ok){const Se=(await L.json()).clientCredentials||{};F(Object.entries(Se).map(([_e])=>({id:_e})))}else F([])}}catch(L){console.error("Failed to fetch account data:",L)}};S.useEffect(()=>{K()},[i]);const be=async()=>{if(i?.account?.logout){h(!0);try{(await fetch(i.account.logout,{method:"POST",headers:{Accept:"application/json"},credentials:"include"})).ok&&(await r(),o("/.account/"))}catch{alert("Logout failed")}finally{h(!1)}}},je=async L=>{if(L.preventDefault(),!(!i?.account?.pod||!U.trim())){h(!0);try{const ee=await fetch(i.account.pod,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:U.trim()})});if(ee.ok)G(""),w(!1),await r(),await K();else{const Se=await ee.json().catch(()=>({}));alert(Se.message||"Failed to create pod")}}catch{alert("Network error")}finally{h(!1)}}},b=async L=>{if(L.preventDefault(),!(!i?.account?.webId||!Y.trim())){h(!0);try{const ee=await fetch(i.account.webId,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:Y.trim()})});if(ee.ok)Q(""),H(!1),await K();else{const Se=await ee.json().catch(()=>({}));alert(Se.message||"Failed to link WebID")}}catch{alert("Network error")}finally{h(!1)}}},M=async L=>{if(confirm(`Delete pod ${L}? This cannot be undone.`)){h(!0);try{(await fetch(L,{method:"DELETE",credentials:"include"})).ok?await K():alert("Failed to delete pod")}catch{alert("Network error")}finally{h(!1)}}},q=async L=>{if(L.preventDefault(),!(!i?.account?.clientCredentials||!ye||!ce.trim())){h(!0);try{const ee=await fetch(i.account.clientCredentials,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:ce.trim(),webId:ye})});if(ee.ok){const Se=await ee.json();te({id:Se.id,secret:Se.secret}),$(!1),pe(""),Ee(""),await K()}else{const Se=await ee.json().catch(()=>({}));alert(Se.message||"Failed to create credential")}}catch{alert("Network error")}finally{h(!1)}}},V=()=>{if(y.length===0){alert("Please create a Pod first to get a WebID");return}pe(y[0]),Ee(""),$(!0)},le=async L=>{if(confirm("Delete this credential? This cannot be undone.")){h(!0);try{(await fetch(L,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await K():alert("Failed to delete credential")}catch{alert("Network error")}finally{h(!1)}}};return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[s.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),s.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:s.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:s.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(yi,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[s.jsx(Vg,{className:"w-3.5 h-3.5"}),"About"]}),s.jsxs("button",{onClick:be,disabled:m,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[s.jsx(Wg,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),s.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[d&&s.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:s.jsx(Qn,{className:"w-5 h-5 text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),s.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),s.jsxs(yi,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",s.jsx(vi,{className:"w-4 h-4"})]})]})}),s.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex justify-between items-center mb-1",children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[s.jsx(Qg,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),i?.account?.pod&&s.jsxs("button",{onClick:()=>w(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),s.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),D&&s.jsxs("form",{onSubmit:je,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:U,onChange:L=>G(L.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),s.jsx("button",{type:"submit",disabled:m,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:m?"Creating...":"Create"}),s.jsx("button",{type:"button",onClick:()=>w(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?s.jsx("div",{className:"p-4",children:s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"No Pods found. Create one to get started."})}):s.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(L=>s.jsxs("li",{className:"p-3 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[s.jsx(Bg,{className:"w-4 h-4 text-zinc-400 shrink-0"}),s.jsx("a",{href:L.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:L.id})]}),s.jsx("button",{onClick:()=>M(L.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:s.jsx(Rh,{className:"w-4 h-4"})})]},L.id))})})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex justify-between items-center mb-1",children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[s.jsx(av,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),i?.account?.webId&&s.jsxs("button",{onClick:()=>H(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),s.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),k&&s.jsxs("form",{onSubmit:b,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"url",value:Y,onChange:L=>Q(L.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),s.jsx("button",{type:"submit",disabled:m,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:m?"Linking...":"Link"}),s.jsx("button",{type:"button",onClick:()=>H(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:y.length===0?s.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):s.jsx("ul",{className:"divide-y divide-zinc-100",children:y.map(L=>s.jsxs("li",{className:"p-3 flex items-center gap-3",children:[s.jsx(Gg,{className:"w-4 h-4 text-zinc-400 shrink-0"}),s.jsx("a",{href:L,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:L})]},L))})})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex justify-between items-center mb-1",children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[s.jsx(ks,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),i?.account?.clientCredentials&&s.jsxs("button",{onClick:V,disabled:m,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),"New Key"]})]}),s.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["API Keys for programmatic access. Use with ",s.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),i?.account?.clientCredentials?s.jsxs(s.Fragment,{children:[fe&&s.jsxs("form",{onSubmit:q,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),s.jsx("input",{type:"text",value:ce,onChange:L=>Ee(L.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),s.jsxs("div",{className:"relative",ref:T,children:[s.jsxs("button",{type:"button",onClick:()=>Ge(!De),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[s.jsx("span",{className:"truncate text-zinc-700",children:ye||"Select WebID"}),s.jsx(Og,{className:`w-4 h-4 text-zinc-400 transition-transform ${De?"rotate-180":""}`})]}),De&&s.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:y.map(L=>s.jsx("button",{type:"button",onClick:()=>{pe(L),Ge(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${ye===L?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:L},L))}),s.jsx("input",{type:"hidden",name:"webId",value:ye,required:!0})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:()=>$(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:m,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:m?"Creating...":"Create"})]})]}),ne&&s.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:s.jsx(ks,{className:"w-4 h-4 text-emerald-600"})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),s.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),s.jsx("p",{className:"text-zinc-600 truncate",children:ne.id})]}),s.jsx("button",{onClick:()=>B(ne.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:W==="id"?s.jsx(ea,{className:"w-3.5 h-3.5 text-emerald-500"}):s.jsx(Ks,{className:"w-3.5 h-3.5"})})]}),s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),s.jsx("p",{className:"text-zinc-600 break-all",children:ne.secret})]}),s.jsx("button",{onClick:()=>B(ne.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:W==="secret"?s.jsx(ea,{className:"w-3.5 h-3.5 text-emerald-500"}):s.jsx(Ks,{className:"w-3.5 h-3.5"})})]}),s.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),s.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Oh(ne.id,ne.secret)})]}),s.jsx("button",{onClick:()=>B(Oh(ne.id,ne.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:W==="apikey"?s.jsx(ea,{className:"w-3.5 h-3.5 text-emerald-500"}):s.jsx(Ks,{className:"w-3.5 h-3.5"})})]})]}),s.jsxs("p",{className:"mt-3 text-[10px] text-zinc-400",children:["Use the API Key with: ",s.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),s.jsx("button",{onClick:()=>te(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:X.length===0?s.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):s.jsx("ul",{className:"divide-y divide-zinc-100",children:X.map(L=>s.jsxs("li",{className:"p-3 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[s.jsx(ks,{className:"w-4 h-4 text-zinc-400 shrink-0"}),s.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:L.id})]}),s.jsx("button",{onClick:()=>le(L.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:s.jsx(Rh,{className:"w-4 h-4"})})]},L.id))})})]}):s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:s.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),s.jsxs("section",{children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[s.jsx(Qn,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),s.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),s.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),s.jsx("a",{href:i?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function fv(){const{idpIndex:i,isLoggedIn:r,controls:d}=Ut(),o=ol(),[m,h]=S.useState(!0),[y,j]=S.useState(null),[v,g]=S.useState(null),[D,w]=S.useState([]),[U,G]=S.useState(""),[k,H]=S.useState(null),[Y,Q]=S.useState(null),[X,F]=S.useState(!0),ne=`${i}oidc/consent/`,te=`${i}oidc/pick-webid/`,fe=`${i}oidc/cancel`;S.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),qa(window.location.href),(async()=>{try{const W=await fetch(ne,{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Consent] GET consent response status:",W.status),W.status===401||W.status===403){H("Please sign in to continue authorization."),h(!1);return}if(!W.ok){const Ge=await W.json().catch(()=>({}));throw new Error(Ge.message||"Failed to load consent info")}const se=await W.json();j(se.client||{}),g(se.webId||null);const De=await fetch(te,{headers:{Accept:"application/json"},credentials:"include"});if(De.ok){const T=(await De.json()).webIds||[];w(T),se.webId&&T.includes(se.webId)?G(se.webId):T.length>0&&G(T[0])}}catch(W){H(W.message||"Failed to load consent info")}finally{h(!1)}})()},[ne,te]);const $=W=>{try{const se=new URL(W),De=se.pathname.split("/").filter(Boolean);return{provider:se.host,podId:De[0]??"-",full:W}}catch{return{provider:"-",podId:"-",full:W}}},ye=async W=>{try{await navigator.clipboard.writeText(W),Q(W),setTimeout(()=>Q(null),1200)}catch{Q(null)}},pe=async()=>{try{d?.account?.logout&&await fetch(d.account.logout,{method:"POST",credentials:"include"}),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},ce=async W=>{console.log("[Consent] handleConsent called, allow:",W);try{if(h(!0),H(null),!W){console.log("[Consent] Cancelling...");const K=await(await fetch(fe,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",K),K.location&&(window.location.href=K.location);return}if(U&&U!==v){console.log("[Consent] Picking WebID:",U);const B=await fetch(te,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:U,remember:!1})}),K=await B.json();if(!B.ok)throw new Error(K.message||"Failed to select WebID");K.location&&await fetch(K.location,{credentials:"include"})}const se=await fetch(ne,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({remember:X})}),De=await se.json();if(console.log("[Consent] Response:",se.status,De),console.log("[Consent] Location header:",se.headers.get("Location")),!se.ok)throw new Error(De.message||"Consent failed");const Ge=se.headers.get("Location"),T=De.location||Ge;console.log("[Consent] Redirect URL:",T),T?window.location.href=T:(H("Authorization completed but no redirect URL received. The application may need to restart the login flow."),h(!1))}catch(se){H(se.message||"Consent failed"),h(!1)}},Ee=D.length>0?D:v?[v]:[];return s.jsxs(Kn,{title:"Authorize",subtitle:`${y?.client_name||"Application"} requests access`,icon:Qn,children:[!r&&s.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[s.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),s.jsx("button",{onClick:()=>{qa(window.location.href),o("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),k&&s.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[s.jsx(nm,{className:"w-4 h-4 inline mr-2"}),k]}),m?s.jsx("div",{className:"flex justify-center py-6",children:s.jsx(Ya,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):s.jsxs("div",{className:"space-y-4",children:[(y?.client_uri||y?.client_id)&&s.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[y?.client_uri&&s.jsx("div",{children:s.jsx("a",{href:y.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:y.client_uri})}),y?.client_id&&s.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:y.client_id,children:["ID: ",y.client_id]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),Ee.length>0&&s.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",s.jsx("span",{className:"text-zinc-600",children:$(Ee[0]).provider})]})]}),Ee.length===0?s.jsxs("div",{className:"text-center py-4",children:[s.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),s.jsx("button",{onClick:()=>{qa(window.location.href),o("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):s.jsx("div",{className:"space-y-1",children:Ee.map(W=>{const se=$(W);return s.jsxs("label",{className:om("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",U===W?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[s.jsx("input",{type:"radio",name:"webId",value:W,checked:U===W,onChange:De=>G(De.target.value),className:"text-[#7C4DFF]"}),s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:se.full,children:se.podId})}),s.jsx("button",{type:"button",onClick:De=>{De.preventDefault(),ye(W)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:Y===W?"Copied":"Copy"})]},W)})})]}),s.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[s.jsx("input",{type:"checkbox",checked:X,onChange:W=>F(W.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[s.jsx("button",{onClick:()=>ce(!1),disabled:m,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:"Deny"}),s.jsx("button",{onClick:()=>ce(!0),disabled:m||Ee.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:m?"Authorizing...":"Authorize"})]}),s.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[s.jsx("button",{type:"button",onClick:()=>{qa(window.location.href),o("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),s.jsx("button",{type:"button",onClick:pe,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function dv(){const{controls:i,isLoggedIn:r}=Ut(),d=ol(),[o,m]=S.useState(!1),[h,y]=S.useState(!1);if(r)return s.jsx(sl,{to:"/.account/account/",replace:!0});const j=async v=>{v.preventDefault(),m(!0);const g=new FormData(v.currentTarget).get("email");try{await fetch(i?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:g})}),y(!0)}catch{alert("Failed to send reset email")}finally{m(!1)}};return s.jsx(Kn,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:Ps,showBack:!0,onBack:()=>d("/.account/login/password/"),children:h?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[s.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:s.jsx(ea,{className:"w-5 h-5 text-emerald-600"})}),s.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),s.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{onClick:()=>d("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),s.jsx("button",{onClick:()=>y(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):s.jsxs("form",{className:"space-y-4",onSubmit:j,children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ps,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),s.jsx("button",{type:"submit",disabled:o,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:o?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):s.jsxs(s.Fragment,{children:["Send Reset Link ",s.jsx(vi,{className:"h-4 w-4"})]})})]})})}function hv(){const{controls:i,isLoggedIn:r}=Ut(),d=ol(),[o]=gg(),[m,h]=S.useState(!1),[y,j]=S.useState(!1),[v,g]=S.useState(null),[D,w]=S.useState(""),[U,G]=S.useState(""),k=o.get("rid"),H=D.length>0&&U.length>0&&D===U;if(r)return s.jsx(sl,{to:"/.account/account/",replace:!0});if(!k)return s.jsx(sl,{to:"/.account/login/password/forgot/",replace:!0});const Y=async Q=>{if(Q.preventDefault(),!H){g("Passwords do not match");return}h(!0),g(null);try{const X=i?.password?.reset||"/.account/login/password/reset/",F=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:k,password:D})});if(F.ok)j(!0);else{const ne=await F.json().catch(()=>({}));g(ne.message||"Failed to reset password")}}catch{g("Network error")}finally{h(!1)}};return s.jsx(Kn,{title:"Reset Password",subtitle:"Enter your new password.",icon:Gn,children:y?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[s.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:s.jsx(ea,{className:"w-5 h-5 text-emerald-600"})}),s.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),s.jsx("button",{onClick:()=>d("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):s.jsxs("form",{className:"space-y-4",onSubmit:Y,children:[v&&s.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"password",type:"password",required:!0,value:D,onChange:Q=>w(Q.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),s.jsxs("div",{className:"relative",children:[H?s.jsx(ea,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:U,onChange:Q=>G(Q.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${H?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),s.jsx("button",{type:"submit",disabled:m||!H,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:m?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):s.jsxs(s.Fragment,{children:["Reset Password ",s.jsx(vi,{className:"h-4 w-4"})]})}),s.jsx("div",{className:"text-center",children:s.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function mv(){const{controls:i,isLoggedIn:r}=Ut(),[d,o]=S.useState([]),[m,h]=S.useState(!0);return S.useEffect(()=>{if(r){window.location.href="/.account/account/";return}(async()=>{try{if(i?.main?.logins){const j=await(await fetch(i.main.logins,{headers:{Accept:"application/json"},credentials:"include"})).json(),v=Object.entries(j.logins||{});if(v.length===1){window.location.href=v[0][1];return}if(v.length===0){window.location.href="/.account/login/password/";return}o(v)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=i?.html?.password?.login||"/.account/login/password/"}finally{h(!1)}})()},[i,r]),m?s.jsx(cm,{}):s.jsx(Kn,{title:"Select Login Method",children:s.jsx("div",{className:"space-y-2",children:d.map(([y,j])=>s.jsx("a",{href:j,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:y},y))})})}var rm={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},yv=Object.keys(rm),pv=S.forwardRef(function({control:r,...d},o){const m=S.useRef(null);return S.useLayoutEffect(()=>{const h=m.current;if(!h)return;if(customElements.get("openai-chatkit")){h.setOptions(r.options);return}let y=!0;return customElements.whenDefined("openai-chatkit").then(()=>{y&&h.setOptions(r.options)}),()=>{y=!1}},[r.options]),S.useEffect(()=>{const h=m.current;if(!h)return;const y=new AbortController;for(const j of yv)h.addEventListener(j,v=>{const g=rm[j],D=r.handlers[g];typeof D=="function"&&D(v.detail)},{signal:y.signal});return()=>{y.abort()}},[r.handlers]),s.jsx("openai-chatkit",{ref:h=>{m.current=h,r.setInstance(h),typeof o=="function"?o(h):o&&(o.current=h),m.current},...d})});function Mh(i){return i!==null&&typeof i=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(i))||Array.isArray(i)}function lo(i,r,d=new WeakMap){if(Object.is(i,r))return!0;if(typeof i=="function"&&typeof r=="function")return typeof i==typeof r;if(!Mh(i)||!Mh(r))return!1;const o=d.get(i);if(o&&o===r)return!0;if(d.set(i,r),Array.isArray(i)||Array.isArray(r)){if(!Array.isArray(i)||!Array.isArray(r)||i.length!==r.length)return!1;for(let y=0;y<i.length;y++)if(!lo(i[y],r[y],d))return!1;return!0}const m=Object.keys(i),h=Object.keys(r);if(m.length!==h.length)return!1;for(let y=0;y<m.length;y++){const j=m[y];if(!Object.prototype.hasOwnProperty.call(r,j))return!1;const v=i[j],g=r[j];if(!lo(v,g,d))return!1}return!0}function gv(i){const r=[],d=(h,y)=>y.reduce((j,v)=>j==null?j:j[v],h),o=(h,y)=>(...j)=>{const v=d(i.current,h),g=v?.[y];if(typeof g=="function")return g.apply(v,j)},m=h=>{if(typeof h=="function"){const y=r[r.length-1],j=r.slice(0,-1);return o(j,y)}if(Array.isArray(h)){const y=r.length,j=new Array(h.length);for(let v=0;v<h.length;v++)r[y]=v,j[v]=m(h[v]);return r.length=y,j}if(h&&typeof h=="object"){const y=r.length,j={};for(const v of Object.keys(h))r[y]=v,j[v]=m(h[v]);return r.length=y,j}return h};return m(i.current)}function vv(i){const r=Fs.useRef(i);r.current=i;const d=Fs.useRef(null);return(!d.current||!lo(d.current.snapshot,i))&&(d.current={snapshot:i,shaped:gv(r)}),d.current.shaped}var xv=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function bv(i){const r=S.useRef(null),d=vv(i),o=S.useMemo(()=>xv.reduce((y,j)=>(y[j]=(...v)=>{if(!r.current){console.warn("ChatKit element is not mounted");return}return r.current[j](...v)},y),{}),[]),m=S.useCallback(y=>{r.current=y},[]),h=S.useMemo(()=>{const y={},j={};for(const[v,g]of Object.entries(d))/^on[A-Z]/.test(v)&&v!=="onClientTool"?j[v]=g:y[v]=g;return{setInstance:m,options:y,handlers:j}},[d,m]);return S.useMemo(()=>({...o,control:h,ref:r}),[o,h])}const Uh="http://localhost:3000/chatkit",Lh="domain_pk_localhost_dev";function Sv(){const{isLoggedIn:i}=Ut(),[r,d]=S.useState(""),[o,m]=S.useState(!1),h=S.useCallback(async(j,v={})=>{const g={...v.headers||{}};return r&&(g.Authorization=`Bearer ${r}`),fetch(j,{...v,headers:g,credentials:"include"})},[r]),y=bv({api:{url:Uh,domainKey:Lh,fetch:h},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return s.jsxs("div",{className:"min-h-screen bg-gray-50",children:[s.jsxs("header",{className:"bg-white shadow-sm border-b",children:[s.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:s.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),s.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("button",{onClick:()=>m(!o),className:"text-sm text-gray-500 hover:text-gray-700",children:r?"🔑 API Key Set":"Set API Key"}),s.jsx("div",{className:"text-sm text-gray-500",children:i?s.jsx("span",{className:"text-green-600",children:"● Logged in"}):s.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),o&&s.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:r,onChange:j=>d(j.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),s.jsx("button",{onClick:()=>m(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),s.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),s.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[s.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:s.jsx(pv,{control:y.control,style:{width:"100%",height:"100%"}})}),s.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[s.jsxs("p",{children:[s.jsx("strong",{children:"API URL:"})," ",Uh]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Domain Key:"})," ",Lh]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Auth:"})," ",r?"API Key":i?"Session":"None"]})]})]})]})}function jv(){const{isInitializing:i,initError:r}=Ut();return i?s.jsx(cm,{}):r?s.jsx(nv,{message:r}):s.jsxs(Gp,{children:[s.jsx(_t,{path:"/.account/",element:s.jsx(sv,{})}),s.jsx(_t,{path:"/.account/about/",element:s.jsx(ov,{})}),s.jsx(_t,{path:"/.account/account/",element:s.jsx(cv,{children:s.jsx(rv,{})})}),s.jsx(_t,{path:"/chat/",element:s.jsx(Sv,{})}),s.jsx(_t,{path:"/.account/login/",element:s.jsx(mv,{})}),s.jsx(_t,{path:"/.account/login/password/",element:s.jsx(to,{initialIsRegister:!1})}),s.jsx(_t,{path:"/.account/login/password/register/",element:s.jsx(to,{initialIsRegister:!0})}),s.jsx(_t,{path:"/.account/login/password/forgot/",element:s.jsx(dv,{})}),s.jsx(_t,{path:"/.account/login/password/reset/",element:s.jsx(hv,{})}),s.jsx(_t,{path:"/.account/oidc/consent/",element:s.jsx(fv,{})}),s.jsx(_t,{path:"*",element:s.jsx(sl,{to:"/.account/",replace:!0})})]})}function zv(){return s.jsx(dg,{children:s.jsx(zg,{children:s.jsx(jv,{})})})}Zy.createRoot(document.getElementById("root")).render(s.jsx(Fs.StrictMode,{children:s.jsx(zv,{})}));
|