From 2592ea1c6fefd3545d48df3558d2d7e44b74a7ec Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 2 Aug 2026 21:31:29 +0200 Subject: [PATCH] chore: update --- control-plane/api/internal/demos/demos.go | 19 + control-plane/api/internal/demos/handler.go | 29 + .../api/internal/demos/helm_provisioner.go | 75 + control-plane/api/internal/demos/models.go | 19 +- .../api/internal/demos/provisioner.go | 5 + control-plane/api/internal/demos/service.go | 34 + control-plane/api/internal/router/router.go | 1 + docker-compose.yml | 73 - web/dist/assets/index-BZ4jKugg.js | 1510 ----------------- web/dist/index.html | 13 - web/src/components/EditDomainModal.tsx | 92 + web/src/lib/api.ts | 3 + web/src/pages/backoffice/Demos.tsx | 46 +- web/src/pages/backoffice/PremiumDemos.tsx | 46 +- web/tsconfig.tsbuildinfo | 2 +- 15 files changed, 338 insertions(+), 1629 deletions(-) delete mode 100644 docker-compose.yml delete mode 100644 web/dist/assets/index-BZ4jKugg.js delete mode 100644 web/dist/index.html create mode 100644 web/src/components/EditDomainModal.tsx diff --git a/control-plane/api/internal/demos/demos.go b/control-plane/api/internal/demos/demos.go index 15433d0..ee2c7a5 100644 --- a/control-plane/api/internal/demos/demos.go +++ b/control-plane/api/internal/demos/demos.go @@ -4,6 +4,7 @@ package demos import ( "errors" + "regexp" "strings" "time" ) @@ -33,8 +34,26 @@ const ( var ( ErrInvalidStorageDriver = errors.New("storage_driver doit être 'local' ou 's3'") ErrS3ConfigIncomplete = errors.New("s3_bucket et s3_endpoint sont requis pour le stockage S3") + ErrInvalidDomain = errors.New("nom de domaine invalide") ) +// domainPattern : nom d'hôte RFC 1123 (labels alphanumériques + tirets, +// séparés par des points, au moins un point — pas de protocole ni de chemin). +var domainPattern = regexp.MustCompile(`^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)+$`) + +// ValidateDomain vérifie le format d'un domaine personnalisé. Une chaîne +// vide est valide : elle signifie "revenir au domaine par défaut" (voir +// Service.SetDomain). +func ValidateDomain(domain string) error { + if domain == "" { + return nil + } + if len(domain) > 253 || !domainPattern.MatchString(domain) { + return ErrInvalidDomain + } + return nil +} + // ProvisionConfig : réglages saisis par l'admin à la création (popup de // déploiement), propagés jusqu'au chart backend. Jamais persisté en base — // notamment les secrets (token Telegram, clés NowPayments), qui ne diff --git a/control-plane/api/internal/demos/handler.go b/control-plane/api/internal/demos/handler.go index 15ed5ec..5b209bc 100644 --- a/control-plane/api/internal/demos/handler.go +++ b/control-plane/api/internal/demos/handler.go @@ -179,6 +179,35 @@ func (h *Handler) Delete(c *gin.Context) { c.JSON(http.StatusOK, d) } +type setDomainRequest struct { + // Domain : nom d'hôte sans protocole ni chemin (ex. "boutique.client.com"). + // Vide = réinitialise au domaine par défaut. + Domain string `json:"domain" binding:"omitempty,max=253"` +} + +// SetDomain : POST /demos/:id/domain — modifie (ou réinitialise si vide) le +// domaine public d'une démo. +func (h *Handler) SetDomain(c *gin.Context) { + var req setDomainRequest + if err := c.ShouldBindJSON(&req); err != nil { + c.JSON(http.StatusBadRequest, gin.H{"error": "requête invalide"}) + return + } + d, err := h.svc.SetDomain(c.Param("id"), req.Domain) + if err != nil { + switch { + case errors.Is(err, ErrNotFound): + c.JSON(http.StatusNotFound, gin.H{"error": "démo introuvable"}) + case errors.Is(err, ErrInvalidDomain): + c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) + default: + c.JSON(http.StatusInternalServerError, gin.H{"error": "erreur serveur"}) + } + return + } + c.JSON(http.StatusOK, d) +} + // Extend : POST /demos/:id/extend — prolonge de 30 jours. func (h *Handler) Extend(c *gin.Context) { d, err := h.svc.Extend(c.Param("id")) diff --git a/control-plane/api/internal/demos/helm_provisioner.go b/control-plane/api/internal/demos/helm_provisioner.go index a5e4397..fc5757e 100644 --- a/control-plane/api/internal/demos/helm_provisioner.go +++ b/control-plane/api/internal/demos/helm_provisioner.go @@ -21,6 +21,7 @@ import ( k8sCoreV1 "k8s.io/api/core/v1" k8sErrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/rest" @@ -314,6 +315,80 @@ func (h *HelmProvisioner) MigrateToPremiumNamespace(d Demo, newNamespace, newURL return nil } +// UpdateDomain change le domaine public d'une démo sans changer de +// namespace ni migrer de données : réinstalle l'IngressRoute avec le +// nouveau host (Traefik route sur le nom d'hôte), et si un bot Telegram +// et/ou le load-balancer lbtelegram sont configurés, met à jour leurs +// valeurs dépendantes du domaine (URL de webhook, GATEWAY_URL) puis force +// un redémarrage des pods concernés — un Secret modifié seul ne déclenche +// pas de rollout automatique côté Kubernetes. +// +// newURL : URL complète ("https://hôte[:port]") telle que calculée par +// Service.SetDomain. Best-effort sur backend/lbtelegram : une démo encore +// en cours de provisioning (releases pas encore installées) n'a que son +// IngressRoute mis à jour, sans erreur bloquante. +func (h *HelmProvisioner) UpdateDomain(d Demo, newURL string) error { + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute) + defer cancel() + + host := strings.TrimPrefix(strings.TrimPrefix(newURL, "https://"), "http://") + if i := strings.IndexByte(host, '/'); i >= 0 { + host = host[:i] + } + if i := strings.IndexByte(host, ':'); i >= 0 { + host = host[:i] // Host() de Traefik ne matche pas le port + } + + ingressValues := map[string]interface{}{ + "host": host, + "traefikNamespace": sharedTraefikNamespace, + } + if err := h.upgradeInstallChart(d.Namespace, d.Namespace+"-ingressroute", "ingressroute", ingressValues); err != nil { + return fmt.Errorf("mise à jour ingressroute: %w", err) + } + + if backendValues, err := h.getReleaseValues(d.Namespace, d.Namespace+"-backend"); err == nil { + secrets := asStringMap(backendValues["secrets"]) + if secrets["TELEGRAM_BOT_TOKEN"] != "" { + secrets["TELEGRAM_WEBHOOK_URL"] = newURL + "/webhook/telegram" + backendValues["secrets"] = secrets + if err := h.upgradeInstallChart(d.Namespace, d.Namespace+"-backend", "backend", backendValues); err != nil { + log.Printf("Warning: mise à jour webhook Telegram (backend) échouée pour %s: %v", d.Namespace, err) + } else if err := h.restartDeployment(ctx, d.Namespace, d.Namespace+"-backend-gestion-backend"); err != nil { + log.Printf("Warning: redémarrage backend échoué pour %s: %v", d.Namespace, err) + } + } + } + + if lbValues, ok := h.getReleaseValuesOptional(d.Namespace, d.Namespace+"-lbtelegram"); ok { + env := asStringMap(lbValues["env"]) + env["GATEWAY_URL"] = "https://" + host + lbValues["env"] = env + lbValues["host"] = host + if err := h.upgradeInstallChart(d.Namespace, d.Namespace+"-lbtelegram", "lbtelegram", lbValues); err != nil { + log.Printf("Warning: mise à jour host lbtelegram échouée pour %s: %v", d.Namespace, err) + } else if err := h.restartDeployment(ctx, d.Namespace, d.Namespace+"-lbtelegram-lbtelegram"); err != nil { + log.Printf("Warning: redémarrage lbtelegram échoué pour %s: %v", d.Namespace, err) + } + } + + log.Printf("Domaine de %s mis à jour: %s", d.Namespace, host) + return nil +} + +// restartDeployment force un nouveau rollout (annotation datée sur le pod +// template) pour qu'un Deployment reprenne en compte un Secret modifié sans +// changer d'image ni de spec structurel — Kubernetes ne redémarre pas les +// pods automatiquement dans ce cas. +func (h *HelmProvisioner) restartDeployment(ctx context.Context, namespace, name string) error { + patch := []byte(fmt.Sprintf( + `{"spec":{"template":{"metadata":{"annotations":{"omnex.app/restartedAt":%q}}}}}`, + time.Now().UTC().Format(time.RFC3339), + )) + _, err := h.k8sClient.AppsV1().Deployments(namespace).Patch(ctx, name, types.StrategicMergePatchType, patch, metav1.PatchOptions{}) + return err +} + // migratePostgresData copie les données postgres d'un namespace à l'autre // (pg_dump / psql restore), utilisé par MigrateToPremiumNamespace. func (h *HelmProvisioner) migratePostgresData(ctx context.Context, oldNamespace, newNamespace string) error { diff --git a/control-plane/api/internal/demos/models.go b/control-plane/api/internal/demos/models.go index bbb2f25..f552705 100644 --- a/control-plane/api/internal/demos/models.go +++ b/control-plane/api/internal/demos/models.go @@ -3,14 +3,17 @@ package demos import "time" type Demo struct { - ID string `gorm:"type:uuid;primaryKey" json:"id"` - Username string `gorm:"type:varchar(64);index" json:"username,omitempty"` - Status Status `gorm:"size:20;not null;index" json:"status"` - Namespace string `gorm:"size:63;uniqueIndex" json:"namespace"` - URL string `gorm:"size:255" json:"url"` - TypeAbo string `gorm:"type:varchar(35)" json:"type_abonnement"` - CreatedAt time.Time `json:"created_at"` - ExpiresAt time.Time `json:"expires_at"` + ID string `gorm:"type:uuid;primaryKey" json:"id"` + Username string `gorm:"type:varchar(64);index" json:"username,omitempty"` + Status Status `gorm:"size:20;not null;index" json:"status"` + Namespace string `gorm:"size:63;uniqueIndex" json:"namespace"` + URL string `gorm:"size:255" json:"url"` + // CustomDomain : domaine choisi par l'admin ("" = domaine par défaut + // ".", voir Service.SetDomain). + CustomDomain string `gorm:"size:255" json:"custom_domain,omitempty"` + TypeAbo string `gorm:"type:varchar(35)" json:"type_abonnement"` + CreatedAt time.Time `json:"created_at"` + ExpiresAt time.Time `json:"expires_at"` } func (Demo) TableName() string { return "demos" } diff --git a/control-plane/api/internal/demos/provisioner.go b/control-plane/api/internal/demos/provisioner.go index 47f0ffa..67ec62d 100644 --- a/control-plane/api/internal/demos/provisioner.go +++ b/control-plane/api/internal/demos/provisioner.go @@ -15,6 +15,10 @@ type Provisioner interface { // données postgres, puis supprime l'ancien namespace une fois le // nouveau opérationnel. No-op si d.Namespace == newNamespace. MigrateToPremiumNamespace(d Demo, newNamespace, newURL string) error + // UpdateDomain change le domaine public d'une démo (IngressRoute, et + // re-branchement des webhooks Telegram si configurés) sans changer de + // namespace ni migrer de données. + UpdateDomain(d Demo, newURL string) error GetResourceState(ctx context.Context, namespace string) (ResourceState, error) } @@ -25,6 +29,7 @@ type NoopProvisioner struct{} func (NoopProvisioner) Provision(Demo, []ExternalResource, ProvisionConfig) error { return nil } func (NoopProvisioner) Teardown(Demo) error { return nil } func (NoopProvisioner) MigrateToPremiumNamespace(Demo, string, string) error { return nil } +func (NoopProvisioner) UpdateDomain(Demo, string) error { return nil } func (NoopProvisioner) GetResourceState(ctx context.Context, namespace string) (ResourceState, error) { return ResourceState{}, nil } diff --git a/control-plane/api/internal/demos/service.go b/control-plane/api/internal/demos/service.go index ed877e8..1f26027 100644 --- a/control-plane/api/internal/demos/service.go +++ b/control-plane/api/internal/demos/service.go @@ -3,6 +3,7 @@ package demos import ( "errors" "log" + "strings" "time" "github.com/google/uuid" @@ -192,6 +193,39 @@ func (s *Service) urlFor(namespace string) string { return "https://" + namespace + "." + s.cfg.BaseDomain + portSuffix } +// SetDomain modifie le domaine public d'une démo (IngressRoute, et +// re-branchement des webhooks Telegram si un bot est configuré — voir +// HelmProvisioner.UpdateDomain). domain vide réinitialise au domaine par +// défaut ("."). Contrairement à +// MigrateToPremiumNamespace, c'est une opération rapide (aucune donnée à +// migrer, aucun namespace à recréer) : appliquée de façon synchrone. +func (s *Service) SetDomain(id, domain string) (Demo, error) { + domain = strings.ToLower(strings.TrimSpace(domain)) + if err := ValidateDomain(domain); err != nil { + return Demo{}, err + } + + d, ok := s.store.Get(id) + if !ok { + return Demo{}, ErrNotFound + } + + newURL := domain + if newURL == "" { + newURL = s.urlFor(d.Namespace) + } else { + newURL = "https://" + domain + } + + if err := s.prov.UpdateDomain(d, newURL); err != nil { + return Demo{}, err + } + + d.CustomDomain = domain + d.URL = newURL + return s.store.Update(d) +} + // Delete déclenche le teardown et libère le pool. func (s *Service) Delete(id string) (Demo, error) { d, ok := s.store.Get(id) diff --git a/control-plane/api/internal/router/router.go b/control-plane/api/internal/router/router.go index 0ba3722..9fa833b 100644 --- a/control-plane/api/internal/router/router.go +++ b/control-plane/api/internal/router/router.go @@ -76,6 +76,7 @@ func New(d Deps) *gin.Engine { admin.GET("/demos/:id", d.DemosH.Get) admin.DELETE("/demos/:id", d.DemosH.Delete) admin.POST("/demos/:id/extend", d.DemosH.Extend) + admin.POST("/demos/:id/domain", d.DemosH.SetDomain) admin.POST("/demos/details", d.DemosH.ListDetails) } } diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 52dc6bb..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,73 +0,0 @@ -services: - postgres: - image: postgres:16-alpine - restart: unless-stopped - environment: - POSTGRES_USER: ${POSTGRES_USER:-omnex} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-omnex} - POSTGRES_DB: ${POSTGRES_DB:-omnex} - volumes: - - pgdata:/var/lib/postgresql/data - healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-omnex} -d ${POSTGRES_DB:-omnex}"] - interval: 5s - timeout: 3s - retries: 10 - # Pas de port exposé : accès interne uniquement (défense en profondeur). - - redis: - image: redis:7-alpine - restart: unless-stopped - command: ["redis-server", "--requirepass", "${REDIS_PASSWORD:-omnexredis}", "--maxmemory", "256mb", "--maxmemory-policy", "allkeys-lru"] - volumes: - - redisdata:/data - healthcheck: - test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-omnexredis}", "ping"] - interval: 5s - timeout: 3s - retries: 10 - - web: - image: xor1234/omnex-web:latest - restart: unless-stopped - depends_on: - api: - condition: service_healthy - ports: - - "3000:80" - - api: - image: xor1234/omnex-api:latest - restart: unless-stopped - depends_on: - postgres: - condition: service_healthy - redis: - condition: service_healthy - environment: - OMNEX_ENV: ${OMNEX_ENV:-dev} - OMNEX_ADDR: ":8080" - OMNEX_JWT_SECRET: ${OMNEX_JWT_SECRET} - OMNEX_ALLOWED_ORIGINS: ${OMNEX_ALLOWED_ORIGINS:-http://localhost:3000,http://localhost:5173} - OMNEX_DATABASE_URL: "host=postgres user=${POSTGRES_USER:-omnex} password=${POSTGRES_PASSWORD:-omnex} dbname=${POSTGRES_DB:-omnex} port=5432 sslmode=disable" - OMNEX_REDIS_URL: "redis://:${REDIS_PASSWORD:-omnexredis}@redis:6379/0" - OMNEX_SEED_USERNAME: ${OMNEX_SEED_USERNAME:-admin} - OMNEX_SEED_PASSWORD: ${OMNEX_SEED_PASSWORD} - OMNEX_DEMO_DOMAIN: ${OMNEX_DEMO_DOMAIN:-demo.omnex.app} - FRONTEND_IMAGE_APP: ${FRONTEND_IMAGE_APP:-xor1234/frontend-mln:latest} - BACKEND_IMAGE_APP: ${BACKEND_IMAGE_APP:-xor1234/backend-mln:latest} - KUBECONFIG: /kubeconfig/config - volumes: - - ./deploy/chart-gestion:/charts:ro - - /home/xor_fakers/.kube/config:/kubeconfig/config:ro - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"] - interval: 5s - timeout: 3s - retries: 10 - ports: - - "8080:8080" - -volumes: - pgdata: - redisdata: diff --git a/web/dist/assets/index-BZ4jKugg.js b/web/dist/assets/index-BZ4jKugg.js deleted file mode 100644 index 6ba222e..0000000 --- a/web/dist/assets/index-BZ4jKugg.js +++ /dev/null @@ -1,1510 +0,0 @@ -var R3=Object.defineProperty;var ox=e=>{throw TypeError(e)};var z3=(e,t,n)=>t in e?R3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ix=(e,t,n)=>z3(e,typeof t!="symbol"?t+"":t,n),ax=(e,t,n)=>t.has(e)||ox("Cannot "+n);var sx=(e,t,n)=>(ax(e,t,"read from private field"),n?n.call(e):t.get(e)),lx=(e,t,n)=>t.has(e)?ox("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Em=(e,t,n,r)=>(ax(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function M3(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var zu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D2={exports:{}},cp={},L2={exports:{}},ve={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Jc=Symbol.for("react.element"),N3=Symbol.for("react.portal"),O3=Symbol.for("react.fragment"),D3=Symbol.for("react.strict_mode"),L3=Symbol.for("react.profiler"),F3=Symbol.for("react.provider"),B3=Symbol.for("react.context"),V3=Symbol.for("react.forward_ref"),W3=Symbol.for("react.suspense"),U3=Symbol.for("react.memo"),H3=Symbol.for("react.lazy"),cx=Symbol.iterator;function G3(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}var F2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B2=Object.assign,V2={};function Ks(e,t,n){this.props=e,this.context=t,this.refs=V2,this.updater=n||F2}Ks.prototype.isReactComponent={};Ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function W2(){}W2.prototype=Ks.prototype;function x0(e,t,n){this.props=e,this.context=t,this.refs=V2,this.updater=n||F2}var S0=x0.prototype=new W2;S0.constructor=x0;B2(S0,Ks.prototype);S0.isPureReactComponent=!0;var ux=Array.isArray,U2=Object.prototype.hasOwnProperty,w0={current:null},H2={key:!0,ref:!0,__self:!0,__source:!0};function G2(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)U2.call(t,r)&&!H2.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,H=O[G];if(0>>1;Go(me,D))xeo(Fe,me)?(O[G]=Fe,O[xe]=D,G=xe):(O[G]=me,O[be]=D,G=be);else if(xeo(Fe,D))O[G]=Fe,O[xe]=D,G=xe;else break e}}return R}function o(O,R){var D=O.sortIndex-R.sortIndex;return D!==0?D:O.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,h=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(O){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=O)r(c),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(c)}}function w(O){if(y=!1,S(O),!g)if(n(l)!==null)g=!0,F(k);else{var R=n(c);R!==null&&z(w,R.startTime-O)}}function k(O,R){g=!1,y&&(y=!1,b(T),T=-1),h=!0;var D=p;try{for(S(R),f=n(l);f!==null&&(!(f.expirationTime>R)||O&&!B());){var G=f.callback;if(typeof G=="function"){f.callback=null,p=f.priorityLevel;var H=G(f.expirationTime<=R);R=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(l)&&r(l),S(R)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var be=n(c);be!==null&&z(w,be.startTime-R),Q=!1}return Q}finally{f=null,p=D,h=!1}}var _=!1,C=null,T=-1,A=5,$=-1;function B(){return!(e.unstable_now()-$O||125G?(O.sortIndex=D,t(c,O),n(l)===null&&O===n(c)&&(y?(b(T),T=-1):y=!0,z(w,D-G))):(O.sortIndex=H,t(l,O),g||h||(g=!0,F(k))),O},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(O){var R=p;return function(){var D=p;p=R;try{return O.apply(this,arguments)}finally{p=D}}}})(Q2);q2.exports=Q2;var rI=q2.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var oI=m,Cn=rI;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sg=Object.prototype.hasOwnProperty,iI=/^[: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]*$/,fx={},px={};function aI(e){return sg.call(px,e)?!0:sg.call(fx,e)?!1:iI.test(e)?px[e]=!0:(fx[e]=!0,!1)}function sI(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lI(e,t,n,r){if(t===null||typeof t>"u"||sI(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function on(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new on(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new on(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new on(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new on(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new on(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new on(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new on(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new on(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new on(e,5,!1,e.toLowerCase(),null,!1,!1)});var C0=/[\-:]([a-z])/g;function P0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C0,P0);Lt[t]=new on(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C0,P0);Lt[t]=new on(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C0,P0);Lt[t]=new on(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new on(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new on("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new on(e,1,!1,e.toLowerCase(),null,!0,!0)});function _0(e,t,n,r){var o=Lt.hasOwnProperty(t)?Lt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Am=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cl(e):""}function cI(e){switch(e.tag){case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 2:case 15:return e=Im(e.type,!1),e;case 11:return e=Im(e.type.render,!1),e;case 1:return e=Im(e.type,!0),e;default:return""}}function dg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case za:return"Fragment";case Ra:return"Portal";case lg:return"Profiler";case T0:return"StrictMode";case cg:return"Suspense";case ug:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eP:return(e.displayName||"Context")+".Consumer";case J2:return(e._context.displayName||"Context")+".Provider";case E0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j0:return t=e.displayName||null,t!==null?t:dg(e.type)||"Memo";case Ao:t=e._payload,e=e._init;try{return dg(e(t))}catch{}}return null}function uI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dg(t);case 8:return t===T0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ni(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dI(e){var t=nP(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ou(e){e._valueTracker||(e._valueTracker=dI(e))}function rP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nP(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hf(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}}function fg(e,t){var n=t.checked;return ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ni(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oP(e,t){t=t.checked,t!=null&&_0(e,"checked",t,!1)}function pg(e,t){oP(e,t);var n=ni(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mg(e,t.type,n):t.hasOwnProperty("defaultValue")&&mg(e,t.type,ni(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mg(e,t,n){(t!=="number"||hf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pl=Array.isArray;function ls(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Du.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fI=["Webkit","ms","Moz","O"];Object.keys(Vl).forEach(function(e){fI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vl[t]=Vl[e]})});function lP(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vl.hasOwnProperty(e)&&Vl[e]?(""+t).trim():t+"px"}function cP(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lP(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pI=ot({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vg(e,t){if(t){if(pI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function yg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 bg=null;function $0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xg=null,cs=null,us=null;function bx(e){if(e=nu(e)){if(typeof xg!="function")throw Error(W(280));var t=e.stateNode;t&&(t=mp(t),xg(e.stateNode,e.type,t))}}function uP(e){cs?us?us.push(e):us=[e]:cs=e}function dP(){if(cs){var e=cs,t=us;if(us=cs=null,bx(e),t)for(e=0;e>>=0,e===0?32:31-(CI(e)/PI|0)|0}var Lu=64,Fu=4194304;function _l(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=_l(s):(i&=a,i!==0&&(r=_l(i)))}else a=n&~o,a!==0?r=_l(a):i!==0&&(r=_l(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function eu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lr(t),e[t]=n}function jI(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ul),Ex=" ",jx=!1;function AP(e,t){switch(e){case"keyup":return rR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ma=!1;function iR(e,t){switch(e){case"compositionend":return IP(t);case"keypress":return t.which!==32?null:(jx=!0,Ex);case"textInput":return e=t.data,e===Ex&&jx?null:e;default:return null}}function aR(e,t){if(Ma)return e==="compositionend"||!D0&&AP(e,t)?(e=jP(),Ad=M0=Do=null,Ma=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rx(n)}}function NP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OP(){for(var e=window,t=hf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hf(e.document)}return t}function L0(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")}function hR(e){var t=OP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&NP(n.ownerDocument.documentElement,n)){if(r!==null&&L0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=zx(n,i);var a=zx(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Na=null,_g=null,Gl=null,Tg=!1;function Mx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tg||Na==null||Na!==hf(r)||(r=Na,"selectionStart"in r&&L0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gl&&xc(Gl,r)||(Gl=r,r=wf(_g,"onSelect"),0La||(e.current=Rg[La],Rg[La]=null,La--)}function Be(e,t){La++,Rg[La]=e.current,e.current=t}var ri={},qt=fi(ri),un=fi(!1),ea=ri;function _s(e,t){var n=e.type.contextTypes;if(!n)return ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dn(e){return e=e.childContextTypes,e!=null}function Cf(){Ge(un),Ge(qt)}function Vx(e,t,n){if(qt.current!==ri)throw Error(W(168));Be(qt,t),Be(un,n)}function GP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(W(108,uI(e)||"Unknown",o));return ot({},n,r)}function Pf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ri,ea=qt.current,Be(qt,e),Be(un,un.current),!0}function Wx(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=GP(e,t,ea),r.__reactInternalMemoizedMergedChildContext=e,Ge(un),Ge(qt),Be(qt,e)):Ge(un),Be(un,n)}var Ur=null,hp=!1,Gm=!1;function KP(e){Ur===null?Ur=[e]:Ur.push(e)}function TR(e){hp=!0,KP(e)}function pi(){if(!Gm&&Ur!==null){Gm=!0;var e=0,t=Oe;try{var n=Ur;for(Oe=1;e>=a,o-=a,Yr=1<<32-lr(t)+o|n<T?(A=C,C=null):A=C.sibling;var $=p(b,C,S[T],w);if($===null){C===null&&(C=A);break}e&&C&&$.alternate===null&&t(b,C),v=i($,v,T),_===null?k=$:_.sibling=$,_=$,C=A}if(T===S.length)return n(b,C),Je&&_i(b,T),k;if(C===null){for(;TT?(A=C,C=null):A=C.sibling;var B=p(b,C,$.value,w);if(B===null){C===null&&(C=A);break}e&&C&&B.alternate===null&&t(b,C),v=i(B,v,T),_===null?k=B:_.sibling=B,_=B,C=A}if($.done)return n(b,C),Je&&_i(b,T),k;if(C===null){for(;!$.done;T++,$=S.next())$=f(b,$.value,w),$!==null&&(v=i($,v,T),_===null?k=$:_.sibling=$,_=$);return Je&&_i(b,T),k}for(C=r(b,C);!$.done;T++,$=S.next())$=h(C,b,T,$.value,w),$!==null&&(e&&$.alternate!==null&&C.delete($.key===null?T:$.key),v=i($,v,T),_===null?k=$:_.sibling=$,_=$);return e&&C.forEach(function(Y){return t(b,Y)}),Je&&_i(b,T),k}function x(b,v,S,w){if(typeof S=="object"&&S!==null&&S.type===za&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Nu:e:{for(var k=S.key,_=v;_!==null;){if(_.key===k){if(k=S.type,k===za){if(_.tag===7){n(b,_.sibling),v=o(_,S.props.children),v.return=b,b=v;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ao&&Gx(k)===_.type){n(b,_.sibling),v=o(_,S.props),v.ref=fl(b,_,S),v.return=b,b=v;break e}n(b,_);break}else t(b,_);_=_.sibling}S.type===za?(v=Wi(S.props.children,b.mode,w,S.key),v.return=b,b=v):(w=Ld(S.type,S.key,S.props,null,b.mode,w),w.ref=fl(b,v,S),w.return=b,b=w)}return a(b);case Ra:e:{for(_=S.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(b,v.sibling),v=o(v,S.children||[]),v.return=b,b=v;break e}else{n(b,v);break}else t(b,v);v=v.sibling}v=eh(S,b.mode,w),v.return=b,b=v}return a(b);case Ao:return _=S._init,x(b,v,_(S._payload),w)}if(Pl(S))return g(b,v,S,w);if(sl(S))return y(b,v,S,w);Ku(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(b,v.sibling),v=o(v,S),v.return=b,b=v):(n(b,v),v=Jm(S,b.mode,w),v.return=b,b=v),a(b)):n(b,v)}return x}var Es=QP(!0),ZP=QP(!1),Ef=fi(null),jf=null,Va=null,W0=null;function U0(){W0=Va=jf=null}function H0(e){var t=Ef.current;Ge(Ef),e._currentValue=t}function Ng(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fs(e,t){jf=e,W0=Va=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cn=!0),e.firstContext=null)}function Wn(e){var t=e._currentValue;if(W0!==e)if(e={context:e,memoizedValue:t,next:null},Va===null){if(jf===null)throw Error(W(308));Va=e,jf.dependencies={lanes:0,firstContext:e}}else Va=Va.next=e;return t}var zi=null;function G0(e){zi===null?zi=[e]:zi.push(e)}function JP(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,G0(t)):(n.next=o.next,o.next=n),t.interleaved=n,lo(e,r)}function lo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Io=!1;function K0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,je&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,lo(e,n)}return o=r.interleaved,o===null?(t.next=t,G0(r)):(t.next=o.next,o.next=t),r.interleaved=t,lo(e,n)}function Rd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}function Kx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $f(e,t,n,r){var o=e.updateQueue;Io=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=c=l=null,s=i;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,h=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(h,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(h,f,p):g,p==null)break e;f=ot({},f,p);break e;case 2:Io=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ra|=a,e.lanes=a,e.memoizedState=f}}function Xx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xm.transition;Xm.transition={};try{e(!1),t()}finally{Oe=n,Xm.transition=r}}function v_(){return Un().memoizedState}function AR(e,t,n){var r=Zo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},y_(e))b_(t,n);else if(n=JP(e,t,n,r),n!==null){var o=tn();cr(n,e,r,o),x_(n,t,r)}}function IR(e,t,n){var r=Zo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(y_(e))b_(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,fr(s,a)){var l=t.interleaved;l===null?(o.next=o,G0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=JP(e,t,o,r),n!==null&&(o=tn(),cr(n,e,r,o),x_(n,t,r))}}function y_(e){var t=e.alternate;return e===nt||t!==null&&t===nt}function b_(e,t){Kl=If=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function x_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}var Rf={readContext:Wn,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useInsertionEffect:Vt,useLayoutEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useMutableSource:Vt,useSyncExternalStore:Vt,useId:Vt,unstable_isNewReconciler:!1},RR={readContext:Wn,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:Wn,useEffect:qx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Md(4194308,4,f_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Md(4194308,4,e,t)},useInsertionEffect:function(e,t){return Md(4,2,e,t)},useMemo:function(e,t){var n=kr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=AR.bind(null,nt,e),[r.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:Yx,useDebugValue:ty,useDeferredValue:function(e){return kr().memoizedState=e},useTransition:function(){var e=Yx(!1),t=e[0];return e=$R.bind(null,e[1]),kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=nt,o=kr();if(Je){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Tt===null)throw Error(W(349));na&30||o_(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qx(a_.bind(null,r,i,e),[e]),r.flags|=2048,Ec(9,i_.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kr(),t=Tt.identifierPrefix;if(Je){var n=qr,r=Yr;n=(r&~(1<<32-lr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_c++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Tr]=t,e[kc]=r,$_(e,t,!1,!1),t.stateNode=e;e:{switch(a=yg(n,r),n){case"dialog":Ue("cancel",e),Ue("close",e),o=r;break;case"iframe":case"object":case"embed":Ue("load",e),o=r;break;case"video":case"audio":for(o=0;oAs&&(t.flags|=128,r=!0,pl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Af(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Je)return Wt(t),null}else 2*pt()-i.renderingStartTime>As&&n!==1073741824&&(t.flags|=128,r=!0,pl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pt(),t.sibling=null,n=et.current,Be(et,r?n&1|2:n&1),t):(Wt(t),null);case 22:case 23:return sy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yn&1073741824&&(Wt(t),t.subtreeFlags&6&&(t.flags|=8192)):Wt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function BR(e,t){switch(B0(t),t.tag){case 1:return dn(t.type)&&Cf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return js(),Ge(un),Ge(qt),q0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Y0(t),null;case 13:if(Ge(et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Ts()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ge(et),null;case 4:return js(),null;case 10:return H0(t.type._context),null;case 22:case 23:return sy(),null;case 24:return null;default:return null}}var Yu=!1,Gt=!1,VR=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Wa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ct(e,t,r)}else n.current=null}function Hg(e,t,n){try{n()}catch(r){ct(e,t,r)}}var sS=!1;function WR(e,t){if(Eg=xf,e=OP(),L0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=a),p===i&&++d===r&&(l=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(jg={focusedElem:e,selectionRange:n},xf=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:nr(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(w){ct(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return g=sS,sS=!1,g}function Xl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Hg(t,n,i)}o=o.next}while(o!==r)}}function yp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function R_(e){var t=e.alternate;t!==null&&(e.alternate=null,R_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tr],delete t[kc],delete t[Ig],delete t[PR],delete t[_R])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function z_(e){return e.tag===5||e.tag===3||e.tag===4}function lS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z_(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.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 Kg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kf));else if(r!==4&&(e=e.child,e!==null))for(Kg(e,t,n),e=e.sibling;e!==null;)Kg(e,t,n),e=e.sibling}function Xg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xg(e,t,n),e=e.sibling;e!==null;)Xg(e,t,n),e=e.sibling}var At=null,rr=!1;function Co(e,t,n){for(n=n.child;n!==null;)M_(e,t,n),n=n.sibling}function M_(e,t,n){if(Ar&&typeof Ar.onCommitFiberUnmount=="function")try{Ar.onCommitFiberUnmount(up,n)}catch{}switch(n.tag){case 5:Gt||Wa(n,t);case 6:var r=At,o=rr;At=null,Co(e,t,n),At=r,rr=o,At!==null&&(rr?(e=At,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):At.removeChild(n.stateNode));break;case 18:At!==null&&(rr?(e=At,n=n.stateNode,e.nodeType===8?Hm(e.parentNode,n):e.nodeType===1&&Hm(e,n),yc(e)):Hm(At,n.stateNode));break;case 4:r=At,o=rr,At=n.stateNode.containerInfo,rr=!0,Co(e,t,n),At=r,rr=o;break;case 0:case 11:case 14:case 15:if(!Gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Hg(n,t,a),o=o.next}while(o!==r)}Co(e,t,n);break;case 1:if(!Gt&&(Wa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ct(n,t,s)}Co(e,t,n);break;case 21:Co(e,t,n);break;case 22:n.mode&1?(Gt=(r=Gt)||n.memoizedState!==null,Co(e,t,n),Gt=r):Co(e,t,n);break;default:Co(e,t,n)}}function cS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new VR),t.forEach(function(r){var o=ZR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=pt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HR(r/1960))-r,10e?16:e,Lo===null)var r=!1;else{if(e=Lo,Lo=null,Nf=0,je&6)throw Error(W(331));var o=je;for(je|=4,ee=e.current;ee!==null;){var i=ee,a=i.child;if(ee.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lpt()-iy?Vi(e,0):oy|=n),fn(e,t)}function W_(e,t){t===0&&(e.mode&1?(t=Fu,Fu<<=1,!(Fu&130023424)&&(Fu=4194304)):t=1);var n=tn();e=lo(e,t),e!==null&&(eu(e,t,n),fn(e,n))}function QR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),W_(e,n)}function ZR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),W_(e,n)}var U_;U_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||un.current)cn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cn=!1,LR(e,t,n);cn=!!(e.flags&131072)}else cn=!1,Je&&t.flags&1048576&&XP(t,Tf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nd(e,t),e=t.pendingProps;var o=_s(t,qt.current);fs(t,n),o=Z0(null,t,r,e,o,n);var i=J0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dn(r)?(i=!0,Pf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K0(t),o.updater=vp,t.stateNode=o,o._reactInternals=t,Dg(t,r,e,n),t=Bg(null,t,r,!0,i,n)):(t.tag=0,Je&&i&&F0(t),Jt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ez(r),e=nr(r,e),o){case 0:t=Fg(null,t,r,e,n);break e;case 1:t=oS(null,t,r,e,n);break e;case 11:t=nS(null,t,r,e,n);break e;case 14:t=rS(null,t,r,nr(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),Fg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),oS(e,t,r,o,n);case 3:e:{if(T_(t),e===null)throw Error(W(387));r=t.pendingProps,i=t.memoizedState,o=i.element,e_(e,t),$f(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=$s(Error(W(423)),t),t=iS(e,t,r,n,o);break e}else if(r!==o){o=$s(Error(W(424)),t),t=iS(e,t,r,n,o);break e}else for(bn=Yo(t.stateNode.containerInfo.firstChild),xn=t,Je=!0,or=null,n=ZP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ts(),r===o){t=co(e,t,n);break e}Jt(e,t,r,n)}t=t.child}return t;case 5:return t_(t),e===null&&Mg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,$g(r,o)?a=null:i!==null&&$g(r,i)&&(t.flags|=32),__(e,t),Jt(e,t,a,n),t.child;case 6:return e===null&&Mg(t),null;case 13:return E_(e,t,n);case 4:return X0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Es(t,null,r,n):Jt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),nS(e,t,r,o,n);case 7:return Jt(e,t,t.pendingProps,n),t.child;case 8:return Jt(e,t,t.pendingProps.children,n),t.child;case 12:return Jt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Be(Ef,r._currentValue),r._currentValue=a,i!==null)if(fr(i.value,a)){if(i.children===o.children&&!un.current){t=co(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=eo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ng(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(W(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ng(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Jt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fs(t,n),o=Wn(o),r=r(o),t.flags|=1,Jt(e,t,r,n),t.child;case 14:return r=t.type,o=nr(r,t.pendingProps),o=nr(r.type,o),rS(e,t,r,o,n);case 15:return C_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nr(r,o),Nd(e,t),t.tag=1,dn(r)?(e=!0,Pf(t)):e=!1,fs(t,n),S_(t,r,o),Dg(t,r,o,n),Bg(null,t,r,!0,e,n);case 19:return j_(e,t,n);case 22:return P_(e,t,n)}throw Error(W(156,t.tag))};function H_(e,t){return yP(e,t)}function JR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(e,t,n,r){return new JR(e,t,n,r)}function cy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ez(e){if(typeof e=="function")return cy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E0)return 11;if(e===j0)return 14}return 2}function Jo(e,t){var n=e.alternate;return n===null?(n=Ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ld(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")cy(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case za:return Wi(n.children,o,i,t);case T0:a=8,o|=8;break;case lg:return e=Ln(12,n,t,o|2),e.elementType=lg,e.lanes=i,e;case cg:return e=Ln(13,n,t,o),e.elementType=cg,e.lanes=i,e;case ug:return e=Ln(19,n,t,o),e.elementType=ug,e.lanes=i,e;case tP:return xp(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J2:a=10;break e;case eP:a=9;break e;case E0:a=11;break e;case j0:a=14;break e;case Ao:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=Ln(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Wi(e,t,n,r){return e=Ln(7,e,r,t),e.lanes=n,e}function xp(e,t,n,r){return e=Ln(22,e,r,t),e.elementType=tP,e.lanes=n,e.stateNode={isHidden:!1},e}function Jm(e,t,n){return e=Ln(6,e,null,t),e.lanes=n,e}function eh(e,t,n){return t=Ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tz(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zm(0),this.expirationTimes=zm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zm(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function uy(e,t,n,r,o,i,a,s,l){return e=new tz(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ln(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},K0(i),e}function nz(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y_)}catch(e){console.error(e)}}Y_(),Y2.exports=Tn;var my=Y2.exports,vS=my;ag.createRoot=vS.createRoot,ag.hydrateRoot=vS.hydrateRoot;function q_(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function sz(){return!!(globalThis!=null&&globalThis.document)}function Q_(e){return e.parentElement&&Q_(e.parentElement)?!0:e.hidden}function lz(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function cz(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function uz(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const oe=e=>e?"":void 0,to=e=>e?!0:void 0;function Jg(e){return Array.isArray(e)}function St(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Jg(e)}function dz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function fz(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function ev(e){if(e==null)return e;const{unitless:t}=fz(e);return t||typeof e=="number"?`${e}px`:e}const Z_=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,hy=e=>Object.fromEntries(Object.entries(e).sort(Z_));function yS(e){const t=hy(e);return Object.assign(Object.values(t),t)}function pz(e){const t=Object.keys(hy(e));return new Set(t)}function bS(e){if(!e)return e;e=ev(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function El(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${ev(e)})`),t&&n.push("and",`(max-width: ${ev(t)})`),n.join(" ")}function mz(e){if(!e)return null;e.base=e.base??"0px";const t=yS(e),n=Object.entries(e).sort(Z_).map(([i,a],s,l)=>{let[,c]=l[s+1]??[];return c=parseFloat(c)>0?bS(c):void 0,{_minW:bS(a),breakpoint:i,minW:a,maxW:c,maxWQuery:El(null,c),minWQuery:El(a),minMaxQuery:El(a,c)}}),r=pz(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const a=Object.keys(i);return a.length>0&&a.every(s=>r.has(s))},asObject:hy(e),asArray:yS(e),details:n,get(i){return n.find(a=>a.breakpoint===i)},media:[null,...t.map(i=>El(i)).slice(1)],toArrayValue(i){if(!St(i))throw new Error("toArrayValue: value must be an object");const a=o.map(s=>i[s]??null);for(;dz(a)===null;)a.pop();return a},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((a,s,l)=>{const c=o[l];return c!=null&&s!=null&&(a[c]=s),a},{})}}}function hz(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function le(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function gy(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function vy(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gz(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ye(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=m.createContext(a);s.displayName=t;function l(){var d;const c=m.useContext(s);if(!c&&n){const f=new Error(i??gz(r,o));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,l),f}return c}return[s.Provider,l,s]}const V=(...e)=>e.filter(Boolean).join(" "),vz=e=>e.hasAttribute("tabindex");function yz(e){if(!q_(e)||Q_(e)||cz(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():lz(e)?!0:vz(e)}const bz=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],xz=bz.join(),Sz=e=>e.offsetWidth>0&&e.offsetHeight>0;function wz(e){const t=Array.from(e.querySelectorAll(xz));return t.unshift(e),t.filter(n=>yz(n)&&Sz(n))}function kz(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},J_=Cz(kz),Pz=e=>e.default||e;function yy(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function eT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const tT=Object.freeze(["base","sm","md","lg","xl","2xl"]);function by(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):St(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function _z(e,t=tT){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}const Tz=e=>typeof e=="function";function Xt(e,...t){return Tz(e)?e(...t):e}function Ez(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+o+r)}function jz(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function nT(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:q_(e)&&Ez(e)?e:nT(jz(e))}function rT(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}function $z(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=a=>{const s={};for(let l=0;lo(Array.isArray(a)?a:r.filter(a));return t.map(i).concat(o(r))}function xS(e,t,n={}){const{stop:r,getKey:o}=n;function i(a,s=[]){if(St(a)||Array.isArray(a)){const l={};for(const[c,d]of Object.entries(a)){const f=(o==null?void 0:o(c))??c,p=[...s,f];if(r!=null&&r(a,p))return t(a,s);l[f]=i(d,p)}return l}return t(a,s)}return i(e)}var Lf={exports:{}};Lf.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",g="[object GeneratorFunction]",y="[object Map]",x="[object Number]",b="[object Null]",v="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",_="[object String]",C="[object Undefined]",T="[object WeakMap]",A="[object ArrayBuffer]",$="[object DataView]",B="[object Float32Array]",Y="[object Float64Array]",te="[object Int8Array]",I="[object Int16Array]",K="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",O="[object Uint16Array]",R="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,Q={};Q[B]=Q[Y]=Q[te]=Q[I]=Q[K]=Q[F]=Q[z]=Q[O]=Q[R]=!0,Q[s]=Q[l]=Q[A]=Q[d]=Q[$]=Q[f]=Q[p]=Q[h]=Q[y]=Q[x]=Q[v]=Q[w]=Q[k]=Q[_]=Q[T]=!1;var be=typeof zu=="object"&&zu&&zu.Object===Object&&zu,me=typeof self=="object"&&self&&self.Object===Object&&self,xe=be||me||Function("return this")(),Fe=t&&!t.nodeType&&t,fe=Fe&&!0&&e&&!e.nodeType&&e,Z=fe&&fe.exports===Fe,J=Z&&be.process,Pe=function(){try{var P=fe&&fe.require&&fe.require("util").types;return P||J&&J.binding&&J.binding("util")}catch{}}(),pe=Pe&&Pe.isTypedArray;function ne(P,j,M){switch(M.length){case 0:return P.call(j);case 1:return P.call(j,M[0]);case 2:return P.call(j,M[0],M[1]);case 3:return P.call(j,M[0],M[1],M[2])}return P.apply(j,M)}function ce(P,j){for(var M=-1,re=Array(P);++M-1}function W4(P,j){var M=this.__data__,re=$u(M,P);return re<0?(++this.size,M.push([P,j])):M[re][1]=j,this}Br.prototype.clear=L4,Br.prototype.delete=F4,Br.prototype.get=B4,Br.prototype.has=V4,Br.prototype.set=W4;function wa(P){var j=-1,M=P==null?0:P.length;for(this.clear();++j1?M[ke-1]:void 0,qe=ke>2?M[2]:void 0;for(Le=P.length>3&&typeof Le=="function"?(ke--,Le):void 0,qe&&y3(M[0],M[1],qe)&&(Le=ke<3?void 0:Le,ke=1),j=Object(j);++re-1&&P%1==0&&P0){if(++j>=o)return arguments[0]}else j=0;return P.apply(void 0,arguments)}}function _3(P){if(P!=null){try{return bi.call(P)}catch{}try{return P+""}catch{}}return""}function Ru(P,j){return P===j||P!==P&&j!==j}var wm=X1(function(){return arguments}())?X1:function(P){return il(P)&&qn.call(P,"callee")&&!j4.call(P,"callee")},km=Array.isArray;function Cm(P){return P!=null&&J1(P.length)&&!Pm(P)}function T3(P){return il(P)&&Cm(P)}var Z1=A4||I3;function Pm(P){if(!ki(P))return!1;var j=Au(P);return j==h||j==g||j==c||j==S}function J1(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=a}function ki(P){var j=typeof P;return P!=null&&(j=="object"||j=="function")}function il(P){return P!=null&&typeof P=="object"}function E3(P){if(!il(P)||Au(P)!=v)return!1;var j=U1(P);if(j===null)return!0;var M=qn.call(j,"constructor")&&j.constructor;return typeof M=="function"&&M instanceof M&&bi.call(M)==Tu}var ex=pe?it(pe):o3;function j3(P){return p3(P,tx(P))}function tx(P){return Cm(P)?e3(P):i3(P)}var $3=m3(function(P,j,M,re){Y1(P,j,M,re)});function A3(P){return function(){return P}}function nx(P){return P}function I3(){return!1}e.exports=$3})(Lf,Lf.exports);var Az=Lf.exports;const Fn=b0(Az);function ur(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Fd(e,t,n,r){const o=ur(n);return m.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function oT(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(p,h)=>p!==h}=e,i=ur(r),a=ur(o),[s,l]=m.useState(n),c=t!==void 0,d=c?t:s,f=ur(p=>{const g=typeof p=="function"?p(d):p;a(d,g)&&(c||l(g),i(g))},[c,i,d,a]);return[d,f]}function ou(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=ur(n),a=ur(t),[s,l]=m.useState(e.defaultIsOpen||!1),c=r!==void 0?r:s,d=r!==void 0,f=m.useId(),p=o??`disclosure-${f}`,h=m.useCallback(()=>{d||l(!1),a==null||a()},[d,a]),g=m.useCallback(()=>{d||l(!0),i==null||i()},[d,i]),y=m.useCallback(()=>{c?h():g()},[c,g,h]);function x(v={}){return{...v,"aria-expanded":c,"aria-controls":p,onClick(S){var w;(w=v.onClick)==null||w.call(v,S),y()}}}function b(v={}){return{...v,hidden:!c,id:p}}return{isOpen:c,onOpen:g,onClose:h,onToggle:y,isControlled:d,getButtonProps:x,getDisclosureProps:b}}const no=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,Ff=(e,t)=>{const n=m.useRef(!1),r=m.useRef(!1);m.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Iz(e){return"current"in e}const iT=()=>typeof window<"u";function Rz(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const zz=e=>iT()&&e.test(navigator.vendor),Mz=e=>iT()&&e.test(Rz()),Nz=()=>Mz(/mac|iphone|ipad|ipod/i),Oz=()=>Nz()&&zz(/apple/i);function Dz(e){const{ref:t,elements:n,enabled:r}=e,o=()=>{var i;return((i=t.current)==null?void 0:i.ownerDocument)??document};Fd(o,"pointerdown",i=>{var c,d;if(!Oz()||!r)return;const a=((d=(c=i.composedPath)==null?void 0:c.call(i))==null?void 0:d[0])??i.target,l=(n??[t]).some(f=>{const p=Iz(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});o().activeElement!==a&&l&&(i.preventDefault(),a.focus())})}function Lz(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function bt(...e){return t=>{e.forEach(n=>{Lz(n,t)})}}function xy(...e){return m.useMemo(()=>bt(...e),e)}function Fz(e,t){const n=ur(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const vt={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},br=e=>aT(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Vr=e=>aT(t=>e(t,"~ &"),"[data-peer]",".peer"),aT=(e,...t)=>t.map(e).join(", "),ms={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:br(vt.open),_groupClosed:br(vt.closed),_groupHover:br(vt.hover),_peerHover:Vr(vt.hover),_groupFocus:br(vt.focus),_peerFocus:Vr(vt.focus),_groupFocusVisible:br(vt.focusVisible),_peerFocusVisible:Vr(vt.focusVisible),_groupActive:br(vt.active),_peerActive:Vr(vt.active),_groupDisabled:br(vt.disabled),_peerDisabled:Vr(vt.disabled),_groupInvalid:br(vt.invalid),_peerInvalid:Vr(vt.invalid),_groupChecked:br(vt.checked),_peerChecked:Vr(vt.checked),_groupFocusWithin:br(vt.focusWithin),_peerFocusWithin:Vr(vt.focusWithin),_peerPlaceholderShown:Vr(vt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},sT=Object.keys(ms),Bz=e=>/!(important)?$/.test(e),SS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Vz=(e,t)=>n=>{const r=String(t),o=Bz(r),i=SS(r),a=e?`${e}.${i}`:i;let s=St(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=SS(s),o?`${s} !important`:s};function Sy(e){const{scale:t,transform:n,compose:r}=e;return(i,a)=>{const s=Vz(t,i)(a);let l=(n==null?void 0:n(s,a))??s;return r&&(l=r(l,a)),l}}const Zu=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Rn(e,t){return n=>{const r={property:n,scale:e};return r.transform=Sy({scale:e,transform:t}),r}}const Wz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Uz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Wz(t),transform:n?Sy({scale:n,compose:r}):r}}const lT=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function Hz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...lT].join(" ")}function Gz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...lT].join(" ")}const Kz={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Xz={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Yz(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const qz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},tv={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Qz=new Set(Object.values(tv)),nv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Zz=e=>e.trim();function Jz(e,t){if(e==null||nv.has(e))return e;if(!(rv(e)||nv.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(Zz).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=l in tv?tv[l]:l;c.unshift(d);const f=c.map(p=>{if(Qz.has(p))return p;const h=p.indexOf(" "),[g,y]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=rv(y)?y:y&&y.split(" "),b=`colors.${g}`,v=b in t.__cssMap?t.__cssMap[b].varRef:g;return x?[v,...Array.isArray(x)?x:[x]].join(" "):v});return`${s}(${f.join(", ")})`}const rv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),eM=(e,t)=>Jz(e,t??{});function tM(e){return/^var\(--.+\)$/.test(e)}const nM=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},xr=e=>t=>`${e}(${t})`,Se={filter(e){return e!=="auto"?e:Kz},backdropFilter(e){return e!=="auto"?e:Xz},ring(e){return Yz(Se.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Hz():e==="auto-gpu"?Gz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=nM(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(tM(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:eM,blur:xr("blur"),opacity:xr("opacity"),brightness:xr("brightness"),contrast:xr("contrast"),dropShadow:xr("drop-shadow"),grayscale:xr("grayscale"),hueRotate:e=>xr("hue-rotate")(Se.degree(e)),invert:xr("invert"),saturate:xr("saturate"),sepia:xr("sepia"),bgImage(e){return e==null||rv(e)||nv.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=qz[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},E={borderWidths:Rn("borderWidths"),borderStyles:Rn("borderStyles"),colors:Rn("colors"),borders:Rn("borders"),gradients:Rn("gradients",Se.gradient),radii:Rn("radii",Se.px),space:Rn("space",Zu(Se.vh,Se.px)),spaceT:Rn("space",Zu(Se.vh,Se.px)),degreeT(e){return{property:e,transform:Se.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Sy({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Rn("sizes",Zu(Se.vh,Se.px)),sizesT:Rn("sizes",Zu(Se.vh,Se.fraction)),shadows:Rn("shadows"),logical:Uz,blur:Rn("blur",Se.blur)},Bd={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Se.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:Se.bgClip}};Object.assign(Bd,{bgImage:Bd.backgroundImage,bgImg:Bd.backgroundImage});const Ie={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ie,{rounded:Ie.borderRadius,roundedTop:Ie.borderTopRadius,roundedTopLeft:Ie.borderTopLeftRadius,roundedTopRight:Ie.borderTopRightRadius,roundedTopStart:Ie.borderStartStartRadius,roundedTopEnd:Ie.borderStartEndRadius,roundedBottom:Ie.borderBottomRadius,roundedBottomLeft:Ie.borderBottomLeftRadius,roundedBottomRight:Ie.borderBottomRightRadius,roundedBottomStart:Ie.borderEndStartRadius,roundedBottomEnd:Ie.borderEndEndRadius,roundedLeft:Ie.borderLeftRadius,roundedRight:Ie.borderRightRadius,roundedStart:Ie.borderInlineStartRadius,roundedEnd:Ie.borderInlineEndRadius,borderStart:Ie.borderInlineStart,borderEnd:Ie.borderInlineEnd,borderTopStartRadius:Ie.borderStartStartRadius,borderTopEndRadius:Ie.borderStartEndRadius,borderBottomStartRadius:Ie.borderEndStartRadius,borderBottomEndRadius:Ie.borderEndEndRadius,borderStartRadius:Ie.borderInlineStartRadius,borderEndRadius:Ie.borderInlineEndRadius,borderStartWidth:Ie.borderInlineStartWidth,borderEndWidth:Ie.borderInlineEndWidth,borderStartColor:Ie.borderInlineStartColor,borderEndColor:Ie.borderInlineEndColor,borderStartStyle:Ie.borderInlineStartStyle,borderEndStyle:Ie.borderInlineEndStyle});const rM={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke"),accentColor:E.colors("accentColor"),textFillColor:E.colors("textFillColor")},Bf={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Se.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(Bf,{flexDir:Bf.flexDirection});const Mn={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",Se.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Mn,{w:Mn.width,h:Mn.height,minW:Mn.minWidth,maxW:Mn.maxWidth,minH:Mn.minHeight,maxH:Mn.maxHeight,overscroll:Mn.overscrollBehavior,overscrollX:Mn.overscrollBehaviorX,overscrollY:Mn.overscrollBehaviorY});const oM={filter:{transform:Se.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",Se.brightness),contrast:E.propT("--chakra-contrast",Se.contrast),hueRotate:E.propT("--chakra-hue-rotate",Se.hueRotate),invert:E.propT("--chakra-invert",Se.invert),saturate:E.propT("--chakra-saturate",Se.saturate),dropShadow:E.propT("--chakra-drop-shadow",Se.dropShadow),backdropFilter:{transform:Se.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",Se.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",Se.contrast),backdropHueRotate:E.propT("--chakra-backdrop-hue-rotate",Se.hueRotate),backdropInvert:E.propT("--chakra-backdrop-invert",Se.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",Se.saturate)},iM={ring:{transform:Se.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},aM={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Se.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},cT={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function sM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},cM=lM(sM),uM={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},dM={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},th=(e,t,n)=>{const r={},o=cM(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},fM={srOnly:{transform(e){return e===!0?uM:e==="focusable"?dM:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>th(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>th(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>th(t,e,n)}},Ql={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ql,{insetStart:Ql.insetInlineStart,insetEnd:Ql.insetInlineEnd});const ov={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(ov,{shadow:ov.boxShadow});const He={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(He,{m:He.margin,mt:He.marginTop,mr:He.marginRight,me:He.marginInlineEnd,marginEnd:He.marginInlineEnd,mb:He.marginBottom,ml:He.marginLeft,ms:He.marginInlineStart,marginStart:He.marginInlineStart,mx:He.marginX,my:He.marginY,p:He.padding,pt:He.paddingTop,py:He.paddingY,px:He.paddingX,pb:He.paddingBottom,pl:He.paddingLeft,ps:He.paddingInlineStart,paddingStart:He.paddingInlineStart,pr:He.paddingRight,pe:He.paddingInlineEnd,paddingEnd:He.paddingInlineEnd});const pM={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},mM={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",Se.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},hM={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},gM={clipPath:!0,transform:E.propT("transform",Se.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},vM={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")},yM={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},wy=Fn({},Bd,Ie,rM,Bf,Mn,oM,iM,aM,cT,fM,Ql,ov,He,pM,mM,hM,gM,vM,yM),bM=Object.assign({},He,Mn,Bf,cT,Ql),uT=Object.keys(bM),xM=[...Object.keys(wy),...sT],SM={...wy,...ms},wM=e=>e in SM,kM=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=Xt(e[a],t);if(s==null)continue;if(s=St(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!PM(t),TM=(e,t)=>{if(t==null)return t;const n=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.varRef},r=a=>n(a)??a,[o,i]=CM(t);return t=n(o)??r(i)??r(t),t};function EM(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,a=!1)=>{var d;const s=Xt(i,r),l=kM(s)(r);let c={};for(let f in l){const p=l[f];let h=Xt(p,r);f in n&&(f=n[f]),_M(f,h)&&(h=TM(r,h));let g=t[f];if(g===!0&&(g={property:f}),St(h)){c[f]=c[f]??{},c[f]=Fn({},c[f],o(h,!0));continue}let y=((d=g==null?void 0:g.transform)==null?void 0:d.call(g,h,r,s))??h;y=g!=null&&g.processResult?o(y,!0):y;const x=Xt(g==null?void 0:g.property,r);if(!a&&(g!=null&&g.static)){const b=Xt(g.static,r);c=Fn({},c,b)}if(x&&Array.isArray(x)){for(const b of x)c[b]=y;continue}if(x){x==="&"&&St(y)?c=Fn({},c,y):c[x]=y;continue}if(St(y)){c=Fn({},c,y);continue}c[f]=y}return c};return o}const dT=e=>t=>EM({theme:t,pseudos:ms,configs:wy})(e);function ie(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function jM(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function $M(e,t){if(Array.isArray(e))return e;if(St(e))return t(e);if(e!=null)return[e]}function AM(e,t){for(let n=t+1;n{Fn(s,{[S]:d?v[S]:{[b]:v[S]}})});continue}if(!f){d?Fn(s,v):s[b]=v;continue}s[b]=v}}return s}}function RM(e){return t=>{const{variant:n,size:r,theme:o}=t,i=IM(o);return Fn({},Xt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Ce(e){return yy(e,["styleConfig","size","variant","colorScheme"])}function fT(e){return St(e)&&e.reference?e.reference:String(e)}const Pp=(e,...t)=>t.map(fT).join(` ${e} `).replace(/calc/g,""),wS=(...e)=>`calc(${Pp("+",...e)})`,kS=(...e)=>`calc(${Pp("-",...e)})`,iv=(...e)=>`calc(${Pp("*",...e)})`,CS=(...e)=>`calc(${Pp("/",...e)})`,PS=e=>{const t=fT(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:iv(t,-1)},Hr=Object.assign(e=>({add:(...t)=>Hr(wS(e,...t)),subtract:(...t)=>Hr(kS(e,...t)),multiply:(...t)=>Hr(iv(e,...t)),divide:(...t)=>Hr(CS(e,...t)),negate:()=>Hr(PS(e)),toString:()=>e.toString()}),{add:wS,subtract:kS,multiply:iv,divide:CS,negate:PS});function zM(e,t="-"){return e.replace(/\s+/g,t)}function MM(e){const t=zM(e.toString());return OM(NM(t))}function NM(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function OM(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function DM(e,t=""){return[t,e].filter(Boolean).join("-")}function LM(e,t){return`var(${e}${t?`, ${t}`:""})`}function FM(e,t=""){return MM(`--${DM(e,t)}`)}function X(e,t,n){const r=FM(e,n);return{variable:r,reference:LM(r,t)}}function pT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=X(`${e}-${o}`,i);continue}n[r]=X(`${e}-${r}`)}return n}const BM=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function VM(e){return eT(e,BM)}function WM(e){return e.semanticTokens}function UM(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function HM(e){const t=VM(e),n=WM(e),r=i=>sT.includes(i)||i==="default",o={};return xS(t,(i,a)=>{i!=null&&(o[a.join(".")]={isSemantic:!1,value:i})}),xS(n,(i,a)=>{i!=null&&(o[a.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function _S(e,t){return X(String(e).replace(/\./g,"-"),void 0,t)}function GM(e){var a;const t=HM(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const o={};function i(s,l){const d=[String(s).split(".")[0],l].join(".");if(!t[d])return l;const{reference:p}=_S(d,n);return p}for(const[s,l]of Object.entries(t)){const{isSemantic:c,value:d}=l,{variable:f,reference:p}=_S(s,n);if(!c){if(s.startsWith("space")){const g=s.split("."),[y,...x]=g,b=`${y}.-${x.join(".")}`,v=Hr.negate(d),S=Hr.negate(p);o[b]={value:v,var:f,varRef:S}}r[f]=d,o[s]={value:d,var:f,varRef:p};continue}const h=St(d)?d:{default:d};r=Fn(r,Object.entries(h).reduce((g,[y,x])=>{if(!x)return g;const b=i(s,`${x}`);if(y==="default")return g[f]=b,g;const v=(ms==null?void 0:ms[y])??y;return g[v]={[f]:b},g},{})),o[s]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:o}}function KM(e){const t=UM(e),{cssMap:n,cssVars:r}=GM(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:mz(t.breakpoints)}),t}function $e(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return $e(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return $e(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}const XM=$e("accordion").parts("root","container","button","panel","icon"),mT=$e("alert").parts("title","description","container","icon","spinner"),YM=$e("avatar").parts("label","badge","container","excessLabel","group"),qM=$e("breadcrumb").parts("link","item","container","separator");$e("button").parts();const hT=$e("checkbox").parts("control","icon","container","label");$e("progress").parts("track","filledTrack","label");const QM=$e("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),ZM=$e("editable").parts("preview","input","textarea"),gT=$e("form").parts("container","requiredIndicator","helperText"),JM=$e("formError").parts("text","icon"),ky=$e("input").parts("addon","field","element","group"),e6=$e("list").parts("container","item","icon"),vT=$e("menu").parts("button","list","item","groupTitle","icon","command","divider"),yT=$e("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),t6=$e("numberinput").parts("root","field","stepperGroup","stepper");$e("pininput").parts("field");const n6=$e("popover").parts("content","header","body","footer","popper","arrow","closeButton"),bT=$e("progress").parts("label","filledTrack","track"),xT=$e("radio").parts("container","control","label"),r6=$e("select").parts("field","icon"),ST=$e("slider").parts("container","track","thumb","filledTrack","mark"),o6=$e("stat").parts("container","label","helpText","number","icon"),wT=$e("switch").parts("container","track","thumb","label"),i6=$e("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),a6=$e("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),s6=$e("tag").parts("container","label","closeButton"),kT=$e("card").parts("container","header","body","footer");$e("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:l6,defineMultiStyleConfig:c6}=ie(XM.keys),u6={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},d6={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},f6={pt:"2",px:"4",pb:"5"},p6={fontSize:"1.25em"},m6=l6({container:u6,button:d6,panel:f6,icon:p6}),h6=c6({baseStyle:m6});function Ni(e,t,n){return Math.min(Math.max(e,n),t)}class jl extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function Cy(e){if(typeof e!="string")throw new jl(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=k6.test(e)?y6(e):e;const n=b6.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt($c(s,2),16)),parseInt($c(a[3]||"f",2),16)/255]}const r=x6.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=S6.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=w6.exec(t);if(i){const[a,s,l,c]=Array.from(i).slice(1).map(parseFloat);if(Ni(0,100,s)!==s)throw new jl(e);if(Ni(0,100,l)!==l)throw new jl(e);return[...C6(a,s,l),Number.isNaN(c)?1:c]}throw new jl(e)}function g6(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const TS=e=>parseInt(e.replace(/_/g,""),36),v6="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=TS(t.substring(0,3)),r=TS(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function y6(e){const t=e.toLowerCase().trim(),n=v6[g6(t)];if(!n)throw new jl(e);return`#${n}`}const $c=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),b6=new RegExp(`^#${$c("([a-f0-9])",3)}([a-f0-9])?$`,"i"),x6=new RegExp(`^#${$c("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),S6=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${$c(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),w6=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,k6=/^[a-z]+$/i,ES=e=>Math.round(e*255),C6=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(ES);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const d=r-i/2,f=s+d,p=l+d,h=c+d;return[f,p,h].map(ES)};function P6(e,t,n,r){return`rgba(${Ni(0,255,e).toFixed()}, ${Ni(0,255,t).toFixed()}, ${Ni(0,255,n).toFixed()}, ${parseFloat(Ni(0,1,r).toFixed(3))})`}function _6(e,t){const[n,r,o,i]=Cy(e);return P6(n,r,o,i-t)}function T6(e){const[t,n,r,o]=Cy(e);let i=a=>{const s=Ni(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const E6=e=>Object.keys(e).length===0;function j6(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=j6(e,`colors.${t}`,t);try{return T6(r),r}catch{return n??"#000000"}},$6=e=>{const[t,n,r]=Cy(e);return(t*299+n*587+r*114)/1e3},A6=e=>t=>{const n=Ke(t,e);return $6(n)<128?"dark":"light"},I6=e=>t=>A6(e)(t)==="dark",Et=(e,t)=>n=>{const r=Ke(n,e);return _6(r,1-t)};function jS(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}const R6=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function z6(e){const t=R6();return!e||E6(e)?t:e.string&&e.colors?N6(e.string,e.colors):e.string&&!e.colors?M6(e.string):e.colors&&!e.string?O6(e.colors):t}function M6(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function N6(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Py(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function CT(e){return St(e)&&e.reference?e.reference:String(e)}const _p=(e,...t)=>t.map(CT).join(` ${e} `).replace(/calc/g,""),$S=(...e)=>`calc(${_p("+",...e)})`,AS=(...e)=>`calc(${_p("-",...e)})`,av=(...e)=>`calc(${_p("*",...e)})`,IS=(...e)=>`calc(${_p("/",...e)})`,RS=e=>{const t=CT(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:av(t,-1)},Gr=Object.assign(e=>({add:(...t)=>Gr($S(e,...t)),subtract:(...t)=>Gr(AS(e,...t)),multiply:(...t)=>Gr(av(e,...t)),divide:(...t)=>Gr(IS(e,...t)),negate:()=>Gr(RS(e)),toString:()=>e.toString()}),{add:$S,subtract:AS,multiply:av,divide:IS,negate:RS});function D6(e){return!Number.isInteger(parseFloat(e.toString()))}function L6(e,t="-"){return e.replace(/\s+/g,t)}function PT(e){const t=L6(e.toString());return t.includes("\\.")?e:D6(e)?t.replace(".","\\."):e}function F6(e,t=""){return[t,PT(e)].filter(Boolean).join("-")}function B6(e,t){return`var(${PT(e)}${t?`, ${t}`:""})`}function V6(e,t=""){return`--${F6(e,t)}`}function ut(e,t){const n=V6(e,t==null?void 0:t.prefix);return{variable:n,reference:B6(n,W6(t==null?void 0:t.fallback))}}function W6(e){return e==null?void 0:e.reference}const{definePartsStyle:iu,defineMultiStyleConfig:U6}=ie(mT.keys),Sn=X("alert-fg"),uo=X("alert-bg"),H6=iu({container:{bg:uo.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Sn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Sn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function _y(e){const{theme:t,colorScheme:n}=e,r=Et(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const G6=iu(e=>{const{colorScheme:t}=e,n=_y(e);return{container:{[Sn.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[uo.variable]:n.dark}}}}),K6=iu(e=>{const{colorScheme:t}=e,n=_y(e);return{container:{[Sn.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[uo.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Sn.reference}}}),X6=iu(e=>{const{colorScheme:t}=e,n=_y(e);return{container:{[Sn.variable]:`colors.${t}.600`,[uo.variable]:n.light,_dark:{[Sn.variable]:`colors.${t}.200`,[uo.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Sn.reference}}}),Y6=iu(e=>{const{colorScheme:t}=e;return{container:{[Sn.variable]:"colors.white",[uo.variable]:`colors.${t}.600`,_dark:{[Sn.variable]:"colors.gray.900",[uo.variable]:`colors.${t}.200`},color:Sn.reference}}}),q6={subtle:G6,"left-accent":K6,"top-accent":X6,solid:Y6},Q6=U6({baseStyle:H6,variants:q6,defaultProps:{variant:"subtle",colorScheme:"blue"}}),_T={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Z6={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},J6={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},TT={..._T,...Z6,container:J6},eN=e=>typeof e=="function";function nn(e,...t){return eN(e)?e(...t):e}const{definePartsStyle:ET,defineMultiStyleConfig:tN}=ie(YM.keys),hs=X("avatar-border-color"),Zl=X("avatar-bg"),Ac=X("avatar-font-size"),Is=X("avatar-size"),nN={borderRadius:"full",border:"0.2em solid",borderColor:hs.reference,[hs.variable]:"white",_dark:{[hs.variable]:"colors.gray.800"}},rN={bg:Zl.reference,fontSize:Ac.reference,width:Is.reference,height:Is.reference,lineHeight:"1",[Zl.variable]:"colors.gray.200",_dark:{[Zl.variable]:"colors.whiteAlpha.400"}},oN=e=>{const{name:t,theme:n}=e,r=t?z6({string:t}):"colors.gray.400",o=I6(r)(n);let i="white";return o||(i="gray.800"),{bg:Zl.reference,fontSize:Ac.reference,color:i,borderColor:hs.reference,verticalAlign:"top",width:Is.reference,height:Is.reference,"&:not([data-loaded])":{[Zl.variable]:r},[hs.variable]:"colors.white",_dark:{[hs.variable]:"colors.gray.800"}}},iN={fontSize:Ac.reference,lineHeight:"1"},aN=ET(e=>({badge:nn(nN,e),excessLabel:nn(rN,e),container:nn(oN,e),label:iN}));function Po(e){const t=e!=="100%"?TT[e]:void 0;return ET({container:{[Is.variable]:t??e,[Ac.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Is.variable]:t??e,[Ac.variable]:`calc(${t??e} / 2.5)`}})}const sN={"2xs":Po(4),xs:Po(6),sm:Po(8),md:Po(12),lg:Po(16),xl:Po(24),"2xl":Po(32),full:Po("100%")},lN=tN({baseStyle:aN,sizes:sN,defaultProps:{size:"md"}}),mt=pT("badge",["bg","color","shadow"]),cN={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},uN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.500`,.6)(n);return{[mt.bg.variable]:`colors.${t}.500`,[mt.color.variable]:"colors.white",_dark:{[mt.bg.variable]:r,[mt.color.variable]:"colors.whiteAlpha.800"}}},dN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.16)(n);return{[mt.bg.variable]:`colors.${t}.100`,[mt.color.variable]:`colors.${t}.800`,_dark:{[mt.bg.variable]:r,[mt.color.variable]:`colors.${t}.200`}}},fN=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.8)(n);return{[mt.color.variable]:`colors.${t}.500`,_dark:{[mt.color.variable]:r},[mt.shadow.variable]:`inset 0 0 0px 1px ${mt.color.reference}`}},pN={solid:uN,subtle:dN,outline:fN},Jl={baseStyle:cN,variants:pN,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:mN,definePartsStyle:hN}=ie(qM.keys),nh=X("breadcrumb-link-decor"),gN={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:nh.reference,[nh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[nh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},vN=hN({link:gN}),yN=mN({baseStyle:vN}),bN={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},jT=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:q("gray.800","whiteAlpha.900")(e),_hover:{bg:q("gray.100","whiteAlpha.200")(e)},_active:{bg:q("gray.200","whiteAlpha.300")(e)}};const r=Et(`${t}.200`,.12)(n),o=Et(`${t}.200`,.24)(n);return{color:q(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:q(`${t}.50`,r)(e)},_active:{bg:q(`${t}.100`,o)(e)}}},xN=e=>{const{colorScheme:t}=e,n=q("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...nn(jT,e)}},SN={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},wN=e=>{const{colorScheme:t}=e;if(t==="gray"){const s=q("gray.100","whiteAlpha.200")(e);return{bg:s,color:q("gray.800","whiteAlpha.900")(e),_hover:{bg:q("gray.200","whiteAlpha.300")(e),_disabled:{bg:s}},_active:{bg:q("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=SN[t]??{},a=q(n,`${t}.200`)(e);return{bg:a,color:q(r,"gray.800")(e),_hover:{bg:q(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:q(i,`${t}.400`)(e)}}},kN=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:q(`${t}.700`,`${t}.500`)(e)}}},CN={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},PN={ghost:jT,outline:xN,solid:wN,link:kN,unstyled:CN},_N={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},TN={baseStyle:bN,variants:PN,sizes:_N,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ui,defineMultiStyleConfig:EN}=ie(kT.keys),Vf=X("card-bg"),ro=X("card-padding"),$T=X("card-shadow"),Vd=X("card-radius"),AT=X("card-border-width","0"),IT=X("card-border-color"),jN=Ui({container:{[Vf.variable]:"colors.chakra-body-bg",backgroundColor:Vf.reference,boxShadow:$T.reference,borderRadius:Vd.reference,color:"chakra-body-text",borderWidth:AT.reference,borderColor:IT.reference},body:{padding:ro.reference,flex:"1 1 0%"},header:{padding:ro.reference},footer:{padding:ro.reference}}),$N={sm:Ui({container:{[Vd.variable]:"radii.base",[ro.variable]:"space.3"}}),md:Ui({container:{[Vd.variable]:"radii.md",[ro.variable]:"space.5"}}),lg:Ui({container:{[Vd.variable]:"radii.xl",[ro.variable]:"space.7"}})},AN={elevated:Ui({container:{[$T.variable]:"shadows.base",_dark:{[Vf.variable]:"colors.gray.700"}}}),outline:Ui({container:{[AT.variable]:"1px",[IT.variable]:"colors.chakra-border-color"}}),filled:Ui({container:{[Vf.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ro.variable]:0},header:{[ro.variable]:0},footer:{[ro.variable]:0}}},IN=EN({baseStyle:jN,variants:AN,sizes:$N,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Wd,defineMultiStyleConfig:RN}=ie(hT.keys),ec=X("checkbox-size"),zN=e=>{const{colorScheme:t}=e;return{w:ec.reference,h:ec.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:q(`${t}.500`,`${t}.200`)(e),borderColor:q(`${t}.500`,`${t}.200`)(e),color:q("white","gray.900")(e),_hover:{bg:q(`${t}.600`,`${t}.300`)(e),borderColor:q(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:q("gray.200","transparent")(e),bg:q("gray.200","whiteAlpha.300")(e),color:q("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:q(`${t}.500`,`${t}.200`)(e),borderColor:q(`${t}.500`,`${t}.200`)(e),color:q("white","gray.900")(e)},_disabled:{bg:q("gray.100","whiteAlpha.100")(e),borderColor:q("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:q("red.500","red.300")(e)}}},MN={_disabled:{cursor:"not-allowed"}},NN={userSelect:"none",_disabled:{opacity:.4}},ON={transitionProperty:"transform",transitionDuration:"normal"},DN=Wd(e=>({icon:ON,container:MN,control:nn(zN,e),label:NN})),LN={sm:Wd({control:{[ec.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Wd({control:{[ec.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Wd({control:{[ec.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ro=RN({baseStyle:DN,sizes:LN,defaultProps:{size:"md",colorScheme:"blue"}}),tc=ut("close-button-size"),hl=ut("close-button-bg"),FN={w:[tc.reference],h:[tc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[hl.variable]:"colors.blackAlpha.100",_dark:{[hl.variable]:"colors.whiteAlpha.100"}},_active:{[hl.variable]:"colors.blackAlpha.200",_dark:{[hl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:hl.reference},BN={lg:{[tc.variable]:"sizes.10",fontSize:"md"},md:{[tc.variable]:"sizes.8",fontSize:"xs"},sm:{[tc.variable]:"sizes.6",fontSize:"2xs"}},VN={baseStyle:FN,sizes:BN,defaultProps:{size:"md"}},{variants:WN,defaultProps:UN}=Jl,HN={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:mt.bg.reference,color:mt.color.reference,boxShadow:mt.shadow.reference},GN={baseStyle:HN,variants:WN,defaultProps:UN},KN={w:"100%",mx:"auto",maxW:"prose",px:"4"},XN={baseStyle:KN},YN={opacity:.6,borderColor:"inherit"},qN={borderStyle:"solid"},QN={borderStyle:"dashed"},ZN={solid:qN,dashed:QN},JN={baseStyle:YN,variants:ZN,defaultProps:{variant:"solid"}},{definePartsStyle:sv,defineMultiStyleConfig:eO}=ie(QM.keys),rh=X("drawer-bg"),oh=X("drawer-box-shadow");function Pa(e){return sv(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const tO={bg:"blackAlpha.600",zIndex:"modal"},nO={display:"flex",zIndex:"modal",justifyContent:"center"},rO=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[rh.variable]:"colors.white",[oh.variable]:"shadows.lg",_dark:{[rh.variable]:"colors.gray.700",[oh.variable]:"shadows.dark-lg"},bg:rh.reference,boxShadow:oh.reference}},oO={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},iO={position:"absolute",top:"2",insetEnd:"3"},aO={px:"6",py:"2",flex:"1",overflow:"auto"},sO={px:"6",py:"4"},lO=sv(e=>({overlay:tO,dialogContainer:nO,dialog:nn(rO,e),header:oO,closeButton:iO,body:aO,footer:sO})),cO={xs:Pa("xs"),sm:Pa("md"),md:Pa("lg"),lg:Pa("2xl"),xl:Pa("4xl"),full:Pa("full")},uO=eO({baseStyle:lO,sizes:cO,defaultProps:{size:"xs"}}),{definePartsStyle:dO,defineMultiStyleConfig:fO}=ie(ZM.keys),pO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},mO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},hO={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},gO=dO({preview:pO,input:mO,textarea:hO}),vO=fO({baseStyle:gO}),{definePartsStyle:yO,defineMultiStyleConfig:bO}=ie(gT.keys),gs=X("form-control-color"),xO={marginStart:"1",[gs.variable]:"colors.red.500",_dark:{[gs.variable]:"colors.red.300"},color:gs.reference},SO={mt:"2",[gs.variable]:"colors.gray.600",_dark:{[gs.variable]:"colors.whiteAlpha.600"},color:gs.reference,lineHeight:"normal",fontSize:"sm"},wO=yO({container:{width:"100%",position:"relative"},requiredIndicator:xO,helperText:SO}),kO=bO({baseStyle:wO}),{definePartsStyle:CO,defineMultiStyleConfig:PO}=ie(JM.keys),vs=X("form-error-color"),_O={[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},TO={marginEnd:"0.5em",[vs.variable]:"colors.red.500",_dark:{[vs.variable]:"colors.red.300"},color:vs.reference},EO=CO({text:_O,icon:TO}),jO=PO({baseStyle:EO}),$O={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},AO={baseStyle:$O},IO={fontFamily:"heading",fontWeight:"bold"},RO={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},zO={baseStyle:IO,sizes:RO,defaultProps:{size:"xl"}},{definePartsStyle:Qr,defineMultiStyleConfig:MO}=ie(ky.keys),Ha=X("input-height"),Ga=X("input-font-size"),Ka=X("input-padding"),Xa=X("input-border-radius"),NO=Qr({addon:{height:Ha.reference,fontSize:Ga.reference,px:Ka.reference,borderRadius:Xa.reference},field:{width:"100%",height:Ha.reference,fontSize:Ga.reference,px:Ka.reference,borderRadius:Xa.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),_o={lg:{[Ga.variable]:"fontSizes.lg",[Ka.variable]:"space.4",[Xa.variable]:"radii.md",[Ha.variable]:"sizes.12"},md:{[Ga.variable]:"fontSizes.md",[Ka.variable]:"space.4",[Xa.variable]:"radii.md",[Ha.variable]:"sizes.10"},sm:{[Ga.variable]:"fontSizes.sm",[Ka.variable]:"space.3",[Xa.variable]:"radii.sm",[Ha.variable]:"sizes.8"},xs:{[Ga.variable]:"fontSizes.xs",[Ka.variable]:"space.2",[Xa.variable]:"radii.sm",[Ha.variable]:"sizes.6"}},OO={lg:Qr({field:_o.lg,group:_o.lg}),md:Qr({field:_o.md,group:_o.md}),sm:Qr({field:_o.sm,group:_o.sm}),xs:Qr({field:_o.xs,group:_o.xs})};function Ty(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||q("blue.500","blue.300")(e),errorBorderColor:n||q("red.500","red.300")(e)}}const DO=Qr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ty(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0 0 0 1px ${Ke(t,r)}`},_focusVisible:{zIndex:1,borderColor:Ke(t,n),boxShadow:`0 0 0 1px ${Ke(t,n)}`}},addon:{border:"1px solid",borderColor:q("inherit","whiteAlpha.50")(e),bg:q("gray.100","whiteAlpha.300")(e)}}}),LO=Qr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ty(e);return{field:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e),_hover:{bg:q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r)},_focusVisible:{bg:"transparent",borderColor:Ke(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e)}}}),FO=Qr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ty(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0px 1px 0px 0px ${Ke(t,r)}`},_focusVisible:{borderColor:Ke(t,n),boxShadow:`0px 1px 0px 0px ${Ke(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),BO=Qr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),VO={outline:DO,filled:LO,flushed:FO,unstyled:BO},Me=MO({baseStyle:NO,sizes:OO,variants:VO,defaultProps:{size:"md",variant:"outline"}}),ih=X("kbd-bg"),WO={[ih.variable]:"colors.gray.100",_dark:{[ih.variable]:"colors.whiteAlpha.100"},bg:ih.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},UO={baseStyle:WO},HO={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},GO={baseStyle:HO},{defineMultiStyleConfig:KO,definePartsStyle:XO}=ie(e6.keys),YO={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},qO=XO({icon:YO}),QO=KO({baseStyle:qO}),{defineMultiStyleConfig:ZO,definePartsStyle:JO}=ie(vT.keys),Cr=X("menu-bg"),ah=X("menu-shadow"),eD={[Cr.variable]:"#fff",[ah.variable]:"shadows.sm",_dark:{[Cr.variable]:"colors.gray.700",[ah.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Cr.reference,boxShadow:ah.reference},tD={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Cr.variable]:"colors.gray.100",_dark:{[Cr.variable]:"colors.whiteAlpha.100"}},_active:{[Cr.variable]:"colors.gray.200",_dark:{[Cr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Cr.variable]:"colors.gray.100",_dark:{[Cr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Cr.reference},nD={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},rD={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},oD={opacity:.6},iD={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},aD={transitionProperty:"common",transitionDuration:"normal"},sD=JO({button:aD,list:eD,item:tD,groupTitle:nD,icon:rD,command:oD,divider:iD}),lD=ZO({baseStyle:sD}),{defineMultiStyleConfig:cD,definePartsStyle:lv}=ie(yT.keys),sh=X("modal-bg"),lh=X("modal-shadow"),uD={bg:"blackAlpha.600",zIndex:"modal"},dD=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},fD=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[sh.variable]:"colors.white",[lh.variable]:"shadows.lg",_dark:{[sh.variable]:"colors.gray.700",[lh.variable]:"shadows.dark-lg"},bg:sh.reference,boxShadow:lh.reference}},pD={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mD={position:"absolute",top:"2",insetEnd:"3"},hD=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},gD={px:"6",py:"4"},vD=lv(e=>({overlay:uD,dialogContainer:nn(dD,e),dialog:nn(fD,e),header:pD,closeButton:mD,body:nn(hD,e),footer:gD}));function Jn(e){return lv(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const yD={xs:Jn("xs"),sm:Jn("sm"),md:Jn("md"),lg:Jn("lg"),xl:Jn("xl"),"2xl":Jn("2xl"),"3xl":Jn("3xl"),"4xl":Jn("4xl"),"5xl":Jn("5xl"),"6xl":Jn("6xl"),full:Jn("full")},bD=cD({baseStyle:vD,sizes:yD,defaultProps:{size:"md"}}),RT={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:xD,definePartsStyle:zT}=ie(t6.keys),Ey=ut("number-input-stepper-width"),MT=ut("number-input-input-padding"),SD=Gr(Ey).add("0.5rem").toString(),ch=ut("number-input-bg"),uh=ut("number-input-color"),dh=ut("number-input-border-color"),wD={[Ey.variable]:"sizes.6",[MT.variable]:SD},kD=e=>{var t;return((t=nn(Me.baseStyle,e))==null?void 0:t.field)??{}},CD={width:Ey.reference},PD={borderStart:"1px solid",borderStartColor:dh.reference,color:uh.reference,bg:ch.reference,[uh.variable]:"colors.chakra-body-text",[dh.variable]:"colors.chakra-border-color",_dark:{[uh.variable]:"colors.whiteAlpha.800",[dh.variable]:"colors.whiteAlpha.300"},_active:{[ch.variable]:"colors.gray.200",_dark:{[ch.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},_D=zT(e=>({root:wD,field:nn(kD,e)??{},stepperGroup:CD,stepper:PD}));function Ju(e){var i,a;const t=(i=Me.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",o=RT.fontSizes[r];return zT({field:{...t.field,paddingInlineEnd:MT.reference,verticalAlign:"top"},stepper:{fontSize:Gr(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const TD={xs:Ju("xs"),sm:Ju("sm"),md:Ju("md"),lg:Ju("lg")},ED=xD({baseStyle:_D,sizes:TD,variants:Me.variants,defaultProps:Me.defaultProps});var S2;const jD={...(S2=Me.baseStyle)==null?void 0:S2.field,textAlign:"center"},$D={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var w2;const AD={outline:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=nn((t=Me.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((w2=Me.variants)==null?void 0:w2.unstyled.field)??{}},ID={baseStyle:jD,sizes:$D,variants:AD,defaultProps:Me.defaultProps},{defineMultiStyleConfig:RD,definePartsStyle:zD}=ie(n6.keys),ed=ut("popper-bg"),MD=ut("popper-arrow-bg"),zS=ut("popper-arrow-shadow-color"),ND={zIndex:"popover"},OD={[ed.variable]:"colors.white",bg:ed.reference,[MD.variable]:ed.reference,[zS.variable]:"colors.gray.200",_dark:{[ed.variable]:"colors.gray.700",[zS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},DD={px:3,py:2,borderBottomWidth:"1px"},LD={px:3,py:2},FD={px:3,py:2,borderTopWidth:"1px"},BD={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},VD=zD({popper:ND,content:OD,header:DD,body:LD,footer:FD,closeButton:BD}),WD=RD({baseStyle:VD}),{defineMultiStyleConfig:UD,definePartsStyle:$l}=ie(bT.keys),HD=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=q(jS(),jS("1rem","rgba(0,0,0,0.1)"))(e),a=q(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( - to right, - transparent 0%, - ${Ke(n,a)} 50%, - transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},GD={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},KD=e=>({bg:q("gray.100","whiteAlpha.300")(e)}),XD=e=>({transitionProperty:"common",transitionDuration:"slow",...HD(e)}),YD=$l(e=>({label:GD,filledTrack:XD(e),track:KD(e)})),qD={xs:$l({track:{h:"1"}}),sm:$l({track:{h:"2"}}),md:$l({track:{h:"3"}}),lg:$l({track:{h:"4"}})},QD=UD({sizes:qD,baseStyle:YD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZD,definePartsStyle:Ud}=ie(xT.keys),JD=e=>{var n;const t=(n=nn(Ro.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},eL=Ud(e=>{var t,n;return{label:(t=Ro.baseStyle)==null?void 0:t.call(Ro,e).label,container:(n=Ro.baseStyle)==null?void 0:n.call(Ro,e).container,control:JD(e)}}),tL={md:Ud({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ud({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ud({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},nL=ZD({baseStyle:eL,sizes:tL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rL,definePartsStyle:oL}=ie(r6.keys),td=X("select-bg");var k2;const iL={...(k2=Me.baseStyle)==null?void 0:k2.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:td.reference,[td.variable]:"colors.white",_dark:{[td.variable]:"colors.gray.700"},"> option, > optgroup":{bg:td.reference}},aL={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},sL=oL({field:iL,icon:aL}),nd={paddingInlineEnd:"8"};var C2,P2,_2,T2,E2,j2,$2,A2;const lL={lg:{...(C2=Me.sizes)==null?void 0:C2.lg,field:{...(P2=Me.sizes)==null?void 0:P2.lg.field,...nd}},md:{...(_2=Me.sizes)==null?void 0:_2.md,field:{...(T2=Me.sizes)==null?void 0:T2.md.field,...nd}},sm:{...(E2=Me.sizes)==null?void 0:E2.sm,field:{...(j2=Me.sizes)==null?void 0:j2.sm.field,...nd}},xs:{...($2=Me.sizes)==null?void 0:$2.xs,field:{...(A2=Me.sizes)==null?void 0:A2.xs.field,...nd},icon:{insetEnd:"1"}}},cL=rL({baseStyle:sL,sizes:lL,variants:Me.variants,defaultProps:Me.defaultProps}),fh=X("skeleton-start-color"),ph=X("skeleton-end-color"),uL={[fh.variable]:"colors.gray.100",[ph.variable]:"colors.gray.400",_dark:{[fh.variable]:"colors.gray.800",[ph.variable]:"colors.gray.600"},background:fh.reference,borderColor:ph.reference,opacity:.7,borderRadius:"sm"},dL={baseStyle:uL},mh=X("skip-link-bg"),fL={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[mh.variable]:"colors.white",_dark:{[mh.variable]:"colors.gray.700"},bg:mh.reference}},pL={baseStyle:fL},{defineMultiStyleConfig:mL,definePartsStyle:Tp}=ie(ST.keys),ia=X("slider-thumb-size"),Ic=X("slider-track-size"),No=X("slider-bg"),hL=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Py({orientation:t,vertical:{h:"100%",px:Hr(ia.reference).divide(2).toString()},horizontal:{w:"100%",py:Hr(ia.reference).divide(2).toString()}})}},gL=e=>({...Py({orientation:e.orientation,horizontal:{h:Ic.reference},vertical:{w:Ic.reference}}),overflow:"hidden",borderRadius:"sm",[No.variable]:"colors.gray.200",_dark:{[No.variable]:"colors.whiteAlpha.200"},_disabled:{[No.variable]:"colors.gray.300",_dark:{[No.variable]:"colors.whiteAlpha.300"}},bg:No.reference}),vL=e=>{const{orientation:t}=e;return{...Py({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:ia.reference,h:ia.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},yL=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[No.variable]:`colors.${t}.500`,_dark:{[No.variable]:`colors.${t}.200`},bg:No.reference}},bL=Tp(e=>({container:hL(e),track:gL(e),thumb:vL(e),filledTrack:yL(e)})),xL=Tp({container:{[ia.variable]:"sizes.4",[Ic.variable]:"sizes.1"}}),SL=Tp({container:{[ia.variable]:"sizes.3.5",[Ic.variable]:"sizes.1"}}),wL=Tp({container:{[ia.variable]:"sizes.2.5",[Ic.variable]:"sizes.0.5"}}),kL={lg:xL,md:SL,sm:wL},CL=mL({baseStyle:bL,sizes:kL,defaultProps:{size:"md",colorScheme:"blue"}}),Ii=ut("spinner-size"),PL={width:[Ii.reference],height:[Ii.reference]},_L={xs:{[Ii.variable]:"sizes.3"},sm:{[Ii.variable]:"sizes.4"},md:{[Ii.variable]:"sizes.6"},lg:{[Ii.variable]:"sizes.8"},xl:{[Ii.variable]:"sizes.12"}},TL={baseStyle:PL,sizes:_L,defaultProps:{size:"md"}},{defineMultiStyleConfig:EL,definePartsStyle:NT}=ie(o6.keys),jL={fontWeight:"medium"},$L={opacity:.8,marginBottom:"2"},AL={verticalAlign:"baseline",fontWeight:"semibold"},IL={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},RL=NT({container:{},label:jL,helpText:$L,number:AL,icon:IL}),zL={md:NT({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},ML=EL({baseStyle:RL,sizes:zL,defaultProps:{size:"md"}}),{defineMultiStyleConfig:NL,definePartsStyle:Al}=ie(["stepper","step","title","description","indicator","separator","icon","number"]),Kr=X("stepper-indicator-size"),Ya=X("stepper-icon-size"),qa=X("stepper-title-font-size"),Il=X("stepper-description-font-size"),gl=X("stepper-accent-color"),OL=Al(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[gl.variable]:`colors.${e}.500`,_dark:{[gl.variable]:`colors.${e}.200`}},title:{fontSize:qa.reference,fontWeight:"medium"},description:{fontSize:Il.reference,color:"chakra-subtle-text"},number:{fontSize:qa.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Ya.reference,height:Ya.reference},indicator:{flexShrink:0,borderRadius:"full",width:Kr.reference,height:Kr.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:gl.reference},"&[data-status=complete]":{bg:gl.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:gl.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Kr.reference} - 8px)`,top:`calc(${Kr.reference} + 4px)`,insetStart:`calc(${Kr.reference} / 2 - 1px)`}}})),DL=NL({baseStyle:OL,sizes:{xs:Al({stepper:{[Kr.variable]:"sizes.4",[Ya.variable]:"sizes.3",[qa.variable]:"fontSizes.xs",[Il.variable]:"fontSizes.xs"}}),sm:Al({stepper:{[Kr.variable]:"sizes.6",[Ya.variable]:"sizes.4",[qa.variable]:"fontSizes.sm",[Il.variable]:"fontSizes.xs"}}),md:Al({stepper:{[Kr.variable]:"sizes.8",[Ya.variable]:"sizes.5",[qa.variable]:"fontSizes.md",[Il.variable]:"fontSizes.sm"}}),lg:Al({stepper:{[Kr.variable]:"sizes.10",[Ya.variable]:"sizes.6",[qa.variable]:"fontSizes.lg",[Il.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:LL,definePartsStyle:Hd}=ie(wT.keys),nc=ut("switch-track-width"),Hi=ut("switch-track-height"),hh=ut("switch-track-diff"),FL=Gr.subtract(nc,Hi),cv=ut("switch-thumb-x"),vl=ut("switch-bg"),BL=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[nc.reference],height:[Hi.reference],transitionProperty:"common",transitionDuration:"fast",[vl.variable]:"colors.gray.300",_dark:{[vl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[vl.variable]:`colors.${t}.500`,_dark:{[vl.variable]:`colors.${t}.200`}},bg:vl.reference}},VL={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Hi.reference],height:[Hi.reference],_checked:{transform:`translateX(${cv.reference})`}},WL=Hd(e=>({container:{[hh.variable]:FL,[cv.variable]:hh.reference,_rtl:{[cv.variable]:Gr(hh).negate().toString()}},track:BL(e),thumb:VL})),UL={sm:Hd({container:{[nc.variable]:"1.375rem",[Hi.variable]:"sizes.3"}}),md:Hd({container:{[nc.variable]:"1.875rem",[Hi.variable]:"sizes.4"}}),lg:Hd({container:{[nc.variable]:"2.875rem",[Hi.variable]:"sizes.6"}})},HL=LL({baseStyle:WL,sizes:UL,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GL,definePartsStyle:ys}=ie(i6.keys),KL=ys({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Wf={"&[data-is-numeric=true]":{textAlign:"end"}},XL=ys(e=>{const{colorScheme:t}=e;return{th:{color:q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},td:{borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},caption:{color:q("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),YL=ys(e=>{const{colorScheme:t}=e;return{th:{color:q("gray.600","gray.400")(e),borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},td:{borderBottom:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e),...Wf},caption:{color:q("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:q(`${t}.100`,`${t}.700`)(e)},td:{background:q(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),qL={simple:XL,striped:YL,unstyled:{}},QL={sm:ys({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:ys({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ys({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ZL=GL({baseStyle:KL,variants:qL,sizes:QL,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ln=X("tabs-color"),ar=X("tabs-bg"),rd=X("tabs-border-color"),{defineMultiStyleConfig:JL,definePartsStyle:Rr}=ie(a6.keys),eF=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},tF=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},nF=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},rF={p:4},oF=Rr(e=>({root:eF(e),tab:tF(e),tablist:nF(e),tabpanel:rF})),iF={sm:Rr({tab:{py:1,px:4,fontSize:"sm"}}),md:Rr({tab:{fontSize:"md",py:2,px:4}}),lg:Rr({tab:{fontSize:"lg",py:3,px:4}})},aF=Rr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ln.variable]:`colors.${t}.600`,_dark:{[ln.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[ar.variable]:"colors.gray.200",_dark:{[ar.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ln.reference,bg:ar.reference}}}),sF=Rr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[rd.variable]:"transparent",_selected:{[ln.variable]:`colors.${t}.600`,[rd.variable]:"colors.white",_dark:{[ln.variable]:`colors.${t}.300`,[rd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:rd.reference},color:ln.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),lF=Rr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[ar.variable]:"colors.gray.50",_dark:{[ar.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[ar.variable]:"colors.white",[ln.variable]:`colors.${t}.600`,_dark:{[ar.variable]:"colors.gray.800",[ln.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ln.reference,bg:ar.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),cF=Rr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ke(n,`${t}.700`),bg:Ke(n,`${t}.100`)}}}}),uF=Rr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ln.variable]:"colors.gray.600",_dark:{[ln.variable]:"inherit"},_selected:{[ln.variable]:"colors.white",[ar.variable]:`colors.${t}.600`,_dark:{[ln.variable]:"colors.gray.800",[ar.variable]:`colors.${t}.300`}},color:ln.reference,bg:ar.reference}}}),dF=Rr({}),fF={line:aF,enclosed:sF,"enclosed-colored":lF,"soft-rounded":cF,"solid-rounded":uF,unstyled:dF},pF=JL({baseStyle:oF,sizes:iF,variants:fF,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:mF,definePartsStyle:Gi}=ie(s6.keys),MS=X("tag-bg"),NS=X("tag-color"),gh=X("tag-shadow"),Gd=X("tag-min-height"),Kd=X("tag-min-width"),Xd=X("tag-font-size"),Yd=X("tag-padding-inline"),hF={fontWeight:"medium",lineHeight:1.2,outline:0,[NS.variable]:mt.color.reference,[MS.variable]:mt.bg.reference,[gh.variable]:mt.shadow.reference,color:NS.reference,bg:MS.reference,boxShadow:gh.reference,borderRadius:"md",minH:Gd.reference,minW:Kd.reference,fontSize:Xd.reference,px:Yd.reference,_focusVisible:{[gh.variable]:"shadows.outline"}},gF={lineHeight:1.2,overflow:"visible"},vF={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},yF=Gi({container:hF,label:gF,closeButton:vF}),bF={sm:Gi({container:{[Gd.variable]:"sizes.5",[Kd.variable]:"sizes.5",[Xd.variable]:"fontSizes.xs",[Yd.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Gi({container:{[Gd.variable]:"sizes.6",[Kd.variable]:"sizes.6",[Xd.variable]:"fontSizes.sm",[Yd.variable]:"space.2"}}),lg:Gi({container:{[Gd.variable]:"sizes.8",[Kd.variable]:"sizes.8",[Xd.variable]:"fontSizes.md",[Yd.variable]:"space.3"}})},xF={subtle:Gi(e=>{var t;return{container:(t=Jl.variants)==null?void 0:t.subtle(e)}}),solid:Gi(e=>{var t;return{container:(t=Jl.variants)==null?void 0:t.solid(e)}}),outline:Gi(e=>{var t;return{container:(t=Jl.variants)==null?void 0:t.outline(e)}})},SF=mF({variants:xF,baseStyle:yF,sizes:bF,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var I2;const wF={...(I2=Me.baseStyle)==null?void 0:I2.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var R2;const kF={outline:e=>{var t;return((t=Me.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Me.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Me.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((R2=Me.variants)==null?void 0:R2.unstyled.field)??{}};var z2,M2,N2,O2;const CF={xs:((z2=Me.sizes)==null?void 0:z2.xs.field)??{},sm:((M2=Me.sizes)==null?void 0:M2.sm.field)??{},md:((N2=Me.sizes)==null?void 0:N2.md.field)??{},lg:((O2=Me.sizes)==null?void 0:O2.lg.field)??{}},PF={baseStyle:wF,sizes:CF,variants:kF,defaultProps:{size:"md",variant:"outline"}},od=ut("tooltip-bg"),vh=ut("tooltip-fg"),_F=ut("popper-arrow-bg"),TF={bg:od.reference,color:vh.reference,[od.variable]:"colors.gray.700",[vh.variable]:"colors.whiteAlpha.900",_dark:{[od.variable]:"colors.gray.300",[vh.variable]:"colors.gray.900"},[_F.variable]:od.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},EF={baseStyle:TF},jF={Accordion:h6,Alert:Q6,Avatar:lN,Badge:Jl,Breadcrumb:yN,Button:TN,Checkbox:Ro,CloseButton:VN,Code:GN,Container:XN,Divider:JN,Drawer:uO,Editable:vO,Form:kO,FormError:jO,FormLabel:AO,Heading:zO,Input:Me,Kbd:UO,Link:GO,List:QO,Menu:lD,Modal:bD,NumberInput:ED,PinInput:ID,Popover:WD,Progress:QD,Radio:nL,Select:cL,Skeleton:dL,SkipLink:pL,Slider:CL,Spinner:TL,Stat:ML,Switch:HL,Table:ZL,Tabs:pF,Tag:SF,Textarea:PF,Tooltip:EF,Card:IN,Stepper:DL},$F={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},AF={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},IF={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},RF={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},zF={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},MF={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},NF={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},OF={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},DF={property:MF,easing:NF,duration:OF},LF={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},FF={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},BF={breakpoints:AF,zIndices:LF,radii:RF,blur:FF,colors:IF,...RT,sizes:TT,shadows:zF,space:_T,borders:$F,transition:DF},VF={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},WF={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, *::after":{borderColor:"chakra-border-color"}}},UF=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function HF(e){return St(e)?UF.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const GF="ltr",KF={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Oi={semanticTokens:VF,direction:GF,...BF,components:jF,styles:WF,config:KF};function XF(e){if(e.sheet)return e.sheet;for(var t=0;t0?zt(qs,--hn):0,Rs--,ht===10&&(Rs=1,jp--),ht}function wn(){return ht=hn2||zc(ht)>3?"":" "}function s8(e,t){for(;--t&&wn()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return au(e,qd()+(t<6&&zr()==32&&wn()==32))}function dv(e){for(;wn();)switch(ht){case e:return hn;case 34:case 39:e!==34&&e!==39&&dv(ht);break;case 40:e===41&&dv(e);break;case 92:wn();break}return hn}function l8(e,t){for(;wn()&&e+ht!==57;)if(e+ht===84&&zr()===47)break;return"/*"+au(t,hn-1)+"*"+Ep(e===47?e:wn())}function c8(e){for(;!zc(zr());)wn();return au(e,hn)}function u8(e){return VT(Zd("",null,null,null,[""],e=BT(e),0,[0],e))}function Zd(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,f=a,p=0,h=0,g=0,y=1,x=1,b=1,v=0,S="",w=o,k=i,_=r,C=S;x;)switch(g=v,v=wn()){case 40:if(g!=108&&zt(C,f-1)==58){uv(C+=ze(Qd(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Qd(v);break;case 9:case 10:case 13:case 32:C+=a8(g);break;case 92:C+=s8(qd()-1,7);continue;case 47:switch(zr()){case 42:case 47:id(d8(l8(wn(),qd()),t,n),l);break;default:C+="/"}break;case 123*y:s[c++]=Pr(C)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:b==-1&&(C=ze(C,/\f/g,"")),h>0&&Pr(C)-f&&id(h>32?DS(C+";",r,n,f-1):DS(ze(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(id(_=OS(C,t,n,c,d,o,s,S,w=[],k=[],f),i),v===123)if(d===0)Zd(C,t,_,_,w,i,f,s,k);else switch(p===99&&zt(C,3)===110?100:p){case 100:case 108:case 109:case 115:Zd(e,_,_,r&&id(OS(e,_,_,0,0,o,s,S,o,w=[],f),k),o,k,f,s,r?w:k);break;default:Zd(C,_,_,_,[""],k,0,s,k)}}c=d=h=0,y=b=1,S=C="",f=a;break;case 58:f=1+Pr(C),h=g;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&i8()==125)continue}switch(C+=Ep(v),v*y){case 38:b=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(Pr(C)-1)*b,b=1;break;case 64:zr()===45&&(C+=Qd(wn())),p=zr(),d=f=Pr(S=C+=c8(qd())),v++;break;case 45:g===45&&Pr(C)==2&&(y=0)}}return i}function OS(e,t,n,r,o,i,a,s,l,c,d){for(var f=o-1,p=o===0?i:[""],h=Ay(p),g=0,y=0,x=0;g0?p[b]+" "+v:ze(v,/&\f/g,p[b])))&&(l[x++]=S);return $p(e,t,n,o===0?jy:s,l,c,d)}function d8(e,t,n){return $p(e,t,n,OT,Ep(o8()),Rc(e,2,-2),0)}function DS(e,t,n,r){return $p(e,t,n,$y,Rc(e,0,r),Rc(e,r+1,-1),r)}function bs(e,t){for(var n="",r=Ay(e),o=0;o6)switch(zt(e,t+1)){case 109:if(zt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Uf+(zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uv(e,"stretch")?UT(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zt(e,t+1)!==115)break;case 6444:switch(zt(e,Pr(e)-3-(~uv(e,"!important")&&10))){case 107:return ze(e,":",":"+Re)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(zt(e,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Ut+"$2box$3")+e}break;case 5936:switch(zt(e,t+11)){case 114:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Ut+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Ut+e+e}return e}var x8=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case $y:t.return=UT(t.value,t.length);break;case DT:return bs([yl(t,{value:ze(t.value,"@","@"+Re)})],o);case jy:if(t.length)return r8(t.props,function(i){switch(n8(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bs([yl(t,{props:[ze(i,/:(read-\w+)/,":"+Uf+"$1")]})],o);case"::placeholder":return bs([yl(t,{props:[ze(i,/:(plac\w+)/,":"+Re+"input-$1")]}),yl(t,{props:[ze(i,/:(plac\w+)/,":"+Uf+"$1")]}),yl(t,{props:[ze(i,/:(plac\w+)/,Ut+"input-$1")]})],o)}return""})}},S8=[x8],w8=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||S8,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},z8=/[A-Z]|^ms/g,M8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qT=function(t){return t.charCodeAt(1)===45},BS=function(t){return t!=null&&typeof t!="boolean"},yh=WT(function(e){return qT(e)?e:e.replace(z8,"-$&").toLowerCase()}),VS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(M8,function(r,o,i){return _r={name:o,styles:i,next:_r},o})}return R8[t]!==1&&!qT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Mc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return _r={name:o.name,styles:o.styles,next:_r},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)_r={name:a.name,styles:a.styles,next:_r},a=a.next;var s=i.styles+";";return s}return N8(e,t,n)}case"function":{if(e!==void 0){var l=_r,c=n(e);return _r=l,Mc(e,t,c)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function N8(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?ad.dark:ad.light),document.body.classList.remove(o?ad.light:ad.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),a=s=>{o(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const X8="chakra-ui-color-mode";function Y8(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const q8=Y8(X8),GS=()=>{},Q8=sz()?m.useLayoutEffect:m.useEffect;function KS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const JT=function(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=q8}=t,l=D8(),c=i==="dark"?"dark":"light",[d,f]=m.useState(()=>KS(s,c)),[p,h]=m.useState(()=>KS(s)),{getSystemTheme:g,setClassName:y,setDataset:x,addListener:b}=m.useMemo(()=>K8({preventTransition:a,nonce:l==null?void 0:l.nonce}),[a,l==null?void 0:l.nonce]),v=i==="system"&&!d?p:d,S=m.useCallback(_=>{const C=_==="system"?g():_;f(C),y(C==="dark"),x(C),s.set(C)},[s,g,y,x]);Q8(()=>{i==="system"&&h(g())},[]),m.useEffect(()=>{const _=s.get();if(_){S(_);return}if(i==="system"){S("system");return}S(c)},[s,c,i,S]);const w=m.useCallback(()=>{S(v==="dark"?"light":"dark")},[v,S]);m.useEffect(()=>{if(o)return b(S)},[o,b,S]);const k=m.useMemo(()=>({colorMode:n??v,toggleColorMode:n?GS:w,setColorMode:n?GS:S,forced:n!==void 0}),[v,w,S,n]);return u.jsx(Fy.Provider,{value:k,children:r})};JT.displayName="ColorModeProvider";const eE=String.raw,tE=eE` - :root, - :host { - --chakra-vh: 100vh; - } - - @supports (height: -webkit-fill-available) { - :root, - :host { - --chakra-vh: -webkit-fill-available; - } - } - - @supports (height: -moz-fill-available) { - :root, - :host { - --chakra-vh: -moz-fill-available; - } - } - - @supports (height: 100dvh) { - :root, - :host { - --chakra-vh: 100dvh; - } - } -`,Z8=()=>u.jsx(Vp,{styles:tE}),J8=({scope:e=""})=>u.jsx(Vp,{styles:eE` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${tE} - `});function e9(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=m.useMemo(()=>KM(n),[n]);return u.jsxs(B8,{theme:o,children:[u.jsx(t9,{root:t}),r]})}function t9({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return u.jsx(Vp,{styles:n=>({[t]:n.__cssVars})})}ye({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function hr(e){return ye({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function n9(){const{colorMode:e}=lu();return u.jsx(Vp,{styles:t=>{const n=J_(t,"styles.global"),r=Xt(n,{theme:t,colorMode:e});return r?dT(r)(t):void 0}})}const[r9,o9]=ye({strict:!1,name:"PortalManagerContext"});function nE(e){const{children:t,zIndex:n}=e;return u.jsx(r9,{value:{zIndex:n},children:t})}nE.displayName="PortalManager";const By=m.createContext({getDocument(){return document},getWindow(){return window}});By.displayName="EnvironmentContext";function i9({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return no(()=>{e&&t()},[e]),m.useContext(By)}function rE(e){const{children:t,environment:n,disabled:r}=e,o=m.useRef(null),i=m.useMemo(()=>n||{getDocument:()=>{var s;return((s=o.current)==null?void 0:s.ownerDocument)??document},getWindow:()=>{var s;return((s=o.current)==null?void 0:s.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return u.jsxs(By.Provider,{value:i,children:[t,a&&u.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}rE.displayName="EnvironmentProvider";const a9=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:d}=e,f=u.jsx(rE,{environment:s,disabled:c,children:t});return u.jsx(e9,{theme:a,cssVarsRoot:l,children:u.jsxs(JT,{colorModeManager:n,options:a.config,children:[i?u.jsx(J8,{scope:o}):u.jsx(Z8,{}),!d&&u.jsx(n9,{}),r?u.jsx(nE,{zIndex:r,children:f}):f]})})},Vy=m.createContext({});function Wy(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const cu=m.createContext(null),Uy=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class s9 extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function l9({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),o=m.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=m.useContext(Uy);return m.useInsertionEffect(()=>{const{width:a,height:s,top:l,left:c}=o.current;if(t||!r.current||!a||!s)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${a}px !important; - height: ${s}px !important; - top: ${l}px !important; - left: ${c}px !important; - } - `),()=>{document.head.removeChild(d)}},[t]),u.jsx(s9,{isPresent:t,childRef:r,sizeRef:o,children:m.cloneElement(e,{ref:r})})}const c9=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Wy(u9),l=m.useId(),c=m.useCallback(f=>{s.set(f,!0);for(const p of s.values())if(!p)return;r&&r()},[s,r]),d=m.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:f=>(s.set(f,!1),()=>s.delete(f))}),i?[Math.random(),c]:[n,c]);return m.useMemo(()=>{s.forEach((f,p)=>s.set(p,!1))},[n]),m.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=u.jsx(l9,{isPresent:n,children:e})),u.jsx(cu.Provider,{value:d,children:e})};function u9(){return new Map}function Hy(e=!0){const t=m.useContext(cu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=m.useId();m.useEffect(()=>{e&&o(i)},[e]);const a=m.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}function d9(){return f9(m.useContext(cu))}function f9(e){return e===null?!0:e.isPresent}const sd=e=>e.key||"";function XS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Gy=typeof window<"u",oE=Gy?m.useLayoutEffect:m.useEffect,vo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1})=>{const[s,l]=Hy(a),c=m.useMemo(()=>XS(e),[e]),d=a&&!s?[]:c.map(sd),f=m.useRef(!0),p=m.useRef(c),h=Wy(()=>new Map),[g,y]=m.useState(c),[x,b]=m.useState(c);oE(()=>{f.current=!1,p.current=c;for(let w=0;w{const k=sd(w),_=a&&!s?!1:c===x||d.includes(k),C=()=>{if(h.has(k))h.set(k,!0);else return;let T=!0;h.forEach(A=>{A||(T=!1)}),T&&(S==null||S(),b(p.current),a&&(l==null||l()),r&&r())};return u.jsx(c9,{isPresent:_,initial:!f.current||n?void 0:!1,custom:_?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:_?void 0:C,children:w},k)})})},kn=e=>e;let iE=kn;function Ky(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ms=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},oo=e=>e*1e3,io=e=>e/1e3,p9={useManualTiming:!1};function m9(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(c){i.has(c)&&(l.schedule(c),e()),c(a)}const l={schedule:(c,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&i.add(c),h.has(c)||h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(a=c,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(c))}};return l}const ld=["read","resolveKeyframes","update","preRender","render","postRender"],h9=40;function aE(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=ld.reduce((b,v)=>(b[v]=m9(i),b),{}),{read:s,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:p}=a,h=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,h9),1),o.timestamp=b,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),d.process(o),f.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:ld.reduce((b,v)=>{const S=a[v];return b[v]=(w,k=!1,_=!1)=>(n||g(),S.schedule(w,k,_)),b},{}),cancel:b=>{for(let v=0;vYS[e].some(n=>!!t[n])};function g9(e){for(const t in e)Ns[t]={...Ns[t],...e[t]}}const v9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||v9.has(e)}let lE=e=>!Hf(e);function y9(e){e&&(lE=t=>t.startsWith("on")?!Hf(t):e(t))}try{y9(require("@emotion/is-prop-valid").default)}catch{}function b9(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(lE(o)||n===!0&&Hf(o)||!t&&!Hf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function x9(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Wp=m.createContext({});function Nc(e){return typeof e=="string"||Array.isArray(e)}function Up(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Xy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yy=["initial",...Xy];function Hp(e){return Up(e.animate)||Yy.some(t=>Nc(e[t]))}function cE(e){return!!(Hp(e)||e.variants)}function S9(e,t){if(Hp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nc(n)?n:void 0,animate:Nc(r)?r:void 0}}return e.inherit!==!1?t:{}}function w9(e){const{initial:t,animate:n}=S9(e,m.useContext(Wp));return m.useMemo(()=>({initial:t,animate:n}),[qS(t),qS(n)])}function qS(e){return Array.isArray(e)?e.join(" "):e}const k9=Symbol.for("motionComponentSymbol");function Qa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function C9(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qa(n)&&(n.current=r))},[t])}const qy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),P9="framerAppearId",uE="data-"+qy(P9),{schedule:Qy}=aE(queueMicrotask,!1),dE=m.createContext({});function _9(e,t,n,r,o){var i,a;const{visualElement:s}=m.useContext(Wp),l=m.useContext(sE),c=m.useContext(cu),d=m.useContext(Uy).reducedMotion,f=m.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(dE);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&T9(f.current,n,o,h);const g=m.useRef(!1);m.useInsertionEffect(()=>{p&&g.current&&p.update(n,c)});const y=n[uE],x=m.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,y)));return oE(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Qy.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,y)}),x.current=!1))}),p}function T9(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fE(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&Qa(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function fE(e){if(e)return e.options.allowProjection!==!1?e.projection:fE(e.parent)}function E9({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,a;e&&g9(e);function s(c,d){let f;const p={...m.useContext(Uy),...c,layoutId:j9(c)},{isStatic:h}=p,g=w9(c),y=r(c,h);if(!h&&Gy){$9();const x=A9(p);f=x.MeasureLayout,g.visualElement=_9(o,y,p,t,x.ProjectionNode)}return u.jsxs(Wp.Provider,{value:g,children:[f&&g.visualElement?u.jsx(f,{visualElement:g.visualElement,...p}):null,n(o,c,C9(y,g.visualElement,d),y,h,g.visualElement)]})}s.displayName=`motion.${typeof o=="string"?o:`create(${(a=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&a!==void 0?a:""})`}`;const l=m.forwardRef(s);return l[k9]=o,l}function j9({layoutId:e}){const t=m.useContext(Vy).id;return t&&e!==void 0?t+"-"+e:e}function $9(e,t){m.useContext(sE).strict}function A9(e){const{drag:t,layout:n}=Ns;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const I9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Zy(e){return typeof e!="string"||e.includes("-")?!1:!!(I9.indexOf(e)>-1||/[A-Z]/u.test(e))}function QS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Jy(e,t,n,r){if(typeof t=="function"){const[o,i]=QS(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=QS(r);t=t(n!==void 0?n:e.custom,o,i)}return t}const mv=e=>Array.isArray(e),R9=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),z9=e=>mv(e)?e[e.length-1]||0:e,Yt=e=>!!(e&&e.getVelocity);function Jd(e){const t=Yt(e)?e.get():e;return R9(t)?t.toValue():t}function M9({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:N9(r,o,i,e),renderState:t()};return n&&(a.onMount=s=>n({props:r,current:s,...a}),a.onUpdate=s=>n(s)),a}const pE=e=>(t,n)=>{const r=m.useContext(Wp),o=m.useContext(cu),i=()=>M9(e,t,r,o);return n?i():Wy(i)};function N9(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=Jd(i[p]);let{initial:a,animate:s}=e;const l=Hp(e),c=cE(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;if(f&&typeof f!="boolean"&&!Up(f)){const p=Array.isArray(f)?f:[f];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),hE=mE("--"),O9=mE("var(--"),eb=e=>O9(e)?D9.test(e.split("/*")[0].trim()):!1,D9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,gE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fo=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Oc={...Zs,transform:e=>fo(0,1,e)},cd={...Zs,default:1},uu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Eo=uu("deg"),Mr=uu("%"),de=uu("px"),L9=uu("vh"),F9=uu("vw"),ZS={...Mr,parse:e=>Mr.parse(e)/100,transform:e=>Mr.transform(e*100)},B9={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,radius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,backgroundPositionX:de,backgroundPositionY:de},V9={rotate:Eo,rotateX:Eo,rotateY:Eo,rotateZ:Eo,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:Eo,skewX:Eo,skewY:Eo,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:Oc,originX:ZS,originY:ZS,originZ:de},JS={...Zs,transform:Math.round},tb={...B9,...V9,zIndex:JS,size:de,fillOpacity:Oc,strokeOpacity:Oc,numOctaves:JS},W9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U9=Qs.length;function H9(e,t,n){let r="",o=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),vE=()=>({...ob(),attrs:{}}),ib=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yE(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const bE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function xE(e,t,n,r){yE(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(bE.has(o)?o:qy(o),t.attrs[o])}const Gf={};function q9(e){Object.assign(Gf,e)}function SE(e,{layout:t,layoutId:n}){return ga.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gf[e]||e==="opacity")}function ab(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(Yt(o[a])||t.style&&Yt(t.style[a])||SE(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=o[a]);return i}function wE(e,t,n){const r=ab(e,t,n);for(const o in e)if(Yt(e[o])||Yt(t[o])){const i=Qs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Q9(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const tw=["x","y","width","height","cx","cy","r"],Z9={useVisualState:pE({scrapeMotionValuesFromProps:wE,createRenderState:vE,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(const s in o)if(ga.has(s)){i=!0;break}}if(!i)return;let a=!t;if(t)for(let s=0;s{Q9(n,r),Ye.render(()=>{rb(r,o,ib(n.tagName),e.transformTemplate),xE(n,r)})})}})},J9={useVisualState:pE({scrapeMotionValuesFromProps:ab,createRenderState:ob})};function kE(e,t,n){for(const r in t)!Yt(t[r])&&!SE(r,n)&&(e[r]=t[r])}function eB({transformTemplate:e},t){return m.useMemo(()=>{const n=ob();return nb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tB(e,t){const n=e.style||{},r={};return kE(r,n,e),Object.assign(r,eB(e,t)),r}function nB(e,t){const n={},r=tB(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function rB(e,t,n,r){const o=m.useMemo(()=>{const i=vE();return rb(i,t,ib(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};kE(i,e.style,e),o.style={...i,...o.style}}return o}function oB(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(Zy(n)?rB:nB)(r,i,a,n),c=b9(r,typeof n=="string",e),d=n!==m.Fragment?{...c,...l,ref:o}:{},{children:f}=r,p=m.useMemo(()=>Yt(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function iB(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const a={...Zy(r)?Z9:J9,preloadedFeatures:e,useRender:oB(o),createVisualElement:t,Component:r};return E9(a)}}function CE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class sB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(aB()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lB extends sB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function sb(e,t){return e?e[t]||e.default||e:void 0}const hv=2e4;function PE(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=hv?1/0:t}function lb(e){return typeof e=="function"}function nw(e,t){e.timeline=t,e.onfinish=null}const cb=e=>Array.isArray(e)&&typeof e[0]=="number",cB={linearEasing:void 0};function uB(e,t){const n=Ky(e);return()=>{var r;return(r=cB[t])!==null&&r!==void 0?r:n()}}const Kf=uB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_E=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rl([0,.65,.55,1]),circOut:Rl([.55,0,1,.45]),backIn:Rl([.31,.01,.66,-.59]),backOut:Rl([.33,1.53,.69,.99])};function EE(e,t){if(e)return typeof e=="function"&&Kf()?_E(e,t):cb(e)?Rl(e):Array.isArray(e)?e.map(n=>EE(n,t)||gv.easeOut):gv[e]}const tr={x:!1,y:!1};function jE(){return tr.x||tr.y}function dB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function $E(e,t){const n=dB(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function rw(e){return t=>{t.pointerType==="touch"||jE()||e(t)}}function fB(e,t,n={}){const[r,o,i]=$E(e,n),a=rw(s=>{const{target:l}=s,c=t(s);if(typeof c!="function"||!l)return;const d=rw(f=>{c(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(s=>{s.addEventListener("pointerenter",a,o)}),i}const AE=(e,t)=>t?e===t?!0:AE(e,t.parentElement):!1,ub=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,pB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mB(e){return pB.has(e.tagName)||e.tabIndex!==-1}const zl=new WeakSet;function ow(e){return t=>{t.key==="Enter"&&e(t)}}function xh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ow(()=>{if(zl.has(n))return;xh(n,"down");const o=ow(()=>{xh(n,"up")}),i=()=>xh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function iw(e){return ub(e)&&!jE()}function gB(e,t,n={}){const[r,o,i]=$E(e,n),a=s=>{const l=s.currentTarget;if(!iw(s)||zl.has(l))return;zl.add(l);const c=t(s),d=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!iw(h)||!zl.has(l))&&(zl.delete(l),typeof c=="function"&&c(h,{success:g}))},f=h=>{d(h,n.useGlobalTarget||AE(l,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",p,o)};return r.forEach(s=>{!mB(s)&&s.getAttribute("tabindex")===null&&(s.tabIndex=0),(n.useGlobalTarget?window:s).addEventListener("pointerdown",a,o),s.addEventListener("focus",c=>hB(c,o),o)}),i}function vB(e){return e==="x"||e==="y"?tr[e]?null:(tr[e]=!0,()=>{tr[e]=!1}):tr.x||tr.y?null:(tr.x=tr.y=!0,()=>{tr.x=tr.y=!1})}const IE=new Set(["width","height","top","left","right","bottom",...Qs]);let ef;function yB(){ef=void 0}const Nr={now:()=>(ef===void 0&&Nr.set(It.isProcessing||p9.useManualTiming?It.timestamp:performance.now()),ef),set:e=>{ef=e,queueMicrotask(yB)}};function db(e,t){e.indexOf(t)===-1&&e.push(t)}function fb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class pb{constructor(){this.subscriptions=[]}add(t){return db(this.subscriptions,t),()=>fb(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class xB{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Nr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new pb);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>aw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,aw);return RE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dc(e,t){return new xB(e,t)}function SB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dc(n))}function wB(e,t){const n=Gp(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=z9(i[a]);SB(e,a,s)}}function kB(e){return!!(Yt(e)&&e.add)}function vv(e,t){const n=e.getValue("willChange");if(kB(n))return n.add(t)}function zE(e){return e.props[uE]}const ME=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,CB=1e-7,PB=12;function _B(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=ME(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>CB&&++s_B(i,0,1,e,n);return i=>i===0||i===1?i:ME(o(i),t,r)}const NE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,OE=e=>t=>1-e(1-t),DE=du(.33,1.53,.69,.99),mb=OE(DE),LE=NE(mb),FE=e=>(e*=2)<1?.5*mb(e):.5*(2-Math.pow(2,-10*(e-1))),hb=e=>1-Math.sin(Math.acos(e)),BE=OE(hb),VE=NE(hb),WE=e=>/^0[^.\s]+$/u.test(e);function TB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WE(e):!0}const rc=e=>Math.round(e*1e5)/1e5,gb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function EB(e){return e==null}const jB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vb=(e,t)=>n=>!!(typeof n=="string"&&jB.test(n)&&n.startsWith(e)||t&&!EB(n)&&Object.prototype.hasOwnProperty.call(n,t)),UE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,a,s]=r.match(gb);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},$B=e=>fo(0,255,e),Sh={...Zs,transform:e=>Math.round($B(e))},Di={test:vb("rgb","red"),parse:UE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sh.transform(e)+", "+Sh.transform(t)+", "+Sh.transform(n)+", "+rc(Oc.transform(r))+")"};function AB(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const yv={test:vb("#"),parse:AB,transform:Di.transform},Za={test:vb("hsl","hue"),parse:UE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mr.transform(rc(t))+", "+Mr.transform(rc(n))+", "+rc(Oc.transform(r))+")"},Ht={test:e=>Di.test(e)||yv.test(e)||Za.test(e),parse:e=>Di.test(e)?Di.parse(e):Za.test(e)?Za.parse(e):yv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Di.transform(e):Za.transform(e)},IB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function RB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(gb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(IB))===null||n===void 0?void 0:n.length)||0)>0}const HE="number",GE="color",zB="var",MB="var(",sw="${}",NB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(NB,l=>(Ht.test(l)?(r.color.push(i),o.push(GE),n.push(Ht.parse(l))):l.startsWith(MB)?(r.var.push(i),o.push(zB),n.push(l)):(r.number.push(i),o.push(HE),n.push(parseFloat(l))),++i,sw)).split(sw);return{values:n,split:s,indexes:r,types:o}}function KE(e){return Lc(e).values}function XE(e){const{split:t,types:n}=Lc(e),r=t.length;return o=>{let i="";for(let a=0;atypeof e=="number"?0:e;function DB(e){const t=KE(e);return XE(e)(t.map(OB))}const ii={test:RB,parse:KE,createTransformer:XE,getAnimatableNone:DB},LB=new Set(["brightness","contrast","saturate","opacity"]);function FB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gb)||[];if(!r)return e;const o=n.replace(r,"");let i=LB.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const BB=/\b([a-z-]*)\(.*?\)/gu,bv={...ii,getAnimatableNone:e=>{const t=e.match(BB);return t?t.map(FB).join(" "):e}},VB={...tb,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:bv,WebkitFilter:bv},yb=e=>VB[e];function YE(e,t){let n=yb(e);return n!==bv&&(n=ii),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const WB=new Set(["auto","none","0"]);function UB(e,t,n){let r=0,o;for(;re===Zs||e===de,cw=(e,t)=>parseFloat(e.split(", ")[t]),uw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return cw(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?cw(i[1],e):0}},HB=new Set(["x","y","z"]),GB=Qs.filter(e=>!HB.has(e));function KB(e){const t=[];return GB.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Os={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:uw(4,13),y:uw(5,14)};Os.translateX=Os.x;Os.translateY=Os.y;const Ki=new Set;let xv=!1,Sv=!1;function qE(){if(Sv){const e=Array.from(Ki).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=KB(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sv=!1,xv=!1,Ki.forEach(e=>e.complete()),Ki.clear()}function QE(){Ki.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sv=!0)})}function XB(){QE(),qE()}class bb{constructor(t,n,r,o,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ki.add(this),xv||(xv=!0,Ye.read(QE),Ye.resolveKeyframes(qE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qB(e){const t=YB.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function JE(e,t,n=1){const[r,o]=qB(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return ZE(a)?parseFloat(a):a}return eb(o)?JE(o,t,n+1):o}const ej=e=>t=>t.test(e),QB={test:e=>e==="auto",parse:e=>e},tj=[Zs,de,Mr,Eo,F9,L9,QB],dw=e=>tj.find(ej(e));class nj extends bb{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const fw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ii.test(e)||e==="0")&&!e.startsWith("url("));function ZB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Kp(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(e7),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const t7=40;class rj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nr.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>t7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&XB(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nr.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!JB(t,r,o,i))if(a)this.options.duration=0;else{l&&l(Kp(t,this.options,n)),s&&s(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const tt=(e,t,n)=>e+(t-e)*n;function wh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=wh(l,s,e+1/3),i=wh(l,s,e),a=wh(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Xf(e,t){return n=>n>0?t:e}const kh=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},r7=[yv,Di,Za],o7=e=>r7.find(t=>t.test(e));function pw(e){const t=o7(e);if(!t)return!1;let n=t.parse(e);return t===Za&&(n=n7(n)),n}const mw=(e,t)=>{const n=pw(e),r=pw(t);if(!n||!r)return Xf(e,t);const o={...n};return i=>(o.red=kh(n.red,r.red,i),o.green=kh(n.green,r.green,i),o.blue=kh(n.blue,r.blue,i),o.alpha=tt(n.alpha,r.alpha,i),Di.transform(o))},i7=(e,t)=>n=>t(e(n)),fu=(...e)=>e.reduce(i7),wv=new Set(["none","hidden"]);function a7(e,t){return wv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function s7(e,t){return n=>tt(e,t,n)}function xb(e){return typeof e=="number"?s7:typeof e=="string"?eb(e)?Xf:Ht.test(e)?mw:u7:Array.isArray(e)?oj:typeof e=="object"?Ht.test(e)?mw:l7:Xf}function oj(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>xb(i)(i,t[a]));return i=>{for(let a=0;a{for(const i in r)n[i]=r[i](o);return n}}function c7(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ii.createTransformer(t),r=Lc(e),o=Lc(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?wv.has(e)&&!o.values.length||wv.has(t)&&!r.values.length?a7(e,t):fu(oj(c7(r,o),o.values),n):Xf(e,t)};function ij(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):xb(e)(e,t)}const d7=5;function aj(e,t,n){const r=Math.max(t-d7,0);return RE(n-e(r),t-r)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ch=.001;function f7({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:r=lt.mass}){let o,i,a=1-t;a=fo(lt.minDamping,lt.maxDamping,a),e=fo(lt.minDuration,lt.maxDuration,io(e)),a<1?(o=c=>{const d=c*a,f=d*e,p=d-n,h=kv(c,a),g=Math.exp(-f);return Ch-p/h*g},i=c=>{const f=c*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,g=Math.exp(-f),y=kv(Math.pow(c,2),a);return(-o(c)+Ch>0?-1:1)*((p-h)*g)/y}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Ch+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const s=5/e,l=m7(o,i,s);if(e=oo(e),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const p7=12;function m7(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function v7(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!hw(e,g7)&&hw(e,h7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*fo(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lt.mass,stiffness:o,damping:i}}else{const n=f7(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function sj(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=v7({...n,velocity:-io(n.velocity||0)}),g=p||0,y=c/(2*Math.sqrt(l*d)),x=a-i,b=io(Math.sqrt(l/d)),v=Math.abs(x)<5;r||(r=v?lt.restSpeed.granular:lt.restSpeed.default),o||(o=v?lt.restDelta.granular:lt.restDelta.default);let S;if(y<1){const k=kv(b,y);S=_=>{const C=Math.exp(-y*b*_);return a-C*((g+y*b*x)/k*Math.sin(k*_)+x*Math.cos(k*_))}}else if(y===1)S=k=>a-Math.exp(-b*k)*(x+(g+b*x)*k);else{const k=b*Math.sqrt(y*y-1);S=_=>{const C=Math.exp(-y*b*_),T=Math.min(k*_,300);return a-C*((g+y*b*x)*Math.sinh(T)+k*x*Math.cosh(T))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const _=S(k);if(h)s.done=k>=f;else{let C=0;y<1&&(C=k===0?oo(g):aj(S,k,_));const T=Math.abs(C)<=r,A=Math.abs(a-_)<=o;s.done=T&&A}return s.value=s.done?a:_,s},toString:()=>{const k=Math.min(PE(w),hv),_=_E(C=>w.next(k*C).value,k,30);return k+"ms "+_}};return w}function gw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=T=>s!==void 0&&Tl,g=T=>s===void 0?l:l===void 0||Math.abs(s-T)-y*Math.exp(-T/r),S=T=>b+v(T),w=T=>{const A=v(T),$=S(T);p.done=Math.abs(A)<=c,p.value=p.done?b:$};let k,_;const C=T=>{h(p.value)&&(k=T,_=sj({keyframes:[p.value,g(p.value)],velocity:aj(S,T,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return C(0),{calculatedDuration:null,next:T=>{let A=!1;return!_&&k===void 0&&(A=!0,w(T),C(T)),k!==void 0&&T>=k?_.next(T-k):(!A&&w(T),p)}}}const y7=du(.42,0,1,1),b7=du(0,0,.58,1),lj=du(.42,0,.58,1),x7=e=>Array.isArray(e)&&typeof e[0]!="number",S7={linear:kn,easeIn:y7,easeInOut:lj,easeOut:b7,circIn:hb,circInOut:VE,circOut:BE,backIn:mb,backInOut:LE,backOut:DE,anticipate:FE},vw=e=>{if(cb(e)){iE(e.length===4);const[t,n,r,o]=e;return du(t,n,r,o)}else if(typeof e=="string")return S7[e];return e};function w7(e,t,n){const r=[],o=n||ij,i=e.length-1;for(let a=0;at[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=w7(t,r,o),l=s.length,c=d=>{if(a&&d1)for(;fc(fo(e[0],e[i-1],d)):c}function C7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ms(0,t,r);e.push(tt(n,1,o))}}function P7(e){const t=[0];return C7(t,e.length-1),t}function _7(e,t){return e.map(n=>n*t)}function T7(e,t){return e.map(()=>t||lj).splice(0,e.length-1)}function Yf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=x7(r)?r.map(vw):vw(r),i={done:!1,value:t[0]},a=_7(n&&n.length===t.length?n:P7(t),e),s=k7(a,t,{ease:Array.isArray(o)?o:T7(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const E7=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>oi(t),now:()=>It.isProcessing?It.timestamp:Nr.now()}},j7={decay:gw,inertia:gw,tween:Yf,keyframes:Yf,spring:sj},$7=e=>e/100;class Sb extends rj{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,a=(o==null?void 0:o.KeyframeResolver)||bb,s=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new a(i,s,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=this.options,s=lb(n)?n:j7[n]||Yf;let l,c;s!==Yf&&typeof t[0]!="number"&&(l=fu($7,ij(t[0],t[1])),t=[0,100]);const d=s({...this.options,keyframes:t});i==="mirror"&&(c=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=PE(d));const{calculatedDuration:f}=d,p=f+o,h=p*(r+1)-o;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:g,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=i;if(h){const T=Math.min(this.currentTime,d)/f;let A=Math.floor(T),$=T%1;!$&&T>=1&&($=1),$===1&&A--,A=Math.min(A,h+1),!!(A%2)&&(g==="reverse"?($=1-$,y&&($-=y/f)):g==="mirror"&&(w=a)),S=fo(0,1,$)*f}const k=v?{done:!1,value:l[0]}:w.next(S);s&&(k.value=s(k.value));let{done:_}=k;!v&&c!==null&&(_=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return C&&o!==void 0&&(k.value=Kp(l,this.options,o)),x&&x(k.value),C&&this.finish(),k}get duration(){const{resolved:t}=this;return t?io(t.calculatedDuration):0}get time(){return io(this.currentTime)}set time(t){t=oo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=io(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=E7,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const A7=new Set(["opacity","clipPath","filter","transform"]);function I7(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=EE(s,o);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const R7=Ky(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),qf=10,z7=2e4;function M7(e){return lb(e.type)||e.type==="spring"||!TE(e.ease)}function N7(e,t){const n=new Sb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(a,s),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:a,motionValue:s,name:l,startTime:c}=this.options;if(!s.owner||!s.owner.current)return!1;if(typeof i=="string"&&Kf()&&O7(i)&&(i=cj[i]),M7(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:g,...y}=this.options,x=N7(t,y);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,o=x.times,i=x.ease,a="keyframes"}const d=I7(s.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(nw(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;s.set(Kp(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:a,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return io(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return io(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=oo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kn;const{animation:r}=n;nw(r,t)}return kn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:a,times:s}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,element:p,...h}=this.options,g=new Sb({...h,keyframes:r,duration:o,type:i,ease:a,times:s,isGenerator:!0}),y=oo(this.time);c.setWithVelocity(g.sample(y-qf).value,g.sample(y).value,qf)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return R7()&&r&&A7.has(r)&&!l&&!c&&!o&&i!=="mirror"&&a!==0&&s!=="inertia"}}const D7={type:"spring",stiffness:500,damping:25,restSpeed:10},L7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),F7={type:"keyframes",duration:.8},B7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},V7=(e,{keyframes:t})=>t.length>2?F7:ga.has(e)?e.startsWith("scale")?L7(t[1]):D7:B7;function W7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const wb=(e,t,n,r={},o,i)=>a=>{const s=sb(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c=c-oo(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:p=>{t.set(p),s.onUpdate&&s.onUpdate(p)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};W7(s)||(d={...d,...V7(e,d)}),d.duration&&(d.duration=oo(d.duration)),d.repeatDelay&&(d.repeatDelay=oo(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Kp(d.keyframes,s);if(p!==void 0)return Ye.update(()=>{d.onUpdate(p),d.onComplete()}),new lB([])}return!i&&yw.supports(d)?new yw(d):new Sb(d)};function U7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uj(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in l){const p=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),h=l[f];if(h===void 0||d&&U7(d,f))continue;const g={delay:n,...sb(a||{},f)};let y=!1;if(window.MotionHandoffAnimation){const b=zE(e);if(b){const v=window.MotionHandoffAnimation(b,f,Ye);v!==null&&(g.startTime=v,y=!0)}}vv(e,f),p.start(wb(f,p,h,e.shouldReduceMotion&&IE.has(f)?{type:!1}:g,e,y));const x=p.animation;x&&c.push(x)}return s&&Promise.all(c).then(()=>{Ye.update(()=>{s&&wB(e,s)})}),c}function Cv(e,t,n={}){var r;const o=Gp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(uj(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=i;return H7(e,t,d+c,f,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[a,s]:[s,a];return c().then(()=>d())}else return Promise.all([a(),s(n.delay)])}function H7(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(G7).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(Cv(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function G7(e,t){return e.sortNodePosition(t)}function K7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Cv(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Cv(e,t,n);else{const o=typeof t=="function"?Gp(e,t,n.custom):t;r=Promise.all(uj(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const X7=Yy.length;function dj(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?dj(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>K7(e,n,r)))}function Z7(e){let t=Q7(e),n=bw(),r=!0;const o=l=>(c,d)=>{var f;const p=Gp(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:g,...y}=p;c={...c,...y,...g}}return c};function i(l){t=l(e)}function a(l){const{props:c}=e,d=dj(e.parent)||{},f=[],p=new Set;let h={},g=1/0;for(let x=0;xg&&w,A=!1;const $=Array.isArray(S)?S:[S];let B=$.reduce(o(b),{});k===!1&&(B={});const{prevResolvedValues:Y={}}=v,te={...Y,...B},I=z=>{T=!0,p.has(z)&&(A=!0,p.delete(z)),v.needsAnimating[z]=!0;const O=e.getValue(z);O&&(O.liveStyle=!1)};for(const z in te){const O=B[z],R=Y[z];if(h.hasOwnProperty(z))continue;let D=!1;mv(O)&&mv(R)?D=!CE(O,R):D=O!==R,D?O!=null?I(z):p.add(z):O!==void 0&&p.has(z)?I(z):v.protectedKeys[z]=!0}v.prevProp=S,v.prevResolvedValues=B,v.isActive&&(h={...h,...B}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(_&&C)||A)&&f.push(...$.map(z=>({animation:z,options:{type:b}})))}if(p.size){const x={};p.forEach(b=>{const v=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),x[b]=v??null}),f.push({animation:x})}let y=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function s(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const f=a(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=bw(),r=!0}}}function J7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CE(t,e):!1}function Ci(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bw(){return{animate:Ci(!0),whileInView:Ci(),whileHover:Ci(),whileTap:Ci(),whileDrag:Ci(),whileFocus:Ci(),exit:Ci()}}class mi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eV extends mi{constructor(t){super(t),t.animationState||(t.animationState=Z7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Up(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let tV=0;class nV extends mi{constructor(){super(...arguments),this.id=tV++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const rV={animation:{Feature:eV},exit:{Feature:nV}};function Fc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function pu(e){return{point:{x:e.pageX,y:e.pageY}}}const oV=e=>t=>ub(t)&&e(t,pu(t));function oc(e,t,n,r){return Fc(e,t,oV(n),r)}const xw=(e,t)=>Math.abs(e-t);function iV(e,t){const n=xw(e.x,t.x),r=xw(e.y,t.y);return Math.sqrt(n**2+r**2)}class fj{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_h(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=iV(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:g}=f,{timestamp:y}=It;this.history.push({...g,timestamp:y});const{onStart:x,onMove:b}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ph(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=_h(f.type==="pointercancel"?this.lastMoveEventInfo:Ph(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),g&&g(f,x)},!ub(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=pu(t),s=Ph(a,this.transformPagePoint),{point:l}=s,{timestamp:c}=It;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,_h(s,this.history)),this.removeListeners=fu(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oi(this.updatePoint)}}function Ph(e,t){return t?{point:t(e.point)}:e}function Sw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _h({point:e},t){return{point:e,delta:Sw(e,pj(t)),offset:Sw(e,aV(t)),velocity:sV(t,.1)}}function aV(e){return e[0]}function pj(e){return e[e.length-1]}function sV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=pj(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>oo(t)));)n--;if(!r)return{x:0,y:0};const i=io(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const mj=1e-4,lV=1-mj,cV=1+mj,hj=.01,uV=0-hj,dV=0+hj;function Pn(e){return e.max-e.min}function fV(e,t,n){return Math.abs(e-t)<=n}function ww(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Pn(n)/Pn(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lV&&e.scale<=cV||isNaN(e.scale))&&(e.scale=1),(e.translate>=uV&&e.translate<=dV||isNaN(e.translate))&&(e.translate=0)}function ic(e,t,n,r){ww(e.x,t.x,n.x,r?r.originX:void 0),ww(e.y,t.y,n.y,r?r.originY:void 0)}function kw(e,t,n){e.min=n.min+t.min,e.max=e.min+Pn(t)}function pV(e,t,n){kw(e.x,t.x,n.x),kw(e.y,t.y,n.y)}function Cw(e,t,n){e.min=t.min-n.min,e.max=e.min+Pn(t)}function ac(e,t,n){Cw(e.x,t.x,n.x),Cw(e.y,t.y,n.y)}function mV(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function Pw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function hV(e,{top:t,left:n,bottom:r,right:o}){return{x:Pw(e.x,n,o),y:Pw(e.y,t,r)}}function _w(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ms(t.min,t.max-r,e.min):r>o&&(n=Ms(e.min,e.max-o,t.min)),fo(0,1,n)}function yV(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Pv=.35;function bV(e=Pv){return e===!1?e=0:e===!0&&(e=Pv),{x:Tw(e,"left","right"),y:Tw(e,"top","bottom")}}function Tw(e,t,n){return{min:Ew(e,t),max:Ew(e,n)}}function Ew(e,t){return typeof e=="number"?e:e[t]||0}const jw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ja=()=>({x:jw(),y:jw()}),$w=()=>({min:0,max:0}),dt=()=>({x:$w(),y:$w()});function Nn(e){return[e("x"),e("y")]}function gj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function SV(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Th(e){return e===void 0||e===1}function _v({scale:e,scaleX:t,scaleY:n}){return!Th(e)||!Th(t)||!Th(n)}function Ei(e){return _v(e)||vj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vj(e){return Aw(e.x)||Aw(e.y)}function Aw(e){return e&&e!=="0%"}function Qf(e,t,n){const r=e-n,o=t*r;return n+o}function Iw(e,t,n,r,o){return o!==void 0&&(e=Qf(e,o,r)),Qf(e,n,r)+t}function Tv(e,t=0,n=1,r,o){e.min=Iw(e.min,t,n,r,o),e.max=Iw(e.max,t,n,r,o)}function yj(e,{x:t,y:n}){Tv(e.x,t.translate,t.scale,t.originPoint),Tv(e.y,n.translate,n.scale,n.originPoint)}const Rw=.999999999999,zw=1.0000000000001;function wV(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;sRw&&(t.x=1),t.yRw&&(t.y=1)}function es(e,t){e.min=e.min+t,e.max=e.max+t}function Mw(e,t,n,r,o=.5){const i=tt(e.min,e.max,o);Tv(e,t,n,i,r)}function ts(e,t){Mw(e.x,t.x,t.scaleX,t.scale,t.originX),Mw(e.y,t.y,t.scaleY,t.scale,t.originY)}function bj(e,t){return gj(SV(e.getBoundingClientRect(),t))}function kV(e,t,n){const r=bj(e,n),{scroll:o}=t;return o&&(es(r.x,o.offset.x),es(r.y,o.offset.y)),r}const xj=({current:e})=>e?e.ownerDocument.defaultView:null,CV=new WeakMap;class PV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=dt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pu(d).point)},i=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:g}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vB(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Nn(x=>{let b=this.getAxisMotionValue(x).get()||0;if(Mr.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[x];S&&(b=Pn(S)*(parseFloat(b)/100))}}this.originPoint[x]=b}),g&&Ye.postRender(()=>g(d,f)),vv(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=_V(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&y(d,f)},s=(d,f)=>this.stop(d,f),l=()=>Nn(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new fj(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:xj(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ye.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ud(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=mV(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Qa(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=hV(o.layoutBox,n):this.constraints=!1,this.elastic=bV(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Nn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=yV(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qa(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=kV(r,o.root,this.visualElement.getTransformPagePoint());let a=gV(o.layout.layoutBox,i);if(n){const s=n(xV(a));this.hasMutatedConstraints=!!s,s&&(a=gj(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Nn(d=>{if(!ud(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const p=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return vv(this.visualElement,t),r.start(wb(t,r,0,n,this.visualElement,!1))}stopAnimation(){Nn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Nn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Nn(n=>{const{drag:r}=this.getProps();if(!ud(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-tt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qa(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Nn(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=vV({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Nn(a=>{if(!ud(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(tt(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;CV.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Qa(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ye.read(r);const a=Fc(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Nn(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Pv,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ud(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _V(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class TV extends mi{constructor(t){super(t),this.removeGroupControls=kn,this.removeListeners=kn,this.controls=new PV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nw=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};class EV extends mi{constructor(){super(...arguments),this.removePointerDownListener=kn}onPointerDown(t){this.session=new fj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xj(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Nw(t),onStart:Nw(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Ye.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const tf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ow(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const n=Ow(e,t.target.x),r=Ow(e,t.target.y);return`${n}% ${r}%`}},jV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ii.parse(e);if(o.length>5)return r;const i=ii.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=tt(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class $V extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;q9(AV),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),tf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ye.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Sj(e){const[t,n]=Hy(),r=m.useContext(Vy);return u.jsx($V,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(dE),isPresent:t,safeToRemove:n})}const AV={borderRadius:{...bl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bl,borderTopRightRadius:bl,borderBottomLeftRadius:bl,borderBottomRightRadius:bl,boxShadow:jV};function IV(e,t,n){const r=Yt(e)?e:Dc(e);return r.start(wb("",r,t,n)),r.animation}function RV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const zV=(e,t)=>e.depth-t.depth;class MV{constructor(){this.children=[],this.isDirty=!1}add(t){db(this.children,t),this.isDirty=!0}remove(t){fb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zV),this.isDirty=!1,this.children.forEach(t)}}function NV(e,t){const n=Nr.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(oi(r),e(i-t))};return Ye.read(r,!0),()=>oi(r)}const wj=["TopLeft","TopRight","BottomLeft","BottomRight"],OV=wj.length,Dw=e=>typeof e=="string"?parseFloat(e):e,Lw=e=>typeof e=="number"||de.test(e);function DV(e,t,n,r,o,i){o?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,LV(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,FV(r))):i&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Ms(e,t,r))}function Bw(e,t){e.min=t.min,e.max=t.max}function zn(e,t){Bw(e.x,t.x),Bw(e.y,t.y)}function Vw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ww(e,t,n,r,o){return e-=t,e=Qf(e,1/n,r),o!==void 0&&(e=Qf(e,1/o,r)),e}function BV(e,t=0,n=1,r=.5,o,i=e,a=e){if(Mr.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=tt(i.min,i.max,r);e===i&&(s-=t),e.min=Ww(e.min,t,n,s,o),e.max=Ww(e.max,t,n,s,o)}function Uw(e,t,[n,r,o],i,a){BV(e,t[n],t[r],t[o],t.scale,i,a)}const VV=["x","scaleX","originX"],WV=["y","scaleY","originY"];function Hw(e,t,n,r){Uw(e.x,t,VV,n?n.x:void 0,r?r.x:void 0),Uw(e.y,t,WV,n?n.y:void 0,r?r.y:void 0)}function Gw(e){return e.translate===0&&e.scale===1}function Cj(e){return Gw(e.x)&&Gw(e.y)}function Kw(e,t){return e.min===t.min&&e.max===t.max}function UV(e,t){return Kw(e.x,t.x)&&Kw(e.y,t.y)}function Xw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pj(e,t){return Xw(e.x,t.x)&&Xw(e.y,t.y)}function Yw(e){return Pn(e.x)/Pn(e.y)}function qw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class HV{constructor(){this.members=[]}add(t){db(this.members,t),t.scheduleRender()}remove(t){if(fb(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function GV(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const ji={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ml=typeof window<"u"&&window.MotionDebug!==void 0,Eh=["","X","Y","Z"],KV={visibility:"hidden"},Qw=1e3;let XV=0;function jh(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function _j(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=zE(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&_j(r)}function Tj({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=XV++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ml&&(ji.totalNodes=ji.resolvedTargetDeltas=ji.recalculatedProjection=0),this.nodes.forEach(QV),this.nodes.forEach(nW),this.nodes.forEach(rW),this.nodes.forEach(ZV),Ml&&window.MotionDebug.record(ji)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=NV(p,250),tf.hasAnimatedSinceResize&&(tf.hasAnimatedSinceResize=!1,this.nodes.forEach(Jw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||lW,{onLayoutAnimationStart:x,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!Pj(this.targetLayout,g)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...sb(y,"layout"),onPlay:x,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||Jw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,oi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oW),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_j(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=w/1e3;ek(f.x,a.x,k),ek(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),aW(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&UV(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=dt()),zn(S,this.relativeTarget)),y&&(this.animationValues=d,DV(d,c,this.latestValues,k,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(oi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{tf.hasAnimatedSinceResize=!0,this.currentAnimation=IV(0,Qw,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Ej(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||dt();const f=Pn(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const p=Pn(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}zn(s,l),ts(s,d),ic(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new HV),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&jh("z",a,c,this.animationValues);for(let d=0;d{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Zw),this.root.sharedNodes.clear()}}}function YV(e){e.updateLayout()}function qV(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?Nn(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Pn(p);p.min=r[f].min,p.max=p.min+h}):Ej(i,n.layoutBox,r)&&Nn(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Pn(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Ja();ic(s,r,n.layoutBox);const l=Ja();a?ic(l,e.applyTransform(o,!0),n.measuredBox):ic(l,r,n.layoutBox);const c=!Cj(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const g=dt();ac(g,n.layoutBox,p.layoutBox);const y=dt();ac(y,r,h.layoutBox),Pj(g,y)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QV(e){Ml&&ji.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ZV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function JV(e){e.clearSnapshot()}function Zw(e){e.clearMeasurements()}function eW(e){e.isLayoutDirty=!1}function tW(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nW(e){e.resolveTargetDelta()}function rW(e){e.calcProjection()}function oW(e){e.resetSkewAndRotation()}function iW(e){e.removeLeadSnapshot()}function ek(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tk(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function aW(e,t,n,r){tk(e.x,t.x,n.x,r),tk(e.y,t.y,n.y,r)}function sW(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lW={duration:.45,ease:[.4,0,.1,1]},nk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rk=nk("applewebkit/")&&!nk("chrome/")?Math.round:kn;function ok(e){e.min=rk(e.min),e.max=rk(e.max)}function cW(e){ok(e.x),ok(e.y)}function Ej(e,t,n){return e==="position"||e==="preserve-aspect"&&!fV(Yw(t),Yw(n),.2)}function uW(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const dW=Tj({attachResizeListener:(e,t)=>Fc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$h={current:void 0},jj=Tj({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$h.current){const e=new dW({});e.mount(window),e.setOptions({layoutScroll:!0}),$h.current=e}return $h.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),fW={pan:{Feature:EV},drag:{Feature:TV,ProjectionNode:jj,MeasureLayout:Sj}};function ik(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Ye.postRender(()=>i(t,pu(t)))}class pW extends mi{mount(){const{current:t}=this.node;t&&(this.unmount=fB(t,n=>(ik(this.node,n,"Start"),r=>ik(this.node,r,"End"))))}unmount(){}}class mW extends mi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fu(Fc(this.node.current,"focus",()=>this.onFocus()),Fc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ak(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Ye.postRender(()=>i(t,pu(t)))}class hW extends mi{mount(){const{current:t}=this.node;t&&(this.unmount=gB(t,n=>(ak(this.node,n,"Start"),(r,{success:o})=>ak(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ev=new WeakMap,Ah=new WeakMap,gW=e=>{const t=Ev.get(e.target);t&&t(e)},vW=e=>{e.forEach(gW)};function yW({root:e,...t}){const n=e||document;Ah.has(n)||Ah.set(n,{});const r=Ah.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(vW,{root:e,...t})),r[o]}function bW(e,t,n){const r=yW(t);return Ev.set(e,n),r.observe(e),()=>{Ev.delete(e),r.unobserve(e)}}const xW={some:0,all:1};class SW extends mi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xW[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=c?d:f;p&&p(l)};return bW(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wW(t,n))&&this.startObserver()}unmount(){}}function wW({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const kW={inView:{Feature:SW},tap:{Feature:hW},focus:{Feature:mW},hover:{Feature:pW}},CW={layout:{ProjectionNode:jj,MeasureLayout:Sj}},jv={current:null},$j={current:!1};function PW(){if($j.current=!0,!!Gy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>jv.current=e.matches;e.addListener(t),t()}else jv.current=!1}const _W=[...tj,Ht,ii],TW=e=>_W.find(ej(e)),sk=new WeakMap;function EW(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Yt(o))e.addValue(r,o);else if(Yt(i))e.addValue(r,Dc(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,Dc(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const lk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class jW{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Nr.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),$j.current||PW(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:jv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sk.delete(this.current),this.projection&&this.projection.unmount(),oi(this.notifyUpdate),oi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ga.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ns){const n=Ns[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(ZE(o)||WE(o))?o=parseFloat(o):!TW(o)&&ii.test(n)&&(o=YE(t,n)),this.setBaseTarget(t,Yt(o)?o.get():o)),Yt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const a=Jy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(o=a[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Yt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Aj extends jW{constructor(){super(...arguments),this.KeyframeResolver=nj}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Yt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $W(e){return window.getComputedStyle(e)}class AW extends Aj{constructor(){super(...arguments),this.type="html",this.renderInstance=yE}readValueFromInstance(t,n){if(ga.has(n)){const r=yb(n);return r&&r.default||0}else{const r=$W(t),o=(hE(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bj(t,n)}build(t,n,r){nb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ab(t,n,r)}}class IW extends Aj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ga.has(n)){const r=yb(n);return r&&r.default||0}return n=bE.has(n)?n:qy(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return wE(t,n,r)}build(t,n,r){rb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){xE(t,n,r,o)}mount(t){this.isSVGTag=ib(t.tagName),super.mount(t)}}const RW=(e,t)=>Zy(e)?new IW(t):new AW(t,{allowProjection:e!==m.Fragment}),zW=iB({...rV,...kW,...fW,...CW},RW),$n=x9(zW),MW=(e,t)=>e.find(n=>n.id===t);function ck(e,t){const n=Ij(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function Ij(e,t){for(const[n,r]of Object.entries(e))if(MW(r,t))return n}function NW(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function OW(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:a}}var DW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LW=WT(function(e){return DW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FW=LW,BW=function(t){return t!=="theme"},uk=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FW:BW},dk=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},VW=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return My(n,r,o),ZT(function(){return Ny(n,r,o)}),null},WW=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=dk(t,n,r),l=s||uk(o),c=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,g=1;gt=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,[s]=$z(a,wM),l=Xt(e,t),c=uz({},o,l,vy(s),i),d=dT(c)(t.theme);return r?[d,r]:d};function Ih(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=KW);const o=YW({baseStyle:n}),i=XW(e,r)(o);return m.forwardRef(function(l,c){const{children:d,...f}=l,{colorMode:p,forced:h}=lu(),g=h?p:void 0;return m.createElement(i,{ref:c,"data-theme":g,...f},d)})}function qW(){const e=new Map;return new Proxy(Ih,{apply(t,n,r){return Ih(...r)},get(t,n){return e.has(n)||e.set(n,Ih(n)),e.get(n)}})}const N=qW(),QW={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Rj=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=QW,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(s),h=d9();Ff(()=>{h||r==null||r()},[h]),Ff(()=>{p(s)},[s]);const g=()=>p(null),y=()=>p(s),x=()=>{h&&o()};m.useEffect(()=>{h&&i&&o()},[h,i,o]),Fz(x,f);const b=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l}),[l,d]),v=m.useMemo(()=>NW(a),[a]);return u.jsx($n.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:y,custom:{position:a},style:v,children:u.jsx(N.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:Xt(n,{id:t,onClose:x})})})});Rj.displayName="ToastComponent";function L(e){return m.forwardRef(e)}var ZW=typeof Element<"u",JW=typeof Map=="function",eU=typeof Set=="function",tU=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!nf(e[r],t[r]))return!1;return!0}var i;if(JW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!nf(r.value[1],t.get(r.value[0])))return!1;return!0}if(eU&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(tU&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(ZW&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!nf(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var nU=function(t,n){try{return nf(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const rU=b0(nU);function yo(){const e=m.useContext(zs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function zj(){const e=lu(),t=yo();return{...e,theme:t}}function oU(e,t,n){if(t==null)return t;const r=o=>{var i,a;return(a=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:a.value};return r(t)??r(n)??n}function iU(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const a=o.filter(Boolean),s=r.map((l,c)=>{const d=`${e}.${l}`;return oU(i,d,a[c]??l)});return Array.isArray(t)?s:s[0]}}function aU(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function Mj(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=zj(),a=e?J_(o,`components.${e}`):void 0,s=n||a,l=Fn({theme:o,colorMode:i},(s==null?void 0:s.defaultProps)??{},aU(r),(d,f)=>d?void 0:f),c=m.useRef({});if(s){const f=RM(s)(l);rU(c.current,f)||(c.current=f)}return c.current}function An(e,t={}){return Mj(e,t)}function Ve(e,t={}){return Mj(e,t)}const fk={path:u.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[u.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),u.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),u.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},wt=L((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...c}=e,d=V("chakra-icon",s),f=An("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...f},h={ref:t,focusable:i,className:d,__css:p},g=r??fk.viewBox;if(n&&typeof n!="string")return u.jsx(N.svg,{as:n,...h,...c});const y=a??fk.path;return u.jsx(N.svg,{verticalAlign:"middle",viewBox:g,...h,...c,children:y})});wt.displayName="Icon";function sU(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function lU(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function pk(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const cU=su({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Hn=L((e,t)=>{const n=An("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=Ce(e),c=V("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${cU} ${i} linear infinite`,...n};return u.jsx(N.div,{ref:t,__css:d,className:c,...l,children:r&&u.jsx(N.span,{srOnly:!0,children:r})})});Hn.displayName="Spinner";const[uU,kb]=ye({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[dU,Cb]=ye({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Nj={info:{icon:lU,colorScheme:"blue"},warning:{icon:pk,colorScheme:"orange"},success:{icon:sU,colorScheme:"green"},error:{icon:pk,colorScheme:"red"},loading:{icon:Hn,colorScheme:"blue"}};function fU(e){return Nj[e].colorScheme}function pU(e){return Nj[e].icon}const Oj=L(function(t,n){const{status:r="info",addRole:o=!0,...i}=Ce(t),a=t.colorScheme??fU(r),s=Ve("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return u.jsx(uU,{value:{status:r},children:u.jsx(dU,{value:s,children:u.jsx(N.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:V("chakra-alert",t.className),__css:l})})})});Oj.displayName="Alert";function Dj(e){const{status:t}=kb(),n=pU(t),r=Cb(),o=t==="loading"?r.spinner:r.icon;return u.jsx(N.span,{display:"inherit","data-status":t,...e,className:V("chakra-alert__icon",e.className),__css:o,children:e.children||u.jsx(n,{h:"100%",w:"100%"})})}Dj.displayName="AlertIcon";const Lj=L(function(t,n){const r=Cb(),{status:o}=kb();return u.jsx(N.div,{ref:n,"data-status":o,...t,className:V("chakra-alert__title",t.className),__css:r.title})});Lj.displayName="AlertTitle";const Fj=L(function(t,n){const{status:r}=kb(),o=Cb(),i={display:"inline",...o.description};return u.jsx(N.div,{ref:n,"data-status":r,...t,className:V("chakra-alert__desc",t.className),__css:i})});Fj.displayName="AlertDescription";function mU(e){return u.jsx(wt,{focusable:"false","aria-hidden":!0,...e,children:u.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const Xp=L(function(t,n){const r=An("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=Ce(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return u.jsx(N.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...a},...s,children:o||u.jsx(mU,{width:"1em",height:"1em"})})});Xp.displayName="CloseButton";const hU=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return u.jsxs(Oj,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[u.jsx(Dj,{children:c}),u.jsxs(N.div,{flex:"1",maxWidth:"100%",children:[o&&u.jsx(Lj,{id:d==null?void 0:d.title,children:o}),s&&u.jsx(Fj,{id:d==null?void 0:d.description,display:"block",children:s})]}),i&&u.jsx(Xp,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Bj(e={}){const{render:t,toastComponent:n=hU}=e;return o=>typeof t=="function"?t({...o,...e}):u.jsx(n,{...o,...e})}const gU={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Er=vU(gU);function vU(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=yU(o,i),{position:s,id:l}=a;return r(c=>{const f=s.includes("top")?[a,...c[s]??[]]:[...c[s]??[],a];return{...c,[s]:f}}),l},update:(o,i)=>{o&&r(a=>{const s={...a},{position:l,index:c}=ck(s,o);return l&&c!==-1&&(s[l][c]={...s[l][c],...i,message:Bj(i)}),s})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(d=>({...d,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const a=Ij(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!ck(Er.getState(),o).position}}let mk=0;function yU(e,t={}){mk+=1;const n=t.id??mk,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Er.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[Vj,bU]=ye({strict:!1,name:"PortalContext"}),Pb="chakra-portal",xU=".chakra-portal",SU=e=>u.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),wU=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=m.useState(null),i=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const s=bU(),l=o9();no(()=>{if(!r)return;const d=r.ownerDocument,f=t?s??d.body:d.body;if(!f)return;i.current=d.createElement("div"),i.current.className=Pb,f.appendChild(i.current),a({});const p=i.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const c=l!=null&&l.zIndex?u.jsx(SU,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?my.createPortal(u.jsx(Vj,{value:i.current,children:c}),i.current):u.jsx("span",{ref:d=>{d&&o(d)}})},kU=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Pb),l},[o]),[,s]=m.useState({});return no(()=>s({}),[]),no(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?my.createPortal(u.jsx(Vj,{value:r?a:null,children:t}),a):null};function Js(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?u.jsx(kU,{containerRef:n,...r}):u.jsx(wU,{...r})}Js.className=Pb;Js.selector=xU;Js.displayName="Portal";const[CU,PU]=ye({name:"ToastOptionsContext",strict:!1}),_U=e=>{const t=m.useSyncExternalStore(Er.subscribe,Er.getState,Er.getState),{motionVariants:n,component:r=Rj,portalProps:o,animatePresenceProps:i}=e,s=Object.keys(t).map(l=>{const c=t[l];return u.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,"aria-hidden":!c.length,id:`chakra-toast-manager-${l}`,style:OW(l),children:u.jsx(vo,{...i,initial:!1,children:c.map(d=>u.jsx(r,{motionVariants:n,...d},d.id))})},l)});return u.jsx(Js,{...o,children:s})},TU=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return u.jsxs(a9,{theme:r,...i,children:[u.jsx(CU,{value:o==null?void 0:o.defaultOptions,children:n}),u.jsx(_U,{...o})]})},EU=TU(Oi);function hk(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const jU=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function gk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function vk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const Rh=typeof window<"u"?m.useLayoutEffect:m.useEffect,yk=e=>e;var $U=Object.defineProperty,AU=(e,t,n)=>t in e?$U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,at=(e,t,n)=>(AU(e,typeof t!="symbol"?t+"":t,n),n);class IU{constructor(){at(this,"descendants",new Map),at(this,"register",t=>{if(t!=null)return jU(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),at(this,"unregister",t=>{this.descendants.delete(t);const n=hk(Array.from(this.descendants.keys()));this.assignIndex(n)}),at(this,"destroy",()=>{this.descendants.clear()}),at(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),at(this,"count",()=>this.descendants.size),at(this,"enabledCount",()=>this.enabledValues().length),at(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),at(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),at(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),at(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),at(this,"first",()=>this.item(0)),at(this,"firstEnabled",()=>this.enabledItem(0)),at(this,"last",()=>this.item(this.descendants.size-1)),at(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),at(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),at(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),at(this,"next",(t,n=!0)=>{const r=gk(t,this.count(),n);return this.item(r)}),at(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=gk(o,this.enabledCount(),n);return this.enabledItem(i)}),at(this,"prev",(t,n=!0)=>{const r=vk(t,this.count()-1,n);return this.item(r)}),at(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const o=this.enabledIndexOf(r.node),i=vk(o,this.enabledCount()-1,n);return this.enabledItem(i)}),at(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),o=hk(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const i={node:t,index:-1,...n};this.descendants.set(t,i),this.assignIndex(o)})}}function RU(){const[e,t]=ye({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=m.useRef(new IU);return Rh(()=>()=>o.current.destroy()),o.current},o=>{const i=t(),[a,s]=m.useState(-1),l=m.useRef(null);Rh(()=>()=>{l.current&&i.unregister(l.current)},[]),Rh(()=>{if(!l.current)return;const d=Number(l.current.dataset.index);a!=d&&!Number.isNaN(d)&&s(d)});const c=yk(o?i.register(o):i.register);return{descendants:i,index:a,enabledIndex:i.enabledIndexOf(l.current),register:bt(c,l)}}]}const Zr={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},xl={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Av(e){switch((e==null?void 0:e.direction)??"right"){case"right":return xl.slideRight;case"left":return xl.slideLeft;case"bottom":return xl.slideDown;case"top":return xl.slideUp;default:return xl.slideRight}}const Xi={enter:{duration:.2,ease:Zr.easeOut},exit:{duration:.1,ease:Zr.easeIn}},dr={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},zU=e=>e!=null&&parseInt(e.toString(),10)>0,bk={exit:{height:{duration:.2,ease:Zr.ease},opacity:{duration:.3,ease:Zr.ease}},enter:{height:{duration:.3,ease:Zr.ease},opacity:{duration:.4,ease:Zr.ease}}},MU={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:zU(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??dr.exit(bk.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??dr.enter(bk.enter,o)})},Yp=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:a="auto",style:s,className:l,transition:c,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,g]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{g(!0)});return()=>clearTimeout(S)},[]);const y=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:a,animateOpacity:o,transition:h?c:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:y?"block":"none"}}},b=r?n:!0,v=n||r?"enter":"exit";return u.jsx(vo,{...f,initial:!1,custom:x,children:b&&u.jsx($n.div,{ref:t,...p,className:V("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:x,variants:MU,initial:r?"exit":!1,animate:v,exit:"exit"})})});Yp.displayName="Collapse";const[NU,Wj]=ye({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function OU(e){const t=e.trim().split(" "),n=t[0]??"",r=t.length>1?t[t.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function Uj(e){const{name:t,getInitials:n,...r}=e,o=Wj();return u.jsx(N.div,{role:"img","aria-label":t,...r,__css:o.label,children:t?n==null?void 0:n(t):null})}Uj.displayName="AvatarName";const Hj=e=>u.jsxs(N.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[u.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),u.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function DU(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const g=new Image;g.src=n,a&&(g.crossOrigin=a),r&&(g.srcset=r),s&&(g.sizes=s),t&&(g.loading=t),g.onload=y=>{h(),d("loaded"),o==null||o(y)},g.onerror=y=>{h(),d("failed"),i==null||i(y)},f.current=g},[n,a,r,s,o,i,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return no(()=>{if(!l)return c==="loading"&&p(),()=>{h()}},[c,p,l]),l?"loaded":c}function Gj(e){const{src:t,srcSet:n,onError:r,onLoad:o,getInitials:i,name:a,borderRadius:s,loading:l,iconLabel:c,icon:d=u.jsx(Hj,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,y=DU({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!y?a?u.jsx(Uj,{className:"chakra-avatar__initials",getInitials:i,name:a}):m.cloneElement(d,{role:"img","aria-label":c}):u.jsx(N.img,{src:t,srcSet:n,alt:a??c,onLoad:o,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:l,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:s}})}Gj.displayName="AvatarImage";const LU={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},_b=L((e,t)=>{const n=Ve("Avatar",e),[r,o]=m.useState(!1),{src:i,srcSet:a,name:s,showBorder:l,borderRadius:c="full",onError:d,onLoad:f,getInitials:p=OU,icon:h=u.jsx(Hj,{}),iconLabel:g=" avatar",loading:y,children:x,borderColor:b,ignoreFallback:v,crossOrigin:S,referrerPolicy:w,...k}=Ce(e),_={borderRadius:c,borderWidth:l?"2px":void 0,...LU,...n.container};return b&&(_.borderColor=b),u.jsx(N.span,{ref:t,...k,className:V("chakra-avatar",e.className),"data-loaded":oe(r),__css:_,children:u.jsxs(NU,{value:n,children:[u.jsx(Gj,{src:i,srcSet:a,loading:y,onLoad:le(f,()=>{o(!0)}),onError:d,getInitials:p,name:s,borderRadius:c,icon:h,iconLabel:g,ignoreFallback:v,crossOrigin:S,referrerPolicy:w}),x]})})});_b.displayName="Avatar";const FU={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},Kj=L(function(t,n){const{placement:r="bottom-end",className:o,...i}=t,a=Wj(),l={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...FU[r],...a.badge};return u.jsx(N.div,{ref:n,...i,className:V("chakra-avatar__badge",o),__css:l})});Kj.displayName="AvatarBadge";const Gn=L(function(t,n){const r=An("Badge",t),{className:o,...i}=Ce(t);return u.jsx(N.span,{ref:n,className:V("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});Gn.displayName="Badge";const ge=N("div");ge.displayName="Box";const[BU,VU]=ye({strict:!1,name:"ButtonGroupContext"});function Nl(e){const{children:t,className:n,...r}=e,o=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=V("chakra-button__icon",n);return u.jsx(N.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Nl.displayName="ButtonIcon";function Iv(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=u.jsx(Hn,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=V("chakra-button__spinner",i),c=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,c,r]);return u.jsx(N.div,{className:l,...s,__css:d,children:o})}Iv.displayName="ButtonSpinner";function WU(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const he=L((e,t)=>{const n=VU(),r=An("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:g="start",className:y,as:x,shouldWrapChildren:b,...v}=Ce(e),S=m.useMemo(()=>{const C={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:C}}},[r,n]),{ref:w,type:k}=WU(x),_={rightIcon:c,leftIcon:l,iconSpacing:f,children:s,shouldWrapChildren:b};return u.jsxs(N.button,{disabled:o||i,ref:xy(t,w),as:x,type:p??k,"data-active":oe(a),"data-loading":oe(i),__css:S,className:V("chakra-button",y),...v,children:[i&&g==="start"&&u.jsx(Iv,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),i?d||u.jsx(N.span,{opacity:0,children:u.jsx(xk,{..._})}):u.jsx(xk,{..._}),i&&g==="end"&&u.jsx(Iv,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});he.displayName="Button";function xk(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?u.jsxs("span",{style:{display:"contents"},children:[t&&u.jsx(Nl,{marginEnd:o,children:t}),r,n&&u.jsx(Nl,{marginStart:o,children:n})]}):u.jsxs(u.Fragment,{children:[t&&u.jsx(Nl,{marginEnd:o,children:t}),r,n&&u.jsx(Nl,{marginStart:o,children:n})]})}const UU={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},HU={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Tb=L(function(t,n){const{size:r,colorScheme:o,variant:i,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:c,orientation:d="horizontal",...f}=t,p=V("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:c}),[r,o,i,c]);let g={display:"inline-flex",...l?UU[d]:HU[d](s)};const y=d==="vertical";return u.jsx(BU,{value:h,children:u.jsx(N.div,{ref:n,role:"group",__css:g,className:p,"data-attached":l?"":void 0,"data-orientation":d,flexDir:y?"column":void 0,...f})})});Tb.displayName="ButtonGroup";const Or=L((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=n||r,l=m.isValidElement(s)?m.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return u.jsx(he,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...a,children:l})});Or.displayName="IconButton";const[GU,KU]=hr("Card"),Eb=L(function(t,n){const{className:r,children:o,direction:i="column",justify:a,align:s,...l}=Ce(t),c=Ve("Card",t);return u.jsx(N.div,{ref:n,className:V("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...l,children:u.jsx(GU,{value:c,children:o})})}),jb=L(function(t,n){const{className:r,...o}=t,i=KU();return u.jsx(N.div,{ref:n,className:V("chakra-card__body",r),__css:i.body,...o})}),Xj=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Xj.displayName="Center";const XU={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};L(function(t,n){const{axis:r="both",...o}=t;return u.jsx(N.div,{ref:n,__css:XU[r],...o,position:"absolute"})});var YU=()=>typeof document<"u",Sk=!1,mu=null,sa=!1,Rv=!1,zv=new Set;function $b(e,t){zv.forEach(n=>n(e,t))}var qU=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function QU(e){return!(e.metaKey||!qU&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function wk(e){sa=!0,QU(e)&&(mu="keyboard",$b("keyboard",e))}function _a(e){if(mu="pointer",e.type==="mousedown"||e.type==="pointerdown"){sa=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;$b("pointer",e)}}function ZU(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function JU(e){ZU(e)&&(sa=!0,mu="virtual")}function eH(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!sa&&!Rv&&(mu="virtual",$b("virtual",e)),sa=!1,Rv=!1)}function tH(){sa=!1,Rv=!0}function kk(){return mu!=="pointer"}function nH(){if(!YU()||Sk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){sa=!0,e.apply(this,n)},document.addEventListener("keydown",wk,!0),document.addEventListener("keyup",wk,!0),document.addEventListener("click",JU,!0),window.addEventListener("focus",eH,!0),window.addEventListener("blur",tH,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_a,!0),document.addEventListener("pointermove",_a,!0),document.addEventListener("pointerup",_a,!0)):(document.addEventListener("mousedown",_a,!0),document.addEventListener("mousemove",_a,!0),document.addEventListener("mouseup",_a,!0)),Sk=!0}function Yj(e){nH(),e(kk());const t=()=>e(kk());return zv.add(t),()=>{zv.delete(t)}}const[rH,qj]=ye({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[oH,hu]=ye({strict:!1,name:"FormControlContext"});function iH(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...a}=e,s=m.useId(),l=t||`field-${s}`,c=`${l}-label`,d=`${l}-feedback`,f=`${l}-helptext`,[p,h]=m.useState(!1),[g,y]=m.useState(!1),[x,b]=m.useState(!1),v=m.useCallback((C={},T=null)=>({id:f,...C,ref:bt(T,A=>{A&&y(!0)})}),[f]),S=m.useCallback((C={},T=null)=>({...C,ref:T,"data-focus":oe(x),"data-disabled":oe(o),"data-invalid":oe(r),"data-readonly":oe(i),id:C.id!==void 0?C.id:c,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,x,r,i,c]),w=m.useCallback((C={},T=null)=>({id:d,...C,ref:bt(T,A=>{A&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((C={},T=null)=>({...C,...a,ref:T,role:"group","data-focus":oe(x),"data-disabled":oe(o),"data-invalid":oe(r),"data-readonly":oe(i)}),[a,o,x,r,i]),_=m.useCallback((C={},T=null)=>({...C,ref:T,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!x,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:y,id:l,labelId:c,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:v,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:_}}const _e=L(function(t,n){const r=Ve("Form",t),o=Ce(t),{getRootProps:i,htmlProps:a,...s}=iH(o),l=V("chakra-form-control",t.className);return u.jsx(oH,{value:s,children:u.jsx(rH,{value:r,children:u.jsx(N.div,{...i({},n),className:l,__css:r.container})})})});_e.displayName="FormControl";const Zf=L(function(t,n){const r=hu(),o=qj(),i=V("chakra-form__helper-text",t.className);return u.jsx(N.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});Zf.displayName="FormHelperText";function Qj(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=Zj(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":to(n),"aria-required":to(o),"aria-readonly":to(r)}}function Zj(e){const t=hu(),{id:n,disabled:r,readOnly:o,required:i,isRequired:a,isInvalid:s,isReadOnly:l,isDisabled:c,onFocus:d,onBlur:f,...p}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...p,"aria-describedby":h.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??c??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??a??(t==null?void 0:t.isRequired),isInvalid:s??(t==null?void 0:t.isInvalid),onFocus:le(t==null?void 0:t.onFocus,d),onBlur:le(t==null?void 0:t.onBlur,f)}}const Jj={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function aH(e={}){const t=Zj(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:g,name:y,value:x,tabIndex:b=void 0,"aria-label":v,"aria-labelledby":S,"aria-invalid":w,...k}=e,_=yy(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),C=ur(h),T=ur(s),A=ur(l),[$,B]=m.useState(!1),[Y,te]=m.useState(!1),[I,K]=m.useState(!1),F=m.useRef(!1);m.useEffect(()=>Yj(ce=>{F.current=ce}),[]);const z=m.useRef(null),[O,R]=m.useState(!0),[D,G]=m.useState(!!d),H=f!==void 0,Q=H?f:D,be=m.useCallback(ce=>{if(r||n){ce.preventDefault();return}H||G(Q?ce.currentTarget.checked:g?!0:ce.currentTarget.checked),C==null||C(ce)},[r,n,Q,H,g,C]);no(()=>{z.current&&(z.current.indeterminate=!!g)},[g]),Ff(()=>{n&&B(!1)},[n,B]),no(()=>{const ce=z.current;if(!(ce!=null&&ce.form))return;const it=()=>{G(!!d)};return ce.form.addEventListener("reset",it),()=>{var We;return(We=ce.form)==null?void 0:We.removeEventListener("reset",it)}},[]);const me=n&&!p,xe=m.useCallback(ce=>{ce.key===" "&&K(!0)},[K]),Fe=m.useCallback(ce=>{ce.key===" "&&K(!1)},[K]);no(()=>{if(!z.current)return;z.current.checked!==Q&&G(z.current.checked)},[z.current]);const fe=m.useCallback((ce={},it=null)=>{const We=Bt=>{$&&Bt.preventDefault(),K(!0)};return{...ce,ref:it,"data-active":oe(I),"data-hover":oe(Y),"data-checked":oe(Q),"data-focus":oe($),"data-focus-visible":oe($&&F.current),"data-indeterminate":oe(g),"data-disabled":oe(n),"data-invalid":oe(i),"data-readonly":oe(r),"aria-hidden":!0,onMouseDown:le(ce.onMouseDown,We),onMouseUp:le(ce.onMouseUp,()=>K(!1)),onMouseEnter:le(ce.onMouseEnter,()=>te(!0)),onMouseLeave:le(ce.onMouseLeave,()=>te(!1))}},[I,Q,n,$,Y,g,i,r]),Z=m.useCallback((ce={},it=null)=>({...ce,ref:it,"data-active":oe(I),"data-hover":oe(Y),"data-checked":oe(Q),"data-focus":oe($),"data-focus-visible":oe($&&F.current),"data-indeterminate":oe(g),"data-disabled":oe(n),"data-invalid":oe(i),"data-readonly":oe(r)}),[I,Q,n,$,Y,g,i,r]),J=m.useCallback((ce={},it=null)=>({..._,...ce,ref:bt(it,We=>{We&&R(We.tagName==="LABEL")}),onClick:le(ce.onClick,()=>{var We;O||((We=z.current)==null||We.click(),requestAnimationFrame(()=>{var Bt;(Bt=z.current)==null||Bt.focus({preventScroll:!0})}))}),"data-disabled":oe(n),"data-checked":oe(Q),"data-invalid":oe(i)}),[_,n,Q,i,O]),Pe=m.useCallback((ce={},it=null)=>({...ce,ref:bt(z,it),type:"checkbox",name:y,value:x,id:a,tabIndex:b,onChange:le(ce.onChange,be),onBlur:le(ce.onBlur,T,()=>B(!1)),onFocus:le(ce.onFocus,A,()=>B(!0)),onKeyDown:le(ce.onKeyDown,xe),onKeyUp:le(ce.onKeyUp,Fe),required:o,checked:Q,disabled:me,readOnly:r,"aria-label":v,"aria-labelledby":S,"aria-invalid":w?!!w:i,"aria-describedby":c,"aria-disabled":n,"aria-checked":g?"mixed":Q,style:Jj}),[y,x,a,b,be,T,A,xe,Fe,o,Q,me,r,v,S,w,i,c,n,g]),pe=m.useCallback((ce={},it=null)=>({...ce,ref:it,onMouseDown:le(ce.onMouseDown,sH),"data-disabled":oe(n),"data-checked":oe(Q),"data-invalid":oe(i)}),[Q,n,i]);return{state:{isInvalid:i,isFocused:$,isChecked:Q,isActive:I,isHovered:Y,isIndeterminate:g,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:J,getCheckboxProps:fe,getIndicatorProps:Z,getInputProps:Pe,getLabelProps:pe,htmlProps:_}}function sH(e){e.preventDefault(),e.stopPropagation()}const lH=new Set(["dark","light","system"]);function cH(e){let t=e;return lH.has(t)||(t="light"),t}function uH(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=cH(t),i=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?a:s}`.trim()}function dH(e={}){const{nonce:t}=e;return u.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:uH(e)}})}const pr=L(function(t,n){const{className:r,centerContent:o,...i}=Ce(t),a=An("Container",t);return u.jsx(N.div,{ref:n,className:V("chakra-container",r),...i,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});pr.displayName="Container";const Yi=L(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:c,...d}=An("Divider",t),{className:f,orientation:p="horizontal",__css:h,...g}=Ce(t),y={vertical:{borderLeftWidth:r||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return u.jsx(N.hr,{ref:n,"aria-orientation":p,...g,__css:{...d,border:"0",borderColor:c,borderStyle:l,...y[p],...h},className:V("chakra-divider",f)})});Yi.displayName="Divider";const[fH,e$]=ye({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[pH,Ab]=ye({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function Ck(e,t){return e?e===t||e.contains(t):!1}function mH(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:o,value:i,isDisabled:a,defaultValue:s,startWithEditView:l,isPreviewFocusable:c=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:g,...y}=e,x=ur(h),b=!!(l&&!a),[v,S]=m.useState(b),[w,k]=oT({defaultValue:s||"",value:i,onChange:t}),[_,C]=m.useState(w),T=m.useRef(null),A=m.useRef(null),$=m.useRef(null),B=m.useRef(null),Y=m.useRef(null);Dz({ref:T,enabled:v,elements:[B,Y]});const te=!v&&!a;no(()=>{var Z,J;v&&((Z=T.current)==null||Z.focus(),f&&((J=T.current)==null||J.select()))},[]),Ff(()=>{var Z,J,Pe,pe;if(!v){g?(Z=g.current)==null||Z.focus():(J=$.current)==null||J.focus();return}(Pe=T.current)==null||Pe.focus(),f&&((pe=T.current)==null||pe.select()),x==null||x()},[v,x,f]);const I=m.useCallback(()=>{te&&S(!0)},[te]),K=m.useCallback(()=>{C(w)},[w]),F=m.useCallback(()=>{S(!1),k(_),n==null||n(_),o==null||o(_)},[n,o,k,_]),z=m.useCallback(()=>{S(!1),C(w),r==null||r(w),o==null||o(_)},[w,r,o,_]);m.useEffect(()=>{if(v)return;const Z=T.current;(Z==null?void 0:Z.ownerDocument.activeElement)===Z&&(Z==null||Z.blur())},[v]);const O=m.useCallback(Z=>{k(Z.currentTarget.value)},[k]),R=m.useCallback(Z=>{const J=Z.key,pe={Escape:F,Enter:ne=>{!ne.shiftKey&&!ne.metaKey&&z()}}[J];pe&&(Z.preventDefault(),pe(Z))},[F,z]),D=m.useCallback(Z=>{const J=Z.key,pe={Escape:F}[J];pe&&(Z.preventDefault(),pe(Z))},[F]),G=w.length===0,H=m.useCallback(Z=>{if(!v)return;const J=Z.currentTarget.ownerDocument,Pe=Z.relatedTarget??J.activeElement,pe=Ck(B.current,Pe),ne=Ck(Y.current,Pe);!pe&&!ne&&(d?z():F())},[d,z,F,v]),Q=m.useCallback((Z={},J=null)=>{const Pe=te&&c?0:void 0;return{...Z,ref:bt(J,A),children:G?p:w,hidden:v,"aria-disabled":to(a),tabIndex:Pe,onFocus:le(Z.onFocus,I,K)}},[a,v,te,c,G,I,K,p,w]),be=m.useCallback((Z={},J=null)=>({...Z,hidden:!v,placeholder:p,ref:bt(J,T),disabled:a,"aria-disabled":to(a),value:w,onBlur:le(Z.onBlur,H),onChange:le(Z.onChange,O),onKeyDown:le(Z.onKeyDown,R),onFocus:le(Z.onFocus,K)}),[a,v,H,O,R,K,p,w]),me=m.useCallback((Z={},J=null)=>({...Z,hidden:!v,placeholder:p,ref:bt(J,T),disabled:a,"aria-disabled":to(a),value:w,onBlur:le(Z.onBlur,H),onChange:le(Z.onChange,O),onKeyDown:le(Z.onKeyDown,D),onFocus:le(Z.onFocus,K)}),[a,v,H,O,D,K,p,w]),xe=m.useCallback((Z={},J=null)=>({"aria-label":"Edit",...Z,type:"button",onClick:le(Z.onClick,I),ref:bt(J,$),disabled:a}),[I,a]),Fe=m.useCallback((Z={},J=null)=>({...Z,"aria-label":"Submit",ref:bt(Y,J),type:"button",onClick:le(Z.onClick,z),disabled:a}),[z,a]),fe=m.useCallback((Z={},J=null)=>({"aria-label":"Cancel",id:"cancel",...Z,ref:bt(B,J),type:"button",onClick:le(Z.onClick,F),disabled:a}),[F,a]);return{isEditing:v,isDisabled:a,isValueEmpty:G,value:w,onEdit:I,onCancel:F,onSubmit:z,getPreviewProps:Q,getInputProps:be,getTextareaProps:me,getEditButtonProps:xe,getSubmitButtonProps:Fe,getCancelButtonProps:fe,htmlProps:y}}const Ol=L(function(t,n){const r=Ve("Editable",t),o=Ce(t),{htmlProps:i,...a}=mH(o),{isEditing:s,onSubmit:l,onCancel:c,onEdit:d}=a,f=V("chakra-editable",t.className),p=Xt(t.children,{isEditing:s,onSubmit:l,onCancel:c,onEdit:d});return u.jsx(pH,{value:a,children:u.jsx(fH,{value:r,children:u.jsx(N.div,{ref:n,...i,className:f,children:p})})})});Ol.displayName="Editable";const t$={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},Dl=L(function(t,n){const{getInputProps:r}=Ab(),o=e$(),i=r(t,n),a=V("chakra-editable__input",t.className);return u.jsx(N.input,{...i,__css:{outline:0,...t$,...o.input},className:a})});Dl.displayName="EditableInput";const Ll=L(function(t,n){const{getPreviewProps:r}=Ab(),o=e$(),i=r(t,n),a=V("chakra-editable__preview",t.className);return u.jsx(N.span,{...i,__css:{cursor:"text",display:"inline-block",...t$,...o.preview},className:a})});Ll.displayName="EditablePreview";function hH(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=Ab();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function Fl(e){return typeof e=="function"}function gH(...e){return t=>e.reduce((n,r)=>r(n),t)}const vH=e=>function(...n){let r=[...n],o=n[n.length-1];return HF(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,gH(...r.map(i=>a=>Fl(i)?i(a):yH(a,i)))(o)},Ib=vH(Oi);function yH(...e){return Fn({},...e,n$)}function n$(e,t,n,r){if((Fl(e)||Fl(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Fl(e)?e(...o):e,a=Fl(t)?t(...o):t;return Fn({},i,a,n$)};if(St(e)&&Jg(t)||Jg(e)&&St(t))return t}const _t=L(function(t,n){const{direction:r,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:c,...d}=t,f={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c};return u.jsx(N.div,{ref:n,__css:f,...d})});_t.displayName="Flex";function bH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Mv="data-focus-lock",r$="data-focus-lock-disabled",xH="data-no-focus-lock",SH="data-autofocus-inside",wH="data-no-autofocus";function zh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kH(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var CH=typeof window<"u"?m.useLayoutEffect:m.useEffect,Pk=new WeakMap;function o$(e,t){var n=kH(null,function(r){return e.forEach(function(o){return zh(o,r)})});return CH(function(){var r=Pk.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||zh(s,null)}),i.forEach(function(s){o.has(s)||zh(s,a)})}Pk.set(n,e)},[e]),n}var Mh={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},jr=function(){return jr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0}).sort(UH)},GH=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Ob=GH.join(","),KH="".concat(Ob,", [data-focus-guard]"),x$=function(e,t){return Fr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?KH:Ob)?[r]:[],x$(r))},[])},XH=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?Ds([e.contentDocument.body],t):[e]},Ds=function(e,t){return e.reduce(function(n,r){var o,i=x$(r,t),a=(o=[]).concat.apply(o,i.map(function(s){return XH(s,t)}));return n.concat(a,r.parentNode?Fr(r.parentNode.querySelectorAll(Ob)).filter(function(s){return s===r}):[])},[])},YH=function(e){var t=e.querySelectorAll("[".concat(SH,"]"));return Fr(t).map(function(n){return Ds([n])}).reduce(function(n,r){return n.concat(r)},[])},Db=function(e,t){return Fr(e).filter(function(n){return h$(t,n)}).filter(function(n){return BH(n)})},_k=function(e,t){return t===void 0&&(t=new Map),Fr(e).filter(function(n){return g$(t,n)})},Lb=function(e,t,n){return Nb(Db(Ds(e,n),t),!0,n)},Vc=function(e,t){return Nb(Db(Ds(e),t),!1)},qH=function(e,t){return Db(YH(e),t)},qi=function(e,t){return e.shadowRoot?qi(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Fr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?qi(o,t):!1}return qi(n,t)})},QH=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,s){return!t.has(s)})},S$=function(e){return e.parentNode?S$(e.parentNode):e},Fb=function(e){var t=la(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Mv);return n.push.apply(n,o?QH(Fr(S$(r).querySelectorAll("[".concat(Mv,'="').concat(o,'"]:not([').concat(r$,'="disabled"])')))):[r]),n},[])},ZH=function(e){try{return e()}catch{return}},Wc=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Wc(t.shadowRoot):t instanceof HTMLIFrameElement&&ZH(function(){return t.contentWindow.document})?Wc(t.contentWindow.document):t}},JH=function(e,t){return e===t},eG=function(e,t){return!!Fr(e.querySelectorAll("iframe")).some(function(n){return JH(n,t)})},w$=function(e,t){return t===void 0&&(t=Wc(f$(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Fb(e).some(function(n){return qi(n,t)||eG(n,t)})},tG=function(e){e===void 0&&(e=document);var t=Wc(e);return t?Fr(e.querySelectorAll("[".concat(xH,"]"))).some(function(n){return qi(n,t)}):!1},nG=function(e,t){return t.filter(b$).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Bb=function(e,t){return b$(e)&&e.name?nG(e,t):e},rG=function(e){var t=new Set;return e.forEach(function(n){return t.add(Bb(n,e))}),e.filter(function(n){return t.has(n)})},Tk=function(e){return e[0]&&e.length>1?Bb(e[0],e):e[0]},Ek=function(e,t){return e.indexOf(Bb(t,e))},Dv="NEW_FOCUS",oG=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],l=Mb(r);if(!(r&&e.indexOf(r)>=0)){var c=r!==void 0?n.indexOf(r):-1,d=o?n.indexOf(o):c,f=o?e.indexOf(o):-1;if(c===-1)return f!==-1?f:Dv;if(f===-1)return Dv;var p=c-d,h=n.indexOf(a),g=n.indexOf(s),y=rG(n),x=r!==void 0?y.indexOf(r):-1,b=o?y.indexOf(o):x,v=y.filter(function(T){return T.tabIndex>=0}),S=r!==void 0?v.indexOf(r):-1,w=o?v.indexOf(o):S,k=S>=0&&w>=0?w-S:b-x;if(!p&&f>=0||t.length===0)return f;var _=Ek(e,t[0]),C=Ek(e,t[t.length-1]);if(c<=h&&l&&Math.abs(p)>1)return C;if(c>=g&&l&&Math.abs(p)>1)return _;if(p&&Math.abs(k)>1)return f;if(c<=h)return C;if(c>g)return _;if(p)return Math.abs(p)>1?f:(i+f+p)%i}},iG=function(e){return function(t){var n,r=(n=v$(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},jk=function(e,t,n){var r=e.map(function(i){var a=i.node;return a}),o=_k(r.filter(iG(n)));return o&&o.length?Tk(o):Tk(_k(t))},Lv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Lv(e.parentNode.host||e.parentNode,t),t},Nh=function(e,t){for(var n=Lv(e),r=Lv(t),o=0;o=0)return i}return!1},k$=function(e,t,n){var r=la(e),o=la(t),i=r[0],a=!1;return o.filter(Boolean).forEach(function(s){a=Nh(a||s,s)||a,n.filter(Boolean).forEach(function(l){var c=Nh(i,l);c&&(!a||qi(c,a)?a=c:a=Nh(c,a))})}),a},$k=function(e,t){return e.reduce(function(n,r){return n.concat(qH(r,t))},[])},aG=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(WH)},sG=function(e,t){var n=Wc(la(e).length>0?document:f$(e).ownerDocument),r=Fb(e).filter(Ov),o=k$(n||e,e,r),i=new Map,a=Vc(r,i),s=a.filter(function(g){var y=g.node;return Ov(y)});if(s[0]){var l=Vc([o],i).map(function(g){var y=g.node;return y}),c=aG(l,s),d=c.map(function(g){var y=g.node;return y}),f=c.filter(function(g){var y=g.tabIndex;return y>=0}).map(function(g){var y=g.node;return y}),p=oG(d,f,l,n,t);if(p===Dv){var h=jk(a,f,$k(r,i))||jk(a,d,$k(r,i));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:c[p]}},lG=function(e){var t=Fb(e).filter(Ov),n=k$(e,e,t),r=Nb(Ds([n],!0),!0,!0),o=Ds(t,!1);return r.map(function(i){var a=i.node,s=i.index;return{node:a,index:s,lockItem:o.indexOf(a)>=0,guard:Mb(a)}})},Vb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Oh=0,Dh=!1,C$=function(e,t,n){n===void 0&&(n={});var r=sG(e,t);if(!Dh&&r){if(Oh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Dh=!0,setTimeout(function(){Dh=!1},1);return}Oh++,Vb(r.node,n.focusOptions),Oh--}};function Sl(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var cG=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Sl(n),parent:Sl(n.parentElement),left:Sl(n.previousElementSibling),right:Sl(n.nextElementSibling)}),n=n.parentElement;return{element:Sl(e),stack:t,ownerDocument:e.ownerDocument}},uG=function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,c=0,d=a;c-1&&(x.filter(function(v){var S=v.guard,w=v.node;return S&&w.dataset.focusAutoGuard}).forEach(function(v){var S=v.node;return S.removeAttribute("tabIndex")}),Ik(b,x.length,1,x),Ik(b,-1,-1,x))}}}return t},$$=function(t){Jf()&&t&&(t.stopPropagation(),t.preventDefault())},Hb=function(){return Wb(Jf)},EG=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||wG(r,n)},jG=function(){return null},A$=function(){Ub=!0},I$=function(){Ub=!1,Uc="just",Wb(function(){Uc="meanwhile"})},$G=function(){document.addEventListener("focusin",$$),document.addEventListener("focusout",Hb),window.addEventListener("focus",A$),window.addEventListener("blur",I$)},AG=function(){document.removeEventListener("focusin",$$),document.removeEventListener("focusout",Hb),window.removeEventListener("focus",A$),window.removeEventListener("blur",I$)};function IG(e){return e.filter(function(t){var n=t.disabled;return!n})}var R$={moveFocusInside:C$,focusInside:w$,focusNextElement:mG,focusPrevElement:hG,focusFirstElement:gG,focusLastElement:vG,captureFocusRestore:P$};function RG(e){var t=e.slice(-1)[0];t&&!xs&&$G();var n=xs,r=n&&t&&t.id===n.id;xs=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(an=null,(!r||n.observed!==t.observed)&&t.onActivation(R$),Jf(),Wb(Jf)):(AG(),an=null)}u$.assignSyncMedium(EG);d$.assignMedium(Hb);TH.assignMedium(function(e){return e(R$)});const zG=MH(IG,RG)(jG);var Fv=m.forwardRef(function(t,n){return Rt.createElement(zb,aa({sideCar:zG,ref:n},t))}),z$=zb.propTypes||{};z$.sideCar;bH(z$,["sideCar"]);Fv.propTypes={};const MG=Fv.default??Fv,M$=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&wz(r.current).length===0&&requestAnimationFrame(()=>{var g;(g=r.current)==null||g.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=o&&!n;return u.jsx(MG,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:i})};M$.displayName="FocusLock";const Te=L(function(t,n){const r=An("FormLabel",t),o=Ce(t),{className:i,children:a,requiredIndicator:s=u.jsx(N$,{}),optionalIndicator:l=null,...c}=o,d=hu(),f=(d==null?void 0:d.getLabelProps(c,n))??{ref:n,...c};return u.jsxs(N.label,{...f,className:V("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?s:l]})});Te.displayName="FormLabel";const N$=L(function(t,n){const r=hu(),o=qj();if(!(r!=null&&r.isRequired))return null;const i=V("chakra-form__required-indicator",t.className);return u.jsx(N.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});N$.displayName="RequiredIndicator";const O$=L(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:a,column:s,row:l,autoFlow:c,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...g}=t,y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:a,gridAutoColumns:p,gridColumn:s,gridRow:l,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return u.jsx(N.div,{ref:n,__css:y,...g})});O$.displayName="Grid";const ca=L(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:a,minChildWidth:s,...l}=t,c=yo(),d=s?OG(s,c):DG(r);return u.jsx(O$,{ref:n,gap:a,columnGap:o,rowGap:i,templateColumns:d,...l})});ca.displayName="SimpleGrid";function NG(e){return typeof e=="number"?`${e}px`:e}function OG(e,t){return by(e,n=>{const r=iU("sizes",n,NG(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function DG(e){return by(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function qp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=m.Children.toArray(e.path),a=L((s,l)=>u.jsx(wt,{ref:l,viewBox:t,...o,...s,children:i.length?i:u.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const ft=L(function(t,n){const{htmlSize:r,...o}=t,i=Ve("Input",o),a=Ce(o),s=Qj(a),l=V("chakra-input",t.className);return u.jsx(N.input,{size:r,...s,__css:i.field,ref:n,className:l})});ft.displayName="Input";ft.id="Input";const[LG,FG]=ye({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Gb=L(function(t,n){const r=Ve("Input",t),{children:o,className:i,...a}=Ce(t),s=V("chakra-input__group",i),l={},c=gy(o),d=r.field;c.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(l.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(l.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(l.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const f=c.map(p=>{var g,y;const h=vy({size:((g=p.props)==null?void 0:g.size)||t.size,variant:((y=p.props)==null?void 0:y.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,l,p.props))});return u.jsx(N.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:u.jsx(LG,{value:r,children:f})})});Gb.displayName="InputGroup";const BG=N("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Qp=L(function(t,n){const{placement:r="left",...o}=t,i=FG(),a=i.field,l={[r==="left"?"insetStart":"insetEnd"]:"0",width:(a==null?void 0:a.height)??(a==null?void 0:a.h),height:(a==null?void 0:a.height)??(a==null?void 0:a.h),fontSize:a==null?void 0:a.fontSize,...i.element};return u.jsx(BG,{ref:n,__css:l,...o})});Qp.id="InputElement";Qp.displayName="InputElement";const Kb=L(function(t,n){const{className:r,...o}=t,i=V("chakra-input__left-element",r);return u.jsx(Qp,{ref:n,placement:"left",className:i,...o})});Kb.id="InputLeftElement";Kb.displayName="InputLeftElement";const Zp=L(function(t,n){const{className:r,...o}=t,i=V("chakra-input__right-element",r);return u.jsx(Qp,{ref:n,placement:"right",className:i,...o})});Zp.id="InputRightElement";Zp.displayName="InputRightElement";const va=L(function(t,n){const r=An("Link",t),{className:o,isExternal:i,...a}=Ce(t);return u.jsx(N.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:V("chakra-link",o),...a,__css:r})});va.displayName="Link";const[VG,D$]=ye({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Jp=L(function(t,n){const r=Ve("List",t),{children:o,styleType:i="none",stylePosition:a,spacing:s,...l}=Ce(t),c=gy(o),f=s?{["& > *:not(style) ~ *:not(style)"]:{mt:s}}:{};return u.jsx(VG,{value:r,children:u.jsx(N.ul,{ref:n,listStyleType:i,listStylePosition:a,role:"list",__css:{...r.container,...f},...l,children:c})})});Jp.displayName="List";const WG=L((e,t)=>{const{as:n,...r}=e;return u.jsx(Jp,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});WG.displayName="OrderedList";const UG=L(function(t,n){const{as:r,...o}=t;return u.jsx(Jp,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});UG.displayName="UnorderedList";const L$=L(function(t,n){const r=D$();return u.jsx(N.li,{ref:n,...t,__css:r.item})});L$.displayName="ListItem";const HG=L(function(t,n){const r=D$();return u.jsx(wt,{ref:n,role:"presentation",...t,__css:r.icon})});HG.displayName="ListIcon";function GG(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=i9(),i=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(c=>c!=null);const[s,l]=m.useState(()=>i.map((c,d)=>({media:c,matches:n?!!a[d]:o().matchMedia(c).matches})));return m.useEffect(()=>{const c=o();l(i.map(p=>({media:p,matches:c.matchMedia(p).matches})));const d=i.map(p=>c.matchMedia(p)),f=p=>{l(h=>h.slice().map(g=>g.media===p.media?{...g,matches:p.matches}:g))};return d.forEach(p=>{typeof p.addListener=="function"?p.addListener(f):p.addEventListener("change",f)}),()=>{d.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(f):p.removeEventListener("change",f)})}},[o]),s.map(c=>c.matches)}function KG(e){var s;const t=St(e)?e:{fallback:e??"base"},r=yo().__breakpoints.details.map(({minMaxQuery:l,breakpoint:c})=>({breakpoint:c,query:l.replace("@media screen and ","")})),o=r.map(l=>l.breakpoint===t.fallback),a=GG(r.map(l=>l.query),{fallback:o,ssr:t.ssr}).findIndex(l=>l==!0);return((s=r[a])==null?void 0:s.breakpoint)??t.fallback}function XG(e,t,n=tT){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function ep(e,t){var s;const n=St(t)?t:{fallback:t??"base"},r=KG(n),o=yo();if(!r)return;const i=Array.from(((s=o.__breakpoints)==null?void 0:s.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(_z(e,i)).map(([l,c])=>[l,c])):e;return XG(a,r,i)}var pn="top",Kn="bottom",Xn="right",mn="left",Xb="auto",gu=[pn,Kn,Xn,mn],Ls="start",Hc="end",YG="clippingParents",F$="viewport",wl="popper",qG="reference",Rk=gu.reduce(function(e,t){return e.concat([t+"-"+Ls,t+"-"+Hc])},[]),B$=[].concat(gu,[Xb]).reduce(function(e,t){return e.concat([t,t+"-"+Ls,t+"-"+Hc])},[]),QG="beforeRead",ZG="read",JG="afterRead",eK="beforeMain",tK="main",nK="afterMain",rK="beforeWrite",oK="write",iK="afterWrite",aK=[QG,ZG,JG,eK,tK,nK,rK,oK,iK];function Lr(e){return e?(e.nodeName||"").toLowerCase():null}function _n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ua(e){var t=_n(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=_n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yb(e){if(typeof ShadowRoot>"u")return!1;var t=_n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Vn(i)||!Lr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function lK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Vn(o)||!Lr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const cK={name:"applyStyles",enabled:!0,phase:"write",fn:sK,effect:lK,requires:["computeStyles"]};function Dr(e){return e.split("-")[0]}var Qi=Math.max,tp=Math.min,Fs=Math.round;function Bv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function V$(){return!/^((?!chrome|android).)*safari/i.test(Bv())}function Bs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Vn(e)&&(o=e.offsetWidth>0&&Fs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Fs(r.height)/e.offsetHeight||1);var a=ua(e)?_n(e):window,s=a.visualViewport,l=!V$()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,d=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function qb(e){var t=Bs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function po(e){return _n(e).getComputedStyle(e)}function uK(e){return["table","td","th"].indexOf(Lr(e))>=0}function hi(e){return((ua(e)?e.ownerDocument:e.document)||window.document).documentElement}function em(e){return Lr(e)==="html"?e:e.assignedSlot||e.parentNode||(Yb(e)?e.host:null)||hi(e)}function zk(e){return!Vn(e)||po(e).position==="fixed"?null:e.offsetParent}function dK(e){var t=/firefox/i.test(Bv()),n=/Trident/i.test(Bv());if(n&&Vn(e)){var r=po(e);if(r.position==="fixed")return null}var o=em(e);for(Yb(o)&&(o=o.host);Vn(o)&&["html","body"].indexOf(Lr(o))<0;){var i=po(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function vu(e){for(var t=_n(e),n=zk(e);n&&uK(n)&&po(n).position==="static";)n=zk(n);return n&&(Lr(n)==="html"||Lr(n)==="body"&&po(n).position==="static")?t:n||dK(e)||t}function Qb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sc(e,t,n){return Qi(e,tp(t,n))}function fK(e,t,n){var r=sc(e,t,n);return r>n?n:r}function U$(){return{top:0,right:0,bottom:0,left:0}}function H$(e){return Object.assign({},U$(),e)}function G$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H$(typeof t!="number"?t:G$(t,gu))};function mK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Dr(n.placement),l=Qb(s),c=[mn,Xn].indexOf(s)>=0,d=c?"height":"width";if(!(!i||!a)){var f=pK(o.padding,n),p=qb(i),h=l==="y"?pn:mn,g=l==="y"?Kn:Xn,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],x=a[l]-n.rects.reference[l],b=vu(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,w=f[h],k=v-p[d]-f[g],_=v/2-p[d]/2+S,C=sc(w,_,k),T=l;n.modifiersData[r]=(t={},t[T]=C,t.centerOffset=C-_,t)}}function hK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||W$(t.elements.popper,o)&&(t.elements.arrow=o))}const gK={name:"arrow",enabled:!0,phase:"main",fn:mK,effect:hK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var vK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Fs(n*o)/o||0,y:Fs(r*o)/o||0}}function Mk(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,y=g===void 0?0:g,x=typeof d=="function"?d({x:h,y}):{x:h,y};h=x.x,y=x.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=mn,w=pn,k=window;if(c){var _=vu(n),C="clientHeight",T="clientWidth";if(_===_n(n)&&(_=hi(n),po(_).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),_=_,o===pn||(o===mn||o===Xn)&&i===Hc){w=Kn;var A=f&&_===k&&k.visualViewport?k.visualViewport.height:_[C];y-=A-r.height,y*=l?1:-1}if(o===mn||(o===pn||o===Kn)&&i===Hc){S=Xn;var $=f&&_===k&&k.visualViewport?k.visualViewport.width:_[T];h-=$-r.width,h*=l?1:-1}}var B=Object.assign({position:s},c&&vK),Y=d===!0?yK({x:h,y},_n(n)):{x:h,y};if(h=Y.x,y=Y.y,l){var te;return Object.assign({},B,(te={},te[w]=v?"0":"",te[S]=b?"0":"",te.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",te))}return Object.assign({},B,(t={},t[w]=v?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function bK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Dr(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mk(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bK,data:{}};var dd={passive:!0};function SK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=_n(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,dd)}),s&&l.addEventListener("resize",n.update,dd),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,dd)}),s&&l.removeEventListener("resize",n.update,dd)}}const wK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:SK,data:{}};var kK={left:"right",right:"left",bottom:"top",top:"bottom"};function rf(e){return e.replace(/left|right|bottom|top/g,function(t){return kK[t]})}var CK={start:"end",end:"start"};function Nk(e){return e.replace(/start|end/g,function(t){return CK[t]})}function Zb(e){var t=_n(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jb(e){return Bs(hi(e)).left+Zb(e).scrollLeft}function PK(e,t){var n=_n(e),r=hi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=V$();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Jb(e),y:l}}function _K(e){var t,n=hi(e),r=Zb(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Qi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Qi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Jb(e),l=-r.scrollTop;return po(o||n).direction==="rtl"&&(s+=Qi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function e1(e){var t=po(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function K$(e){return["html","body","#document"].indexOf(Lr(e))>=0?e.ownerDocument.body:Vn(e)&&e1(e)?e:K$(em(e))}function lc(e,t){var n;t===void 0&&(t=[]);var r=K$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=_n(r),a=o?[i].concat(i.visualViewport||[],e1(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(lc(em(a)))}function Vv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function TK(e,t){var n=Bs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ok(e,t,n){return t===F$?Vv(PK(e,n)):ua(t)?TK(t,n):Vv(_K(hi(e)))}function EK(e){var t=lc(em(e)),n=["absolute","fixed"].indexOf(po(e).position)>=0,r=n&&Vn(e)?vu(e):e;return ua(r)?t.filter(function(o){return ua(o)&&W$(o,r)&&Lr(o)!=="body"}):[]}function jK(e,t,n,r){var o=t==="clippingParents"?EK(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var d=Ok(e,c,r);return l.top=Qi(d.top,l.top),l.right=tp(d.right,l.right),l.bottom=tp(d.bottom,l.bottom),l.left=Qi(d.left,l.left),l},Ok(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function X$(e){var t=e.reference,n=e.element,r=e.placement,o=r?Dr(r):null,i=r?Vs(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case pn:l={x:a,y:t.y-n.height};break;case Kn:l={x:a,y:t.y+t.height};break;case Xn:l={x:t.x+t.width,y:s};break;case mn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Qb(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Ls:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Hc:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Gc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?YG:s,c=n.rootBoundary,d=c===void 0?F$:c,f=n.elementContext,p=f===void 0?wl:f,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,x=y===void 0?0:y,b=H$(typeof x!="number"?x:G$(x,gu)),v=p===wl?qG:wl,S=e.rects.popper,w=e.elements[g?v:p],k=jK(ua(w)?w:w.contextElement||hi(e.elements.popper),l,d,a),_=Bs(e.elements.reference),C=X$({reference:_,element:S,placement:o}),T=Vv(Object.assign({},S,C)),A=p===wl?T:_,$={top:k.top-A.top+b.top,bottom:A.bottom-k.bottom+b.bottom,left:k.left-A.left+b.left,right:A.right-k.right+b.right},B=e.modifiersData.offset;if(p===wl&&B){var Y=B[o];Object.keys($).forEach(function(te){var I=[Xn,Kn].indexOf(te)>=0?1:-1,K=[pn,Kn].indexOf(te)>=0?"y":"x";$[te]+=Y[K]*I})}return $}function $K(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?B$:l,d=Vs(r),f=d?s?Rk:Rk.filter(function(g){return Vs(g)===d}):gu,p=f.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,y){return g[y]=Gc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[Dr(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}function AK(e){if(Dr(e)===Xb)return[];var t=rf(e);return[Nk(e),t,Nk(t)]}function IK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,y=n.allowedAutoPlacements,x=t.options.placement,b=Dr(x),v=b===x,S=l||(v||!g?[rf(x)]:AK(x)),w=[x].concat(S).reduce(function(be,me){return be.concat(Dr(me)===Xb?$K(t,{placement:me,boundary:d,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:y}):me)},[]),k=t.rects.reference,_=t.rects.popper,C=new Map,T=!0,A=w[0],$=0;$=0,K=I?"width":"height",F=Gc(t,{placement:B,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),z=I?te?Xn:mn:te?Kn:pn;k[K]>_[K]&&(z=rf(z));var O=rf(z),R=[];if(i&&R.push(F[Y]<=0),s&&R.push(F[z]<=0,F[O]<=0),R.every(function(be){return be})){A=B,T=!1;break}C.set(B,R)}if(T)for(var D=g?3:1,G=function(me){var xe=w.find(function(Fe){var fe=C.get(Fe);if(fe)return fe.slice(0,me).every(function(Z){return Z})});if(xe)return A=xe,"break"},H=D;H>0;H--){var Q=G(H);if(Q==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const RK={name:"flip",enabled:!0,phase:"main",fn:IK,requiresIfExists:["offset"],data:{_skip:!1}};function Dk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lk(e){return[pn,Xn,Kn,mn].some(function(t){return e[t]>=0})}function zK(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Gc(t,{elementContext:"reference"}),s=Gc(t,{altBoundary:!0}),l=Dk(a,r),c=Dk(s,o,i),d=Lk(l),f=Lk(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const MK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zK};function NK(e,t,n){var r=Dr(e),o=[mn,pn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[mn,Xn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function OK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=B$.reduce(function(d,f){return d[f]=NK(f,t.rects,i),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const DK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:OK};function LK(e){var t=e.state,n=e.name;t.modifiersData[n]=X$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const FK={name:"popperOffsets",enabled:!0,phase:"read",fn:LK,data:{}};function BK(e){return e==="x"?"y":"x"}function VK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,y=g===void 0?0:g,x=Gc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),b=Dr(t.placement),v=Vs(t.placement),S=!v,w=Qb(b),k=BK(w),_=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(_){if(i){var te,I=w==="y"?pn:mn,K=w==="y"?Kn:Xn,F=w==="y"?"height":"width",z=_[w],O=z+x[I],R=z-x[K],D=h?-T[F]/2:0,G=v===Ls?C[F]:T[F],H=v===Ls?-T[F]:-C[F],Q=t.elements.arrow,be=h&&Q?qb(Q):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U$(),xe=me[I],Fe=me[K],fe=sc(0,C[F],be[F]),Z=S?C[F]/2-D-fe-xe-$.mainAxis:G-fe-xe-$.mainAxis,J=S?-C[F]/2+D+fe+Fe+$.mainAxis:H+fe+Fe+$.mainAxis,Pe=t.elements.arrow&&vu(t.elements.arrow),pe=Pe?w==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,ne=(te=B==null?void 0:B[w])!=null?te:0,ce=z+Z-ne-pe,it=z+J-ne,We=sc(h?tp(O,ce):O,z,h?Qi(R,it):R);_[w]=We,Y[w]=We-z}if(s){var Bt,vr=w==="x"?pn:mn,Yn=w==="x"?Kn:Xn,Qt=_[k],ko=k==="y"?"height":"width",bi=Qt+x[vr],qn=Qt-x[Yn],Sa=[pn,mn].indexOf(b)!==-1,rl=(Bt=B==null?void 0:B[k])!=null?Bt:0,Tu=Sa?bi:Qt-C[ko]-T[ko]-rl+$.altAxis,Eu=Sa?Qt+C[ko]+T[ko]-rl-$.altAxis:qn,xi=h&&Sa?fK(Tu,Qt,Eu):sc(h?Tu:bi,Qt,h?Eu:qn);_[k]=xi,Y[k]=xi-Qt}t.modifiersData[r]=Y}}const WK={name:"preventOverflow",enabled:!0,phase:"main",fn:VK,requiresIfExists:["offset"]};function UK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function HK(e){return e===_n(e)||!Vn(e)?Zb(e):UK(e)}function GK(e){var t=e.getBoundingClientRect(),n=Fs(t.width)/e.offsetWidth||1,r=Fs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function KK(e,t,n){n===void 0&&(n=!1);var r=Vn(t),o=Vn(t)&&GK(t),i=hi(t),a=Bs(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Lr(t)!=="body"||e1(i))&&(s=HK(t)),Vn(t)?(l=Bs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Jb(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function XK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function YK(e){var t=XK(e);return aK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function QK(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Fk={placement:"bottom",modifiers:[],strategy:"absolute"};function Bk(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Nt={arrowShadowColor:Ta("--popper-arrow-shadow-color"),arrowSize:Ta("--popper-arrow-size","8px"),arrowSizeHalf:Ta("--popper-arrow-size-half"),arrowBg:Ta("--popper-arrow-bg"),transformOrigin:Ta("--popper-transform-origin"),arrowOffset:Ta("--popper-arrow-offset")};function tX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const nX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},rX=e=>nX[e],Vk={scroll:!0,resize:!0};function oX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Vk,...e}}:t={enabled:e,options:Vk},t}const iX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},aX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Wk(e)},effect:({state:e})=>()=>{Wk(e)}},Wk=e=>{e.elements.popper.style.setProperty(Nt.transformOrigin.var,rX(e.placement))},sX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{lX(e)}},lX=e=>{var n;if(!e.placement)return;const t=cX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Nt.arrowSize.varRef,height:Nt.arrowSize.varRef,zIndex:-1});const r={[Nt.arrowSizeHalf.var]:`calc(${Nt.arrowSize.varRef} / 2 - 1px)`,[Nt.arrowOffset.var]:`calc(${Nt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},cX=e=>{if(e.startsWith("top"))return{property:"bottom",value:Nt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Nt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Nt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Nt.arrowOffset.varRef}},uX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Uk(e)},effect:({state:e})=>()=>{Uk(e)}},Uk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=tX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Nt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},dX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},fX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function pX(e,t="ltr"){var r;const n=((r=dX[e])==null?void 0:r[t])||e;return t==="ltr"?n:fX[e]??n}function mX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:a=!0,offset:s,gutter:l=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,g=m.useRef(null),y=m.useRef(null),x=m.useRef(null),b=pX(r,h),v=m.useRef(()=>{}),S=m.useCallback(()=>{var $;!t||!g.current||!y.current||(($=v.current)==null||$.call(v),x.current=eX(g.current,y.current,{placement:b,modifiers:[uX,sX,aX,{...iX,enabled:!!p},{name:"eventListeners",...oX(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:o}),x.current.forceUpdate(),v.current=x.current.destroy)},[b,t,n,p,a,i,s,l,c,f,d,o]);m.useEffect(()=>()=>{var $;!g.current&&!y.current&&(($=x.current)==null||$.destroy(),x.current=null)},[]);const w=m.useCallback($=>{g.current=$,S()},[S]),k=m.useCallback(($={},B=null)=>({...$,ref:bt(w,B)}),[w]),_=m.useCallback($=>{y.current=$,S()},[S]),C=m.useCallback(($={},B=null)=>({...$,ref:bt(_,B),style:{...$.style,position:o,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[o,_,p]),T=m.useCallback(($={},B=null)=>{const{size:Y,shadowColor:te,bg:I,style:K,...F}=$;return{...F,ref:B,"data-popper-arrow":"",style:hX($)}},[]),A=m.useCallback(($={},B=null)=>({...$,ref:B,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=x.current)==null||$.update()},forceUpdate(){var $;($=x.current)==null||$.forceUpdate()},transformOrigin:Nt.transformOrigin.varRef,referenceRef:w,popperRef:_,getPopperProps:C,getArrowProps:T,getArrowInnerProps:A,getReferenceProps:k}}function hX(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}const[Ase,Ise,Rse,zse]=RU(),[Mse,gX]=ye({strict:!1,name:"MenuContext"});var vX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ea=new WeakMap,fd=new WeakMap,pd={},Lh=0,Y$=function(e){return e&&(e.host||Y$(e.parentNode))},yX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Y$(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},bX=function(e,t,n,r){var o=yX(t,Array.isArray(e)?e:[e]);pd[n]||(pd[n]=new WeakMap);var i=pd[n],a=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))d(p);else try{var h=p.getAttribute(r),g=h!==null&&h!=="false",y=(Ea.get(p)||0)+1,x=(i.get(p)||0)+1;Ea.set(p,y),i.set(p,x),a.push(p),y===1&&g&&fd.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return d(t),s.clear(),Lh++,function(){a.forEach(function(f){var p=Ea.get(f)-1,h=i.get(f)-1;Ea.set(f,p),i.set(f,h),p||(fd.has(f)||f.removeAttribute(r),fd.delete(f)),h||f.removeAttribute(n)}),Lh--,Lh||(Ea=new WeakMap,Ea=new WeakMap,fd=new WeakMap,pd={})}},xX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=vX(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bX(r,o,n,"aria-hidden")):function(){return null}},SX=Object.defineProperty,wX=(e,t,n)=>t in e?SX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kX=(e,t,n)=>(wX(e,t+"",n),n);class CX{constructor(){kX(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Wv=new CX;function q$(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const o=e.current;if(o){if(t){const i=Wv.add(o);r(i)}return()=>{Wv.remove(o),r(0)}}},[t,e]),n}function PX(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,c=m.useRef(null),d=m.useRef(null),[f,p,h]=TX(r,"chakra-modal","chakra-modal--header","chakra-modal--body");_X(c,t&&a);const g=q$(c,t),y=m.useRef(null),x=m.useCallback(A=>{y.current=A.target},[]),b=m.useCallback(A=>{A.key==="Escape"&&(A.stopPropagation(),i&&(n==null||n()),l==null||l())},[i,n,l]),[v,S]=m.useState(!1),[w,k]=m.useState(!1),_=m.useCallback((A={},$=null)=>({role:"dialog",...A,ref:bt($,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":v?p:void 0,"aria-describedby":w?h:void 0,onClick:le(A.onClick,B=>B.stopPropagation())}),[h,w,f,p,v]),C=m.useCallback(A=>{A.stopPropagation(),y.current===A.target&&Wv.isTopModal(c.current)&&(o&&(n==null||n()),s==null||s())},[n,o,s]),T=m.useCallback((A={},$=null)=>({...A,ref:bt($,d),onClick:le(A.onClick,C),onKeyDown:le(A.onKeyDown,b),onMouseDown:le(A.onMouseDown,x)}),[b,x,C]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:c,overlayRef:d,getDialogProps:_,getDialogContainerProps:T,index:g}}function _X(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return xX(e.current)},[t,e,n])}function TX(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}const[EX,ya]=ye({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[jX,ai]=ye({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),tm=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:g,onCloseComplete:y}=t,x=Ve("Modal",t),v={...PX(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:c,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return u.jsx(jX,{value:v,children:u.jsx(EX,{value:x,children:u.jsx(vo,{...g,onExitComplete:y,children:v.isOpen&&u.jsx(Js,{...n,children:r})})})})};tm.displayName="Modal";var of="right-scroll-bar-position",af="width-before-scroll-bar",$X="with-scroll-bars-hidden",AX="--removed-body-scroll-bar-size",Q$=l$(),Fh=function(){},nm=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Fh,onWheelCapture:Fh,onTouchMoveCapture:Fh}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,g=e.noIsolation,y=e.inert,x=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,S=e.gapMode,w=i$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,_=o$([n,t]),C=jr(jr({},w),o);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:Q$,removeScrollBar:c,shards:f,noRelative:h,noIsolation:g,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(s),jr(jr({},C),{ref:_})):m.createElement(v,jr({},C,{className:l,ref:_}),s))});nm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nm.classNames={fullWidth:af,zeroRight:of};var IX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IX();return t&&e.setAttribute("nonce",t),e}function zX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function MX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var NX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=RX())&&(zX(t,n),MX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},OX=function(){var e=NX();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Z$=function(){var e=OX(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},DX={left:0,top:0,right:0,gap:0},Bh=function(e){return parseInt(e||"",10)||0},LX=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bh(n),Bh(r),Bh(o)]},FX=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DX;var t=LX(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},BX=Z$(),ws="data-scroll-locked",VX=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` - .`.concat($X,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(s,"px ").concat(r,`; - } - body[`).concat(ws,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(a,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(s,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(of,` { - right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(af,` { - margin-right: `).concat(s,"px ").concat(r,`; - } - - .`).concat(of," .").concat(of,` { - right: 0 `).concat(r,`; - } - - .`).concat(af," .").concat(af,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(ws,`] { - `).concat(AX,": ").concat(s,`px; - } -`)},Hk=function(){var e=parseInt(document.body.getAttribute(ws)||"0",10);return isFinite(e)?e:0},WX=function(){m.useEffect(function(){return document.body.setAttribute(ws,(Hk()+1).toString()),function(){var e=Hk()-1;e<=0?document.body.removeAttribute(ws):document.body.setAttribute(ws,e.toString())}},[])},UX=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;WX();var i=m.useMemo(function(){return FX(o)},[o]);return m.createElement(BX,{styles:VX(i,!t,o,n?"":"!important")})},Uv=!1;if(typeof window<"u")try{var md=Object.defineProperty({},"passive",{get:function(){return Uv=!0,!0}});window.addEventListener("test",md,md),window.removeEventListener("test",md,md)}catch{Uv=!1}var ja=Uv?{passive:!1}:!1,HX=function(e){return e.tagName==="TEXTAREA"},J$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!HX(e)&&n[t]==="visible")},GX=function(e){return J$(e,"overflowY")},KX=function(e){return J$(e,"overflowX")},Gk=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=e5(e,r);if(o){var i=t5(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},XX=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YX=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},e5=function(e,t){return e==="v"?GX(t):KX(t)},t5=function(e,t){return e==="v"?XX(t):YX(t)},qX=function(e,t){return e==="h"&&t==="rtl"?-1:1},QX=function(e,t,n,r,o){var i=qX(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,d=a>0,f=0,p=0;do{if(!s)break;var h=t5(e,s),g=h[0],y=h[1],x=h[2],b=y-x-i*g;(g||b)&&e5(e,s)&&(f+=b,p+=g);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(c=!0),c},hd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kk=function(e){return[e.deltaX,e.deltaY]},Xk=function(e){return e&&"current"in e?e.current:e},ZX=function(e,t){return e[0]===t[0]&&e[1]===t[1]},JX=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},eY=0,$a=[];function tY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(eY++)[0],i=m.useState(Z$)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=PH([e.lockRef.current],(e.shards||[]).map(Xk),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var b=hd(y),v=n.current,S="deltaX"in y?y.deltaX:v[0]-b[0],w="deltaY"in y?y.deltaY:v[1]-b[1],k,_=y.target,C=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in y&&C==="h"&&_.type==="range")return!1;var T=window.getSelection(),A=T&&T.anchorNode,$=A?A===_||A.contains(_):!1;if($)return!1;var B=Gk(C,_);if(!B)return!0;if(B?k=C:(k=C==="v"?"h":"v",B=Gk(C,_)),!B)return!1;if(!r.current&&"changedTouches"in y&&(S||w)&&(r.current=k),!k)return!0;var Y=r.current||k;return QX(Y,x,y,Y==="h"?S:w)},[]),l=m.useCallback(function(y){var x=y;if(!(!$a.length||$a[$a.length-1]!==i)){var b="deltaY"in x?Kk(x):hd(x),v=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&ZX(k.delta,b)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var S=(a.current.shards||[]).map(Xk).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?s(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),c=m.useCallback(function(y,x,b,v){var S={name:y,delta:x,target:b,should:v,shadowParent:nY(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(y){n.current=hd(y),r.current=void 0},[]),f=m.useCallback(function(y){c(y.type,Kk(y),y.target,s(y,e.lockRef.current))},[]),p=m.useCallback(function(y){c(y.type,hd(y),y.target,s(y,e.lockRef.current))},[]);m.useEffect(function(){return $a.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ja),document.addEventListener("touchmove",l,ja),document.addEventListener("touchstart",d,ja),function(){$a=$a.filter(function(y){return y!==i}),document.removeEventListener("wheel",l,ja),document.removeEventListener("touchmove",l,ja),document.removeEventListener("touchstart",d,ja)}},[]);var h=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(i,{styles:JX(o)}):null,h?m.createElement(UX,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function nY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rY=_H(Q$,tY);var n5=m.forwardRef(function(e,t){return m.createElement(nm,jr({},e,{ref:t,sideCar:rY}))});n5.classNames=nm.classNames;function r5(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=ai(),[p,h]=Hy();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const g=q$(r,f);return u.jsx(M$,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:d,children:u.jsx(n5,{removeScrollBar:!c,allowPinchZoom:a,enabled:g===1&&i,forwardProps:!0,children:e.children})})}const oY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??dr.exit(Xi.exit,o),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??dr.enter(Xi.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??dr.exit(Xi.exit,i),...o?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Fo={initial:"initial",animate:"enter",exit:"exit",variants:oY},iY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:a,offsetX:s=0,offsetY:l=8,transition:c,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,g=r?o&&r:!0,y=o||r?"enter":"exit",x={offsetX:s,offsetY:l,reverse:i,transition:c,transitionEnd:d,delay:f};return u.jsx(vo,{...p,custom:x,children:g&&u.jsx($n.div,{ref:n,className:V("chakra-offset-slide",a),custom:x,...Fo,animate:y,...h})})});iY.displayName="SlideFade";const aY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??dr.exit(Xi.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??dr.enter(Xi.enter,n),transitionEnd:e==null?void 0:e.enter})},t1={initial:"exit",animate:"enter",exit:"exit",variants:aY},sY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:a=.95,className:s,transition:l,transitionEnd:c,delay:d,animatePresenceProps:f,...p}=t,h=r?o&&r:!0,g=o||r?"enter":"exit",y={initialScale:a,reverse:i,transition:l,transitionEnd:c,delay:d};return u.jsx(vo,{...f,custom:y,children:h&&u.jsx($n.div,{ref:n,className:V("chakra-offset-slide",s),...t1,animate:g,custom:y,...p})})});sY.displayName="ScaleFade";const lY={slideInBottom:{...Fo,custom:{offsetY:16,reverse:!0}},slideInRight:{...Fo,custom:{offsetX:16,reverse:!0}},slideInTop:{...Fo,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Fo,custom:{offsetX:-16,reverse:!0}},scale:{...t1,custom:{initialScale:.95,reverse:!0}},none:{}},cY=N($n.section),uY=e=>lY[e||"none"],o5=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=uY(n),...o}=e;return u.jsx(cY,{ref:t,...r,...o})});o5.displayName="ModalTransition";const n1=L((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=ai(),c=s(a,t),d=l(o),f=V("chakra-modal__content",n),p=ya(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:y}=ai();return u.jsx(r5,{children:u.jsx(N.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:u.jsx(o5,{preset:y,motionProps:i,className:f,...c,__css:h,children:r})})})});n1.displayName="ModalContent";const yu=L((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=ai();m.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=V("chakra-modal__body",n),s=ya();return u.jsx(N.div,{ref:t,className:a,id:o,...r,__css:s.body})});yu.displayName="ModalBody";const rm=L((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=ai(),a=V("chakra-modal__close-btn",r),s=ya();return u.jsx(Xp,{ref:t,__css:s.closeButton,className:a,onClick:le(n,l=>{l.stopPropagation(),i()}),...o})});rm.displayName="ModalCloseButton";const r1=L((e,t)=>{const{className:n,...r}=e,o=V("chakra-modal__footer",n),i=ya(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return u.jsx(N.footer,{ref:t,...r,__css:a,className:o})});r1.displayName="ModalFooter";const bu=L((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=ai();m.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=V("chakra-modal__header",n),s=ya(),l={flex:0,...s.header};return u.jsx(N.header,{ref:t,className:a,id:o,...r,__css:l})});bu.displayName="ModalHeader";const dY={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??dr.enter(Xi.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??dr.exit(Xi.exit,n),transitionEnd:t==null?void 0:t.exit})},i5={initial:"exit",animate:"enter",exit:"exit",variants:dY},fY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:a,transitionEnd:s,delay:l,animatePresenceProps:c,...d}=t,f=o||r?"enter":"exit",p=r?o&&r:!0,h={transition:a,transitionEnd:s,delay:l};return u.jsx(vo,{...c,custom:h,children:p&&u.jsx($n.div,{ref:n,className:V("chakra-fade",i),custom:h,...i5,animate:f,...d})})});fY.displayName="Fade";const pY=N($n.div),xu=L((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=V("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ya().overlay},{motionPreset:c}=ai(),f=o||(c==="none"?{}:i5);return u.jsx(pY,{...f,__css:l,ref:t,className:a,...i})});xu.displayName="ModalOverlay";function mY(e){const{leastDestructiveRef:t,...n}=e;return u.jsx(tm,{...n,initialFocusRef:t})}const hY=L((e,t)=>u.jsx(n1,{ref:t,role:"alertdialog",...e})),[gY,vY]=ye(),yY={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function bY(e,t){var n;if(e)return((n=yY[e])==null?void 0:n[t])??e}function a5(e){var c;const{isOpen:t,onClose:n,placement:r="right",children:o,...i}=e,a=yo(),s=(c=a.components)==null?void 0:c.Drawer,l=bY(r,a.direction);return u.jsx(gY,{value:{placement:l},children:u.jsx(tm,{isOpen:t,onClose:n,styleConfig:s,...i,children:o})})}const Yk={exit:{duration:.15,ease:Zr.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},xY={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=Av({direction:e});return{...o,transition:(t==null?void 0:t.exit)??dr.exit(Yk.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=Av({direction:e});return{...o,transition:(n==null?void 0:n.enter)??dr.enter(Yk.enter,r),transitionEnd:t==null?void 0:t.enter}}},s5=m.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:a,className:s,transition:l,transitionEnd:c,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,g=Av({direction:r}),y=Object.assign({position:"fixed"},g.position,o),x=i?a&&i:!0,b=a||i?"enter":"exit",v={transitionEnd:c,transition:l,direction:r,delay:d};return u.jsx(vo,{...p,custom:v,children:x&&u.jsx($n.div,{...h,ref:n,initial:"exit",className:V("chakra-slide",s),animate:b,exit:"exit",custom:v,variants:xY,style:y,...f})})});s5.displayName="Slide";const SY=N(s5),o1=L((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:c}=ai(),d=s(a,t),f=l(i),p=V("chakra-modal__content",n),h=ya(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=vY();return u.jsx(r5,{children:u.jsx(N.div,{...f,className:"chakra-modal__content-container",__css:y,children:u.jsx(SY,{motionProps:o,direction:x,in:c,className:p,...d,__css:g,children:r})})})});o1.displayName="DrawerContent";function wY(e){var n;const t=m.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function kY(e,t,n){return(e-t)*100/(n-t)}su({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});su({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const CY=su({"0%":{left:"-40%"},"100%":{left:"100%"}}),PY=su({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function _Y(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:a,role:s="progressbar"}=e,l=kY(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,l):o})(),role:s},percent:l,value:t}}const[TY,EY]=ye({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),jY=L((e,t)=>{const{min:n,max:r,value:o,isIndeterminate:i,role:a,...s}=e,l=_Y({value:o,min:n,max:r,isIndeterminate:i,role:a}),d={height:"100%",...EY().filledTrack};return u.jsx(N.div,{ref:t,style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:d})}),Hv=L((e,t)=>{var C;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:a,children:s,borderRadius:l,isIndeterminate:c,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:g,...y}=Ce(e),x=Ve("Progress",e),b=l??((C=x.track)==null?void 0:C.borderRadius),v={animation:`${PY} 1s linear infinite`},k={...!c&&i&&a&&v,...c&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${CY} 1s ease infinite normal none running`}},_={overflow:"hidden",position:"relative",...x.track};return u.jsx(N.div,{ref:t,borderRadius:b,__css:_,...y,children:u.jsxs(TY,{value:x,children:[u.jsx(jY,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:o,value:n,isIndeterminate:c,css:k,borderRadius:b,title:h,role:g}),s]})})});Hv.displayName="Progress";function $Y(e){return e&&St(e)&&St(e.target)}function AY(e={}){const{onChange:t,value:n,defaultValue:r,name:o,isDisabled:i,isFocusable:a,isNative:s,...l}=e,[c,d]=m.useState(r||""),f=typeof n<"u",p=f?n:c,h=m.useRef(null),g=m.useCallback(()=>{const k=h.current;if(!k)return;let _="input:not(:disabled):checked";const C=k.querySelector(_);if(C){C.focus();return}_="input:not(:disabled)";const T=k.querySelector(_);T==null||T.focus()},[]),x=`radio-${m.useId()}`,b=o||x,v=m.useCallback(k=>{const _=$Y(k)?k.target.value:k;f||d(_),t==null||t(String(_))},[t,f]),S=m.useCallback((k={},_=null)=>({...k,ref:bt(_,h),role:"radiogroup"}),[]),w=m.useCallback((k={},_=null)=>({...k,ref:_,name:b,[s?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(T){v(T)},"data-radiogroup":!0}),[s,b,v,p]);return{getRootProps:S,getRadioProps:w,name:b,ref:h,focus:g,setValue:d,value:p,onChange:v,isDisabled:i,isFocusable:a,htmlProps:l}}const[IY,l5]=ye({name:"RadioGroupContext",strict:!1}),c5=L((e,t)=>{const{colorScheme:n,size:r,variant:o,children:i,className:a,isDisabled:s,isFocusable:l,...c}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:g}=AY(c),y=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:o,isDisabled:s,isFocusable:l}),[h,r,f,n,d,o,s,l]);return u.jsx(IY,{value:y,children:u.jsx(N.div,{...p(g,t),className:V("chakra-radio-group",a),children:i})})});c5.displayName="RadioGroup";function RY(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:o,isReadOnly:i,isRequired:a,onChange:s,isInvalid:l,name:c,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...g}=e,y=`radio-${m.useId()}`,x=hu(),v=!!l5()||!!p;let w=!!x&&!v?x.id:y;w=f??w;const k=o??(x==null?void 0:x.isDisabled),_=i??(x==null?void 0:x.isReadOnly),C=a??(x==null?void 0:x.isRequired),T=l??(x==null?void 0:x.isInvalid),[A,$]=m.useState(!1),[B,Y]=m.useState(!1),[te,I]=m.useState(!1),[K,F]=m.useState(!!t),z=typeof n<"u",O=z?n:K,R=m.useRef(!1);m.useEffect(()=>Yj(J=>{R.current=J}),[]);const D=m.useCallback(J=>{if(_||k){J.preventDefault();return}z||F(J.currentTarget.checked),s==null||s(J)},[z,k,_,s]),G=m.useCallback(J=>{J.key===" "&&I(!0)},[I]),H=m.useCallback(J=>{J.key===" "&&I(!1)},[I]),Q=m.useCallback((J={},Pe=null)=>({...J,ref:Pe,"data-active":oe(te),"data-hover":oe(B),"data-disabled":oe(k),"data-invalid":oe(T),"data-checked":oe(O),"data-focus":oe(A),"data-focus-visible":oe(A&&R.current),"data-readonly":oe(_),"aria-hidden":!0,onMouseDown:le(J.onMouseDown,()=>I(!0)),onMouseUp:le(J.onMouseUp,()=>I(!1)),onMouseEnter:le(J.onMouseEnter,()=>Y(!0)),onMouseLeave:le(J.onMouseLeave,()=>Y(!1))}),[te,B,k,T,O,A,_]),{onFocus:be,onBlur:me}=x??{},xe=m.useCallback((J={},Pe=null)=>{const pe=k&&!r;return{...J,id:w,ref:Pe,type:"radio",name:c,value:d,onChange:le(J.onChange,D),onBlur:le(me,J.onBlur,()=>$(!1)),onFocus:le(be,J.onFocus,()=>$(!0)),onKeyDown:le(J.onKeyDown,G),onKeyUp:le(J.onKeyUp,H),checked:O,disabled:pe,readOnly:_,required:C,"aria-invalid":to(T),"aria-disabled":to(pe),"aria-required":to(C),"data-readonly":oe(_),"aria-describedby":h,style:Jj}},[k,r,w,c,d,D,me,be,G,H,O,_,C,T,h]);return{state:{isInvalid:T,isFocused:A,isChecked:O,isActive:te,isHovered:B,isDisabled:k,isReadOnly:_,isRequired:C},getRadioProps:Q,getInputProps:xe,getLabelProps:(J={},Pe=null)=>({...J,ref:Pe,onMouseDown:le(J.onMouseDown,zY),"data-disabled":oe(k),"data-checked":oe(O),"data-invalid":oe(T)}),getRootProps:(J,Pe=null)=>({htmlFor:w,...J,ref:Pe,"data-disabled":oe(k),"data-checked":oe(O),"data-invalid":oe(T)}),htmlProps:g}}function zY(e){e.preventDefault(),e.stopPropagation()}const Gv=L((e,t)=>{const n=l5(),{onChange:r,value:o}=e,i=Ve("Radio",{...n,...e}),a=Ce(e),{spacing:s="0.5rem",children:l,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:f,...p}=a;let h=e.isChecked;(n==null?void 0:n.value)!=null&&o!=null&&(h=n.value===o);let g=r;n!=null&&n.onChange&&o!=null&&(g=hz(n.onChange,r));const y=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:b,getLabelProps:v,getRootProps:S,htmlProps:w}=RY({...p,isChecked:h,isFocusable:d,isDisabled:c,onChange:g,name:y}),[k,_]=rT(w,uT),C=b(_),T=x(f,t),A=v(),$=Object.assign({},k,S()),B={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...i.container},Y={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...i.control},te={userSelect:"none",marginStart:s,...i.label};return u.jsxs(N.label,{className:"chakra-radio",...$,__css:B,children:[u.jsx("input",{className:"chakra-radio__input",...T}),u.jsx(N.span,{className:"chakra-radio__control",...C,__css:Y}),l&&u.jsx(N.span,{className:"chakra-radio__label",...A,__css:te,children:l})]})});Gv.displayName="Radio";const u5=L(function(t,n){const{children:r,placeholder:o,className:i,...a}=t;return u.jsxs(N.select,{...a,ref:n,className:V("chakra-select",i),children:[o&&u.jsx("option",{value:"",children:o}),r]})});u5.displayName="SelectField";const d5=L((e,t)=>{var S;const n=Ve("Select",e),{rootProps:r,placeholder:o,icon:i,color:a,height:s,h:l,minH:c,minHeight:d,iconColor:f,iconSize:p,...h}=Ce(e),[g,y]=rT(h,uT),x=Qj(y),b={width:"100%",height:"fit-content",position:"relative",color:a},v={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return u.jsxs(N.div,{className:"chakra-select__wrapper",__css:b,...g,...r,children:[u.jsx(u5,{ref:t,height:l??s,minH:c??d,placeholder:o,...x,__css:v,children:e.children}),u.jsx(f5,{"data-disabled":oe(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:i})]})});d5.displayName="Select";const MY=e=>u.jsx("svg",{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),NY=N("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),f5=e=>{const{children:t=u.jsx(MY,{}),...n}=e,r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return u.jsx(NY,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};f5.displayName="SelectIcon";const Ws=N("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Ws.displayName="Spacer";const p5=e=>u.jsx(N.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});p5.displayName="StackItem";function OY(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":by(n,o=>r[o])}}const Ee=L((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:c,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",g=m.useMemo(()=>OY({spacing:a,direction:h}),[a,h]),y=!!c,x=!f&&!y,b=m.useMemo(()=>{const S=gy(l);return x?S:S.map((w,k)=>{const _=typeof w.key<"u"?w.key:k,C=k+1===S.length,A=f?u.jsx(p5,{children:w},_):w;if(!y)return A;const $=m.cloneElement(c,{__css:g}),B=C?null:$;return u.jsxs(m.Fragment,{children:[A,B]},_)})},[c,g,y,x,f,l]),v=V("chakra-stack",d);return u.jsx(N.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:h,flexWrap:s,gap:y?void 0:a,className:v,...p,children:b})});Ee.displayName="Stack";const we=L((e,t)=>u.jsx(Ee,{align:"center",...e,direction:"row",ref:t}));we.displayName="HStack";const np=L((e,t)=>u.jsx(Ee,{align:"center",...e,direction:"column",ref:t}));np.displayName="VStack";const[DY,m5]=ye({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),$i=L(function(t,n){const r=Ve("Stat",t),o={position:"relative",flex:"1 1 0%",...r.container},{className:i,children:a,...s}=Ce(t);return u.jsx(DY,{value:r,children:u.jsx(N.div,{ref:n,...s,className:V("chakra-stat",i),__css:o,children:u.jsx("dl",{children:a})})})});$i.displayName="Stat";const Ai=L(function(t,n){const r=m5();return u.jsx(N.dt,{ref:n,...t,className:V("chakra-stat__label",t.className),__css:r.label})});Ai.displayName="StatLabel";const jo=L(function(t,n){const r=m5();return u.jsx(N.dd,{ref:n,...t,className:V("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});jo.displayName="StatNumber";const[LY,gi]=ye({name:"StepContext"}),[FY,ba]=hr("Stepper"),BY=L(function(t,n){const{orientation:r,status:o,showLastSeparator:i}=gi(),a=ba();return u.jsx(N.div,{ref:n,"data-status":o,"data-orientation":r,"data-stretch":oe(i),__css:a.step,...t,className:V("chakra-step",t.className)})}),VY=L(function(t,n){const{status:r}=gi(),o=ba();return u.jsx(N.p,{ref:n,"data-status":r,...t,className:V("chakra-step__description",t.className),__css:o.description})});function WY(e){return u.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:u.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function UY(e){const{status:t}=gi(),n=ba(),r=t==="complete"?WY:void 0;return u.jsx(wt,{as:r,__css:n.icon,...e,className:V("chakra-step__icon",e.className)})}const qk=L(function(t,n){const{children:r,...o}=t,{status:i,index:a}=gi(),s=ba();return u.jsx(N.div,{ref:n,"data-status":i,__css:s.number,...o,className:V("chakra-step__number",t.className),children:r||a+1})});function HY(e){const{complete:t,incomplete:n,active:r}=e,o=gi();let i=null;switch(o.status){case"complete":i=Xt(t,o);break;case"incomplete":i=Xt(n,o);break;case"active":i=Xt(r,o);break}return i?u.jsx(u.Fragment,{children:i}):null}const GY=L(function(t,n){const{status:r}=gi(),o=ba();return u.jsx(N.div,{ref:n,"data-status":r,...t,__css:o.indicator,className:V("chakra-step__indicator",t.className)})}),h5=L(function(t,n){const{orientation:r,status:o,isLast:i,showLastSeparator:a}=gi(),s=ba();return i&&!a?null:u.jsx(N.div,{ref:n,role:"separator","data-orientation":r,"data-status":o,__css:s.separator,...t,className:V("chakra-step__separator",t.className)})}),KY=L(function(t,n){const{status:r}=gi(),o=ba();return u.jsx(N.h3,{ref:n,"data-status":r,...t,__css:o.title,className:V("chakra-step__title",t.className)})}),XY=L(function(t,n){const r=Ve("Stepper",t),{children:o,index:i,orientation:a="horizontal",showLastSeparator:s=!1,...l}=Ce(t),c=m.Children.toArray(o),d=c.length;function f(p){return pi?"incomplete":"active"}return u.jsx(N.div,{ref:n,"aria-label":"Progress","data-orientation":a,...l,__css:r.stepper,className:V("chakra-stepper",t.className),children:u.jsx(FY,{value:r,children:c.map((p,h)=>u.jsx(LY,{value:{index:h,status:f(h),orientation:a,showLastSeparator:s,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),sf=L(function(t,n){const r=Ve("Switch",t),{spacing:o="0.5rem",children:i,...a}=Ce(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:c,getRootProps:d,getLabelProps:f}=aH(a),p=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),h=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),g=m.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return u.jsxs(N.label,{...d(),className:V("chakra-switch",t.className),__css:p,children:[u.jsx("input",{className:"chakra-switch__input",...l({},n)}),u.jsx(N.span,{...c(),className:"chakra-switch__track",__css:h,children:u.jsx(N.span,{__css:r.thumb,className:"chakra-switch__thumb",...s()})}),i&&u.jsx(N.span,{className:"chakra-switch__label",...f(),__css:g,children:i})]})});sf.displayName="Switch";const[YY,Su]=ye({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),om=L((e,t)=>{const n=Ve("Table",e),{className:r,layout:o,...i}=Ce(e);return u.jsx(YY,{value:n,children:u.jsx(N.table,{ref:t,__css:{tableLayout:o,...n.table},className:V("chakra-table",r),...i})})});om.displayName="Table";const i1=L((e,t)=>{const{overflow:n,overflowX:r,className:o,...i}=e;return u.jsx(N.div,{ref:t,className:V("chakra-table__container",o),...i,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),a1=L((e,t)=>{const n=Su();return u.jsx(N.tbody,{...e,ref:t,__css:n.tbody})}),Mt=L(({isNumeric:e,...t},n)=>{const r=Su();return u.jsx(N.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),en=L(({isNumeric:e,...t},n)=>{const r=Su();return u.jsx(N.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),s1=L((e,t)=>{const n=Su();return u.jsx(N.thead,{...e,ref:t,__css:n.thead})}),ei=L((e,t)=>{const n=Su();return u.jsx(N.tr,{...e,ref:t,__css:n.tr})});function qY(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function QY(e,t){const n=o=>({...t,...o,position:qY((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),a=Bj(i);return Er.notify(a,i)};return r.update=(o,i)=>{Er.update(o,n(i))},r.promise=(o,i)=>{const a=r({...i.loading,status:"loading",duration:null});o.then(s=>r.update(a,{status:"success",duration:5e3,...Xt(i.success,s)})).catch(s=>r.update(a,{status:"error",duration:5e3,...Xt(i.error,s)}))},r.closeAll=Er.closeAll,r.close=Er.close,r.isActive=Er.isActive,r}function bo(e){const{theme:t}=zj(),n=PU();return m.useMemo(()=>QY(t.direction,{...n,...e}),[e,t.direction,n])}const ZY={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Kv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},lf=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function JY(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:y,arrowPadding:x,modifiers:b,isDisabled:v,gutter:S,offset:w,direction:k,..._}=e,{isOpen:C,onOpen:T,onClose:A}=ou({isOpen:p,defaultIsOpen:h,onOpen:l,onClose:c}),{referenceRef:$,getPopperProps:B,getArrowInnerProps:Y,getArrowProps:te}=mX({enabled:C,placement:d,arrowPadding:x,modifiers:b,gutter:S,offset:w,direction:k}),I=m.useId(),F=`tooltip-${f??I}`,z=m.useRef(null),O=m.useRef(void 0),R=m.useCallback(()=>{O.current&&(clearTimeout(O.current),O.current=void 0)},[]),D=m.useRef(void 0),G=m.useCallback(()=>{D.current&&(clearTimeout(D.current),D.current=void 0)},[]),H=m.useCallback(()=>{G(),A()},[A,G]),Q=eq(z,H),be=m.useCallback(()=>{if(!v&&!O.current){C&&Q();const pe=lf(z);O.current=pe.setTimeout(T,t)}},[Q,v,C,T,t]),me=m.useCallback(()=>{R();const pe=lf(z);D.current=pe.setTimeout(H,n)},[n,H,R]),xe=m.useCallback(()=>{C&&r&&me()},[r,me,C]),Fe=m.useCallback(()=>{C&&a&&me()},[a,me,C]),fe=m.useCallback(pe=>{C&&pe.key==="Escape"&&me()},[C,me]);Fd(()=>Kv(z),"keydown",s?fe:void 0),Fd(()=>{if(!i)return null;const pe=z.current;if(!pe)return null;const ne=nT(pe);return ne.localName==="body"?lf(z):ne},"scroll",()=>{C&&i&&H()},{passive:!0,capture:!0}),m.useEffect(()=>{v&&(R(),C&&A())},[v,C,A,R]),m.useEffect(()=>()=>{R(),G()},[R,G]),Fd(()=>z.current,"pointerleave",me);const Z=m.useCallback((pe={},ne=null)=>({...pe,ref:bt(z,ne,$),onPointerEnter:le(pe.onPointerEnter,it=>{it.pointerType!=="touch"&&be()}),onClick:le(pe.onClick,xe),onPointerDown:le(pe.onPointerDown,Fe),onFocus:le(pe.onFocus,be),onBlur:le(pe.onBlur,me),"aria-describedby":C?F:void 0}),[be,me,Fe,C,F,xe,$]),J=m.useCallback((pe={},ne=null)=>B({...pe,style:{...pe.style,[Nt.arrowSize.var]:g?`${g}px`:void 0,[Nt.arrowShadowColor.var]:y}},ne),[B,g,y]),Pe=m.useCallback((pe={},ne=null)=>{const ce={...pe.style,position:"relative",transformOrigin:Nt.transformOrigin.varRef};return{ref:ne,..._,...pe,id:F,role:"tooltip",style:ce}},[_,F]);return{isOpen:C,show:be,hide:me,getTriggerProps:Z,getTooltipProps:Pe,getTooltipPositionerProps:J,getArrowProps:te,getArrowInnerProps:Y}}const Vh="chakra-ui:close-tooltip";function eq(e,t){return m.useEffect(()=>{const n=Kv(e);return n.addEventListener(Vh,t),()=>n.removeEventListener(Vh,t)},[t,e]),()=>{const n=Kv(e),r=lf(e);n.dispatchEvent(new r.CustomEvent(Vh))}}const tq=N($n.div),l1=L((e,t)=>{const n=An("Tooltip",e),r=Ce(e),o=yo(),{children:i,label:a,shouldWrapChildren:s,"aria-label":l,hasArrow:c,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:g,motionProps:y,animatePresenceProps:x,...b}=r,v=p??h??d??g;if(v){n.bg=v;const $=jM(o,"colors",v);n[Nt.arrowBg.var]=$}const S=JY({...b,direction:o.direction}),w=!m.isValidElement(i)||s;let k;if(w)k=u.jsx(N.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:i});else{const $=m.Children.only(i);k=m.cloneElement($,S.getTriggerProps($.props,wY($)))}const _=!!l,C=S.getTooltipProps({},t),T=_?yy(C,["role","id"]):C,A=eT(C,["role","id"]);return a?u.jsxs(u.Fragment,{children:[k,u.jsx(vo,{...x,children:S.isOpen&&u.jsx(Js,{...f,children:u.jsx(N.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:u.jsxs(tq,{variants:ZY,initial:"exit",animate:"enter",exit:"exit",...y,...T,__css:n,children:[a,_&&u.jsx(N.span,{srOnly:!0,...A,children:l}),c&&u.jsx(N.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:u.jsx(N.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):u.jsx(u.Fragment,{children:i})});l1.displayName="Tooltip";const Dt=L(function(t,n){const r=An("Heading",t),{className:o,...i}=Ce(t);return u.jsx(N.h2,{ref:n,className:V("chakra-heading",t.className),...i,__css:r})});Dt.displayName="Heading";const ue=L(function(t,n){const r=An("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=Ce(t),c=vy({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return u.jsx(N.p,{ref:n,className:V("chakra-text",t.className),...c,...l,__css:r})});ue.displayName="Text";var gn=e=>qp({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});gn({displayName:"ChevronUpIcon",path:u.jsx("polyline",{points:"18 15 12 9 6 15"})});gn({displayName:"ChevronDownIcon",path:u.jsx("polyline",{points:"6 9 12 15 18 9"})});gn({displayName:"ChevronLeftIcon",path:u.jsx("polyline",{points:"15 18 9 12 15 6"})});gn({displayName:"ChevronRightIcon",path:u.jsx("polyline",{points:"9 18 15 12 9 6"})});gn({displayName:"ChevronDownIcon",path:u.jsxs("g",{fill:"none",children:[u.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),u.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),u.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var nq=gn({displayName:"CloseIcon",path:u.jsxs("g",{children:[u.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});gn({displayName:"FilterIcon",path:u.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});gn({displayName:"CalendarIcon",path:u.jsxs("g",{children:[u.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),u.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),u.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),u.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});gn({displayName:"PlusIcon",path:u.jsxs("g",{children:[u.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});gn({displayName:"MinusIcon",path:u.jsx("g",{children:u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});gn({displayName:"ViewOffIcon",path:u.jsxs("g",{children:[u.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),u.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});gn({displayName:"ViewOffIcon",path:u.jsxs("g",{children:[u.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),u.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var rq=gn({displayName:"SearchIcon",path:u.jsxs("g",{children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});gn({displayName:"CheckIcon",path:u.jsx("g",{children:u.jsx("polyline",{points:"20 6 9 17 4 12"})})});function jt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...d){r();for(const f of d)t[f]=l(f);return jt(e,t)}function i(...d){for(const f of d)f in t||(t[f]=l(f));return jt(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function l(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var oq=jt("app-shell").parts("container","inner","main"),g5=jt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),iq=jt("banner").parts("container","icon","content","title","description","actions","close"),aq=jt("hotkeys").parts("container","group","groupTitle","item","command","then"),sq=jt("loading-overlay").parts("overlay","text"),lq=jt("nav-group").parts("container","title","icon","content"),cq=jt("nav-item").parts("item","link","inner","icon","label"),uq=jt("nprogress").parts("container","bar"),dq=jt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),fq=jt("search-input").parts("input","reset"),pq=jt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");jt("stepper").parts("container","steps","icon","content","title","separator");var mq=jt("structured-list").parts("list","item","button","header","cell","icon"),v5=jt("property").parts("property","label","value"),hq=jt("select").parts("addon","field","element"),gq=jt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:y5,defineMultiStyleConfig:vq}=ie(mT.keys),yq=y5(e=>{const{colorScheme:t}=e;return{container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),bq=y5({container:{borderRadius:"md"}}),xq=vq({defaultProps:{size:"sm"},baseStyle:bq,variants:{snackbar:yq}}),Xr=pT("badge",["bg","color","shadow","border"]),Qk=e=>{const{colorScheme:t,theme:n}=e,r=Et(`${t}.200`,.8)(n);return{[Xr.color.variable]:`colors.${t}.500`,_dark:{[Xr.color.variable]:r},[Xr.shadow.variable]:`inset 0 0 0px 1px ${Xr.color.reference}`}},Sq={variants:{outline:e=>{const t=Qk(e);return{...t,_dark:{...t==null?void 0:t._dark,[Xr.shadow.variable]:`inset 0 0 0px 1px ${Xr.border.reference}`,[Xr.color.variable]:`colors.${e.colorScheme}.200`,[Xr.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Qk(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[Xr.color.variable]:`colors.${e.colorScheme}.200`}}}}},b5=e=>{const{colorScheme:t}=e;return t==="gray"?{base:q("gray.100","whiteAlpha.300")(e),hover:q("gray.200","whiteAlpha.400")(e),active:q("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:q(`${t}.500`,`${t}.500`)(e),hover:q(`${t}.600`,`${t}.600`)(e),active:q(`${t}.700`,`${t}.700`)(e)}},wq={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},im=e=>{var t;const{colorScheme:n,colorMode:r}=e;if(n==="white")return{bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(n==="neutral")return{bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};const{base:o,hover:i,active:a}=b5(e),{color:s=n==="gray"?q("black","white")(e):"white",bg:l=o,hoverBg:c=i,activeBg:d=a}=(t=wq[n])!=null?t:{};return{bg:l,color:s,_hover:{bg:c,_disabled:{bg:l}},_active:{bg:d}}},kq=e=>({shadow:"md",...im(e)}),x5=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:o}=b5(e);return{...S5(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?o:r}}},S5=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return{color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};const r=Et(`${t}.200`,.12)(n),o=Et(`${t}.200`,.24)(n);return{color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:r}},_active:{bg:`${t}.100`,_dark:{bg:o}}}},Cq=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};const r=t==="white"?"white":q(`${t}.500`,`${t}.200`)(e),o=Et(r,.1)(n),i=Et(r,.16)(n),a=Et(r,.24)(n);return{color:t==="white"?"white":q(`${t}.600`,`${t}.200`)(e),bg:o,_hover:{bg:i},_active:{bg:a}}},Pq=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":q(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":q(`${t}.700`,`${t}.500`)(e)}}},_q=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),im({...e,variant:"solid",colorScheme:t})},Tq=e=>im({...e,variant:"solid"}),Eq=e=>x5({...e,variant:"outline"}),jq={defaultProps:{size:"sm"},variants:{solid:im,ghost:S5,outline:x5,subtle:Cq,elevated:kq,link:Pq,primary:_q,secondary:Tq,tertiary:Eq}},{definePartsStyle:Zi,defineMultiStyleConfig:$q}=ie(kT.keys),Li=X("card-bg"),Wh=X("card-padding"),c1=X("card-shadow"),Uh=X("card-radius"),u1=X("card-border-width","0"),Bo=X("card-border-color"),Aq=Zi(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),Iq=Zi(e=>({container:{[Li.variable]:"colors.white",[Bo.variable]:"colors.blackAlpha.200",[u1.variable]:"1px",[c1.variable]:"shadows.sm",_dark:{[Li.variable]:"colors.whiteAlpha.200",[Bo.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Bo.variable]:"colors.blackAlpha.300",_dark:{[Bo.variable]:"colors.whiteAlpha.300"}}}})),Rq=Zi(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[u1.variable]:"0",[c1.variable]:"none",[Li.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[Li.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[Li.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[Li.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),zq=Zi(e=>{const{colorScheme:t}=e;return{container:{[u1.variable]:"1px",[c1.variable]:"none",[Bo.variable]:t?`${t}.500`:"colors.blackAlpha.200",[Li.variable]:"transparent","&.chakra-linkbox:hover":{[Bo.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Bo.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Bo.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),Mq={sm:Zi({container:{[Uh.variable]:"radii.base",[Wh.variable]:"space.3"}}),md:Zi({container:{[Uh.variable]:"radii.md",[Wh.variable]:"space.4"}}),lg:Zi({container:{[Uh.variable]:"radii.xl",[Wh.variable]:"space.6"}})},Nq=$q({defaultProps:{variant:"elevated"},baseStyle:Aq,variants:{elevated:Iq,outline:zq,filled:Rq},sizes:Mq}),{definePartsStyle:Oq,defineMultiStyleConfig:Dq}=ie(hT.keys),Lq=Oq(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),Fq=Dq({baseStyle:Lq,defaultProps:{colorScheme:"primary"}}),Bq={defaultProps:{size:"sm"}},{definePartsStyle:cf,defineMultiStyleConfig:Vq}=ie(ky.keys),gd=X("input-height"),vd=X("input-padding"),Zk=X("input-border-radius"),w5={sm:cf({field:{[Zk.variable]:"radii.md"},group:{[Zk.variable]:"radii.md"}}),md:cf({field:{[vd.variable]:"space.3",[gd.variable]:"sizes.9"},group:{[vd.variable]:"space.3",[gd.variable]:"sizes.9"}}),lg:cf({field:{[vd.variable]:"space.3",[gd.variable]:"sizes.10"},group:{[vd.variable]:"space.3",[gd.variable]:"sizes.10"}})},k5=cf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),d1=Vq({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:k5},sizes:w5}),Wq={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},cc=d1,Uq=d1,Hq={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:k5},sizes:w5},Gq={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=cc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},Kq=d1,{definePartsStyle:Jr,defineMultiStyleConfig:Xq}=ie(ky.keys),ns=X("input-height"),rs=X("input-font-size"),os=X("input-padding"),is=X("input-border-radius"),Yq=Jr({addon:{height:ns.reference,fontSize:rs.reference,px:os.reference,borderRadius:is.reference},field:{width:"100%",height:ns.reference,fontSize:rs.reference,px:os.reference,borderRadius:is.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),To={lg:{[rs.variable]:"fontSizes.lg",[os.variable]:"space.4",[is.variable]:"radii.md",[ns.variable]:"sizes.12"},md:{[rs.variable]:"fontSizes.md",[os.variable]:"space.4",[is.variable]:"radii.md",[ns.variable]:"sizes.10"},sm:{[rs.variable]:"fontSizes.sm",[os.variable]:"space.3",[is.variable]:"radii.sm",[ns.variable]:"sizes.8"},xs:{[rs.variable]:"fontSizes.xs",[os.variable]:"space.2",[is.variable]:"radii.sm",[ns.variable]:"sizes.6"}},qq={lg:Jr({field:To.lg,group:To.lg}),md:Jr({field:To.md,group:To.md}),sm:Jr({field:To.sm,group:To.sm}),xs:Jr({field:To.xs,group:To.xs})};function f1(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||q("blue.500","blue.300")(e),errorBorderColor:n||q("red.500","red.300")(e)}}var Qq=Jr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=f1(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:q("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0 0 0 1px ${Ke(t,r)}`},_focusVisible:{zIndex:1,borderColor:Ke(t,n),boxShadow:`0 0 0 1px ${Ke(t,n)}`}},addon:{border:"1px solid",borderColor:q("inherit","whiteAlpha.50")(e),bg:q("gray.100","whiteAlpha.300")(e)}}}),Zq=Jr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=f1(e);return{field:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e),_hover:{bg:q("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r)},_focusVisible:{bg:"transparent",borderColor:Ke(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:q("gray.100","whiteAlpha.50")(e)}}}),Jq=Jr(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=f1(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ke(t,r),boxShadow:`0px 1px 0px 0px ${Ke(t,r)}`},_focusVisible:{borderColor:Ke(t,n),boxShadow:`0px 1px 0px 0px ${Ke(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),eQ=Jr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),tQ={outline:Qq,filled:Zq,flushed:Jq,unstyled:eQ},Vo=Xq({baseStyle:Yq,sizes:qq,variants:tQ,defaultProps:{size:"md",variant:"outline"}}),Jk,eC,nQ={...Vo,defaultProps:cc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=cc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=Vo.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=Vo.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(eC=(Jk=Vo.variants)==null?void 0:Jk.unstyled)!=null?eC:{}},sizes:cc.sizes},rQ={defaultProps:{size:"lg"}},oQ=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),iQ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:oQ}},{definePartsStyle:C5,defineMultiStyleConfig:aQ}=ie(vT.keys),sQ=C5(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),lQ=C5(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),cQ=aQ({baseStyle:sQ,variants:{dialog:lQ}}),{definePartsStyle:uQ,defineMultiStyleConfig:dQ}=ie(yT.keys),fQ=uQ(e=>({closeButton:{top:4,insetEnd:4}})),pQ=dQ({baseStyle:fQ}),{definePartsStyle:mQ,defineMultiStyleConfig:hQ}=ie(bT.keys),gQ=hQ({defaultProps:{colorScheme:"primary"},baseStyle:mQ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:vQ,defineMultiStyleConfig:yQ}=ie(xT.keys),bQ=yQ({defaultProps:{colorScheme:"primary"},baseStyle:vQ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:xQ,defineMultiStyleConfig:SQ}=ie(ST.keys),wQ=SQ({defaultProps:{colorScheme:"primary"},baseStyle:xQ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:kQ,defineMultiStyleConfig:CQ}=ie(wT.keys),PQ=CQ({defaultProps:{colorScheme:"primary"},baseStyle:kQ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),yd=ut("tooltip-bg"),tC=ut("tooltip-fg"),_Q=ut("popper-arrow-bg"),TQ=e=>({display:"flex",[yd.variable]:"colors.white",[tC.variable]:"colors.blackAlpha.900",_dark:{[yd.variable]:"colors.gray.700",[tC.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[yd.reference],[_Q.variable]:[yd.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),EQ={baseStyle:TQ},bd=X("stepper-indicator-size"),Ji=X("stepper-accent-color"),Fi=X("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:jQ,definePartsStyle:Wo}=ie(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),$Q=Wo(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:Fi.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[Fi.variable]:"10px",[Ji.variable]:`colors.${e}.500`,_dark:{[Ji.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal","&[data-orientation=horizontal]":{height:"1px"},"&[data-orientation=vertical]":{width:"1px"},".sui-steps__item .chakra-step &[data-orientation=vertical]":{display:"none"},".sui-steps__item &[data-orientation=vertical]":{position:"static",minH:4,height:"auto",ms:Fi.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),AQ=Wo(e=>({})),IQ=Wo(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ji.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:Ji.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),RQ=Wo(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[Ji.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ji.reference,color:`${n}.500`,_dark:{bg:Et(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:Ji.reference,color:`${n}.500`,_dark:{bg:Et(`${n}.200`,.24)(t),color:`${n}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),zQ=jQ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:$Q,variants:{outline:AQ,solid:IQ,subtle:RQ},sizes:{xs:Wo({stepper:{[bd.variable]:"sizes.4",[Fi.variable]:"7px"}}),sm:Wo({stepper:{[bd.variable]:"sizes.6",[Fi.variable]:"11px"}}),md:Wo({stepper:{[bd.variable]:"sizes.7",[Fi.variable]:"14px"}}),lg:Wo({stepper:{[bd.variable]:"sizes.8",[Fi.variable]:"16px"}})}}),{definePartsStyle:MQ,defineMultiStyleConfig:NQ}=ie(g5.keys),OQ=MQ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),DQ=NQ({baseStyle:OQ}),{definePartsStyle:P5,defineMultiStyleConfig:_5}=ie(uq.keys),LQ=P5(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),FQ=_5({defaultProps:{colorScheme:"teal"},baseStyle:LQ}),BQ=P5(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),VQ=_5({defaultProps:{colorScheme:"primary"},baseStyle:BQ}),{defineMultiStyleConfig:WQ}=ie(v5.keys),UQ=WQ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),HQ={Alert:xq,Badge:Sq,Button:jq,Card:Nq,Checkbox:Fq,CloseButton:Bq,Heading:rQ,Kbd:iQ,Menu:cQ,Modal:pQ,Progress:gQ,Radio:bQ,Slider:wQ,Switch:PQ,Stepper:zQ,Tooltip:EQ,Input:cc,PinInput:Hq,FormLabel:Wq,NumberInput:Uq,Select:Kq,Textarea:Gq,SuiEmptyState:DQ,SuiNProgress:VQ,SuiProperty:UQ,SuiSelect:nQ},{definePartsStyle:GQ,defineMultiStyleConfig:KQ}=ie(oq.keys),XQ=GQ({container:{},inner:{},main:{}}),YQ=KQ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:XQ}),{definePartsStyle:p1,defineMultiStyleConfig:qQ}=ie(iq.keys),QQ=p1({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),ZQ=p1(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Et(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),JQ=p1(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),eZ=qQ({baseStyle:QQ,variants:{subtle:ZQ,solid:JQ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),tZ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:T5,defineMultiStyleConfig:nZ}=ie(g5.keys),rZ=T5(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),oZ=T5(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),iZ=nZ({baseStyle:rZ,variants:{centered:oZ}}),{definePartsStyle:aZ,defineMultiStyleConfig:sZ}=ie(gT.keys),lZ=aZ({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),cZ=sZ({variants:{horizontal:lZ}}),uZ={defaultProps:{spacing:4}},dZ={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:fZ}=ie(aq.keys),pZ=fZ({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:mZ,definePartsStyle:am}=ie(sq.keys),hZ=am({overlay:{p:4}}),gZ=am(()=>({overlay:{flex:1,height:"100%"}})),vZ=am(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),yZ=am(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),bZ=mZ({defaultProps:{variant:"fill"},baseStyle:hZ,variants:{fill:gZ,fullscreen:vZ,overlay:yZ}}),{definePartsStyle:xZ,defineMultiStyleConfig:SZ}=ie(lq.keys),wZ=xZ(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),kZ=SZ({baseStyle:wZ}),{definePartsStyle:wu,defineMultiStyleConfig:CZ}=ie(cq.keys),PZ=wu(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),_Z=wu(e=>{const t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_active:t,"&[aria-current=page]":t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),TZ=wu(e=>{const{colorScheme:t,theme:n}=e,r={bg:Et(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Et(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),EZ=wu(e=>{const{colorScheme:t}=e,n={bg:`${t}.500`};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n,color:"white"},icon:{color:"white"},label:{}}}),jZ=wu(e=>{const{colorScheme:t}=e,n={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return{item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),nC,rC,oC,iC,$Z=CZ({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:PZ,sizes:{xs:{link:(nC=Oi.components.Button.sizes)==null?void 0:nC.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(rC=Oi.components.Button.sizes)==null?void 0:rC.sm,icon:{me:2,fontSize:"sm"}},md:{link:(oC=Oi.components.Button.sizes)==null?void 0:oC.md,icon:{me:2,fontSize:"md"}},lg:{link:(iC=Oi.components.Button.sizes)==null?void 0:iC.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:_Z,subtle:TZ,solid:EZ,"left-accent":jZ}}),{definePartsStyle:$o,defineMultiStyleConfig:AZ}=ie(dq.keys),aC=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),IZ=$o(e=>({details:{minW:0},secondaryLabel:aC(e),tertiaryLabel:aC(e)})),RZ={"2xs":$o({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:$o({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:$o({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:$o({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":$o({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},zZ=AZ({defaultProps:{size:"md"},baseStyle:IZ,sizes:RZ}),{defineMultiStyleConfig:MZ}=ie(v5.keys),NZ=MZ({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:OZ}=ie(fq.keys),DZ=OZ({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:m1,defineMultiStyleConfig:LZ}=ie(pq.keys),FZ=m1(e=>{const{colorScheme:t}=e;return{container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),BZ=m1(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),VZ=m1(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),WZ=LZ({defaultProps:{variant:"default"},baseStyle:FZ,variants:{default:BZ,compact:VZ}}),{defineMultiStyleConfig:UZ}=ie(hq.keys),HZ=UZ({defaultProps:Vo.defaultProps,baseStyle:Vo.baseStyle,sizes:Vo.sizes,variants:Vo.variants}),{definePartsStyle:GZ,defineMultiStyleConfig:KZ}=ie(mq.keys),XZ=GZ(e=>({item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},button:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none",transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_disabled:{cursor:"inherit",opacity:.5,_hover:{bg:"transparent",_dark:{bg:"transparent"}},_active:{bg:"transparent",_dark:{bg:"transparent"}}}},header:{display:"flex",flexDirection:"row",position:"sticky",fontSize:"md",fontWeight:"semibold",color:"muted"},icon:{display:"flex",flexShrink:0}})),YZ=KZ({defaultProps:{size:"md"},baseStyle:XZ,sizes:{sm:{item:{py:1,px:1},header:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},header:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:h1,defineMultiStyleConfig:qZ}=ie(gq.keys),sC=X("timeline-row-start","minmax(0,1fr)"),QZ=X("timeline-row-end","minmax(0,1fr)"),lC=X("timeline-col-start","minmax(0,1fr)"),cC=X("timeline-col-end","minmax(0,1fr)"),ZZ=h1(e=>({container:{display:"flex",[sC.variable]:"minmax(0,1fr)",[QZ.variable]:"minmax(0,1fr)",[lC.variable]:"auto",[cC.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${sC.reference}`,gridTemplateColumns:`${lC.reference} ${cC.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),JZ=h1(e=>({icon:{}})),eJ=h1(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),tJ=qZ({defaultProps:{variant:"solid",size:"sm"},baseStyle:ZZ,variants:{solid:JZ,outline:eJ},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),nJ={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10},xl:{borderRadius:"md",fontSize:"1.5em",w:12,h:12}},defaultProps:{variant:"outline",size:"md"}},rJ=$e("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:oJ,definePartsStyle:iJ}=ie(rJ.keys),uC=X("navbar-bg"),dC=X("navbar-text-color","currentColor"),Hh=X("navbar-link-bg","transparent"),aJ=["yellow","cyan"],sJ=oJ({baseStyle:iJ(({colorScheme:e})=>{let t="currentColor";return e&&(t=aJ.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[uC.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[dC.variable]:t,bg:uC.reference,color:dC.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:Hh.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[Hh.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[Hh.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),lJ={Form:cZ,SuiAppShell:YQ,SuiBanner:eZ,SuiCommand:tZ,SuiEmptyState:iZ,SuiFormLayout:uZ,SuiFormLegend:dZ,SuiHotkeys:pZ,SuiStructuredList:YZ,SuiLoadingOverlay:bZ,SuiNavGroup:kZ,SuiNavItem:$Z,SuiPersona:zZ,SuiProperty:NZ,SuiNProgress:FQ,SuiSearchInput:DZ,SuiSelect:HZ,SuiSidebar:WZ,SuiTimeline:tJ,SuiIconBadge:nJ,SuiNavbar:sJ},cJ=Ib({colors:{primary:Oi.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:lJ}),uJ={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},Gh={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Xv={primary:Gh.purple,secondary:Gh.cyan,...Gh},dJ={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},fJ={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},pJ={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},mJ={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},hJ=mJ,gJ={outline:`0 0 0 2px ${Et(Xv.primary[500],.6)({colors:Xv})}`},vJ=gJ,yJ={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},bJ={colors:Xv,fonts:dJ,fontSizes:fJ,textStyles:pJ,sizes:hJ,shadows:vJ,semanticTokens:yJ},E5=Ib({...bJ,styles:uJ,components:HQ},cJ);function j5(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function xJ(e,t){return e.find(n=>n.id===t)}function $5(e,t){const n=xJ(e,t);return n?e.indexOf(n):-1}function SJ(e,t,n=!0){let r=$5(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function wJ(e,t,n=!0){let r=$5(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}const Uo=e=>(e==null?void 0:e.ownerDocument)??document,si=e=>e&&"window"in e&&e.window===e?e:Uo(e).defaultView||window;function kJ(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function CJ(e){return kJ(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const PJ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function _J(e){const t=si(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=si(e);let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function TJ(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function A5(e,t){return PJ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&_J(e)&&TJ(e,t)&&(!e.parentElement||A5(e.parentElement,e))}const I5=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],EJ=I5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";I5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function jJ(e,t){return e.matches(EJ)&&!$J(e)&&((t==null?void 0:t.skipVisibilityCheck)||A5(e))}function $J(e){let t=e;for(;t!=null;){if(t instanceof si(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function R5(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const g1=typeof document<"u"?Rt.useLayoutEffect:()=>{};let Yv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Yv.delete(e)});function AJ(e,t){if(e===t)return e;let n=Yv.get(e);if(n)return n.forEach(o=>o.current=t),t;let r=Yv.get(t);return r?(r.forEach(o=>o.current=e),e):t}function IJ(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(o=>{const i=fC(o,t);return n||(n=typeof i=="function"),i});if(n)return()=>{r.forEach((o,i)=>{typeof o=="function"?o():fC(e[i],null)})}}}function fC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function z5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t=65&&o.charCodeAt(2)<=90?t[o]=R5(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=RJ(i,a):o==="id"&&i&&a?t.id=AJ(i,a):o==="ref"&&i&&a?t.ref=IJ(i,a):t[o]=a!==void 0?a:i}}return t}function Kc(e){if(zJ())e.focus({preventScroll:!0});else{let t=MJ(e);e.focus(),NJ(t)}}let xd=null;function zJ(){if(xd==null){xd=!1;try{document.createElement("div").focus({get preventScroll(){return xd=!0,!0}})}catch{}}return xd}function MJ(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeightt.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function LJ(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function FJ(e){for(;e&&!jJ(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=si(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,o=d=>{(Ct(d)===n||r)&&d.stopImmediatePropagation()},i=d=>{(Ct(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,Kc(n),l()))},a=d=>{(Ct(d)===e||r)&&d.stopImmediatePropagation()},s=d=>{(Ct(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,Kc(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),r=!1},c=requestAnimationFrame(l);return l}function sm(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function y1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function vi(e){let t=null;return()=>(t==null&&(t=e()),t)}const rp=vi(function(){return y1(/^Mac/i)}),BJ=vi(function(){return y1(/^iPhone/i)}),N5=vi(function(){return y1(/^iPad/i)||rp()&&navigator.maxTouchPoints>1}),O5=vi(function(){return BJ()||N5()}),VJ=vi(function(){return sm(/AppleWebKit/i)&&!WJ()}),WJ=vi(function(){return sm(/Chrome/i)}),D5=vi(function(){return sm(/Android/i)}),UJ=vi(function(){return sm(/Firefox/i)});let Oo=new Map,qv=new Set;function pC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let o=Ct(r);if(!e(r)||!o)return;let i=Oo.get(o);i||(i=new Set,Oo.set(o,i),o.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{let o=Ct(r);if(!e(r)||!o)return;let i=Oo.get(o);if(i&&(i.delete(r.propertyName),i.size===0&&(o.removeEventListener("transitioncancel",n),Oo.delete(o)),Oo.size===0)){for(let a of qv)a();qv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?pC():document.addEventListener("DOMContentLoaded",pC));function HJ(){for(const[e]of Oo)"isConnected"in e&&!e.isConnected&&Oo.delete(e)}function GJ(e){requestAnimationFrame(()=>{HJ(),Oo.size===0?e():qv.add(e)})}let as="default",Qv="",uf=new WeakMap;function KJ(e){if(O5()){if(as==="default"){const t=Uo(e);Qv=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}as="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";uf.set(e,e.style[t]),e.style[t]="none"}}function mC(e){if(O5()){if(as!=="disabled")return;as="restoring",setTimeout(()=>{GJ(()=>{if(as==="restoring"){const t=Uo(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Qv||""),Qv="",as="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&uf.has(e)){let t=uf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),uf.delete(e)}}function hC(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let Kh=new WeakMap;function XJ(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return hC(t);if(Kh.has(t))return Kh.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof si(n).HTMLMetaElement&&(n.nonce||n.content)||hC(t)||void 0;return r!==void 0&&Kh.set(t,r),r}function YJ(e){return e.pointerType===""&&e.isTrusted?!0:D5()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function qJ(e){return!D5()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Xc(e,t,n=!0){var l,c;let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}=t;UJ()&&((c=(l=window.event)==null?void 0:l.type)!=null&&c.startsWith("key"))&&e.target==="_blank"&&(rp()?r=!0:o=!0);let s=VJ()&&rp()&&!N5()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Xc.isOpening=n,Kc(e),e.dispatchEvent(s),Xc.isOpening=!1}Xc.isOpening=!1;const L5=Rt.createContext({register:()=>{}});L5.displayName="PressResponderContext";const QJ=Rt.useInsertionEffect??g1;function df(e){const t=m.useRef(null);return QJ(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function F5(){let e=m.useRef(new Map),t=m.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),n=m.useCallback((o,i,a,s)=>{var c;let l=((c=e.current.get(a))==null?void 0:c.fn)||a;o.removeEventListener(i,l,s),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ZJ(e,t){g1(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function JJ(e){let t=m.useContext(L5);if(t){let{register:n,ref:r,...o}=t;e=v1(o,e),n()}return ZJ(t,e.ref),e}var Cs;class Sd{constructor(t,n,r,o){lx(this,Cs);Em(this,Cs,!0);let i=(o==null?void 0:o.target)??r.currentTarget;const a=i==null?void 0:i.getBoundingClientRect();let s,l=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),a&&(c!=null&&d!=null?(s=c-a.left,l=d-a.top):(s=a.width/2,l=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=l,this.key=r.key}continuePropagation(){Em(this,Cs,!1)}get shouldStopPropagation(){return sx(this,Cs)}}Cs=new WeakMap;const gC=Symbol("linkClicked"),vC="react-aria-pressable-style",yC="data-react-aria-pressable";function eee(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=JJ(e),[g,y]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:v}=F5(),S=m.useCallback((I,K)=>{let F=x.current;if(s||F.didFirePressStart)return!1;let z=!0;if(F.isTriggeringEvent=!0,r){let O=new Sd("pressstart",K,I);r(O),z=O.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,y(!0),z},[s,r,n]),w=m.useCallback((I,K,F=!0)=>{let z=x.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let O=!0;if(o){let R=new Sd("pressend",K,I);o(R),O=R.shouldStopPropagation}if(n&&n(!1),y(!1),t&&F&&!s){let R=new Sd("press",K,I);t(R),O&&(O=R.shouldStopPropagation)}return z.isTriggeringEvent=!1,O},[s,o,n,t]),k=df(w),_=m.useCallback((I,K)=>{let F=x.current;if(s)return!1;if(i){F.isTriggeringEvent=!0;let z=new Sd("pressup",K,I);return i(z),F.isTriggeringEvent=!1,z.shouldStopPropagation}return!0},[s,i]),C=df(_),T=m.useCallback(I=>{let K=x.current;if(K.isPressed&&K.target){K.didFirePressStart&&K.pointerType!=null&&w(Pi(K.target,I),K.pointerType,!1),K.isPressed=!1,K.isOverTarget=!1,K.activePointerId=null,K.pointerType=null,v(),f||mC(K.target);for(let F of K.disposables)F();K.disposables=[]}},[f,v,w]),A=df(T);m.useEffect(()=>{s&&x.current.isPressed&&A({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[s]);let $=m.useCallback(I=>{d&&T(I)},[d,T]),B=m.useCallback(I=>{s||a==null||a(I)},[s,a]),Y=m.useCallback((I,K)=>{if(!s&&a){let F=new MouseEvent("click",I);LJ(F,K),a(DJ(F))}},[s,a]),te=m.useMemo(()=>{let I=x.current,K={onKeyDown(z){var O;if(Xh(z.nativeEvent,z.currentTarget)&&Sr(z.currentTarget,Ct(z))){bC(Ct(z),z.key)&&z.preventDefault();let R=!0;!I.isPressed&&!z.repeat&&(I.target=z.currentTarget,I.isPressed=!0,I.pointerType="keyboard",R=S(z,"keyboard"));let D=z.currentTarget,G=H=>{Xh(H,D)&&!H.repeat&&Sr(D,Ct(H))&&I.target&&C(Pi(I.target,H),"keyboard")};b(Uo(z.currentTarget),"keyup",R5(G,F),!0),R&&z.stopPropagation(),z.metaKey&&rp()&&((O=I.metaKeyEvents)==null||O.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Sr(z.currentTarget,Ct(z)))&&z&&z.button===0&&!I.isTriggeringEvent&&!Xc.isOpening){let O=!0;if(s&&z.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||YJ(z.nativeEvent))){let R=S(z,"virtual"),D=C(z,"virtual"),G=k(z,"virtual");B(z),O=R&&D&&G}else if(I.isPressed&&I.pointerType!=="keyboard"){let R=I.pointerType||z.nativeEvent.pointerType||"virtual",D=C(Pi(z.currentTarget,z),R),G=k(Pi(z.currentTarget,z),R,!0);O=D&&G,I.isOverTarget=!1,B(z),A(z)}I.ignoreEmulatedMouseEvents=!1,O&&z.stopPropagation()}}},F=z=>{var O,R,D;if(I.isPressed&&I.target&&Xh(z,I.target)){bC(Ct(z),z.key)&&z.preventDefault();let G=Ct(z),H=Sr(I.target,G);k(Pi(I.target,z),"keyboard",H),H&&Y(z,I.target),v(),z.key!=="Enter"&&b1(I.target)&&Sr(I.target,G)&&!z[gC]&&(z[gC]=!0,Xc(I.target,z,!1)),I.isPressed=!1,(O=I.metaKeyEvents)==null||O.delete(z.key)}else if(z.key==="Meta"&&((R=I.metaKeyEvents)!=null&&R.size)){let G=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let H of G.values())(D=I.target)==null||D.dispatchEvent(new KeyboardEvent("keyup",H))}};if(typeof PointerEvent<"u"){K.onPointerDown=R=>{if(R.button!==0||!Sr(R.currentTarget,Ct(R)))return;if(qJ(R.nativeEvent)){I.pointerType="virtual";return}I.pointerType=R.pointerType;let D=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=R.pointerId,I.target=R.currentTarget,f||KJ(I.target),D=S(R,I.pointerType);let G=Ct(R);"releasePointerCapture"in G&&("hasPointerCapture"in G?G.hasPointerCapture(R.pointerId)&&G.releasePointerCapture(R.pointerId):G.releasePointerCapture(R.pointerId)),b(Uo(R.currentTarget),"pointerup",z,!1),b(Uo(R.currentTarget),"pointercancel",O,!1)}D&&R.stopPropagation()},K.onMouseDown=R=>{if(Sr(R.currentTarget,Ct(R))&&R.button===0){if(c){let D=FJ(R.target);D&&I.disposables.push(D)}R.stopPropagation()}},K.onPointerUp=R=>{!Sr(R.currentTarget,Ct(R))||I.pointerType==="virtual"||R.button===0&&!I.isPressed&&C(R,I.pointerType||R.pointerType)},K.onPointerEnter=R=>{R.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,S(Pi(I.target,R),I.pointerType))},K.onPointerLeave=R=>{R.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(Pi(I.target,R),I.pointerType,!1),$(R))};let z=R=>{if(R.pointerId===I.activePointerId&&I.isPressed&&R.button===0&&I.target){if(Sr(I.target,Ct(R))&&I.pointerType!=null){let D=!1,G=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(D?A(R):(Kc(I.target),I.target.click()))},80);b(R.currentTarget,"click",()=>D=!0,!0),I.disposables.push(()=>clearTimeout(G))}else A(R);I.isOverTarget=!1}},O=R=>{A(R)};K.onDragStart=R=>{Sr(R.currentTarget,Ct(R))&&A(R)}}return K},[b,s,c,v,f,$,S,B,Y]);return m.useEffect(()=>{if(!p)return;const I=Uo(p.current);if(!I||!I.head||I.getElementById(vC))return;const K=I.createElement("style");K.id=vC;let F=XJ(I);F&&(K.nonce=F),K.textContent=` -@layer { - [${yC}] { - touch-action: pan-x pan-y pinch-zoom; - } -} - `.trim(),I.head.prepend(K)},[p]),m.useEffect(()=>{let I=x.current;return()=>{f||mC(I.target??void 0);for(let K of I.disposables)K();I.disposables=[]}},[f]),{isPressed:l||g,pressProps:v1(h,te,{[yC]:!0})}}function b1(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xh(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof si(o).HTMLInputElement&&!B5(o,n)||o instanceof si(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&b1(o))&&n!=="Enter")}function Pi(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function tee(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!b1(e)}function bC(e,t){return e instanceof HTMLInputElement?!B5(e,t):tee(e)}const nee=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function B5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":nee.has(e.type)}let ree=0;const Yh=new Map;function oee(e){let[t,n]=m.useState();return g1(()=>{if(!e)return;let r=Yh.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${ree++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Yh.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Yh.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const iee=500;function aee(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=iee,accessibilityDescription:a}=e;const s=m.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=F5(),{pressProps:d}=eee({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),s.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Uo(p.target).activeElement!==p.target&&Kc(p.target),o&&o({...p,type:"longpress"}),s.current=void 0},i),p.pointerType==="touch")){let h=y=>{y.preventDefault()},g=si(p.target);l(p.target,"contextmenu",h,{once:!0}),l(g,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){s.current&&clearTimeout(s.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=oee(o&&!t?a:void 0);return{longPressProps:v1(d,f)}}function see(){return typeof window.ResizeObserver<"u"}function lee(e){const{ref:t,box:n,onResize:r}=e;let o=df(r);m.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(see()){const a=new window.ResizeObserver(s=>{s.length&&o()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}function cee(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function uee(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var dee=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],xC=(e,t)=>{var n;const r=yo(),o=dee(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return ep(o,t)},[Nse,fee]=hr("SuiEmptyState"),pee=L((e,t)=>{var n;const r=fee();return u.jsx(wt,{ref:t,role:"presentation",...e,boxSize:(n=e.boxSize)!=null?n:10,sx:{...r.icon,...e.sx},className:V("sui-empty-state__icon",e.className)})});pee.displayName="EmptyStateIcon";var x1=m.createContext({});function mee(e){const{theme:t,linkComponent:n,onError:r,children:o,...i}=e,a={linkComponent:n,onError:r};return u.jsx(x1.Provider,{value:a,children:u.jsx(EU,{...i,theme:t||E5,children:o})})}var hee=()=>m.useContext(x1),gee=e=>u.jsx(N.a,{...e});function S1(){const e=hee();return e!=null&&e.linkComponent?e.linkComponent:gee}var vee=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,o,i,a;(o=(r=this.props).onError)==null||o.call(r,t,n),(a=(i=this.context).onError)==null||a.call(i,t,n)},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.onError(e,t)}render(){return this.state.error?this.props.fallback||u.jsx("h1",{children:"Something went wrong."}):this.props.children}};vee.contextType=x1;var V5=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[yee,bee]=ye({strict:!1,errorMessage:"AppShell context not available."}),xee=e=>{const t=ou(),n=V5(e.toggleBreakpoint),r=ep(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[See]=hr("SuiAppShell"),wee=L((e,t)=>{const n=Ve("SuiAppShell",e),{navbar:r,sidebar:o,aside:i,footer:a,children:s,mainRef:l,...c}=Ce(e),d={flexDirection:"column",...n.container},f={flex:1,minHeight:0,minWidth:0,...n.inner},p={flex:1,flexDirection:"column",minWidth:0,...n.main},h=m.isValidElement(o)&&o.type.id==="Sidebar",g=xee({toggleBreakpoint:h?o==null?void 0:o.props.toggleBreakpoint:void 0});return u.jsx(yee,{value:g,children:u.jsx(See,{value:n,children:u.jsxs(_t,{ref:t,...c,sx:d,className:V("sui-app-shell",e.className),children:[r,u.jsxs(_t,{sx:f,className:"saas-app-shell__inner",children:[o,u.jsx(_t,{ref:l,sx:p,className:"saas-app-shell__main",children:s}),i]}),a]})})})});wee.displayName="AppShell";function kee(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function Cee(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function SC(e){return u.jsx(wt,{viewBox:"0 0 24 24",...e,children:u.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var wd={enter:{duration:.2,ease:Zr.easeOut},exit:{duration:.2,ease:Zr.easeIn}},Pee={slideOutTop:{...Fo,custom:{offsetY:"-100%",reverse:!0,transition:wd},initial:"enter"},slideOutBottom:{...Fo,custom:{offsetY:"100%",reverse:!0,transition:wd},initial:"enter"},fade:{...Fo,custom:{transition:wd},initial:"enter"},scale:{...t1,custom:{initialScale:.1,reverse:!0,transition:wd},initial:"enter"},none:{custom:{}}},_ee=N($n.div),Tee=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,i={...Pee[n]};return u.jsx(_ee,{ref:t,...i,...r})}),[Eee,ku]=hr("SuiBanner"),jee={info:{icon:Cee,colorScheme:"blue"},warning:{icon:SC,colorScheme:"orange"},success:{icon:kee,colorScheme:"green"},error:{icon:SC,colorScheme:"red"}},[$ee,Aee]=ye({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in ``"}),Iee=L((e,t)=>{var n;const{id:r,status:o="info",isOpen:i=!0,onClose:a,motionPreset:s="slideOutTop",...l}=Ce(e),c=(n=e.colorScheme)!=null?n:jee[o].colorScheme,d=Ve("SuiBanner",{...e,colorScheme:c}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:o,onClose:a,isOpen:i},h=["warning","error"].includes(o)?"alert":"status",g=i?"enter":"exit";return u.jsx($ee,{value:p,children:u.jsx(Eee,{value:d,children:u.jsx(vo,{children:i&&u.jsx(Tee,{id:p.id,role:h,ref:t,motionPreset:s,animate:g,...l,className:V("sui-banner",e.className),__css:f})})})})});Iee.displayName="Banner";var Ree=L((e,t)=>{const n=ku();return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__content",e.className),__css:n.content})});Ree.displayName="BannerContent";var zee=L((e,t)=>{const n=ku();return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__title",e.className),__css:n.title})});zee.displayName="BannerTitle";var Mee=L((e,t)=>{const r={display:"inline",...ku().description};return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__desc",e.className),__css:r})});Mee.displayName="BannerDescription";var Nee=L((e,t)=>{const{children:n,variant:r}=e,o=ku();return u.jsx(N.div,{ref:t,...e,className:V("sui-banner__actions",e.className),__css:o.actions,children:u.jsx(Tb,{variant:r,children:n})})});Nee.displayName="BannerActions";var Oee=L((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i,isOpen:a,id:s}=Aee(),l=V("sui-banner__close-btn",r),c=ku();return u.jsx(Xp,{ref:t,__css:c.closeButton,className:l,onClick:le(n,d=>{d.stopPropagation(),i==null||i()}),"aria-controls":s,"aria-expanded":a!=null&&a.toString()?"true":"false",...o})});Oee.displayName="BannerCloseButton";ye({name:"UseCollapseReturn"});var[Dee,w1]=hr("SuiStructuredList"),[Lee,Fee]=ye({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in ``"});function Bee(e){return j5(e,"[role='button']:not([disabled])")}var Vee=e=>{var t;const n=m.useId(),r=m.useRef(null),[o,i]=m.useState(null),a={onBlur:le(e.onBlur,s=>{s.relatedTarget&&(Bee(r.current).includes(s.relatedTarget)||i(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:o,setFocusId:i,listProps:a}},Wee=L((e,t)=>{const{items:n,children:r,...o}=e,i=Ve("SuiStructuredList",o),a=Ce(o);let s;n?s=n.map((f,p)=>m.createElement(W5,{...f,key:f.id||p})):s=r;const l={py:2,position:"relative",...i.list},{listProps:c,...d}=Vee(e);return u.jsx(Lee,{value:d,children:u.jsx(Dee,{value:i,children:u.jsx(N.ul,{ref:xy(t,d.containerRef),__css:l,...a,...c,className:V("sui-list",e.className),children:s})})})});Wee.displayName="StructuredList";var Uee=L((e,t)=>{const{children:n,onClick:r,action:o,role:i="heading",level:a=1,...s}=e,l=w1();return u.jsxs(N.li,{ref:t,__css:l.header,onClick:r,...s,className:V("sui-list__header",e.className),children:[u.jsx(N.span,{flex:"1",userSelect:"none",role:i,"aria-level":a,children:n}),o]})});Uee.displayName="StructuredListHeader";var W5=L((e,t)=>{const{onClick:n,href:r,as:o,children:i,isDisabled:a,...s}=e,l=w1(),c=!!(n||r),d=c?U5:m.Fragment,f=!!c,p={...l.item,...f?{py:0,px:0}:{}},h=c?{onClick:n,href:r,as:o,isDisabled:a}:{},g=c?u.jsx(d,{...h,children:i}):i;return u.jsx(N.li,{ref:t,__css:p,...s,className:V("sui-list__item",e.className),children:g})});W5.displayName="StructuredListItem";var Hee=e=>{var t;const{id:n,containerRef:r,focusId:o,setFocusId:i}=Fee(),a=`${n}-${m.useId()}`,s=(t=e.id)!=null?t:a,l=o===s;function c(){return j5(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:s,"data-focus":oe(l),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:le(e.onFocus,()=>{i(s)}),onKeyDown:le(e.onKeyDown,m.useCallback(f=>{const p=c(),h={ArrowUp:()=>{var g;(g=wJ(p,s))==null||g.focus()},ArrowDown:()=>{var g;(g=SJ(p,s))==null||g.focus()},Home:()=>{var g;(g=p[0])==null||g.focus()},End:()=>{var g;(g=p[p.length-1])==null||g.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[s])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},U5=L((e,t)=>{const{children:n,isDisabled:r,...o}=e,{buttonProps:i}=Hee(e),a=w1();return u.jsx(N.div,{ref:t,__css:a.button,role:"button",...o,...i,className:V("sui-list__item-button",e.className),children:n})});U5.displayName="StructuredListButton";var Gee=L((e,t)=>{const n=S1(),{href:r,...o}=e;return u.jsx(va,{as:n,ref:t,href:r,...o})});Gee.displayName="Link";hr("SuiLoadingOverlay");N($n.div);var Kee=typeof window<"u";function wC(e){return Kee?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var Xee=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=m.useRef(o?wC(t==null?void 0:t.current):{x:0,y:0});let a=null;const s=()=>{const l=wC(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,a=null};return m.useEffect(()=>{if(!o)return;const l=()=>{n?a===null&&(a=setTimeout(s,n)):s()},c=(t==null?void 0:t.current)||window;return c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current},[Ose,Yee]=ye({name:"UseContextMenuContext",strict:!1}),kC=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),qee=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,Qee=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:o,anchor:i}=Yee(),a=gX(),{popper:s,openAndFocusFirstItem:l}=a,{longPressProps:c}=aee({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{o()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),l())}}),d=m.useRef({getBoundingClientRect:kC(i.x,i.y)});return m.useEffect(()=>{s.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=kC(i.x,i.y),a.popper.update()},[i]),{triggerProps:{...c,onPointerDown:h=>{var g;h.pointerType!=="mouse"&&((g=c.onPointerDown)==null||g.call(c,h))},onMouseDown:h=>{var g;qee()&&((g=c.onMouseDown)==null||g.call(c,h))},onContextMenu:le(h=>{h.preventDefault(),r(h),l()},e.onContextMenu),ref:bt(n,t)}}},Zee=L((e,t)=>{const{children:n,longPressDisabled:r,...o}=e,{triggerProps:i}=Qee(e,t);return u.jsx(N.span,{...o,sx:{WebkitTouchCallout:"none"},...i,children:n})});Zee.displayName="ContextMenuTrigger";var[Jee,lm]=hr("SuiPersona"),CC={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},ete={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},tte=L((e,t)=>{const{children:n,...r}=e,o=Ve("SuiPersona",e),i=Ce(r),s={...{display:"flex",flexDirection:"row",alignItems:"center"},...o.container};return u.jsx(Jee,{value:o,children:u.jsx(N.div,{ref:t,__css:s,...i,className:V("sui-persona",e.className),children:n})})});tte.displayName="PersonaContainer";var nte=L((e,t)=>{var n,r,o,i,a;const{name:s,presence:l,presenceLabel:c,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:g,icon:y,iconLabel:x,ignoreFallback:b,loading:v,onError:S,src:w,srcSet:k,..._}=e,C={};let T;const A=yo(),$=((n=A.colors)==null?void 0:n.presence)||ete,B=!!((o=(r=A.semanticTokens)==null?void 0:r.colors)!=null&&o["presence.online"]);if(l){const Y=c||((i=CC[l])==null?void 0:i.label),te=B?((a=CC[l])==null?void 0:a.color)||`presence.${l}`:$[l];f?(C.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:te,borderRadius:"50%",boxSizing:"border-box"}},C.borderWidth="0.15em",C.bg=pv("white","gray.800")):C.bg=te,T=u.jsx(Kj,{boxSize:p,...C,children:d}),Y&&(T=u.jsx(l1,{label:Y,children:T}))}return u.jsx(_b,{ref:t,name:s,size:h,getInitials:g,icon:y,iconLabel:x,ignoreFallback:b,loading:v,onError:S,src:w,srcSet:k,..._,children:T})});nte.displayName="PersonaAvatar";var rte=L((e,t)=>{const{children:n,className:r,...o}=e,i=lm(),s={...{display:"flex",flexDirection:"column"},...i.details};return u.jsx(N.div,{ref:t,...o,__css:s,className:V("sui-persona__details",r),children:n})});rte.displayName="PersonaDetails";var ote=L((e,t)=>{const n=lm();return u.jsx(N.span,{ref:t,...e,__css:n.label,className:V("sui-persona__label",e.className)})});ote.displayName="PersonaLabel";var ite=L((e,t)=>{const n=lm();return u.jsx(N.span,{ref:t,...e,__css:n.secondaryLabel,className:V("sui-persona__secondary-label",e.className)})});ite.displayName="PersonaSecondaryLabel";var ate=L((e,t)=>{const n=lm();return u.jsx(N.span,{ref:t,...e,__css:n.tertiaryLabel,className:V("sui-persona__tertiary-label",e.className)})});ate.displayName="PersonaTertiaryLabel";var[ste,H5]=hr("SuiProperty"),lte=L((e,t)=>{const n=Ve("SuiProperty",e),{children:r,label:o,value:i,labelWidth:a,spacing:s,...l}=Ce(e),c={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return u.jsx(ste,{value:n,children:u.jsxs(N.dl,{ref:t,__css:c,...l,className:V("sui-property",e.className),children:[o&&u.jsx(G5,{width:a,minWidth:a,marginEnd:s,children:o}),i&&u.jsx(K5,{children:i}),r]})})});lte.displayName="Property";var G5=L((e,t)=>{const n=H5(),{children:r,noOfLines:o=1,width:i,minWidth:a,...s}=e,l={display:"flex",flexDirection:"row",...n.label};return i&&(l.minWidth=a||"auto",l.width=i),u.jsx(N.dt,{ref:t,__css:l,...s,className:V("sui-property__label",e.className),children:u.jsx(N.span,{flex:"1",noOfLines:o,children:r})})});G5.displayName="PropertyLabel";var K5=L((e,t)=>{const n=H5(),{children:r,...o}=e,i={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return u.jsx(N.dd,{ref:t,__css:i,...o,className:V("sui-property__value",e.className),children:r})});K5.displayName="PropertyValue";function cte(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:o=!1,disableScrollHandler:i=!1,onScrollPositionChange:a,motionProps:s,...l}=e,c=m.useRef(null);m.useImperativeHandle(t,()=>c.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),g=()=>{if(c.current){const x=c.current.offsetWidth;x!==d.current&&(d.current=x)}};return lee({ref:c,onResize:()=>{var x;((x=c.current)==null?void 0:x.offsetWidth)!==d.current&&g()}}),m.useEffect(()=>{var x;g(),f.current=((x=c.current)==null?void 0:x.offsetHeight)||0},[]),Xee({elementRef:n,isEnabled:o||!i,callback:({prevPos:x,currPos:b})=>{a==null||a(b.y),o&&h(v=>{const S=b.y>x.y&&b.y>f.current;return S!==v?S:v})}}),{containerRef:c,height:r,isHidden:p,shouldHideOnScroll:o,motionProps:s,getContainerProps:(x={})=>({...l,...s,"data-hidden":oe(p),ref:c,style:{"--navbar-height":r,...l.style,...x==null?void 0:x.style}})}}var[ute]=ye({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),[dte,cm]=ye({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:""}),fte=N($n.nav),pte=L((e,t)=>{const{children:n,...r}=e,o=cte({...r,ref:t}),i=Ve("SuiNavbar",e),a=u.jsx(N.header,{__css:i.inner,className:"sui-navbar__inner",children:n}),s={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...i.container};return u.jsx(dte,{value:i,children:u.jsx(ute,{value:o,children:u.jsx(fte,{__css:s,animate:o.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:V("sui-navbar",e.className),...o.getContainerProps(e),children:a})})})});pte.displayName="Navbar";var mte=L((e,t)=>{const{className:n,children:r,...o}=e,i=cm();return u.jsx(N.div,{ref:t,__css:i.brand,className:V("sui-navbar__brand"),...o,children:r})});mte.displayName="NavbarBrand";var hte=L((e,t)=>{const{className:n,children:r,spacing:o=0,...i}=e,s={...cm().content,"& > *:not(style) ~ *:not(style)":{marginStart:o}};return u.jsx(N.ul,{ref:t,__css:s,className:V("sui-navbar__content",n),...i,children:r})});hte.displayName="NavbarContent";var gte=L((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,a=cm();return u.jsx(N.li,{ref:t,__css:a.item,className:V("sui-navbar__item",n),"data-active":oe(o),...i,children:r})});gte.displayName="NavbarItem";var vte=L((e,t)=>{const{className:n,children:r,isActive:o,...i}=e,a=S1(),s=cm();return u.jsx(N.a,{as:a,ref:t,__css:s.link,"data-active":oe(o),className:V("sui-navbar__link",n),...i,children:r})});vte.displayName="NavbarLink";var[yte,bte]=ye({name:"SidebarContext",strict:!1}),[xte]=ye({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:""}),Ste=N($n.nav),wte={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},X5=L((e,t)=>{var n,r,o;const i=Ve("SuiSidebar",e),s=(n=yo().components.SuiSidebar)==null?void 0:n.defaultProps,l=xC((r=e.variant)!=null?r:s==null?void 0:s.variant,{fallback:"base"}),c=xC((o=e.size)!=null?o:s==null?void 0:s.size,{fallback:"base"}),d=l==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:g,motionPreset:y="slideInOut",isOpen:x,onOpen:b,onClose:v,...S}=Ce(e),w=bee(),k=V5(h),_=ep(k,{fallback:void 0}),C=ep(k),T=typeof _>"u",A=typeof x<"u",$=(_||A)&&!d,B=ou({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:b||(w==null?void 0:w.openSidebar),onClose:v||(w==null?void 0:w.closeSidebar)}),{isOpen:Y,onClose:te,onOpen:I}=B;m.useEffect(()=>{T&&C||d||A||(C?te():I())},[T,d,C]);const K={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",..._&&$?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},F={...B,breakpoints:k,isMobile:_,variant:l,size:c},z=wte[d?"none":y||"none"];return u.jsx(yte,{value:F,children:u.jsx(xte,{value:i,children:u.jsx(Ste,{ref:t,initial:!1,animate:!T&&(!$||Y?"enter":"exit"),variants:z,__css:{...K,...i.container},...S,id:B.getDisclosureProps().id,className:V("sui-sidebar",g),"data-compact":oe(d),"data-collapsible":oe(_&&$),children:p})})})});X5.displayName="Sidebar";X5.id="Sidebar";ye({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:""});var[kte,Y5]=ye({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:""}),q5=L(({children:e,...t},n)=>{const r=Y5();return u.jsx(N.span,{ref:n,__css:r.label,...t,className:V("sui-nav-item__label",t.className),children:e})});q5.displayName="NavItemLabel";var Q5=e=>{const t=Y5(),{className:n,children:r,...o}=e,i=m.Children.only(r),a=m.isValidElement(i)?m.cloneElement(i,{focusable:"false","aria-hidden":!0}):null;return u.jsx(N.span,{...o,className:V("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};Q5.displayName="NavItemIcon";var Cte=L((e,t)=>{const{as:n,href:r,icon:o,inset:i,className:a,tooltipProps:s,isActive:l,children:c,...d}=Ce(e),f=S1(),{onClose:p,variant:h}=bte()||{},g=h==="compact",y=Ve("SuiNavItem",e);let x=c,b=s==null?void 0:s.label;typeof x=="string"&&(!b&&g&&(b=x),x=u.jsx(q5,{children:x}));let v=n;r&&!n&&(v=f);const S=u.jsx(N.a,{as:v,"aria-current":l?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":oe(l),__css:y.link,children:u.jsxs(N.span,{__css:{...y.inner,pl:i},className:"sui-nav-item__inner",children:[o&&u.jsx(Q5,{children:o}),x]})});return u.jsx(kte,{value:y,children:u.jsx(l1,{label:b,placement:"right",openDelay:400,...s,children:u.jsx(N.div,{__css:y.item,onClick:p,"data-compact":oe(g),className:V("sui-nav-item",a),children:S})})})});Cte.displayName="NavItem";var Pte=L((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:o,size:i,variant:a,width:s,icon:l,resetIcon:c,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...g}=e,y=Ve("SuiSearchInput",e),x=m.useRef(null),[b,v]=oT({value:r,defaultValue:o}),S=m.useCallback(T=>{v(T.target.value)},[v]),w=m.useCallback(T=>{T.key==="Escape"&&(v(""),k())},[p,v]),k=()=>{var T;v(""),p==null||p(),(T=x.current)==null||T.focus()},_=i==="lg"?"sm":"xs",C=b&&!e.isDisabled;return u.jsxs(Gb,{size:i,width:s,children:[u.jsx(Kb,{children:l||u.jsx(rq,{})}),u.jsx(ft,{type:"text",placeholder:n,variant:a,size:i,value:b,ref:xy(t,x),sx:y.input,onChange:le(S,f),onKeyDown:le(w,h),...g}),u.jsx(Zp,{children:C?u.jsx(Or,{onClick:k,size:_,variant:"ghost","aria-label":"Reset search",icon:c||u.jsx(nq,{}),sx:y.reset}):d})]})});Pte.displayName="SearchInput";var[_te,Tte]=ye({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in ``"});function Ete(e){const{step:t,onChange:n}=e,[r,o]=m.useState(0),i=m.useRef([]),[,a]=m.useState(Date.now()),s=m.useCallback(h=>{const g=[...i.current];g.indexOf(h)===-1&&g.push(h),i.current=g,a(Date.now())},[i,a]),l=h=>{i.current=i.current.slice(i.current.indexOf(h),1)},c=h=>{const g=i.current.indexOf(h);g!==-1&&o(g)},d=()=>{o(r+1)},f=()=>{o(r-1)};return m.useEffect(()=>{typeof t=="string"?c(t):typeof t=="number"?o(t):r===-1&&o(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:i,activeStep:i.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===i.current.length-1,isCompleted:r>=i.current.length,setIndex:o,setStep:c,nextStep:d,prevStep:f,registerStep:s,unregisterStep:l}}function jte(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:o,unregisterStep:i,activeStep:a}=Tte();return m.useEffect(()=>{if(t)return o(t),()=>{i(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[$te,Ate]=hr("Stepper"),Ite=L((e,t)=>{var n,r,o,i;const{children:a,orientation:s="horizontal",index:l,step:c,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:g,...y}=e,x=Ve("Stepper",e),b=Ete({step:c??l,onChange:d}),{activeIndex:v}=b,S=s==="vertical",w=uee(a,Z5),k={position:"relative",...x.item},_=w.reduce(($,B,Y,te)=>{const I=m.cloneElement(B,{key:Y,...B.props,isActive:v===Y,isCompleted:B.props.isCompleted||v>Y});return S?$.push(u.jsxs(N.div,{className:"sui-steps__item",__css:k,children:[I,u.jsx(Zv,{isOpen:v===Y,orientation:s,children:B.props.children}),Y=w.length?C:!S&&T?u.jsx(Zv,{orientation:s,children:(i=(o=w[v])==null?void 0:o.props)==null?void 0:i.children}):null;return u.jsx($te,{value:x,children:u.jsx(_te,{value:b,children:u.jsxs(N.div,{ref:t,__css:x.container,...y,className:V("sui-steps",e.className),children:[u.jsx(XY,{index:v,orientation:s,variant:f,colorScheme:p,size:h,...g,children:_}),A]})})})});Ite.displayName="Steps";var Z5=e=>{const{render:t,icon:n,title:r,description:o,...i}=e,a=jte(i);return t?t({...a,...e}):u.jsxs(BY,{children:[u.jsx(GY,{children:u.jsx(HY,{complete:u.jsx(UY,{}),incomplete:u.jsx(qk,{children:n}),active:u.jsx(qk,{})})}),u.jsxs(ge,{flexShrink:"0",children:[u.jsx(KY,{children:r}),o&&u.jsx(VY,{children:o})]}),u.jsx(h5,{})]})};Z5.displayName="StepsItem";var Zv=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...o}=e,i=Ate();return u.jsx(N.div,{...o,__css:i.content,className:V("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?u.jsx(Yp,{in:n,style:{overflow:n?"visible":"hidden"},children:u.jsx(N.div,{p:"2px",children:n?t:null})}):t})};Zv.displayName="StepsContent";var J5=e=>{const t={};return u.jsx(N.div,{__css:t,...e,className:V("sui-steps__completed",e.className)})};J5.displayName="StepsCompleted";var[Dse,Rte]=hr("SuiTimeline"),zte=L((e,t)=>{const{children:n,...r}=e,o=Rte();return u.jsx(N.li,{...r,ref:t,__css:o.item,className:V("sui-timeline__item",e.className),children:n})});zte.displayName="TimelineItem";L((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=An("SuiIconBadge",e),l=Ce(a),c=n||r,d=m.isValidElement(c)?m.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...s};return u.jsx(N.div,{ref:t,__css:f,borderRadius:o?"full":void 0,"aria-label":i,...l,className:V("sui-icon-badge",e.className),children:d})});/** - * @remix-run/router v1.23.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function k1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nte(){return Math.random().toString(36).substr(2,8)}function _C(e,t){return{usr:e.state,key:e.key,idx:t}}function Jv(e,t,n,r){return n===void 0&&(n=null),Yc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?el(t):t,{state:n,key:t&&t.key||r||Nte()})}function op(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function el(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ote(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Ho.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(Yc({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Ho.Pop;let x=d(),b=x==null?null:x-c;c=x,l&&l({action:s,location:y.location,delta:b})}function p(x,b){s=Ho.Push;let v=Jv(y.location,x,b);c=d()+1;let S=_C(v,c),w=y.createHref(v);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(w)}i&&l&&l({action:s,location:y.location,delta:1})}function h(x,b){s=Ho.Replace;let v=Jv(y.location,x,b);c=d();let S=_C(v,c),w=y.createHref(v);a.replaceState(S,"",w),i&&l&&l({action:s,location:y.location,delta:0})}function g(x){let b=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof x=="string"?x:op(x);return v=v.replace(/ $/,"%20"),rt(b,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,b)}let y={get action(){return s},get location(){return e(o,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(PC,f),l=x,()=>{o.removeEventListener(PC,f),l=null}},createHref(x){return t(o,x)},createURL:g,encodeLocation(x){let b=g(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:h,go(x){return a.go(x)}};return y}var TC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(TC||(TC={}));function Dte(e,t,n){return n===void 0&&(n="/"),Lte(e,t,n)}function Lte(e,t,n,r){let o=typeof t=="string"?el(t):t,i=Us(o.pathname||"/",n);if(i==null)return null;let a=eA(e);Fte(a);let s=null,l=Qte(i);for(let c=0;s==null&&c{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(rt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ti([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(rt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),eA(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Kte(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of tA(i.path))o(i,a,l)}),t}function tA(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=tA(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Fte(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Xte(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Bte=/^:[\w-]+$/,Vte=3,Wte=2,Ute=1,Hte=10,Gte=-2,EC=e=>e==="*";function Kte(e,t){let n=e.split("/"),r=n.length;return n.some(EC)&&(r+=Gte),t&&(r+=Wte),n.filter(o=>!EC(o)).reduce((o,i)=>o+(Bte.test(i)?Vte:i===""?Ute:Hte),r)}function Xte(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Yte(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:p,isOptional:h}=d;if(p==="*"){let y=s[f]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return h&&!g?c[p]=void 0:c[p]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function qte(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),k1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Qte(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Us(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Zte=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jte=e=>Zte.test(e);function ene(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?el(e):e,i;if(n)if(Jte(n))i=n;else{if(n.includes("//")){let a=n;n=nA(n),k1(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=jC(n.substring(1),"/"):i=jC(n,t)}else i=t;return{pathname:i,search:rne(r),hash:one(o)}}function jC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function qh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tne(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function C1(e,t){let n=tne(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function P1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=el(e):(o=Yc({},e),rt(!o.pathname||!o.pathname.includes("?"),qh("?","pathname","search",o)),rt(!o.pathname||!o.pathname.includes("#"),qh("#","pathname","hash",o)),rt(!o.search||!o.search.includes("#"),qh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=ene(o,s),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const nA=e=>e.replace(/\/\/+/g,"/"),ti=e=>nA(e.join("/")),nne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,one=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ine(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rA=["post","put","patch","delete"];new Set(rA);const ane=["get",...rA];new Set(ane);/** - * React Router v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),m.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=P1(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ti([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}const cne=m.createContext(null);function une(e){let t=m.useContext(So).outlet;return t&&m.createElement(cne.Provider,{value:e},t)}function fm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(xo),{matches:o}=m.useContext(So),{pathname:i}=xa(),a=JSON.stringify(C1(o,r.v7_relativeSplatPath));return m.useMemo(()=>P1(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function dne(e,t){return fne(e,t)}function fne(e,t,n,r){tl()||rt(!1);let{navigator:o}=m.useContext(xo),{matches:i}=m.useContext(So),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=xa(),d;if(t){var f;let x=typeof t=="string"?el(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||rt(!1),d=x}else d=c;let p=d.pathname||"/",h=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=Dte(e,{pathname:h}),y=vne(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:ti([l,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:ti([l,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&y?m.createElement(dm.Provider,{value:{location:qc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ho.Pop}},y):y}function pne(){let e=Sne(),t=ine(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const mne=m.createElement(pne,null);class hne extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(So.Provider,{value:this.props.routeContext},m.createElement(iA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gne(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(um);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(So.Provider,{value:t},r)}function vne(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||rt(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,g=!1,y=null,x=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||mne,l&&(c<0&&p===0?(kne("route-fallback"),g=!0,x=null):c===p&&(g=!0,x=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=y:g?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(gne,{match:f,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(hne,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:v(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):v()},null)}var sA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sA||{}),lA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lA||{});function yne(e){let t=m.useContext(um);return t||rt(!1),t}function bne(e){let t=m.useContext(oA);return t||rt(!1),t}function xne(e){let t=m.useContext(So);return t||rt(!1),t}function cA(e){let t=xne(),n=t.matches[t.matches.length-1];return n.route.id||rt(!1),n.route.id}function Sne(){var e;let t=m.useContext(iA),n=bne(),r=cA();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wne(){let{router:e}=yne(sA.UseNavigateStable),t=cA(lA.UseNavigateStable),n=m.useRef(!1);return aA(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qc({fromRouteId:t},i)))},[e,t])}const $C={};function kne(e,t,n){$C[e]||($C[e]=!0)}function Cne(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Qc(e){let{to:t,replace:n,state:r,relative:o}=e;tl()||rt(!1);let{future:i,static:a}=m.useContext(xo),{matches:s}=m.useContext(So),{pathname:l}=xa(),c=gr(),d=P1(t,C1(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return m.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function uA(e){return une(e.context)}function Zt(e){rt(!1)}function Pne(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ho.Pop,navigator:i,static:a=!1,future:s}=e;tl()&&rt(!1);let l=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:l,navigator:i,static:a,future:qc({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=el(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:g="default"}=r,y=m.useMemo(()=>{let x=Us(d,l);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:g},navigationType:o}},[l,d,f,p,h,g,o]);return y==null?null:m.createElement(xo.Provider,{value:c},m.createElement(dm.Provider,{children:n,value:y}))}function _ne(e){let{children:t,location:n}=e;return dne(t0(t),n)}new Promise(()=>{});function t0(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,t0(r.props.children,i));return}r.type!==Zt&&rt(!1),!r.props.index||!r.props.children||rt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=t0(r.props.children,i)),n.push(a)}),n}/** - * React Router DOM v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c&&AC?AC(()=>l(f)):l(f)},[l,c]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>Cne(r),[r]),m.createElement(Pne,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const Mne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kt=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,p=dA(t,jne),{basename:h}=m.useContext(xo),g,y=!1;if(typeof c=="string"&&Nne.test(c)&&(g=c,Mne))try{let S=new URL(window.location.href),w=c.startsWith("//")?new URL(S.protocol+c):new URL(c),k=Us(w.pathname,h);w.origin===S.origin&&k!=null?c=k+w.search+w.hash:y=!0}catch{}let x=sne(c,{relative:o}),b=Dne(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:f});function v(S){r&&r(S),S.defaultPrevented||b(S)}return m.createElement("a",ip({},p,{href:g||x,onClick:y||i?r:v,ref:n,target:l}))}),fA=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,viewTransition:c,children:d}=t,f=dA(t,$ne),p=fm(l,{relative:f.relative}),h=xa(),g=m.useContext(oA),{navigator:y,basename:x}=m.useContext(xo),b=g!=null&&Lne(p)&&c===!0,v=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&x&&(w=Us(w,x)||w);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let _=S===v||!a&&S.startsWith(v)&&S.charAt(k)==="/",C=w!=null&&(w===v||!a&&w.startsWith(v)&&w.charAt(v.length)==="/"),T={isActive:_,isPending:C,isTransitioning:b},A=_?r:void 0,$;typeof i=="function"?$=i(T):$=[i,_?"active":null,C?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(T):s;return m.createElement(Kt,ip({},f,{"aria-current":A,className:$,ref:n,style:B,to:l,viewTransition:c}),typeof d=="function"?d(T):d)});var n0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n0||(n0={}));var IC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(IC||(IC={}));function One(e){let t=m.useContext(um);return t||rt(!1),t}function Dne(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=gr(),c=xa(),d=fm(e,{relative:a});return m.useCallback(f=>{if(Ene(f,n)){f.preventDefault();let p=r!==void 0?r:op(c)===op(d);l(e,{replace:p,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,d,r,o,n,e,i,a,s])}function Lne(e,t){t===void 0&&(t={});let n=m.useContext(Ine);n==null&&rt(!1);let{basename:r}=One(n0.useViewTransitionState),o=fm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Us(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Us(n.nextLocation.pathname,r)||n.nextLocation.pathname;return e0(o.pathname,a)!=null||e0(o.pathname,i)!=null}const Fne=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS TomTom, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"WAF ModSecurity/Coraza, TLS, JWT, isolation par démo."}];function Bne(){return u.jsxs(ge,{children:[u.jsx(ge,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:u.jsx(pr,{maxW:"container.lg",children:u.jsxs(Ee,{spacing:6,textAlign:"center",align:"center",children:[u.jsx(Dt,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),u.jsx(ue,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Testez la solution complète en conditions réelles. Une démo isolée, déployée en un clic, disponible pendant 30 jours."}),u.jsxs(Ee,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),u.jsx(he,{as:Kt,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),u.jsx(pr,{maxW:"container.lg",py:16,children:u.jsx(ca,{columns:{base:1,md:2},spacing:8,children:Fne.map(e=>u.jsxs(ge,{p:6,borderWidth:"1px",borderRadius:"lg",children:[u.jsx(Dt,{size:"md",mb:2,children:e.title}),u.jsx(ue,{color:"gray.600",children:e.desc})]},e.title))})})]})}const Vne=[{name:"Démo",price:"Gratuit",period:"30 jours",description:"Une instance isolée et complète pour évaluer la solution.",features:["Plateforme complète en conditions réelles","Environnement dédié et isolé","Données de démonstration pré-remplies","Disponible 30 jours","Accompagnement commercial"],cta:"Créer un compte"},{name:"Pro",price:"Sur devis",period:"par mois",description:"Pour déployer la plateforme en production sur votre activité.",features:["Tout ce qui est inclus dans Démo","Déploiement production dédié","WAF, TLS, sauvegardes","GPS, paiements et notifications","Support prioritaire"],cta:"Nous contacter",highlighted:!0},{name:"Entreprise",price:"Sur mesure",period:"",description:"Multi-sites, SLA et intégrations spécifiques.",features:["Tout ce qui est inclus dans Pro","Haute disponibilité multi-régions","SLA et supervision 24/7","Intégrations sur mesure","Accompagnement dédié"],cta:"Nous contacter"}];function Wne(){return u.jsxs(pr,{maxW:"container.lg",py:{base:12,md:20},children:[u.jsxs(Ee,{spacing:4,textAlign:"center",mb:12,align:"center",children:[u.jsx(Dt,{size:"2xl",children:"Tarifs"}),u.jsx(ue,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en production quand vous êtes prêt."})]}),u.jsx(ca,{columns:{base:1,md:3},spacing:8,alignItems:"stretch",children:Vne.map(e=>u.jsx(Une,{plan:e},e.name))}),u.jsxs(ue,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ? ",u.jsx(Hne,{to:"/register",children:"Créez un compte"})," — un commercial vous recontacte."]})]})}function Une({plan:e}){return u.jsxs(Ee,{spacing:6,p:8,borderWidth:e.highlighted?"2px":"1px",borderColor:e.highlighted?"primary.500":"inherit",borderRadius:"xl",position:"relative",boxShadow:e.highlighted?"lg":"sm",bg:"bg-surface",children:[e.highlighted&&u.jsx(Gn,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),u.jsxs(ge,{children:[u.jsx(Dt,{size:"md",children:e.name}),u.jsx(ue,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),u.jsxs(we,{align:"baseline",spacing:2,children:[u.jsx(ue,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&u.jsxs(ue,{color:"gray.500",children:["/ ",e.period]})]}),u.jsx(Jp,{spacing:3,flex:"1",children:e.features.map(t=>u.jsxs(L$,{display:"flex",alignItems:"flex-start",children:[u.jsx(wt,{as:Gne,color:"primary.500",mt:1,mr:2}),u.jsx(ue,{fontSize:"sm",children:t})]},t))}),u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function Hne({to:e,children:t}){return u.jsx(ge,{as:Kt,to:e,color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function Gne(e){return u.jsx(wt,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:u.jsx("path",{fillRule:"evenodd",d:"M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z",clipRule:"evenodd"})})}const Kne="http://localhost:8080",_1="omnex.token";function r0(){return localStorage.getItem(_1)}function RC(e){localStorage.setItem(_1,e)}function zC(){localStorage.removeItem(_1)}class Ze extends Error{constructor(n,r){super(r);ix(this,"status");this.status=n}}async function st(e,t,n){const r={"Content-Type":"application/json"},o=r0();o&&(r.Authorization=`Bearer ${o}`);const i=await fetch(`${Kne}/api/v1${t}`,{method:e,headers:r,body:n?JSON.stringify(n):void 0});if(!i.ok){const a=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Ze(i.status,a.error??`HTTP ${i.status}`)}return i.status===204?void 0:await i.json()}const Ne={login:(e,t,n)=>st("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>st("POST","/auth/register",{username:e,password:t}),me:()=>st("GET","/auth/me"),logout:()=>st("POST","/auth/logout"),listDemos:()=>st("GET","/demos"),listMyDemos:()=>st("GET","/demos/mine"),getDemo:e=>st("GET",`/demos/${e}`),createDemo:e=>st("POST","/demos",{username:e.username,...e.telegramBotUsername?{telegram_bot_username:e.telegramBotUsername}:{},...e.telegramBotToken?{telegram_bot_token:e.telegramBotToken}:{},...e.nowPaymentsApiKey?{nowpayments_api_key:e.nowPaymentsApiKey}:{},...e.nowPaymentsIpnSecret?{nowpayments_ipn_secret:e.nowPaymentsIpnSecret}:{},storage_driver:e.storageDriver,...e.storageDriver==="s3"?{s3_bucket:e.s3Bucket,s3_endpoint:e.s3Endpoint}:{},...e.lbBot1Username?{lb_bot1_username:e.lbBot1Username,lb_bot1_token:e.lbBot1Token}:{},...e.lbBot2Username?{lb_bot2_username:e.lbBot2Username,lb_bot2_token:e.lbBot2Token}:{},...e.lbStrategy?{lb_strategy:e.lbStrategy}:{},...e.lbJwtTtlSeconds?{lb_jwt_ttl_seconds:e.lbJwtTtlSeconds}:{},...e.lbHealthCheckInterval?{lb_health_check_interval:e.lbHealthCheckInterval}:{},admin_username:e.adminUsername,admin_password:e.adminPassword}),extendDemo:e=>st("POST",`/demos/${e}/extend`),deleteDemo:e=>st("DELETE",`/demos/${e}`),listCodes:()=>st("GET","/codes"),createCode:e=>st("POST","/codes",{username:e}),addCode:e=>st("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>st("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>st("GET","/messages"),getDemoDetails:e=>st("POST","/demos/details",{namespace:e}),updateUsername:e=>st("POST","/profile/username",{username:e}),updatePassword:e=>st("POST","/profile/password",{password:e}),getTelegram:()=>st("GET","/profile/telegram"),setTelegram:e=>st("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>st("GET","/profile/alerts"),setAlertSettings:e=>st("POST","/profile/alerts",e)},pA=m.createContext(null);function Xne({children:e}){const[t,n]=m.useState(r0()),[r,o]=m.useState(null),[i,a]=m.useState(null),[s,l]=m.useState(!!r0());m.useEffect(()=>{if(!t){l(!1);return}let g=!0;return Ne.me().then(y=>{g&&(o(y.role),a(y.type_abonnement))}).catch(()=>{g&&(zC(),n(null),o(null),a(null))}).finally(()=>{g&&l(!1)}),()=>{g=!1}},[]);const c=m.useCallback(async(g,y,x)=>{const b=await Ne.login(g,y,x);RC(b.token),n(b.token),o(b.role);const v=await Ne.me();a(v.type_abonnement)},[]),d=m.useCallback(async(g,y)=>{const x=await Ne.register(g,y);RC(x.token),n(x.token),o(x.role);const b=await Ne.me();a(b.type_abonnement)},[]),f=m.useCallback(async()=>{try{await Ne.logout()}finally{zC(),n(null),o(null),a(null)}},[]),p=m.useCallback(async()=>{const g=await Ne.me();a(g.type_abonnement)},[]),h=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:r==="admin",isClient:r==="client",isPremium:i==="premium",role:r,typeAbo:i,initializing:s,login:c,register:d,logout:f,refreshAbo:p}),[t,r,i,s,c,d,f,p]);return u.jsx(pA.Provider,{value:h,children:e})}function yi(){const e=m.useContext(pA);if(!e)throw new Error("useAuth doit être utilisé dans ");return e}function da(e){const{toggleColorMode:t}=lu(),n=pv("Passer en mode sombre","Passer en mode clair");return u.jsx(Or,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:pv(u.jsx(qne,{}),u.jsx(Yne,{}))})}function Yne(){return u.jsxs(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[u.jsx("circle",{cx:"12",cy:"12",r:"4"}),u.jsx("path",{strokeLinecap:"round",d:"M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"})]})}function qne(){return u.jsx(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:u.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}/*! - * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - * Copyright 2026 Fonticons, Inc. - */function o0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,i=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function se(e,t,n){return(t=mA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ore(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ire(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return Xe.head.insertBefore(t,r),e}}var mie="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function UC(){for(var e=12,t="";e-- >0;)t+=mie[Math.random()*62|0];return t}function nl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function I1(e){return e.classList?nl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function e4(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function hie(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(e4(e[n]),'" ')},"").trim()}function mm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function R1(e){return e.size!==$r.size||e.x!==$r.x||e.y!==$r.y||e.rotate!==$r.rotate||e.flipX||e.flipY}function gie(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function vie(e){var t=e.transform,n=e.width,r=n===void 0?a0:n,o=e.height,i=o===void 0?a0:o,a="";return yA?a+="translate(".concat(t.x/Aa-r/2,"em, ").concat(t.y/Aa-i/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/Aa,"em), calc(-50% + ").concat(t.y/Aa,"em)) "),a+="scale(".concat(t.size/Aa*(t.flipX?-1:1),", ").concat(t.size/Aa*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var yie=`:root, :host { - --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free'; - --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free'; - --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro'; - --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro'; - --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone'; - --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone'; - --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone'; - --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone'; - --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands'; - --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab'; - --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press'; - --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo'; - --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo'; - --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel'; - --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic'; - --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum'; - --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard'; - --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint'; - --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog'; - --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo'; - --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch'; - --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite'; - --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly'; - --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill'; - --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo'; - --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel'; - --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility'; - --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo'; - --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill'; -} - -.svg-inline--fa { - box-sizing: content-box; - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; - width: var(--fa-width, 1.25em); -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285714em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left, -.svg-inline--fa .fa-pull-start { - float: inline-start; - margin-inline-end: var(--fa-pull-margin, 0.3em); -} -.svg-inline--fa.fa-pull-right, -.svg-inline--fa .fa-pull-end { - float: inline-end; - margin-inline-start: var(--fa-pull-margin, 0.3em); -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); - inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */ -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: var(--fa-width, 1.25em); -} -.fa-layers .svg-inline--fa { - inset: 0; - margin: auto; - position: absolute; - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - transform: scale(var(--fa-counter-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-xs { - font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-sm { - font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-lg { - font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-xl { - font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-2xl { - font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-width-auto { - --fa-width: auto; -} - -.fa-fw, -.fa-width-fixed { - --fa-width: 1.25em; -} - -.fa-canvas-square { - padding-block: 0.125em; - margin-block-end: -0.125em; -} - -.fa-canvas-roomy { - padding-block: 0.25em; - padding-inline: 0.125em; - margin-block-end: -0.25em; - box-sizing: content-box; -} - -.fa-ul { - list-style-type: none; - margin-inline-start: var(--fa-li-margin, 2.5em); - padding-inline-start: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -/* Heads Up: Bordered Icons will not be supported in the future! - - This feature will be deprecated in the next major release of Font Awesome (v8)! - - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8. -*/ -/* Notes: -* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size) -* --@{v.$css-prefix}-border-padding = - ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment) - ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon) -*/ -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.0625em); - box-sizing: var(--fa-border-box-sizing, content-box); - padding: var(--fa-border-padding, 0.1875em 0.25em); -} - -.fa-pull-left, -.fa-pull-start { - float: inline-start; - margin-inline-end: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right, -.fa-pull-end { - float: inline-end; - margin-inline-start: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - animation-name: fa-beat; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - animation-name: fa-bounce; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - animation-name: fa-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-beat-fade { - animation-name: fa-beat-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-flip { - animation-name: fa-flip; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1.5s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-flip-360 { - animation-name: fa-flip-360; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - animation-name: fa-shake; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.75s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-spin { - animation-name: fa-spin; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 2s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - animation-name: fa-spin; - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -.fa-spin-snap { - animation-name: fa-spin-snap; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 3s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-snap-4 { - animation-name: fa-spin-snap-4; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 2.4s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-snap-8 { - animation-name: fa-spin-snap-8; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 4s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-buzz { - animation-name: fa-buzz; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.6s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-wag { - animation-name: fa-wag; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.9s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-out); - transform-origin: bottom center; -} - -.fa-float { - animation-name: fa-float; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 3s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); - will-change: transform; -} - -.fa-swing { - animation-name: fa-swing; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1.2s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-out); - transform-origin: top center; -} - -.fa-jello { - animation-name: fa-jello; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.9s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-out); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, - .fa-bounce, - .fa-fade, - .fa-beat-fade, - .fa-flip, - .fa-flip-360, - .fa-pulse, - .fa-shake, - .fa-spin, - .fa-spin-pulse, - .fa-buzz, - .fa-float, - .fa-jello, - .fa-spin-snap, - .fa-spin-snap-4, - .fa-spin-snap-8, - .fa-swing, - .fa-wag { - animation: none !important; - transition: none !important; - } -} -@keyframes fa-beat { - 0% { - transform: scale(1); - } - 25% { - transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); - } - 45% { - transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22))); - } - 65% { - transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); - } - 90% { - transform: scale(1); - } -} -@keyframes fa-bounce { - 0% { - transform: scale(1, 1) translateY(0); - animation-timing-function: var(--fa-animation-timing); - } - 14% { - transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px)); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 32% { - transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em))); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 52% { - transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1)); - animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5); - } - 70% { - transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0); - animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1); - } - 85% { - transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1))); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-fade { - 0% { - opacity: 1; - transform: scale(1); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 40% { - opacity: var(--fa-fade-opacity, 0.4); - transform: scale(0.98); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 100% { - opacity: 1; - transform: scale(1); - } -} -@keyframes fa-beat-fade { - 0% { - opacity: var(--fa-beat-fade-opacity, 0.4); - transform: scale(1); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 25% { - opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); - transform: scale(var(--fa-beat-fade-scale, 1.28)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 45% { - opacity: 1; - transform: scale(var(--fa-beat-fade-scale, 1.25)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 65% { - opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); - transform: scale(var(--fa-beat-fade-scale, 1.28)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - transform: scale(1); - } -} -@keyframes fa-flip { - 0% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 8% { - transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 35% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); - animation-timing-function: linear; - } - 65% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5)); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 92% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); - } -} -@keyframes fa-flip-360 { - 0% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 8% { - transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 50% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 80% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); - } -} -@keyframes fa-shake { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); - } - 8% { - transform: rotate(35deg) translateX(1px); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 20% { - transform: rotate(-22deg) translateX(-1px); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 35% { - transform: rotate(15deg) translateX(1px); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 50% { - transform: rotate(-9deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 65% { - transform: rotate(5deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 78% { - transform: rotate(-3deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 90% { - transform: rotate(1deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 100% { - transform: rotate(0deg); - } -} -@keyframes fa-spin { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-spin-snap { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 12% { - transform: rotate(60deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 16.67% { - transform: rotate(60deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 28.67% { - transform: rotate(120deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 33.33% { - transform: rotate(120deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 45.33% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 50% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 62% { - transform: rotate(240deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 66.67% { - transform: rotate(240deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 78.67% { - transform: rotate(300deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 83.33% { - transform: rotate(300deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 95.33% { - transform: rotate(360deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-spin-snap-4 { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 15% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 25% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 40% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 50% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 65% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 75% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 90% { - transform: rotate(360deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-spin-snap-8 { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 9% { - transform: rotate(45deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 12.5% { - transform: rotate(45deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 21.5% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 25% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 34% { - transform: rotate(135deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 37.5% { - transform: rotate(135deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 46.5% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 50% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 59% { - transform: rotate(225deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 62.5% { - transform: rotate(225deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 71.5% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 75% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 84% { - transform: rotate(315deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 87.5% { - transform: rotate(315deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 96.5% { - transform: rotate(360deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-buzz { - 0% { - transform: translateX(0) rotate(0deg); - animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1); - } - 5% { - transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg); - } - 10% { - transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg); - } - 15% { - transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg); - } - 20% { - transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg); - } - 25% { - transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg); - } - 30% { - transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg); - } - 35% { - transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg); - } - 40% { - transform: translateX(0) rotate(0deg); - } - 100% { - transform: translateX(0) rotate(0deg); - } -} -@keyframes fa-wag { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); - } - 12% { - transform: rotate(var(--fa-wag-angle, 12deg)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 24% { - transform: rotate(2deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); - } - 36% { - transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 48% { - transform: rotate(1deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); - } - 58% { - transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 68% { - transform: rotate(0deg); - } - 100% { - transform: rotate(0deg); - } -} -@keyframes fa-float { - 0% { - transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 15% { - transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 35% { - transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03)); - animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0); - } - 50% { - transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 70% { - transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 90% { - transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); - } -} -@keyframes fa-swing { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); - } - 8% { - transform: rotate(var(--fa-swing-angle, 22deg)); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 18% { - transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85)); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 28% { - transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65)); - animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1); - } - 38% { - transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 48% { - transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 56% { - transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 64% { - transform: rotate(0deg); - } - 100% { - transform: rotate(0deg); - } -} -@keyframes fa-jello { - 0% { - transform: scale(1, 1); - animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); - } - 12% { - transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15))); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 24% { - transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12)); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 36% { - transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5))); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 48% { - transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 58% { - transform: scale(1.02, 0.98); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 68% { - transform: scale(1, 1); - } - 100% { - transform: scale(1, 1); - } -} -.fa-rotate-90 { - transform: rotate(90deg); -} - -.fa-rotate-180 { - transform: rotate(180deg); -} - -.fa-rotate-270 { - transform: rotate(270deg); -} - -.fa-flip-horizontal { - transform: scale(-1, 1); -} - -.fa-flip-vertical { - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - transform: scale(-1, -1); -} - -.fa-rotate-by { - transform: rotate(var(--fa-rotate-angle, 0)); -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.svg-inline--fa.fa-inverse { - fill: var(--fa-inverse, #fff); -} - -.fa-stack { - display: inline-block; - height: 2em; - line-height: 2em; - position: relative; - vertical-align: middle; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.svg-inline--fa.fa-stack-1x { - --fa-width: 1.25em; - height: 1em; - width: var(--fa-width); -} -.svg-inline--fa.fa-stack-2x { - --fa-width: 2.5em; - height: 2em; - width: var(--fa-width); -} - -.fa-stack-1x, -.fa-stack-2x { - inset: 0; - margin: auto; - position: absolute; - z-index: var(--fa-stack-z-index, auto); -}`;function t4(){var e=KA,t=XA,n=ae.cssPrefix,r=ae.replacementClass,o=yie;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var HC=!1;function Zh(){ae.autoAddCss&&!HC&&(pie(t4()),HC=!0)}var bie={mixout:function(){return{dom:{css:t4,insertCss:Zh}}},hooks:function(){return{beforeDOMElementCreation:function(){Zh()},beforeI2svg:function(){Zh()}}}},ho=li||{};ho[mo]||(ho[mo]={});ho[mo].styles||(ho[mo].styles={});ho[mo].hooks||(ho[mo].hooks={});ho[mo].shims||(ho[mo].shims=[]);var sr=ho[mo],n4=[],r4=function(){Xe.removeEventListener("DOMContentLoaded",r4),sp=1,n4.map(function(t){return t()})},sp=!1;wo&&(sp=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),sp||Xe.addEventListener("DOMContentLoaded",r4));function xie(e){wo&&(sp?setTimeout(e,0):n4.push(e))}function _u(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?e4(e):"<".concat(t," ").concat(hie(r),">").concat(i.map(_u).join(""),"")}function GC(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Jh=function(t,n,r,o){var i=Object.keys(t),a=i.length,s=n,l,c,d;for(r===void 0?(l=1,d=t[i[0]]):(l=0,d=r);l2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,i=KC(t);typeof sr.hooks.addPack=="function"&&!o?sr.hooks.addPack(e,KC(t)):sr.styles[e]=U(U({},sr.styles[e]||{}),i),e==="fas"&&d0("fa",t)}var Zc=sr.styles,Sie=sr.shims,i4=Object.keys(A1),wie=i4.reduce(function(e,t){return e[t]=Object.keys(A1[t]),e},{}),z1=null,a4={},s4={},l4={},c4={},u4={};function kie(e){return~lie.indexOf(e)}function Cie(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!kie(o)?o:null}var d4=function(){var t=function(i){return Jh(Zc,function(a,s,l){return a[l]=Jh(s,i,{}),a},{})};a4=t(function(o,i,a){if(i[3]&&(o[i[3]]=a),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){o[l.toString(16)]=a})}return o}),s4=t(function(o,i,a){if(o[a]=a,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){o[l]=a})}return o}),u4=t(function(o,i,a){var s=i[2];return o[a]=a,s.forEach(function(l){o[l]=a}),o});var n="far"in Zc||ae.autoFetchSvg,r=Jh(Sie,function(o,i){var a=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(o.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(o.unicodes[a.toString(16)]={prefix:s,iconName:l}),o},{names:{},unicodes:{}});l4=r.names,c4=r.unicodes,z1=hm(ae.styleDefault,{family:ae.familyDefault})};fie(function(e){z1=hm(e.styleDefault,{family:ae.familyDefault})});d4();function M1(e,t){return(a4[e]||{})[t]}function Pie(e,t){return(s4[e]||{})[t]}function Bi(e,t){return(u4[e]||{})[t]}function f4(e){return l4[e]||{prefix:null,iconName:null}}function _ie(e){var t=c4[e],n=M1("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ci(){return z1}var p4=function(){return{prefix:null,iconName:null,rest:[]}};function Tie(e){var t=Ft,n=i4.reduce(function(r,o){return r[o]="".concat(ae.cssPrefix,"-").concat(o),r},{});return WA.forEach(function(r){(e.includes(n[r])||e.some(function(o){return wie[r].includes(o)}))&&(t=r)}),t}function hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Ft:n,o=rie[r][e];if(r===Cu&&!e)return"fad";var i=WC[r][e]||WC[r][o],a=e in sr.styles?e:null,s=i||a||null;return s}function Eie(e){var t=[],n=null;return e.forEach(function(r){var o=Cie(ae.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function XC(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var YC=HA.concat(UA);function gm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,o=null,i=XC(e.filter(function(h){return YC.includes(h)})),a=XC(e.filter(function(h){return!YC.includes(h)})),s=i.filter(function(h){return o=h,!xA.includes(h)}),l=pm(s,1),c=l[0],d=c===void 0?null:c,f=Tie(i),p=U(U({},Eie(a)),{},{prefix:hm(d,{family:f})});return U(U(U({},p),Iie({values:e,family:f,styles:Zc,config:ae,canonical:p,givenPrefix:o})),jie(r,o,p))}function jie(e,t,n){var r=n.prefix,o=n.iconName;if(e||!r||!o)return{prefix:r,iconName:o};var i=t==="fa"?f4(o):{},a=Bi(r,o);return o=i.iconName||a||o,r=i.prefix||r,r==="far"&&!Zc.far&&Zc.fas&&!ae.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}var $ie=WA.filter(function(e){return e!==Ft||e!==Cu}),Aie=Object.keys(i0).filter(function(e){return e!==Ft}).map(function(e){return Object.keys(i0[e])}).flat();function Iie(e){var t=e.values,n=e.family,r=e.canonical,o=e.givenPrefix,i=o===void 0?"":o,a=e.styles,s=a===void 0?{}:a,l=e.config,c=l===void 0?{}:l,d=n===Cu,f=t.includes("fa-duotone")||t.includes("fad"),p=c.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!d&&(f||p||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&$ie.includes(n)){var g=Object.keys(s).find(function(x){return Aie.includes(x)});if(g||c.autoFetchSvg){var y=Ore.get(n).defaultShortPrefixId;r.prefix=y,r.iconName=Bi(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||i==="fa")&&(r.prefix=ci()||"fas"),r}var Rie=function(){function e(){Jne(this,e),this.definitions={}}return tre(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i0&&d.forEach(function(f){typeof f=="string"&&(n[s][f]=c)}),n[s][l]=c}),n}}])}(),qC=[],ss={},ks={},zie=Object.keys(ks);function Mie(e,t){var n=t.mixoutsTo;return qC=e,ss={},Object.keys(ks).forEach(function(r){zie.indexOf(r)===-1&&delete ks[r]}),qC.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(a){typeof o[a]=="function"&&(n[a]=o[a]),ap(o[a])==="object"&&Object.keys(o[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=o[a][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(a){ss[a]||(ss[a]=[]),ss[a].push(i[a])})}r.provides&&r.provides(ks)}),n}function f0(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return wo?(pa("beforeI2svg",t),ui("pseudoElements2svg",t),ui("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ae.autoReplaceSvg===!1&&(ae.autoReplaceSvg=!0),ae.observeMutations=!0,xie(function(){Lie({autoReplaceSvgRoot:n}),pa("watch",t)})}},Die={icon:function(t){if(t===null)return null;if(ap(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Bi(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=hm(t[0]);return{prefix:r,iconName:Bi(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ae.cssPrefix,"-"))>-1||t.match(oie))){var o=gm(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||ci(),iconName:Bi(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var i=ci();return{prefix:i,iconName:Bi(i,t)||t}}}},In={noAuto:Nie,config:ae,dom:Oie,parse:Die,library:m4,findIconDefinition:p0,toHtml:_u},Lie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Xe:n;(Object.keys(sr.styles).length>0||ae.autoFetchSvg)&&wo&&ae.autoReplaceSvg&&In.dom.i2svg({node:r})};function vm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return _u(r)})}}),Object.defineProperty(e,"node",{get:function(){if(wo){var r=Xe.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Fie(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(R1(a)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};o.style=mm(U(U({},i),{},{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function Bie(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,a=i===!0?"".concat(t,"-").concat(ae.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:U(U({},o),{},{id:a}),children:r}]}]}function Vie(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function N1(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,l=e.maskId,c=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,g=p.height,y=[ae.replacementClass,i?"".concat(ae.cssPrefix,"-").concat(i):""].filter(function(k){return c.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(c.classes).join(" "),x={children:[],attributes:U(U({},c.attributes),{},{"data-prefix":o,"data-icon":i,class:y,role:c.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(g)})};!Vie(c.attributes)&&!c.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[fa]="");var b=U(U({},x),{},{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:a,symbol:s,styles:U({},c.styles)}),v=r.found&&n.found?ui("generateAbstractMask",b)||{children:[],attributes:{}}:ui("generateAbstractIcon",b)||{children:[],attributes:{}},S=v.children,w=v.attributes;return b.children=S,b.attributes=w,s?Bie(b):Fie(b)}function QC(e){var t=e.content,n=e.width,r=e.height,o=e.transform,i=e.extra,a=e.watchable,s=a===void 0?!1:a,l=U(U({},i.attributes),{},{class:i.classes.join(" ")});s&&(l[fa]="");var c=U({},i.styles);R1(o)&&(c.transform=vie({transform:o,width:n,height:r}),c["-webkit-transform"]=c.transform);var d=mm(c);d.length>0&&(l.style=d);var f=[];return f.push({tag:"span",attributes:l,children:[t]}),f}function Wie(e){var t=e.content,n=e.extra,r=U(U({},n.attributes),{},{class:n.classes.join(" ")}),o=mm(n.styles);o.length>0&&(r.style=o);var i=[];return i.push({tag:"span",attributes:r,children:[t]}),i}var eg=sr.styles;function m0(e){var t=e[0],n=e[1],r=e.slice(4),o=pm(r,1),i=o[0],a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(ae.cssPrefix,"-").concat(Qh.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ae.cssPrefix,"-").concat(Qh.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(ae.cssPrefix,"-").concat(Qh.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:a}}var Uie={found:!1,width:512,height:512};function Hie(e,t){!qA&&!ae.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function h0(e,t){var n=t;return t==="fa"&&ae.styleDefault!==null&&(t=ci()),new Promise(function(r,o){if(n==="fa"){var i=f4(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&eg[t]&&eg[t][e]){var a=eg[t][e];return r(m0(a))}Hie(e,t),r(U(U({},Uie),{},{icon:ae.showMissingIcons&&e?ui("missingIconAbstract")||{}:{}}))})}var ZC=function(){},g0=ae.measurePerformance&&kd&&kd.mark&&kd.measure?kd:{mark:ZC,measure:ZC},Bl='FA "7.3.1"',Gie=function(t){return g0.mark("".concat(Bl," ").concat(t," begins")),function(){return h4(t)}},h4=function(t){g0.mark("".concat(Bl," ").concat(t," ends")),g0.measure("".concat(Bl," ").concat(t),"".concat(Bl," ").concat(t," begins"),"".concat(Bl," ").concat(t," ends"))},O1={begin:Gie,end:h4},pf=function(){};function JC(e){var t=e.getAttribute?e.getAttribute(fa):null;return typeof t=="string"}function Kie(e){var t=e.getAttribute?e.getAttribute(j1):null,n=e.getAttribute?e.getAttribute($1):null;return t&&n}function Xie(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ae.replacementClass)}function Yie(){if(ae.autoReplaceSvg===!0)return mf.replace;var e=mf[ae.autoReplaceSvg];return e||mf.replace}function qie(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function Qie(e){return Xe.createElement(e)}function g4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?qie:Qie:n;if(typeof e=="string")return Xe.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){o.setAttribute(a,e.attributes[a])});var i=e.children||[];return i.forEach(function(a){o.appendChild(g4(a,{ceFn:r}))}),o}function Zie(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var mf={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(g4(o),n)}),n.getAttribute(fa)===null&&ae.keepOriginalSource){var r=Xe.createComment(Zie(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~I1(n).indexOf(ae.replacementClass))return mf.replace(t);var o=new RegExp("".concat(ae.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===ae.replacementClass||l.match(o)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var a=r.map(function(s){return _u(s)}).join(` -`);n.setAttribute(fa,""),n.innerHTML=a}};function e2(e){e()}function v4(e,t){var n=typeof t=="function"?t:pf;if(e.length===0)n();else{var r=e2;ae.mutateApproach===tie&&(r=li.requestAnimationFrame||e2),r(function(){var o=Yie(),i=O1.begin("mutate");e.map(o),i(),n()})}}var D1=!1;function y4(){D1=!0}function v0(){D1=!1}var lp=null;function t2(e){if(LC&&ae.observeMutations){var t=e.treeCallback,n=t===void 0?pf:t,r=e.nodeCallback,o=r===void 0?pf:r,i=e.pseudoElementsCallback,a=i===void 0?pf:i,s=e.observeMutationsRoot,l=s===void 0?Xe:s;lp=new LC(function(c){if(!D1){var d=ci();nl(c).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!JC(f.addedNodes[0])&&(ae.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&ae.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&JC(f.target)&&~sie.indexOf(f.attributeName))if(f.attributeName==="class"&&Kie(f.target)){var p=gm(I1(f.target)),h=p.prefix,g=p.iconName;f.target.setAttribute(j1,h||d),g&&f.target.setAttribute($1,g)}else Xie(f.target)&&o(f.target)})}}),wo&&lp.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Jie(){lp&&lp.disconnect()}function eae(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var i=o.split(":"),a=i[0],s=i.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function tae(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=gm(I1(e));return o.prefix||(o.prefix=ci()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=Pie(o.prefix,e.innerText)||M1(o.prefix,o4(e.innerText))),!o.iconName&&ae.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function nae(e){var t=nl(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function rae(){return{iconName:null,prefix:null,transform:$r,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function n2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=tae(e),r=n.iconName,o=n.prefix,i=n.rest,a=nae(e),s=f0("parseNodeAttributes",{},e),l=t.styleParser?eae(e):[];return U({iconName:r,prefix:o,transform:$r,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:a}},s)}var oae=sr.styles;function b4(e){var t=ae.autoReplaceSvg==="nest"?n2(e,{styleParser:!1}):n2(e);return~t.extra.classes.indexOf(ZA)?ui("generateLayersText",e,t):ui("generateSvgReplacementMutation",e,t)}function iae(){return[].concat(mr(UA),mr(HA))}function r2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!wo)return Promise.resolve();var n=Xe.documentElement.classList,r=function(f){return n.add("".concat(VC,"-").concat(f))},o=function(f){return n.remove("".concat(VC,"-").concat(f))},i=ae.autoFetchSvg?iae():xA.concat(Object.keys(oae));i.includes("fa")||i.push("fa");var a=[".".concat(ZA,":not([").concat(fa,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(fa,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=nl(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),o("complete");else return Promise.resolve();var l=O1.begin("onTree"),c=s.reduce(function(d,f){try{var p=b4(f);p&&d.push(p)}catch(h){qA||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(c).then(function(p){v4(p,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),d()})}).catch(function(p){l(),f(p)})})}function aae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;b4(e).then(function(n){n&&v4([n],t)})}function sae(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:p0(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:p0(o||{})),e(r,U(U({},n),{},{mask:o}))}}var lae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?$r:r,i=n.symbol,a=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,c=n.maskId,d=c===void 0?null:c,f=n.classes,p=f===void 0?[]:f,h=n.attributes,g=h===void 0?{}:h,y=n.styles,x=y===void 0?{}:y;if(t){var b=t.prefix,v=t.iconName,S=t.icon;return vm(U({type:"icon"},t),function(){return pa("beforeDOMElementCreation",{iconDefinition:t,params:n}),N1({icons:{main:m0(S),mask:l?m0(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:v,transform:U(U({},$r),o),symbol:a,maskId:d,extra:{attributes:g,styles:x,classes:p}})})}},cae={mixout:function(){return{icon:sae(lae)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=r2,n.nodeCallback=aae,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?Xe:r,i=n.callback,a=i===void 0?function(){}:i;return r2(o,a)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,i=r.prefix,a=r.transform,s=r.symbol,l=r.mask,c=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([h0(o,i),l.iconName?h0(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var g=pm(h,2),y=g[0],x=g[1];f([n,N1({icons:{main:y,mask:x},prefix:i,iconName:o,transform:a,symbol:s,maskId:c,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,i=n.main,a=n.transform,s=n.styles,l=mm(s);l.length>0&&(o.style=l);var c;return R1(a)&&(c=ui("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),r.push(c||i.icon),{children:r,attributes:o}}}},uae={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,i=o===void 0?[]:o;return vm({type:"layer"},function(){pa("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(ae.cssPrefix,"-layers")].concat(mr(i)).join(" ")},children:a}]})}}}},dae={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var o=r.classes,i=o===void 0?[]:o,a=r.attributes,s=a===void 0?{}:a,l=r.styles,c=l===void 0?{}:l;return vm({type:"counter",content:n},function(){return pa("beforeDOMElementCreation",{content:n,params:r}),Wie({content:n.toString(),extra:{attributes:s,styles:c,classes:["".concat(ae.cssPrefix,"-layers-counter")].concat(mr(i))}})})}}}},fae={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,i=o===void 0?$r:o,a=r.classes,s=a===void 0?[]:a,l=r.attributes,c=l===void 0?{}:l,d=r.styles,f=d===void 0?{}:d;return vm({type:"text",content:n},function(){return pa("beforeDOMElementCreation",{content:n,params:r}),QC({content:n,transform:U(U({},$r),i),extra:{attributes:c,styles:f,classes:["".concat(ae.cssPrefix,"-layers-text")].concat(mr(s))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.transform,i=r.extra,a=null,s=null;if(yA){var l=parseInt(getComputedStyle(n).fontSize,10),c=n.getBoundingClientRect();a=c.width/l,s=c.height/l}return Promise.resolve([n,QC({content:n.innerHTML,width:a,height:s,transform:o,extra:i,watchable:!0})])}}},x4=new RegExp('"',"ug"),o2=[1105920,1112319],i2=U(U(U(U({},{FontAwesome:{normal:"fas",400:"fas"}}),Nre),Joe),Hre),y0=Object.keys(i2).reduce(function(e,t){return e[t.toLowerCase()]=i2[t],e},{}),pae=Object.keys(y0).reduce(function(e,t){var n=y0[t];return e[t]=n[900]||mr(Object.entries(n))[0][1],e},{});function mae(e){var t=e.replace(x4,"");return o4(mr(t)[0]||"")}function hae(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(x4,""),o=r.codePointAt(0),i=o>=o2[0]&&o<=o2[1],a=r.length===2?r[0]===r[1]:!1;return i||a||t}function gae(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(y0[n]||{})[o]||pae[n]}function a2(e,t){var n="".concat(eie).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var i=nl(e.children),a=i.filter(function(_){return _.getAttribute(s0)===t})[0],s=li.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),c=l.match(iie),d=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!c)return e.removeChild(a),r();if(c&&f!=="none"&&f!==""){var p=s.getPropertyValue("content"),h=gae(l,d),g=mae(p),y=c[0].startsWith("FontAwesome"),x=hae(s),b=M1(h,g),v=b;if(y){var S=_ie(g);S.iconName&&S.prefix&&(b=S.iconName,h=S.prefix)}if(b&&!x&&(!a||a.getAttribute(j1)!==h||a.getAttribute($1)!==v)){e.setAttribute(n,v),a&&e.removeChild(a);var w=rae(),k=w.extra;k.attributes[s0]=t,h0(b,h).then(function(_){var C=N1(U(U({},w),{},{icons:{main:_,mask:p4()},prefix:h,iconName:v,extra:k,watchable:!0})),T=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(T,e.firstChild):e.appendChild(T),T.outerHTML=C.map(function(A){return _u(A)}).join(` -`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function vae(e){return Promise.all([a2(e,"::before"),a2(e,"::after")])}function yae(e){return e.parentNode!==document.head&&!~nie.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(s0)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var bae=function(t){return!!t&&YA.some(function(n){return t.includes(n)})},xae=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(l){return l.trim()});r=r.flatMap(function(l){return l.includes("(")?l:l.split(",").map(function(c){return c.trim()})});var o=ff(r),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;if(bae(a)){var s=YA.reduce(function(l,c){return l.replace(c,"")},a);s!==""&&s!=="*"&&n.add(s)}}}catch(l){o.e(l)}finally{o.f()}return n};function s2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(wo){var n;if(t)n=e;else if(ae.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,o=ff(document.styleSheets),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;try{var s=ff(a.cssRules),l;try{for(s.s();!(l=s.n()).done;){var c=l.value,d=xae(c.selectorText),f=ff(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(y){f.e(y)}finally{f.f()}}}catch(y){s.e(y)}finally{s.f()}}catch(y){ae.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(y.message,`) -If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(y){o.e(y)}finally{o.f()}if(!r.size)return;var g=Array.from(r).join(", ");try{n=e.querySelectorAll(g)}catch{}}return new Promise(function(y,x){var b=nl(n).filter(yae).map(vae),v=O1.begin("searchPseudoElements");y4(),Promise.all(b).then(function(){v(),v0(),y()}).catch(function(){v(),v0(),x()})})}}var Sae={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=s2,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?Xe:r;ae.searchPseudoElements&&s2(o)}}},l2=!1,wae={mixout:function(){return{dom:{unwatch:function(){y4(),l2=!0}}}},hooks:function(){return{bootstrap:function(){t2(f0("mutationObserverCallbacks",{}))},noAuto:function(){Jie()},watch:function(n){var r=n.observeMutationsRoot;l2?v0():t2(f0("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},c2=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var i=o.toLowerCase().split("-"),a=i[0],s=i.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},kae={mixout:function(){return{parse:{transform:function(n){return c2(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=c2(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,i=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(o.x*32,", ").concat(o.y*32,") "),c="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),d="rotate(".concat(o.rotate," 0 0)"),f={transform:"".concat(l," ").concat(c," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:s,inner:f,path:p};return{tag:"g",attributes:U({},h.outer),children:[{tag:"g",attributes:U({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:U(U({},r.icon.attributes),h.path)}]}]}}}},tg={x:0,y:0,width:"100%",height:"100%"};function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Cae(e){return e.tag==="g"?e.children:[e]}var Pae={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),i=o?gm(o.split(" ").map(function(a){return a.trim()})):p4();return i.prefix||(i.prefix=ci()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,i=n.main,a=n.mask,s=n.maskId,l=n.transform,c=i.width,d=i.icon,f=a.width,p=a.icon,h=gie({transform:l,containerWidth:f,iconWidth:c}),g={tag:"rect",attributes:U(U({},tg),{},{fill:"white"})},y=d.children?{children:d.children.map(u2)}:{},x={tag:"g",attributes:U({},h.inner),children:[u2(U({tag:d.tag,attributes:U(U({},d.attributes),h.path)},y))]},b={tag:"g",attributes:U({},h.outer),children:[x]},v="mask-".concat(s||UC()),S="clip-".concat(s||UC()),w={tag:"mask",attributes:U(U({},tg),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,b]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:Cae(p)},w]};return r.push(k,{tag:"rect",attributes:U({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(v,")")},tg)}),{children:r,attributes:o}}}},_ae={provides:function(t){var n=!1;li.matchMedia&&(n=li.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:U(U({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=U(U({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:U(U({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:U(U({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:U(U({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:U(U({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:U(U({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:U(U({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:U(U({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Tae={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return n.symbol=i,n}}}},Eae=[bie,cae,uae,dae,fae,Sae,wae,kae,Pae,_ae,Tae];Mie(Eae,{mixoutsTo:In});In.noAuto;var Gs=In.config;In.library;In.dom;var S4=In.parse;In.findIconDefinition;In.toHtml;var jae=In.icon;In.layer;In.text;In.counter;function $ae(e){return e=e-0,e===e}function w4(e){return $ae(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Aae=(e,t)=>Rt.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Iae(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ia=new Map,Rae=1e3;function zae(e){if(Ia.has(e))return Ia.get(e);const t={};let n=0;const r=e.length;for(;n0){const l=a.slice(0,s).trim(),c=a.slice(s+1).trim();if(l&&c){const d=w4(l);t[d.startsWith("webkit")?Iae(d):d]=c}}}n=i+1}if(Ia.size===Rae){const o=Ia.keys().next().value;o&&Ia.delete(o)}return Ia.set(e,t),t}function k4(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>{let p=f;return("fill"in n||n.gradientFill)&&f.tag==="path"&&"fill"in f.attributes&&(p={...f,attributes:{...f.attributes,fill:void 0}}),k4(e,p)}),o=t.attributes||{},i={};for(const[f,p]of Object.entries(o))switch(!0){case f==="class":{i.className=p;break}case f==="style":{i.style=zae(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{i[f.toLowerCase()]=p;break}default:i[w4(f)]=p}const{style:a,role:s,"aria-label":l,gradientFill:c,...d}=n;if(a&&(i.style=i.style?{...i.style,...a}:a),s&&(i.role=s),l&&(i["aria-label"]=l,i["aria-hidden"]="false"),c){i.fill=`url(#${c.id})`;const{type:f,stops:p=[],...h}=c;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:c.id},p.map(Aae)))}return e(t.tag,{...i,...d},...r)}var Mae=k4.bind(null,Rt.createElement),d2=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},Nae=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},Oae="searchPseudoElementsFullScan"in Gs&&typeof Gs.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",Dae=Number.parseInt(Oae)>=7,Lae=()=>Dae,fc="fa",kt={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse",flip360:"fa-flip-360",buzz:"fa-buzz",float:"fa-float",jello:"fa-jello",spinSnap:"fa-spin-snap",spinSnap4:"fa-spin-snap-4",spinSnap8:"fa-spin-snap-8",swing:"fa-swing",wag:"fa-wag"},Fae={left:"fa-pull-left",right:"fa-pull-right"},Bae={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Vae={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},er={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto",canvasSquare:"fa-canvas-square",canvasRoomy:"fa-canvas-roomy"};function Wae(e){const t=Gs.cssPrefix||Gs.familyPrefix||fc;return t===fc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${fc}-`,"g"),`${t}-`)}function Uae(e){const{beat:t,fade:n,beatFade:r,bounce:o,shake:i,spin:a,spinPulse:s,spinReverse:l,pulse:c,fixedWidth:d,inverse:f,border:p,flip:h,size:g,rotation:y,pull:x,swapOpacity:b,rotateBy:v,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:_,buzz:C,float:T,jello:A,spinSnap:$,spinSnap4:B,spinSnap8:Y,swing:te,wag:I,className:K}=e,F=[];return K&&F.push(...K.split(" ")),t&&F.push(kt.beat),n&&F.push(kt.fade),r&&F.push(kt.beatFade),o&&F.push(kt.bounce),i&&F.push(kt.shake),a&&F.push(kt.spin),l&&F.push(kt.spinReverse),s&&F.push(kt.spinPulse),c&&F.push(kt.pulse),d&&F.push(er.fixedWidth),f&&F.push(er.inverse),p&&F.push(er.border),h===!0&&F.push(er.flip),(h==="horizontal"||h==="both")&&F.push(er.flipHorizontal),(h==="vertical"||h==="both")&&F.push(er.flipVertical),g!=null&&F.push(Vae[g]),y!=null&&y!==0&&F.push(Bae[y]),x!=null&&F.push(Fae[x]),b&&F.push(er.swapOpacity),Lae()?(v&&F.push(er.rotateBy),S&&F.push(er.widthAuto),w&&F.push(er.canvasSquare),k&&F.push(er.canvasRoomy),_&&F.push(kt.flip360),C&&F.push(kt.buzz),T&&F.push(kt.float),A&&F.push(kt.jello),$&&F.push(kt.spinSnap),B&&F.push(kt.spinSnap4),Y&&F.push(kt.spinSnap8),te&&F.push(kt.swing),I&&F.push(kt.wag),(Gs.cssPrefix||Gs.familyPrefix||fc)===fc?F:F.map(Wae)):F}var Hae=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function f2(e){if(e)return Hae(e)?e:S4.icon(e)}function Gae(e){return Object.keys(e)}var p2=new Nae("FontAwesomeIcon"),C4={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Kae=new Set(Object.keys(C4)),L1=Rt.forwardRef((e,t)=>{const n={...C4,...e},{icon:r,mask:o,symbol:i,title:a,titleId:s,maskId:l,transform:c}=n,d=d2(l,!!o),f=d2(s,!!a),p=f2(r);if(!p)return p2.error("Icon lookup is undefined",r),null;const h=Uae(n),g=typeof c=="string"?S4.transform(c):c,y=f2(o),x=jae(p,{...h.length>0&&{classes:h},...g&&{transform:g},...y&&{mask:y},symbol:i,title:a,titleId:f,maskId:d});if(!x)return p2.error("Could not find icon",p),null;const{abstract:b}=x,v={ref:t};for(const S of Gae(n))Kae.has(S)||(v[S]=n[S]);return Mae(b[0],v)});L1.displayName="FontAwesomeIcon";/*! - * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - * Copyright 2026 Fonticons, Inc. - */var P4={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},_4={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]};const ir=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return u.jsxs(Gb,{children:[u.jsx(ft,{ref:t,type:n?"text":"password",...e}),u.jsx(Zp,{children:u.jsx(Or,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:u.jsx(L1,{icon:n?_4:P4}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(o=>!o)})})]})});ir.displayName="PasswordInput";function Xae(){const{login:e}=yi(),t=gr(),n=bo(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(!1),c=async d=>{d.preventDefault(),l(!0);try{await e(r.trim(),i,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ze?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{l(!1)}};return u.jsxs(pr,{maxW:"sm",py:20,position:"relative",children:[u.jsx(ge,{position:"absolute",top:4,right:4,children:u.jsx(da,{})}),u.jsxs(Ee,{spacing:6,children:[u.jsxs(ge,{textAlign:"center",children:[u.jsx(Dt,{size:"lg",children:"Espace client"}),u.jsx(ue,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),u.jsx(Eb,{children:u.jsx(jb,{children:u.jsx("form",{onSubmit:c,children:u.jsxs(Ee,{spacing:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Nom d'utilisateur"}),u.jsx(ft,{value:r,onChange:d=>o(d.target.value),autoComplete:"username"})]}),u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Mot de passe"}),u.jsx(ir,{value:i,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),u.jsx(he,{type:"submit",colorScheme:"primary",isLoading:s,children:"Se connecter"})]})})})}),u.jsxs(we,{justify:"center",spacing:1,children:[u.jsx(ue,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),u.jsx(he,{as:Kt,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),u.jsx(he,{as:Kt,to:"/",variant:"link",size:"sm",children:"← Retour au site"})]})]})}function Yae(){const{login:e}=yi(),t=gr(),n=bo(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(!1),c=async d=>{d.preventDefault(),l(!0);try{await e(r.trim(),i,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ze?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{l(!1)}};return u.jsxs(pr,{maxW:"sm",py:20,position:"relative",children:[u.jsx(ge,{position:"absolute",top:4,right:4,children:u.jsx(da,{})}),u.jsxs(Ee,{spacing:6,children:[u.jsxs(ge,{textAlign:"center",children:[u.jsx(Dt,{size:"lg",children:"Espace admin"}),u.jsx(ue,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),u.jsx(Eb,{children:u.jsx(jb,{children:u.jsx("form",{onSubmit:c,children:u.jsxs(Ee,{spacing:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Nom d'utilisateur"}),u.jsx(ft,{value:r,onChange:d=>o(d.target.value),autoComplete:"username"})]}),u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Mot de passe"}),u.jsx(ir,{value:i,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),u.jsx(he,{type:"submit",colorScheme:"primary",isLoading:s,children:"Se connecter"})]})})})}),u.jsx(he,{as:Kt,to:"/",variant:"link",size:"sm",children:"← Retour au site"})]})]})}function qae(){const{register:e}=yi(),t=gr(),n=bo(),[r,o]=m.useState(""),[i,a]=m.useState(""),[s,l]=m.useState(""),[c,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=i.length>=10,h=i===s,g=f&&p&&h,y=async x=>{if(x.preventDefault(),!!g){d(!0);try{await e(r.trim(),i),t("/app",{replace:!0})}catch(b){const v=b instanceof Ze?b.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:v})}finally{d(!1)}}};return u.jsxs(pr,{maxW:"sm",py:16,position:"relative",children:[u.jsx(ge,{position:"absolute",top:4,right:4,children:u.jsx(da,{})}),u.jsxs(Ee,{spacing:6,children:[u.jsxs(ge,{textAlign:"center",children:[u.jsx(Dt,{size:"lg",children:"Créer un compte"}),u.jsx(ue,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),u.jsx(Eb,{children:u.jsx(jb,{children:u.jsx("form",{onSubmit:y,children:u.jsxs(Ee,{spacing:4,children:[u.jsxs(_e,{isRequired:!0,isInvalid:r.length>0&&!f,children:[u.jsx(Te,{children:"Nom d'utilisateur"}),u.jsx(ft,{value:r,onChange:x=>o(x.target.value),autoComplete:"username"}),u.jsx(Zf,{children:"3 à 64 caractères alphanumériques."})]}),u.jsxs(_e,{isRequired:!0,isInvalid:i.length>0&&!p,children:[u.jsx(Te,{children:"Mot de passe"}),u.jsx(ir,{value:i,onChange:x=>a(x.target.value),autoComplete:"new-password"}),u.jsx(Zf,{children:"10 caractères minimum."})]}),u.jsxs(_e,{isRequired:!0,isInvalid:s.length>0&&!h,children:[u.jsx(Te,{children:"Confirmer le mot de passe"}),u.jsx(ir,{value:s,onChange:x=>l(x.target.value),autoComplete:"new-password"})]}),u.jsx(he,{type:"submit",colorScheme:"primary",isLoading:c,isDisabled:!g,children:"Créer mon compte"})]})})})}),u.jsxs(we,{justify:"center",spacing:1,children:[u.jsx(ue,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),u.jsx(he,{as:Kt,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}function F1(e){switch(e){case"ready":return"green";case"provisioning":case"pending":return"blue";case"expiring":return"orange";case"failed":return"red";case"expired":default:return"gray"}}function B1(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function m2(e){switch(e){case"Running":return"green";case"Pending":return"yellow";case"Succeeded":return"blue";case"Failed":return"red";case"Unknown":case"":default:return"gray"}}function Qae(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function Zae(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),o=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${o} h`;const i=Math.floor(n%36e5/6e4);return`${o} h ${i} min`}function Jae({isOpen:e,title:t,children:n,confirmLabel:r="Confirmer",cancelLabel:o="Annuler",confirmColorScheme:i="red",isLoading:a=!1,onConfirm:s,onClose:l}){const c=m.useRef(null);return u.jsx(mY,{isOpen:e,leastDestructiveRef:c,onClose:l,isCentered:!0,motionPreset:"slideInBottom",children:u.jsx(xu,{backdropFilter:"blur(2px)",children:u.jsxs(hY,{borderRadius:"xl",children:[u.jsx(bu,{fontSize:"lg",fontWeight:"bold",children:t}),u.jsx(yu,{color:"gray.600",children:n}),u.jsxs(r1,{gap:3,children:[u.jsx(he,{ref:c,onClick:l,variant:"ghost",isDisabled:a,children:o}),u.jsx(he,{colorScheme:i,onClick:s,isLoading:a,children:r})]})]})})})}function ese({isOpen:e,onClose:t,onCreated:n}){const r=bo(),[o,i]=m.useState(""),[a,s]=m.useState("admin"),[l,c]=m.useState(""),[d,f]=m.useState(!1),[p,h]=m.useState(""),[g,y]=m.useState(""),[x,b]=m.useState(!1),[v,S]=m.useState(""),[w,k]=m.useState(""),[_,C]=m.useState(!1),[T,A]=m.useState(""),[$,B]=m.useState(""),[Y,te]=m.useState(""),[I,K]=m.useState(""),[F,z]=m.useState("failover"),[O,R]=m.useState(""),[D,G]=m.useState(""),[H,Q]=m.useState("local"),[be,me]=m.useState(""),[xe,Fe]=m.useState(""),[fe,Z]=m.useState(!1),J=()=>{i(""),s("admin"),c(""),f(!1),h(""),y(""),b(!1),S(""),k(""),C(!1),A(""),B(""),te(""),K(""),z("failover"),R(""),G(""),Q("local"),me(""),Fe("")},Pe=()=>{fe||(J(),t())},pe=async()=>{if(!o.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||l.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(H==="s3"&&(!be.trim()||!xe.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(_&&!T.trim()&&!Y.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}const ne={username:o.trim(),adminUsername:a.trim(),adminPassword:l.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&g.trim()||void 0,nowPaymentsApiKey:x&&v.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:H,...H==="s3"?{s3Bucket:be.trim(),s3Endpoint:xe.trim()}:{},..._?{lbBot1Username:T.trim()||void 0,lbBot1Token:$.trim()||void 0,lbBot2Username:Y.trim()||void 0,lbBot2Token:I.trim()||void 0,lbStrategy:F,lbJwtTtlSeconds:O.trim()||void 0,lbHealthCheckInterval:D.trim()||void 0}:{}};Z(!0);try{await Ne.createDemo(ne),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),J(),n(),t()}catch(ce){const it=ce instanceof Ze?ce.message:"Erreur";r({status:"error",title:"Lancement impossible",description:it})}finally{Z(!1)}};return u.jsxs(tm,{isOpen:e,onClose:Pe,size:"lg",closeOnOverlayClick:!fe,children:[u.jsx(xu,{}),u.jsxs(n1,{children:[u.jsx(bu,{children:"Nouvelle démo"}),u.jsx(rm,{isDisabled:fe}),u.jsx(yu,{children:u.jsxs(Ee,{spacing:5,children:[u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{children:"Username"}),u.jsx(ft,{placeholder:"ex: acme-corp",value:o,onChange:ne=>i(ne.target.value)})]}),u.jsxs(Ee,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[u.jsx(ue,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),u.jsx(ue,{fontSize:"xs",color:"gray.500",children:"Créé une fois postgres/redis/backend/frontend démarrés — c'est ce que le client utilisera pour se connecter au backoffice de sa démo."}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Username"}),u.jsx(ft,{value:a,onChange:ne=>s(ne.target.value)})]}),u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Mot de passe"}),u.jsx(ir,{placeholder:"8 caractères min.",value:l,onChange:ne=>c(ne.target.value),autoComplete:"off"})]})]})]}),u.jsx(_e,{isDisabled:fe,children:u.jsxs(we,{justify:"space-between",children:[u.jsx(Te,{mb:0,children:"Bot Telegram"}),u.jsx(sf,{isChecked:d,onChange:ne=>f(ne.target.checked)})]})}),d&&u.jsxs(Ee,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Nom du bot (username)"}),u.jsx(ft,{placeholder:"mon_bot",value:p,onChange:ne=>h(ne.target.value)})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Token bot Telegram"}),u.jsx(ir,{placeholder:"123456:ABC-DEF...",value:g,onChange:ne=>y(ne.target.value),autoComplete:"off"})]})]}),u.jsx(_e,{isDisabled:fe,children:u.jsxs(we,{justify:"space-between",children:[u.jsx(Te,{mb:0,children:"NowPayments (paiement crypto)"}),u.jsx(sf,{isChecked:x,onChange:ne=>b(ne.target.checked)})]})}),x&&u.jsxs(Ee,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Clé API NowPayments"}),u.jsx(ir,{placeholder:"clé API du compte marchand",value:v,onChange:ne=>S(ne.target.value),autoComplete:"off"})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Secret IPN NowPayments"}),u.jsx(ir,{placeholder:"secret configuré côté NowPayments",value:w,onChange:ne=>k(ne.target.value),autoComplete:"off"}),u.jsx(ue,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),u.jsx(_e,{isDisabled:fe,children:u.jsxs(we,{justify:"space-between",children:[u.jsx(Te,{mb:0,children:"Load-balancer Telegram"}),u.jsx(sf,{isChecked:_,onChange:ne=>C(ne.target.checked)})]})}),_&&u.jsxs(Ee,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsx(ue,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 1 — username"}),u.jsx(ft,{placeholder:"mon_bot_1",value:T,onChange:ne=>A(ne.target.value)})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 1 — token"}),u.jsx(ir,{placeholder:"123456:ABC-DEF...",value:$,onChange:ne=>B(ne.target.value),autoComplete:"off"})]})]}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),u.jsx(ft,{placeholder:"mon_bot_2",value:Y,onChange:ne=>te(ne.target.value)})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Bot 2 — token"}),u.jsx(ir,{placeholder:"123456:ABC-DEF...",value:I,onChange:ne=>K(ne.target.value),autoComplete:"off"})]})]}),u.jsxs(we,{spacing:3,align:"start",children:[u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Stratégie de répartition"}),u.jsxs(d5,{value:F,onChange:ne=>z(ne.target.value),children:[u.jsx("option",{value:"failover",children:"Failover"}),u.jsx("option",{value:"roundrobin",children:"Round-robin"}),u.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"TTL JWT (secondes)"}),u.jsx(ft,{placeholder:"300",value:O,onChange:ne=>R(ne.target.value),type:"number"})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Intervalle health-check (s)"}),u.jsx(ft,{placeholder:"30",value:D,onChange:ne=>G(ne.target.value),type:"number"})]})]})]}),u.jsxs(_e,{isDisabled:fe,children:[u.jsx(Te,{children:"Stockage des fichiers"}),u.jsx(c5,{value:H,onChange:ne=>Q(ne),children:u.jsxs(Ee,{direction:"row",spacing:6,children:[u.jsx(Gv,{value:"local",children:"Local (disque du cluster)"}),u.jsx(Gv,{value:"s3",children:"S3"})]})})]}),H==="s3"&&u.jsxs(Ee,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Nom du bucket"}),u.jsx(ft,{placeholder:"mon-bucket-demo",value:be,onChange:ne=>me(ne.target.value)})]}),u.jsxs(_e,{isRequired:!0,isDisabled:fe,children:[u.jsx(Te,{fontSize:"sm",children:"Endpoint S3"}),u.jsx(ft,{placeholder:"https://s3.exemple.com",value:xe,onChange:ne=>Fe(ne.target.value)})]})]})]})}),u.jsxs(r1,{children:[u.jsx(he,{variant:"ghost",mr:3,onClick:Pe,isDisabled:fe,children:"Annuler"}),u.jsx(he,{colorScheme:"primary",onClick:pe,isLoading:fe,children:"Lancer la démo"})]})]})]})}const ng=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}];function T4({state:e}){const t=ng.every(r=>e[r.key].phase==="Running"),n=ng.filter(r=>e[r.key].phase!=="Running").length;return u.jsxs(Ee,{spacing:3,children:[u.jsxs(we,{spacing:2,children:[u.jsx(ge,{w:"8px",h:"8px",borderRadius:"full",bg:t?"green.400":"red.400",flexShrink:0}),u.jsx(ue,{fontSize:"sm",fontWeight:"medium",children:t?"Tous les services sont opérationnels":`${n} service${n>1?"s":""} indisponible${n>1?"s":""}`})]}),u.jsx(ca,{columns:{base:1,sm:2,lg:4},spacing:3,children:ng.map(r=>u.jsx(tse,{title:r.label,cs:e[r.key]},r.key))})]})}function tse({title:e,cs:t}){const n=t.cpu_limit_milli>0?Math.min(100,Math.round(t.cpu_milli/t.cpu_limit_milli*100)):0,r=t.memory_limit_mi>0?Math.min(100,Math.round(t.memory_mi/t.memory_limit_mi*100)):0;return u.jsxs(ge,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:[u.jsxs(we,{justify:"space-between",mb:3,children:[u.jsx(ue,{fontSize:"sm",fontWeight:"semibold",children:e}),u.jsxs(we,{spacing:1.5,children:[u.jsx(ge,{w:"7px",h:"7px",borderRadius:"full",bg:`${m2(t.phase)}.400`,flexShrink:0}),u.jsx(Gn,{colorScheme:m2(t.phase),fontSize:"10px",children:Qae(t.phase)})]})]}),u.jsxs(Ee,{spacing:2,children:[u.jsxs(ge,{children:[u.jsxs(_t,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[u.jsx(ue,{children:"CPU"}),u.jsxs(ue,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),u.jsx(Hv,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),u.jsxs(ge,{children:[u.jsxs(_t,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[u.jsx(ue,{children:"Mémoire"}),u.jsxs(ue,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),u.jsx(Hv,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function E4(e){return u.jsx(wt,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}const nse=5e3,rse=5e3;function ose(){const e=bo(),t=gr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,c]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[g,y]=m.useState(null),[x,b]=m.useState(!1),v=m.useCallback(async()=>{try{const C=await Ne.listDemos();r((C.items??[]).filter(T=>T.type_abonnement!=="premium"))}catch(C){C instanceof Ze&&C.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{v();const C=setInterval(()=>void v(),nse);return()=>clearInterval(C)},[v]);const S=async C=>{s(C.id);try{await Ne.extendDemo(C.id),e({status:"success",title:"Démo prolongée de 30 jours"}),await v()}catch(T){const A=T instanceof Ze?T.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:A})}finally{s(null)}},w=async()=>{if(!l)return;const C=l;s(C.id);try{await Ne.deleteDemo(C.id),e({status:"success",title:"Démo détruite"}),c(null),await v()}catch(T){const A=T instanceof Ze?T.message:"Erreur";e({status:"error",title:"Destruction impossible",description:A})}finally{s(null)}},k=async C=>{if(p===C.id){h(null),y(null);return}h(C.id),y(null),b(!0);try{const T=await Ne.getDemoDetails(C.namespace);y(T)}catch(T){const A=T instanceof Ze?T.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:A}),h(null)}finally{b(!1)}};m.useEffect(()=>{const C=n.find($=>$.id===p);if(!C)return;const T=C.namespace,A=setInterval(()=>{Ne.getDemoDetails(T).then(y).catch(()=>{})},rse);return()=>clearInterval(A)},[p]);const _=C=>C!=="expired"&&C!=="failed";return u.jsxs(u.Fragment,{children:[u.jsxs(_t,{mb:6,align:"center",gap:4,wrap:"wrap",children:[u.jsx(Dt,{size:"md",mr:4,children:"Démos"}),u.jsx(Ws,{}),u.jsx(he,{colorScheme:"primary",onClick:()=>f(!0),children:"Nouvelle démo"})]}),u.jsx(ese,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void v()}),o?u.jsx(Hn,{}):n.length===0?u.jsx(ue,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):u.jsx(i1,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(om,{children:[u.jsx(s1,{children:u.jsxs(ei,{children:[u.jsx(en,{children:"Namespace"}),u.jsx(en,{children:"Client"}),u.jsx(en,{children:"Statut"}),u.jsx(en,{children:"URL"}),u.jsx(en,{children:"Expire dans"}),u.jsx(en,{})]})}),u.jsx(a1,{children:n.map(C=>{const T=p===C.id;return u.jsxs(m.Fragment,{children:[u.jsxs(ei,{cursor:"pointer",bg:T?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>k(C),children:[u.jsx(Mt,{fontFamily:"mono",children:u.jsxs(we,{spacing:2,children:[u.jsx(wt,{as:E4,boxSize:3,color:"gray.400",transform:T?"rotate(90deg)":void 0,transition:"transform 0.15s"}),u.jsx(ue,{children:C.namespace})]})}),u.jsx(Mt,{children:C.username?u.jsx(ue,{children:C.username}):u.jsx(ue,{color:"gray.400",children:"—"})}),u.jsx(Mt,{children:u.jsx(Gn,{colorScheme:F1(C.status),children:B1(C.status)})}),u.jsx(Mt,{children:C.status==="ready"?u.jsx(va,{href:C.url,color:"primary.500",isExternal:!0,onClick:A=>A.stopPropagation(),children:C.url}):u.jsx(ue,{color:"gray.400",children:"—"})}),u.jsx(Mt,{children:_(C.status)?Zae(C.expires_at):"—"}),u.jsx(Mt,{textAlign:"right",children:u.jsxs(we,{justify:"flex-end",children:[u.jsx(he,{size:"sm",variant:"outline",isDisabled:!_(C.status)||a===C.id,onClick:A=>{A.stopPropagation(),S(C)},children:"+30 j"}),u.jsx(he,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!_(C.status),onClick:A=>{A.stopPropagation(),c(C)},children:"Détruire"})]})})]}),u.jsx(ei,{children:u.jsx(Mt,{p:0,border:T?void 0:"none",colSpan:6,children:u.jsx(Yp,{in:T,unmountOnExit:!0,animateOpacity:!0,children:u.jsx(ge,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:x&&!g?u.jsx(_t,{justify:"center",py:4,children:u.jsx(Hn,{size:"sm"})}):g?u.jsx(T4,{state:g.state}):u.jsx(ue,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},C.id)})})]})}),u.jsxs(Jae,{isOpen:!!l,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!l&&a===l.id,onConfirm:w,onClose:()=>c(null),children:["La démo"," ",u.jsx(ue,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:l==null?void 0:l.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]})]})}const ise=5e3,ase=5e3;function sse(){const e=bo(),t=gr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,c]=m.useState(null),[d,f]=m.useState(!1),p=m.useCallback(async()=>{try{const g=await Ne.listDemos();r((g.items??[]).filter(y=>y.type_abonnement==="premium"))}catch(g){g instanceof Ze&&g.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{p();const g=setInterval(()=>void p(),ise);return()=>clearInterval(g)},[p]);const h=async g=>{if(a===g.id){s(null),c(null);return}s(g.id),c(null),f(!0);try{const y=await Ne.getDemoDetails(g.namespace);c(y)}catch(y){const x=y instanceof Ze?y.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:x}),s(null)}finally{f(!1)}};return m.useEffect(()=>{const g=n.find(b=>b.id===a);if(!g)return;const y=g.namespace,x=setInterval(()=>{Ne.getDemoDetails(y).then(c).catch(()=>{})},ase);return()=>clearInterval(x)},[a]),u.jsxs(u.Fragment,{children:[u.jsx(Dt,{size:"md",mb:2,children:"Démos Premium"}),u.jsx(ue,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),o?u.jsx(Hn,{}):n.length===0?u.jsx(ue,{color:"gray.500",children:"Aucune démo premium pour le moment."}):u.jsx(i1,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(om,{children:[u.jsx(s1,{children:u.jsxs(ei,{children:[u.jsx(en,{children:"Namespace"}),u.jsx(en,{children:"Client"}),u.jsx(en,{children:"Statut"}),u.jsx(en,{children:"URL"})]})}),u.jsx(a1,{children:n.map(g=>{const y=a===g.id;return u.jsxs(m.Fragment,{children:[u.jsxs(ei,{cursor:"pointer",bg:y?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>h(g),children:[u.jsx(Mt,{fontFamily:"mono",children:u.jsxs(we,{spacing:2,children:[u.jsx(wt,{as:E4,boxSize:3,color:"gray.400",transform:y?"rotate(90deg)":void 0,transition:"transform 0.15s"}),u.jsx(ue,{children:g.namespace})]})}),u.jsx(Mt,{children:g.username||u.jsx(ue,{color:"gray.400",children:"—"})}),u.jsx(Mt,{children:u.jsx(Gn,{colorScheme:F1(g.status),children:B1(g.status)})}),u.jsx(Mt,{children:g.status==="ready"?u.jsx(va,{href:g.url,color:"primary.500",isExternal:!0,onClick:x=>x.stopPropagation(),children:g.url}):u.jsx(ue,{color:"gray.400",children:"—"})})]}),u.jsx(ei,{children:u.jsx(Mt,{p:0,border:y?void 0:"none",colSpan:4,children:u.jsx(Yp,{in:y,unmountOnExit:!0,animateOpacity:!0,children:u.jsx(ge,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:d&&!l?u.jsx(Hn,{size:"sm"}):l?u.jsx(T4,{state:l.state}):u.jsx(ue,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},g.id)})})]})})]})}const lse=1e4;function cse(){const e=bo(),t=gr(),[n,r]=m.useState([]),[o,i]=m.useState(!0),[a,s]=m.useState(null),[l,c]=m.useState(""),[d,f]=m.useState(null),p=m.useCallback(async()=>{try{const y=await Ne.listCodes();r(y.items??[])}catch(y){y instanceof Ze&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{i(!1)}},[t,e]);m.useEffect(()=>{p();const y=setInterval(()=>void p(),lse);return()=>clearInterval(y)},[p]);const h=async y=>{if(y.preventDefault(),!l.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}s("generate");try{const x=await Ne.createCode(l.trim());f(x.code),c(""),e({status:"success",title:"Code généré avec succès !"}),await p()}catch(x){const b=x instanceof Ze?x.message:"Erreur";e({status:"error",title:"Génération impossible",description:b})}finally{s(null)}},g=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const b=document.createElement("textarea");b.value=y,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();const v=document.execCommand("copy");document.body.removeChild(b),e(v?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return u.jsxs(u.Fragment,{children:[u.jsxs(_t,{mb:6,align:"center",children:[u.jsx(Dt,{size:"md",children:"Gestion des codes de souscription"}),u.jsx(Ws,{})]}),u.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:u.jsx("form",{onSubmit:h,children:u.jsxs(np,{spacing:4,align:"stretch",children:[u.jsxs(Ee,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:"Nom d\\'utilisateur"}),u.jsx(ft,{type:"text",value:l,onChange:y=>c(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:a==="generate",maxLength:64})]}),u.jsx(he,{colorScheme:"primary",type:"submit",isLoading:a==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),d&&u.jsxs(ge,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[u.jsxs(ue,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",u.jsx("strong",{children:l})," :"]}),u.jsxs(we,{children:[u.jsx(ue,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:d}),u.jsx(he,{size:"sm",variant:"outline",onClick:()=>g(d),children:"Copier"})]})]})]})})}),o?u.jsx(Hn,{}):n.length===0?u.jsx(ue,{color:"gray.500",children:"Aucun code de souscription généré."}):u.jsx(i1,{borderWidth:"1px",borderRadius:"lg",children:u.jsxs(om,{children:[u.jsx(s1,{children:u.jsxs(ei,{children:[u.jsx(en,{children:"ID"}),u.jsx(en,{children:"Utilisateur"}),u.jsx(en,{children:"Code"}),u.jsx(en,{children:"Date de création"}),u.jsx(en,{})]})}),u.jsx(a1,{children:n.map(y=>u.jsxs(ei,{children:[u.jsxs(Mt,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),u.jsx(Mt,{children:u.jsx(Gn,{colorScheme:"gray",px:2,py:1,children:y.username})}),u.jsx(Mt,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),u.jsx(Mt,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),u.jsx(Mt,{textAlign:"right",children:u.jsx(he,{size:"sm",variant:"outline",onClick:()=>g(y.code_verif),children:"Copier"})})]},y.id))})]})})]})}function use(){const e=bo(),t=gr(),[n,r]=m.useState(null),[o,i]=m.useState(null),[a,s]=m.useState(!0),[l,c]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),[g,y]=m.useState([]),[x,b]=m.useState(!0),v=m.useCallback(async()=>{try{const T=await Ne.me();r(T.type_abonnement??null),i(T.expired_at?new Date(T.expired_at):null)}catch(T){T instanceof Ze&&T.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{s(!1)}},[t,e]),S=m.useCallback(async()=>{try{const T=await Ne.listMyDemos();y(T.items??[])}catch{}finally{b(!1)}},[]);m.useEffect(()=>{v(),S()},[v,S]);const w=async T=>{if(T.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}c(!0);try{await Ne.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await v()}catch(A){const $=A instanceof Ze?A.message:"Erreur";e({status:"error",title:"Code invalide",description:$})}finally{c(!1)}},k=n==="premium",_=!k||p,C=o?Math.ceil((o.getTime()-Date.now())/(1e3*60*60*24)):null;return u.jsxs(u.Fragment,{children:[u.jsxs(_t,{mb:6,align:"center",children:[u.jsx(Dt,{size:"md",children:k?"Ma plateforme":"Ma démo"}),u.jsx(Ws,{})]}),u.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:x?u.jsx(Hn,{size:"sm"}):g.length===0?u.jsx(ue,{color:"gray.500",children:k?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):u.jsx(np,{align:"stretch",spacing:3,children:g.map(T=>u.jsxs(we,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[T.status==="ready"?u.jsx(va,{href:T.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:T.url}):u.jsx(ue,{color:"gray.400",fontFamily:"mono",children:T.url||"—"}),u.jsx(Gn,{colorScheme:F1(T.status),children:B1(T.status)})]},T.id))})}),u.jsxs(_t,{mb:6,align:"center",children:[u.jsx(Dt,{size:"md",children:"Mon abonnement"}),u.jsx(Ws,{})]}),u.jsx(ge,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?u.jsx(Hn,{}):u.jsxs(np,{align:"stretch",spacing:4,children:[u.jsxs(we,{flexWrap:"wrap",rowGap:2,children:[u.jsx(ue,{color:"gray.400",children:"Statut actuel :"}),u.jsx(Gn,{colorScheme:k?"purple":"gray",px:2,py:1,children:k?"Premium":"Demo"}),k&&!p&&u.jsx(he,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),k&&o&&u.jsx(ue,{fontSize:"sm",color:C!==null&&C<=5?"orange.400":"gray.400",children:C!==null&&C>0?`Expire dans ${C} jour${C>1?"s":""} (le ${o.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${o.toLocaleDateString("fr-FR")}`}),_&&u.jsx("form",{onSubmit:w,children:u.jsxs(Ee,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[u.jsxs(_e,{isRequired:!0,children:[u.jsx(Te,{children:k?"Nouveau code de renouvellement":"Code de souscription"}),u.jsx(ft,{type:"text",value:d,onChange:T=>f(T.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:l,fontFamily:"mono",letterSpacing:"wide"})]}),u.jsxs(we,{flexShrink:0,children:[u.jsx(he,{colorScheme:"primary",type:"submit",isLoading:l,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:k?"Renouveler":"Activer"}),k&&u.jsx(he,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:l,children:"Annuler"})]})]})})]})})]})}const dse=qp({displayName:"EditIcon",path:u.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[u.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),u.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),fse=qp({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),pse=qp({viewBox:"0 0 14 14",path:u.jsx("g",{fill:"currentColor",children:u.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});function h2(e){return e==="admin"?"Administrateur":"Client"}function mse(e){return e==="admin"?"purple":"blue"}function hse(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function gse(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function Td(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=hH();return e?u.jsxs(Tb,{size:"sm",spacing:1,children:[u.jsx(Or,{"aria-label":"Enregistrer",icon:u.jsx(pse,{}),...t()}),u.jsx(Or,{"aria-label":"Annuler",icon:u.jsx(fse,{}),...n()})]}):u.jsx(Or,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:u.jsx(dse,{}),...r()})}function vse(){const e=bo(),t=gr(),{logout:n}=yi(),[r,o]=m.useState(null),[i,a]=m.useState(!0),[s,l]=m.useState(!1),[c,d]=m.useState(!1),[f,p]=m.useState(!1),[h,g]=m.useState(0),[y,x]=m.useState(!1),[b,v]=m.useState(""),[S,w]=m.useState(!1),[k,_]=m.useState(!1),[C,T]=m.useState(""),[A,$]=m.useState(""),[B,Y]=m.useState(""),[te,I]=m.useState(!1);m.useEffect(()=>{let D=!1;return(async()=>{try{const[G,H]=await Promise.all([Ne.me(),Ne.getTelegram()]);if(D)return;if(o(G),v(H.telegram??""),G.role==="admin"){const Q=await Ne.getAlertSettings();if(D)return;T(Q.discord_webhook_url),$(Q.telegram_bot_token),Y(Q.telegram_chat_id)}}catch(G){if(G instanceof Ze&&G.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{D||a(!1)}})(),()=>{D=!0}},[t,e]);const K=async()=>{I(!0);try{const D=await Ne.setAlertSettings({discord_webhook_url:C.trim(),telegram_bot_token:A.trim(),telegram_chat_id:B.trim()});T(D.discord_webhook_url),$(D.telegram_bot_token),Y(D.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(D){if(D instanceof Ze&&D.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:D instanceof Ze?D.message:void 0})}finally{I(!1)}},F=async D=>{const G=D.trim();if(!(!r||!G||G===r.username)){d(!0);try{const H=await Ne.updateUsername(G);o({...r,username:H.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(H){if(H instanceof Ze&&H.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:H instanceof Ze?H.message:void 0})}finally{d(!1)}}},z=async D=>{const G=D.trim();if(!r||G.length<8){G.length>0&&e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"}),g(H=>H+1);return}p(!0);try{await Ne.updatePassword(G),e({status:"success",title:"Mot de passe mis à jour"})}catch(H){if(H instanceof Ze&&H.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:H instanceof Ze?H.message:void 0})}finally{p(!1),g(H=>H+1)}},O=async D=>{const G=D.trim();if(!G){_(!1);return}w(!0);try{const H=await Ne.setTelegram(G);v(H.telegram),_(!1),e({status:"success",title:"Telegram enregistré"})}catch(H){if(H instanceof Ze&&H.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:H instanceof Ze?H.message:void 0})}finally{w(!1)}},R=async()=>{l(!0);try{await Ne.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{l(!1)}};return u.jsx(ge,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:u.jsxs(pr,{maxW:"container.md",children:[u.jsxs(Ee,{spacing:3,mb:8,children:[u.jsx(Dt,{size:"lg",children:"Mon profil"}),u.jsx(ue,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),u.jsx(ge,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:i?u.jsx(_t,{justify:"center",py:10,children:u.jsx(Hn,{})}):r?u.jsxs(Ee,{spacing:8,children:[u.jsxs(_t,{align:"center",gap:5,wrap:"wrap",children:[u.jsx(_b,{name:r.username,size:"xl"}),u.jsxs(ge,{children:[u.jsx(Ol,{defaultValue:r.username,onSubmit:F,isDisabled:c,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:Dt,size:"md",fontFamily:"mono"}),u.jsx(Dl,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),u.jsx(Td,{})]})},r.username),u.jsxs(we,{mt:2,spacing:2,children:[u.jsx(Gn,{colorScheme:mse(r.role),children:h2(r.role)}),r.type_abonnement&&u.jsx(Gn,{colorScheme:hse(r.type_abonnement),children:r.type_abonnement})]})]})]}),u.jsx(Yi,{borderColor:"chakra-border-color"}),u.jsxs(ca,{columns:{base:1,sm:2},spacing:6,children:[u.jsxs($i,{children:[u.jsx(Ai,{children:"Identifiant"}),u.jsx(jo,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Rôle"}),u.jsx(jo,{fontSize:"md",children:h2(r.role)})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Type d'abonnement"}),u.jsx(jo,{fontSize:"md",children:r.type_abonnement||"—"})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Mot de passe"}),u.jsx(Ol,{defaultValue:"",placeholder:"••••••••",onSubmit:z,isDisabled:f,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:jo,fontSize:"md",fontFamily:"mono"}),u.jsx(Dl,{type:y?"text":"password",fontSize:"md",fontFamily:"mono"}),u.jsx(Or,{"aria-label":y?"Masquer le mot de passe":"Afficher le mot de passe",icon:u.jsx(L1,{icon:y?_4:P4}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>x(D=>!D)}),u.jsx(Td,{})]})},h)]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Telegram"}),b?u.jsx(Ol,{defaultValue:b,onSubmit:O,isDisabled:S,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:jo,fontSize:"md",fontFamily:"mono"}),u.jsx(Dl,{fontSize:"md",fontFamily:"mono"}),u.jsx(Td,{})]})},b):k?u.jsx(Ol,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:O,onCancel:()=>_(!1),isDisabled:S,submitOnBlur:!1,children:u.jsxs(we,{spacing:2,children:[u.jsx(Ll,{as:jo,fontSize:"md",fontFamily:"mono"}),u.jsx(Dl,{fontSize:"md",fontFamily:"mono"}),u.jsx(Td,{})]})}):u.jsx(he,{size:"sm",variant:"outline",onClick:()=>_(!0),children:"Ajouter mon Telegram"})]}),u.jsxs($i,{children:[u.jsx(Ai,{children:"Expire le"}),u.jsx(jo,{fontSize:"md",children:gse(r.expired_at)})]})]}),r.role==="admin"&&u.jsxs(u.Fragment,{children:[u.jsx(Yi,{borderColor:"chakra-border-color"}),u.jsxs(Ee,{spacing:4,children:[u.jsxs(ge,{children:[u.jsx(Dt,{size:"sm",children:"Alertes monitoring"}),u.jsx(ue,{color:"gray.500",fontSize:"sm",children:"Recevez une notification quand un pod d'une démo tombe en erreur (ou se rétablit). Réglages propres à votre compte."})]}),u.jsxs(_e,{children:[u.jsx(Te,{fontSize:"sm",children:"Webhook Discord"}),u.jsx(ft,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:C,onChange:D=>T(D.target.value),isDisabled:te})]}),u.jsxs(ca,{columns:{base:1,sm:2},spacing:4,children:[u.jsxs(_e,{children:[u.jsx(Te,{fontSize:"sm",children:"Bot Telegram (token)"}),u.jsx(ft,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:A,onChange:D=>$(D.target.value),isDisabled:te})]}),u.jsxs(_e,{children:[u.jsx(Te,{fontSize:"sm",children:"Telegram (chat ID)"}),u.jsx(ft,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:B,onChange:D=>Y(D.target.value),isDisabled:te}),u.jsx(Zf,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),u.jsx(_t,{justify:"flex-end",children:u.jsx(he,{size:"sm",colorScheme:"primary",isLoading:te,onClick:K,children:"Enregistrer les alertes"})})]})]}),u.jsx(Yi,{borderColor:"chakra-border-color"}),u.jsx(_t,{justify:"flex-end",children:u.jsx(he,{colorScheme:"red",variant:"outline",isLoading:s,onClick:R,children:"Se déconnecter"})})]}):u.jsx(ue,{color:"gray.500",children:"Aucune information disponible."})})]})})}const g2=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/contact",label:"Contact",end:!1}],yse=()=>u.jsx(ge,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx(ge,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function bse(){const{isOpen:e,onOpen:t,onClose:n}=ou();return u.jsxs(ge,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[u.jsx(pr,{maxW:"container.lg",children:u.jsxs(_t,{h:16,align:"center",justify:"space-between",children:[u.jsxs(we,{spacing:8,children:[u.jsx(ge,{as:Kt,to:"/",fontWeight:"bold",fontSize:"xl",letterSpacing:"tight",children:"Omnex"}),u.jsx(we,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:g2.map(r=>u.jsx(v2,{to:r.to,end:r.end,children:r.label},r.to))})]}),u.jsxs(we,{spacing:2,display:{base:"none",md:"flex"},children:[u.jsx(da,{}),u.jsx(he,{as:Kt,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),u.jsxs(we,{spacing:1,display:{base:"flex",md:"none"},children:[u.jsx(da,{}),u.jsx(Or,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:u.jsx(yse,{})})]})]})}),u.jsxs(a5,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[u.jsx(xu,{}),u.jsxs(o1,{bg:"chakra-body-bg",children:[u.jsx(rm,{size:"lg"}),u.jsx(bu,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:"Omnex"}),u.jsxs(yu,{py:6,children:[u.jsx(Ee,{as:"nav",spacing:1,children:g2.map(r=>u.jsx(v2,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),u.jsx(Yi,{my:6}),u.jsxs(Ee,{spacing:3,children:[u.jsx(he,{as:Kt,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),u.jsx(he,{as:Kt,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function v2({to:e,end:t,children:n,onClick:r,mobile:o=!1}){return u.jsx(he,{as:fA,to:e,end:t,size:o?"lg":"sm",variant:"ghost",justifyContent:o?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function xse(){return u.jsx(ge,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:u.jsxs(pr,{maxW:"container.lg",py:12,children:[u.jsxs(ca,{columns:{base:1,md:4},spacing:8,children:[u.jsxs(Ee,{spacing:3,children:[u.jsx(ue,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),u.jsx(ue,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison, déployable en démo isolée en un clic."})]}),u.jsxs(y2,{title:"Produit",children:[u.jsx(rg,{to:"/",children:"Présentation"}),u.jsx(rg,{to:"/tarifs",children:"Tarifs"}),u.jsx(rg,{to:"/register",children:"Créer un compte"})]}),u.jsxs(y2,{title:"Ressources",children:[u.jsx(kl,{href:"#",children:"Documentation"}),u.jsx(kl,{href:"#",children:"Statut"}),u.jsx(kl,{href:"#",children:"Sécurité"})]})]}),u.jsx(Yi,{my:8}),u.jsxs(we,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[u.jsxs(ue,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),u.jsxs(we,{spacing:6,fontSize:"sm",color:"gray.500",children:[u.jsx(kl,{href:"#",children:"Mentions légales"}),u.jsx(kl,{href:"#",children:"Confidentialité"})]})]})]})})}function y2({title:e,children:t}){return u.jsxs(Ee,{spacing:2,children:[u.jsx(ue,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function rg({to:e,children:t}){return u.jsx(va,{as:Kt,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function kl({href:e,children:t}){return u.jsx(va,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Sse(){return u.jsxs(_t,{direction:"column",minH:"100vh",children:[u.jsx(bse,{}),u.jsx(ge,{as:"main",flex:"1",children:u.jsx(uA,{})}),u.jsx(xse,{})]})}const wse=()=>u.jsx(ge,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:u.jsx(ge,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),b2="https://t.me/OMNEX_CORP";function kse(){const{logout:e,isAdmin:t,isClient:n}=yi(),r=gr(),{isOpen:o,onOpen:i,onClose:a}=ou(),s=async()=>{const d=t?"/admin/login":"/login";await e(),r(d,{replace:!0})},l=t?"Admin":n?"Client":"Utilisateur",c=t?"purple":"gray";return u.jsxs(ge,{minH:"100vh",bg:"chakra-subtle-bg",children:[u.jsxs(_t,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[u.jsxs(Dt,{size:"sm",as:Kt,to:"/app",children:["Omnex · ",t?"Espace admin":"Espace client"]}),u.jsxs(we,{spacing:1,display:{base:"none",md:"flex"},children:[n&&u.jsx(wr,{to:"/app/subscription",children:"Abonnement"}),(t||n)&&u.jsx(wr,{to:"/app/profile",children:"Profile"}),t&&u.jsx(wr,{to:"/app/demos",children:"Démos"}),t&&u.jsx(wr,{to:"/app/premium",children:"Premium"}),t&&u.jsx(wr,{to:"/app/codes",children:"Codes"})]}),u.jsx(Ws,{}),u.jsxs(we,{spacing:2,display:{base:"none",md:"flex"},children:[u.jsx(Gn,{colorScheme:c,children:l}),u.jsx(he,{as:"a",href:b2,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),u.jsx(da,{}),u.jsx(he,{size:"sm",variant:"outline",onClick:s,children:"Déconnexion"})]}),u.jsxs(we,{spacing:1,display:{base:"flex",md:"none"},children:[u.jsx(Gn,{colorScheme:c,children:l}),u.jsx(da,{}),u.jsx(Or,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:i,icon:u.jsx(wse,{})})]})]}),u.jsxs(a5,{isOpen:o,placement:"right",onClose:a,size:"xs",children:[u.jsx(xu,{}),u.jsxs(o1,{bg:"chakra-body-bg",children:[u.jsx(rm,{size:"lg"}),u.jsxs(bu,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",t?"Espace admin":"Espace client"]}),u.jsxs(yu,{py:6,children:[u.jsxs(Ee,{as:"nav",spacing:1,children:[n&&u.jsx(wr,{to:"/app/subscription",onClick:a,mobile:!0,children:"Abonnement"}),t&&u.jsx(wr,{to:"/app/demos",onClick:a,mobile:!0,children:"Démos"}),t&&u.jsx(wr,{to:"/app/premium",onClick:a,mobile:!0,children:"Premium"}),t&&u.jsx(wr,{to:"/app/codes",onClick:a,mobile:!0,children:"Codes"}),(t||n)&&u.jsx(wr,{to:"/app/profile",onClick:a,mobile:!0,children:"Profile"})]}),u.jsx(Yi,{my:6}),u.jsxs(Ee,{spacing:3,children:[u.jsx(he,{as:"a",href:b2,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:a,children:"Support"}),u.jsx(he,{variant:"outline",justifyContent:"flex-start",onClick:s,children:"Déconnexion"})]})]})]})]}),u.jsx(pr,{maxW:"container.xl",py:8,children:u.jsx(uA,{})})]})}function wr({to:e,children:t,onClick:n,mobile:r=!1}){return u.jsx(he,{as:fA,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}const Cse=["/app/demos","/app/premium","/app/codes"];function Pse({children:e}){const{isAuthenticated:t,initializing:n}=yi(),r=xa();if(n)return u.jsx(Xj,{h:"100vh",children:u.jsx(Hn,{})});if(t)return e;const o=Cse.some(i=>r.pathname.startsWith(i));return u.jsx(Qc,{to:o?"/admin/login":"/login",replace:!0})}function og({children:e}){const{isAdmin:t}=yi();return t?e:u.jsx(Qc,{to:"/app/subscription",replace:!0})}function _se(){const{role:e}=yi();switch(e){case"admin":return u.jsx(Qc,{to:"/app/demos",replace:!0});default:return u.jsx(Qc,{to:"/app/subscription",replace:!0})}}function Tse(){return u.jsxs(_ne,{children:[u.jsxs(Zt,{element:u.jsx(Sse,{}),children:[u.jsx(Zt,{path:"/",element:u.jsx(Bne,{})}),u.jsx(Zt,{path:"/tarifs",element:u.jsx(Wne,{})})]}),u.jsx(Zt,{path:"/login",element:u.jsx(Xae,{})}),u.jsx(Zt,{path:"/admin/login",element:u.jsx(Yae,{})}),u.jsx(Zt,{path:"/register",element:u.jsx(qae,{})}),u.jsxs(Zt,{path:"/app",element:u.jsx(Pse,{children:u.jsx(kse,{})}),children:[u.jsx(Zt,{index:!0,element:u.jsx(_se,{})}),u.jsx(Zt,{path:"demos",element:u.jsx(og,{children:u.jsx(ose,{})})}),u.jsx(Zt,{path:"codes",element:u.jsx(og,{children:u.jsx(cse,{})})}),u.jsx(Zt,{path:"premium",element:u.jsx(og,{children:u.jsx(sse,{})})}),u.jsx(Zt,{path:"subscription",element:u.jsx(use,{})}),u.jsx(Zt,{path:"profile",element:u.jsx(vse,{})})]}),u.jsx(Zt,{path:"*",element:u.jsx(Qc,{to:"/",replace:!0})})]})}const Ese={initialColorMode:"system",useSystemColorMode:!1},x2=Ib({config:Ese,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"}},semanticTokens:{colors:{"chakra-body-bg":{_light:"white",_dark:"#000000"},"chakra-subtle-bg":{_light:"gray.50",_dark:"#050508"},"bg-surface":{_light:"white",_dark:"#08080c"},"chakra-body-text":{_light:"gray.800",_dark:"#f5f5f7"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.100"}}},styles:{global:{body:{bg:"chakra-body-bg",color:"chakra-body-text"}}},components:{Card:{baseStyle:{container:{bg:"bg-surface",borderColor:"whiteAlpha.50"}}},Button:{baseStyle:{_dark:{bg:"gray.800",_hover:{bg:"gray.700"}}}},Input:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200",_focus:{borderColor:"whiteAlpha.400"}}}}},Select:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}}},Textarea:{baseStyle:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}},Modal:{baseStyle:{overlay:{_dark:{bg:"blackAlpha.800"}},content:{_dark:{bg:"#08080c"}}}}}},E5);ag.createRoot(document.getElementById("root")).render(u.jsxs(Rt.StrictMode,{children:[u.jsx(dH,{initialColorMode:x2.config.initialColorMode}),u.jsx(mee,{theme:x2,children:u.jsx(Xne,{children:u.jsx(zne,{children:u.jsx(Tse,{})})})})]})); diff --git a/web/dist/index.html b/web/dist/index.html deleted file mode 100644 index 173a480..0000000 --- a/web/dist/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - Omnex — Plateforme de gestion de commandes & livraison - - - - -
- - diff --git a/web/src/components/EditDomainModal.tsx b/web/src/components/EditDomainModal.tsx new file mode 100644 index 0000000..dd6abc2 --- /dev/null +++ b/web/src/components/EditDomainModal.tsx @@ -0,0 +1,92 @@ +import { useEffect, useState } from 'react' +import { + Button, + FormControl, + FormHelperText, + FormLabel, + Input, + Modal, + ModalBody, + ModalCloseButton, + ModalContent, + ModalFooter, + ModalHeader, + ModalOverlay, + useToast, +} from '@chakra-ui/react' +import { api, ApiError, type Demo } from '../lib/api' + +interface EditDomainModalProps { + demo: Demo | null + onClose: () => void + onSaved: () => void +} + +// Modal d'édition du domaine public d'une démo — partagé entre le dashboard +// Demos et le dashboard Premium. +export function EditDomainModal({ demo, onClose, onSaved }: EditDomainModalProps) { + const toast = useToast() + const [domain, setDomain] = useState('') + const [saving, setSaving] = useState(false) + + useEffect(() => { + setDomain(demo?.custom_domain ?? '') + }, [demo]) + + const handleClose = () => { + if (saving) return + onClose() + } + + const handleSave = async () => { + if (!demo) return + setSaving(true) + try { + await api.setDemoDomain(demo.id, domain.trim()) + toast({ status: 'success', title: 'Domaine mis à jour' }) + onSaved() + onClose() + } catch (err) { + const msg = err instanceof ApiError ? err.message : 'Erreur' + toast({ status: 'error', title: 'Mise à jour impossible', description: msg }) + } finally { + setSaving(false) + } + } + + return ( + + + + Domaine de la plateforme + + + + Domaine personnalisé + setDomain(e.target.value)} + isDisabled={saving} + fontFamily="mono" + /> + + Laissez vide pour revenir au domaine par défaut ({demo?.namespace}.<domaine + omnex>). Le DNS du domaine choisi doit pointer vers le cluster, et un certificat + TLS valide doit le couvrir — le certificat wildcard partagé ne couvre que le domaine + par défaut. + + + + + + + + + + ) +} diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts index 963ad44..abba4ea 100644 --- a/web/src/lib/api.ts +++ b/web/src/lib/api.ts @@ -58,6 +58,7 @@ export interface Demo { status: DemoStatus namespace: string url: string + custom_domain?: string type_abonnement?: string created_at: string expires_at: string @@ -186,6 +187,8 @@ export const api = { }), extendDemo: (id: string) => request('POST', `/demos/${id}/extend`), deleteDemo: (id: string) => request('DELETE', `/demos/${id}`), + setDemoDomain: (id: string, domain: string) => + request('POST', `/demos/${id}/domain`, { domain }), listCodes: () => request<{ items: CodeBuySub[] }>('GET', '/codes'), createCode: (username: string) => diff --git a/web/src/pages/backoffice/Demos.tsx b/web/src/pages/backoffice/Demos.tsx index 567b8d3..be39428 100644 --- a/web/src/pages/backoffice/Demos.tsx +++ b/web/src/pages/backoffice/Demos.tsx @@ -8,6 +8,7 @@ import { Heading, HStack, Icon, + IconButton, Link, Spacer, Spinner, @@ -21,11 +22,13 @@ import { Tr, useToast, } from '@chakra-ui/react' +import { EditIcon } from '@chakra-ui/icons' import { useNavigate } from 'react-router-dom' import { api, ApiError, type Demo, type DemoDetails } from '../../lib/api' import { statusColor, statusLabel, timeRemaining } from '../../lib/format' import { ConfirmDialog } from '../../components/ConfirmDialog' import { CreateDemoModal } from '../../components/CreateDemoModal' +import { EditDomainModal } from '../../components/EditDomainModal' import { ChevronIcon, PodStatusPanel } from '../../components/PodStatusPanel' // Un provisioning en cours => on rafraîchit régulièrement. @@ -41,6 +44,7 @@ export function Demos() { const [busy, setBusy] = useState(null) const [toDelete, setToDelete] = useState(null) const [createModalOpen, setCreateModalOpen] = useState(false) + const [editingDomain, setEditingDomain] = useState(null) // --- Ligne dépliée (état live des pods) --- const [expandedId, setExpandedId] = useState(null) @@ -209,18 +213,30 @@ export function Demos() { {statusLabel(d.status)}
@@ -203,6 +219,12 @@ export function PremiumDemos() {
- {d.status === 'ready' ? ( - e.stopPropagation()} - > - {d.url} - - ) : ( - - )} + + {d.status === 'ready' ? ( + e.stopPropagation()} + > + {d.url} + + ) : ( + + )} + } + size="xs" + variant="ghost" + onClick={(e) => { + e.stopPropagation() + setEditingDomain(d) + }} + /> + {isAlive(d.status) ? timeRemaining(d.expires_at) : '—'} @@ -293,6 +309,12 @@ export function Demos() { et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible. + + setEditingDomain(null)} + onSaved={() => void load()} + /> ) } diff --git a/web/src/pages/backoffice/PremiumDemos.tsx b/web/src/pages/backoffice/PremiumDemos.tsx index 12765bb..8205213 100644 --- a/web/src/pages/backoffice/PremiumDemos.tsx +++ b/web/src/pages/backoffice/PremiumDemos.tsx @@ -8,6 +8,7 @@ import { Heading, HStack, Icon, + IconButton, Link, Spacer, Spinner, @@ -21,11 +22,13 @@ import { Tr, useToast, } from '@chakra-ui/react' +import { EditIcon } from '@chakra-ui/icons' import { useNavigate } from 'react-router-dom' import { api, ApiError, type Demo, type DemoDetails } from '../../lib/api' import { statusColor, statusLabel } from '../../lib/format' import { ChevronIcon, PodStatusPanel } from '../../components/PodStatusPanel' import { CreateDemoModal } from '../../components/CreateDemoModal' +import { EditDomainModal } from '../../components/EditDomainModal' // Un provisioning en cours => on rafraîchit régulièrement. const POLL_MS = 5000 @@ -38,6 +41,7 @@ export function PremiumDemos() { const [demos, setDemos] = useState([]) const [loading, setLoading] = useState(true) const [createModalOpen, setCreateModalOpen] = useState(false) + const [editingDomain, setEditingDomain] = useState(null) // --- Ligne dépliée (état live des pods) --- const [expandedId, setExpandedId] = useState(null) @@ -165,18 +169,30 @@ export function PremiumDemos() { {statusLabel(d.status)} - {d.status === 'ready' ? ( - e.stopPropagation()} - > - {d.url} - - ) : ( - - )} + + {d.status === 'ready' ? ( + e.stopPropagation()} + > + {d.url} + + ) : ( + + )} + } + size="xs" + variant="ghost" + onClick={(e) => { + e.stopPropagation() + setEditingDomain(d) + }} + /> +
)} + + setEditingDomain(null)} + onSaved={() => void load()} + /> ) } diff --git a/web/tsconfig.tsbuildinfo b/web/tsconfig.tsbuildinfo index 57135b5..762449c 100644 --- a/web/tsconfig.tsbuildinfo +++ b/web/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/App.tsx","./src/main.tsx","./src/setupTests.ts","./src/theme.ts","./src/vite-env.d.ts","./src/components/BackofficeLayout.tsx","./src/components/ColorModeToggle.tsx","./src/components/ConfirmDialog.test.tsx","./src/components/ConfirmDialog.tsx","./src/components/CreateDemoModal.tsx","./src/components/Footer.tsx","./src/components/Header.tsx","./src/components/PasswordInput.tsx","./src/components/PodStatusPanel.tsx","./src/components/PublicLayout.tsx","./src/lib/api.ts","./src/lib/auth.tsx","./src/lib/format.test.ts","./src/lib/format.ts","./src/pages/AdminLogin.tsx","./src/pages/Landing.tsx","./src/pages/Login.tsx","./src/pages/Pricing.tsx","./src/pages/Register.tsx","./src/pages/backoffice/Codes.tsx","./src/pages/backoffice/Demos.tsx","./src/pages/backoffice/PremiumDemos.tsx","./src/pages/backoffice/Profile.tsx","./src/pages/backoffice/Subscription.tsx"],"version":"5.9.3"} \ No newline at end of file +{"root":["./src/App.tsx","./src/main.tsx","./src/setupTests.ts","./src/theme.ts","./src/vite-env.d.ts","./src/components/BackofficeLayout.tsx","./src/components/ColorModeToggle.tsx","./src/components/ConfirmDialog.test.tsx","./src/components/ConfirmDialog.tsx","./src/components/CreateDemoModal.tsx","./src/components/EditDomainModal.tsx","./src/components/Footer.tsx","./src/components/Header.tsx","./src/components/PasswordInput.tsx","./src/components/PodStatusPanel.tsx","./src/components/PublicLayout.tsx","./src/lib/api.ts","./src/lib/auth.tsx","./src/lib/format.test.ts","./src/lib/format.ts","./src/pages/AdminLogin.tsx","./src/pages/Landing.tsx","./src/pages/Login.tsx","./src/pages/Pricing.tsx","./src/pages/Register.tsx","./src/pages/backoffice/Codes.tsx","./src/pages/backoffice/Demos.tsx","./src/pages/backoffice/PremiumDemos.tsx","./src/pages/backoffice/Profile.tsx","./src/pages/backoffice/Subscription.tsx"],"version":"5.9.3"} \ No newline at end of file