diff --git a/control-plane/api/internal/auth/handler.go b/control-plane/api/internal/auth/handler.go index 8008eca..497265c 100644 --- a/control-plane/api/internal/auth/handler.go +++ b/control-plane/api/internal/auth/handler.go @@ -61,13 +61,16 @@ func (h *Handler) Login(c *gin.Context) { return } - token, err := h.startSession(c, user) - if err != nil { + // Le JWT n'est plus jamais renvoyé dans le corps JSON (pentest F-003) : + // uniquement posé en cookie HttpOnly par startSession. Le renvoyer ici + // permettait au frontend de le dupliquer en localStorage, annulant la + // protection HttpOnly contre un vol de session via XSS. + if _, err := h.startSession(c, user); err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": "erreur serveur"}) return } - c.JSON(http.StatusOK, gin.H{"token": token, "token_type": "Bearer", "role": user.Role}) + c.JSON(http.StatusOK, gin.H{"role": user.Role}) } // Me renvoie l'identité de la session courante (dont le rôle, pour le front). @@ -111,7 +114,18 @@ func (h *Handler) Register(c *gin.Context) { return } - if _, exists := h.users.ByUsername(req.Username); exists { + if existing, exists := h.users.ByUsername(req.Username); exists { + // Un statut 409 distinct de la création (201) permet d'énumérer les + // comptes existants (pentest F-002) — inévitable pour un flux + // d'inscription instantané sans vérification email (l'utilisateur a + // besoin de savoir qu'il doit choisir un autre nom). On protège au + // moins la cible à plus fort enjeu : un compte admin ne confirme + // jamais son existence, la réponse est indiscernable d'un nom + // d'utilisateur simplement invalide. + if existing.Role == RoleAdmin { + c.JSON(http.StatusBadRequest, gin.H{"error": "requête invalide"}) + return + } c.JSON(http.StatusConflict, gin.H{"error": "nom d'utilisateur déjà pris"}) return } @@ -127,12 +141,11 @@ func (h *Handler) Register(c *gin.Context) { return } - token, err := h.startSession(c, user) - if err != nil { + if _, err := h.startSession(c, user); err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": "erreur serveur"}) return } - c.JSON(http.StatusCreated, gin.H{"token": token, "token_type": "Bearer", "role": user.Role}) + c.JSON(http.StatusCreated, gin.H{"role": user.Role}) } // startSession ouvre une session Redis, signe le JWT et pose le cookie. diff --git a/control-plane/api/internal/config/config.go b/control-plane/api/internal/config/config.go index 056dfb4..9c5e771 100644 --- a/control-plane/api/internal/config/config.go +++ b/control-plane/api/internal/config/config.go @@ -16,7 +16,6 @@ type Config struct { RedisURL string // OMNEX_REDIS_URL (sessions), ex. redis://:pass@host:6379/0 DemoDomain string // domaine des démos DemoHTTPSPort string // port HTTPS public à afficher dans l'URL des démos (443 = omis, sinon ex. NodePort) - RegistrationCode string // OMNEX_REGISTRATION_CODE (vide = inscription ouverte) Kubeconfig string FrontendImage string BackendImage string @@ -47,7 +46,6 @@ func Load() (Config, error) { RedisURL: os.Getenv("OMNEX_REDIS_URL"), DemoDomain: getenv("OMNEX_DEMO_DOMAIN", "demo.omnex.app"), DemoHTTPSPort: getenv("OMNEX_DEMO_HTTPS_PORT", "443"), - RegistrationCode: os.Getenv("OMNEX_REGISTRATION_CODE"), Kubeconfig: os.Getenv("KUBECONFIG"), FrontendImage: os.Getenv("FRONTEND_IMAGE_APP"), BackendImage: os.Getenv("BACKEND_IMAGE_APP"), diff --git a/control-plane/api/internal/router/router.go b/control-plane/api/internal/router/router.go index c894f1b..3932f31 100644 --- a/control-plane/api/internal/router/router.go +++ b/control-plane/api/internal/router/router.go @@ -34,6 +34,29 @@ func New(d Deps) *gin.Engine { gin.SetMode(gin.ReleaseMode) } r := gin.New() + // Sans ça, Gin fait confiance par défaut au X-Forwarded-For fourni par + // N'IMPORTE QUEL client pour déterminer c.ClientIP() (utilisé par + // RateLimit) — un attaquant peut alors faire croire que chaque requête + // vient d'une IP différente en changeant juste cet en-tête, contournant + // intégralement la limitation de débit sur /auth/login et + // /auth/register (trouvé en pentest, voir F-005). + // + // L'API n'est jamais exposée directement (pas de "ports:" dans + // docker-compose.yml, voir docker/docker-compose.yml) — seul nginx/waf, + // sur le réseau Docker interne, peut l'atteindre (proxy_pass vers + // http://api:8080, voir docker/waf/nginx.conf qui construit le + // X-Forwarded-For via $proxy_add_x_forwarded_for : ajoute toujours la + // vraie IP vue par nginx en dernière position, sans jamais écraser une + // valeur fournie par le client). En ne faisant confiance qu'aux plages + // privées RFC1918 (réseau Docker interne), Gin ignore la partie du + // X-Forwarded-For contrôlée par le client et ne retient que la partie + // ajoutée par nginx. + if err := r.SetTrustedProxies([]string{"10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"}); err != nil { + // CIDR statiques et valides : ne peut arriver qu'en cas d'erreur de + // programmation (typo) — fatal au démarrage plutôt que de tourner + // avec la protection anti-spoofing désactivée sans s'en rendre compte. + panic(err) + } r.Use(gin.Recovery()) r.Use(httpx.SecurityHeaders()) r.Use(httpx.CORS(d.Cfg.AllowedOrigins)) diff --git a/web/dist/assets/index-yR0d-eKM.js b/web/dist/assets/index-DkbJvUQ3.js similarity index 61% rename from web/dist/assets/index-yR0d-eKM.js rename to web/dist/assets/index-DkbJvUQ3.js index b46bc9d..00ef6c3 100644 --- a/web/dist/assets/index-yR0d-eKM.js +++ b/web/dist/assets/index-DkbJvUQ3.js @@ -1,4 +1,4 @@ -var eA=Object.defineProperty;var Ux=e=>{throw TypeError(e)};var tA=(e,t,n)=>t in e?eA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hx=(e,t,n)=>tA(e,typeof t!="symbol"?t+"":t,n),Gx=(e,t,n)=>t.has(e)||Ux("Cannot "+n);var Kx=(e,t,n)=>(Gx(e,t,"read from private field"),n?n.call(e):t.get(e)),qx=(e,t,n)=>t.has(e)?Ux("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ch=(e,t,n,r)=>(Gx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function nA(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var nd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bk={exports:{}},Op={},Wk={exports:{}},Pe={};/** +var YE=Object.defineProperty;var Wx=e=>{throw TypeError(e)};var QE=(e,t,n)=>t in e?YE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Vx=(e,t,n)=>QE(e,typeof t!="symbol"?t+"":t,n),Ux=(e,t,n)=>t.has(e)||Wx("Cannot "+n);var Hx=(e,t,n)=>(Ux(e,t,"read from private field"),n?n.call(e):t.get(e)),Gx=(e,t,n)=>t.has(e)?Wx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ch=(e,t,n,r)=>(Ux(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function ZE(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var nd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nk={exports:{}},Op={},Dk={exports:{}},Pe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var eA=Object.defineProperty;var Ux=e=>{throw TypeError(e)};var tA=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var vu=Symbol.for("react.element"),rA=Symbol.for("react.portal"),iA=Symbol.for("react.fragment"),oA=Symbol.for("react.strict_mode"),aA=Symbol.for("react.profiler"),sA=Symbol.for("react.provider"),lA=Symbol.for("react.context"),cA=Symbol.for("react.forward_ref"),uA=Symbol.for("react.suspense"),dA=Symbol.for("react.memo"),fA=Symbol.for("react.lazy"),Xx=Symbol.iterator;function pA(e){return e===null||typeof e!="object"?null:(e=Xx&&e[Xx]||e["@@iterator"],typeof e=="function"?e:null)}var Vk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uk=Object.assign,Hk={};function cl(e,t,n){this.props=e,this.context=t,this.refs=Hk,this.updater=n||Vk}cl.prototype.isReactComponent={};cl.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")};cl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gk(){}Gk.prototype=cl.prototype;function o1(e,t,n){this.props=e,this.context=t,this.refs=Hk,this.updater=n||Vk}var a1=o1.prototype=new Gk;a1.constructor=o1;Uk(a1,cl.prototype);a1.isPureReactComponent=!0;var Yx=Array.isArray,Kk=Object.prototype.hasOwnProperty,s1={current:null},qk={key:!0,ref:!0,__self:!0,__source:!0};function Xk(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Kk.call(t,r)&&!qk.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{throw TypeError(e)};var tA=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yA=m,bA=Symbol.for("react.element"),xA=Symbol.for("react.fragment"),SA=Object.prototype.hasOwnProperty,wA=yA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kA={key:!0,ref:!0,__self:!0,__source:!0};function Qk(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)SA.call(t,r)&&!kA.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:bA,type:e,key:o,ref:a,props:i,_owner:wA.current}}Op.Fragment=xA;Op.jsx=Qk;Op.jsxs=Qk;Bk.exports=Op;var s=Bk.exports,H0={},Zk={exports:{}},Gn={},Jk={exports:{}},e5={};/** + */var mA=m,hA=Symbol.for("react.element"),gA=Symbol.for("react.fragment"),vA=Object.prototype.hasOwnProperty,yA=mA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bA={key:!0,ref:!0,__self:!0,__source:!0};function Kk(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)vA.call(t,r)&&!bA.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hA,type:e,key:o,ref:a,props:i,_owner:yA.current}}Op.Fragment=gA;Op.jsx=Kk;Op.jsxs=Kk;Nk.exports=Op;var s=Nk.exports,H0={},qk={exports:{}},Gn={},Xk={exports:{}},Yk={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var eA=Object.defineProperty;var Ux=e=>{throw TypeError(e)};var tA=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(F,M){var G=F.length;F.push(M);e:for(;0>>1,ae=F[Z];if(0>>1;Zi(ue,G))cei(Be,ue)?(F[Z]=Be,F[ce]=G,Z=ce):(F[Z]=ue,F[Q]=G,Z=Q);else if(cei(Be,G))F[Z]=Be,F[ce]=G,Z=ce;else break e}}return M}function i(F,M){var G=F.sortIndex-M.sortIndex;return G!==0?G:F.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,v=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=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(F){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=F)r(u),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(u)}}function w(F){if(b=!1,S(F),!v)if(n(c)!==null)v=!0,N(k);else{var M=n(u);M!==null&&R(w,M.startTime-F)}}function k(F,M){v=!1,b&&(b=!1,y(j),j=-1),h=!0;var G=p;try{for(S(M),f=n(c);f!==null&&(!(f.expirationTime>M)||F&&!W());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var ae=Z(f.expirationTime<=M);M=e.unstable_now(),typeof ae=="function"?f.callback=ae:f===n(c)&&r(c),S(M)}else r(c);f=n(c)}if(f!==null)var oe=!0;else{var Q=n(u);Q!==null&&R(w,Q.startTime-M),oe=!1}return oe}finally{f=null,p=G,h=!1}}var P=!1,_=null,j=-1,z=5,$=-1;function W(){return!(e.unstable_now()-$F||125Z?(F.sortIndex=G,t(u,F),n(c)===null&&F===n(u)&&(b?(y(j),j=-1):b=!0,R(w,G-Z))):(F.sortIndex=ae,t(c,F),v||h||(v=!0,N(k))),F},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(F){var M=p;return function(){var G=p;p=M;try{return F.apply(this,arguments)}finally{p=G}}}})(e5);Jk.exports=e5;var CA=Jk.exports;/** + */(function(e){function t(F,M){var G=F.length;F.push(M);e:for(;0>>1,ae=F[Z];if(0>>1;Zi(ue,G))cei(Be,ue)?(F[Z]=Be,F[ce]=G,Z=ce):(F[Z]=ue,F[Q]=G,Z=Q);else if(cei(Be,G))F[Z]=Be,F[ce]=G,Z=ce;else break e}}return M}function i(F,M){var G=F.sortIndex-M.sortIndex;return G!==0?G:F.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,v=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=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(F){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=F)r(u),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(u)}}function w(F){if(b=!1,S(F),!v)if(n(c)!==null)v=!0,N(k);else{var M=n(u);M!==null&&R(w,M.startTime-F)}}function k(F,M){v=!1,b&&(b=!1,y(j),j=-1),h=!0;var G=p;try{for(S(M),f=n(c);f!==null&&(!(f.expirationTime>M)||F&&!W());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var ae=Z(f.expirationTime<=M);M=e.unstable_now(),typeof ae=="function"?f.callback=ae:f===n(c)&&r(c),S(M)}else r(c);f=n(c)}if(f!==null)var oe=!0;else{var Q=n(u);Q!==null&&R(w,Q.startTime-M),oe=!1}return oe}finally{f=null,p=G,h=!1}}var P=!1,_=null,j=-1,z=5,$=-1;function W(){return!(e.unstable_now()-$F||125Z?(F.sortIndex=G,t(u,F),n(c)===null&&F===n(u)&&(b?(y(j),j=-1):b=!0,R(w,G-Z))):(F.sortIndex=ae,t(c,F),v||h||(v=!0,N(k))),F},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(F){var M=p;return function(){var G=p;p=M;try{return F.apply(this,arguments)}finally{p=G}}}})(Yk);Xk.exports=Yk;var xA=Xk.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var eA=Object.defineProperty;var Ux=e=>{throw TypeError(e)};var tA=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jA=m,Vn=CA;function U(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"),G0=Object.prototype.hasOwnProperty,PA=/^[: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]*$/,Zx={},Jx={};function _A(e){return G0.call(Jx,e)?!0:G0.call(Zx,e)?!1:PA.test(e)?Jx[e]=!0:(Zx[e]=!0,!1)}function TA(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 EA(e,t,n,r){if(t===null||typeof t>"u"||TA(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 Sn(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var en={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){en[e]=new Sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];en[t]=new Sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){en[e]=new Sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){en[e]=new Sn(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){en[e]=new Sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){en[e]=new Sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){en[e]=new Sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){en[e]=new Sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){en[e]=new Sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var c1=/[\-:]([a-z])/g;function u1(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(c1,u1);en[t]=new Sn(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(c1,u1);en[t]=new Sn(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(c1,u1);en[t]=new Sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){en[e]=new Sn(e,1,!1,e.toLowerCase(),null,!1,!1)});en.xlinkHref=new Sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){en[e]=new Sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function d1(e,t,n,r){var i=en.hasOwnProperty(t)?en[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),G0=Object.prototype.hasOwnProperty,wA=/^[: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]*$/,Yx={},Qx={};function kA(e){return G0.call(Qx,e)?!0:G0.call(Yx,e)?!1:wA.test(e)?Qx[e]=!0:(Yx[e]=!0,!1)}function CA(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 jA(e,t,n,r){if(t===null||typeof t>"u"||CA(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 Sn(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var en={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){en[e]=new Sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];en[t]=new Sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){en[e]=new Sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){en[e]=new Sn(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){en[e]=new Sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){en[e]=new Sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){en[e]=new Sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){en[e]=new Sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){en[e]=new Sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var l1=/[\-:]([a-z])/g;function c1(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(l1,c1);en[t]=new Sn(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(l1,c1);en[t]=new Sn(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(l1,c1);en[t]=new Sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){en[e]=new Sn(e,1,!1,e.toLowerCase(),null,!1,!1)});en.xlinkHref=new Sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){en[e]=new Sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function u1(e,t,n,r){var i=en.hasOwnProperty(t)?en[t]:null;(i!==null?i.type!==0:r||!(2l||i[a]!==o[l]){var c=` -`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{fh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wl(e):""}function AA(e){switch(e.tag){case 5:return Wl(e.type);case 16:return Wl("Lazy");case 13:return Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 2:case 15:return e=ph(e.type,!1),e;case 11:return e=ph(e.type.render,!1),e;case 1:return e=ph(e.type,!0),e;default:return""}}function Y0(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 Ya:return"Fragment";case Xa:return"Portal";case K0:return"Profiler";case f1:return"StrictMode";case q0:return"Suspense";case X0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case r5:return(e.displayName||"Context")+".Consumer";case n5:return(e._context.displayName||"Context")+".Provider";case p1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case m1:return t=e.displayName||null,t!==null?t:Y0(e.type)||"Memo";case Vi:t=e._payload,e=e._init;try{return Y0(e(t))}catch{}}return null}function $A(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 Y0(t);case 8:return t===f1?"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 mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function o5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zA(e){var t=o5(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.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 od(e){e._valueTracker||(e._valueTracker=zA(e))}function a5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=o5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ff(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 Q0(e,t){var n=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function t2(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mo(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 s5(e,t){t=t.checked,t!=null&&d1(e,"checked",t,!1)}function Z0(e,t){s5(e,t);var n=mo(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")?J0(e,t.type,n):t.hasOwnProperty("defaultValue")&&J0(e,t.type,mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function n2(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 J0(e,t,n){(t!=="number"||Ff(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vl=Array.isArray;function Cs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ad.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ac(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ic={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},RA=["Webkit","ms","Moz","O"];Object.keys(ic).forEach(function(e){RA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ic[t]=ic[e]})});function d5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ic.hasOwnProperty(e)&&ic[e]?(""+t).trim():t+"px"}function f5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=d5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var IA=ht({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 ng(e,t){if(t){if(IA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function rg(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 ig=null;function h1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var og=null,js=null,Ps=null;function o2(e){if(e=xu(e)){if(typeof og!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Up(t),og(e.stateNode,e.type,t))}}function p5(e){js?Ps?Ps.push(e):Ps=[e]:js=e}function m5(){if(js){var e=js,t=Ps;if(Ps=js=null,o2(e),t)for(e=0;e>>=0,e===0?32:31-(HA(e)/GA|0)|0}var sd=64,ld=4194304;function Ul(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 Uf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Ul(l):(o&=a,o!==0&&(r=Ul(o)))}else a=n&~i,a!==0?r=Ul(a):o!==0&&(r=Ul(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 yu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=n}function YA(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=ac),m2=" ",h2=!1;function I5(e,t){switch(e){case"keyup":return C9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function P9(e,t){switch(e){case"compositionend":return M5(t);case"keypress":return t.which!==32?null:(h2=!0,m2);case"textInput":return e=t.data,e===m2&&h2?null:e;default:return null}}function _9(e,t){if(Qa)return e==="compositionend"||!k1&&I5(e,t)?(e=z5(),Jd=x1=Yi=null,Qa=!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=b2(n)}}function O5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F5(){for(var e=window,t=Ff();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ff(e.document)}return t}function C1(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 L9(e){var t=F5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O5(n.ownerDocument.documentElement,n)){if(r!==null&&C1(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=x2(n,o);var a=x2(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,Za=null,dg=null,lc=null,fg=!1;function S2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fg||Za==null||Za!==Ff(r)||(r=Za,"selectionStart"in r&&C1(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}),lc&&Lc(lc,r)||(lc=r,r=Kf(dg,"onSelect"),0ts||(e.current=yg[ts],yg[ts]=null,ts--)}function Ye(e,t){ts++,yg[ts]=e.current,e.current=t}var ho={},pn=Co(ho),Tn=Co(!1),ga=ho;function Ws(e,t){var n=e.type.contextTypes;if(!n)return ho;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function En(e){return e=e.childContextTypes,e!=null}function Xf(){tt(Tn),tt(pn)}function T2(e,t,n){if(pn.current!==ho)throw Error(U(168));Ye(pn,t),Ye(Tn,n)}function X5(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,$A(e)||"Unknown",i));return ht({},n,r)}function Yf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,ga=pn.current,Ye(pn,e),Ye(Tn,Tn.current),!0}function E2(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=X5(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,tt(Tn),tt(pn),Ye(pn,e)):tt(Tn),Ye(Tn,n)}var oi=null,Hp=!1,_h=!1;function Y5(e){oi===null?oi=[e]:oi.push(e)}function q9(e){Hp=!0,Y5(e)}function jo(){if(!_h&&oi!==null){_h=!0;var e=0,t=Ue;try{var n=oi;for(Ue=1;e>=a,i-=a,ui=1<<32-jr(t)+i|n<j?(z=_,_=null):z=_.sibling;var $=p(y,_,S[j],w);if($===null){_===null&&(_=z);break}e&&_&&$.alternate===null&&t(y,_),g=o($,g,j),P===null?k=$:P.sibling=$,P=$,_=z}if(j===S.length)return n(y,_),lt&&Wo(y,j),k;if(_===null){for(;jj?(z=_,_=null):z=_.sibling;var W=p(y,_,$.value,w);if(W===null){_===null&&(_=z);break}e&&_&&W.alternate===null&&t(y,_),g=o(W,g,j),P===null?k=W:P.sibling=W,P=W,_=z}if($.done)return n(y,_),lt&&Wo(y,j),k;if(_===null){for(;!$.done;j++,$=S.next())$=f(y,$.value,w),$!==null&&(g=o($,g,j),P===null?k=$:P.sibling=$,P=$);return lt&&Wo(y,j),k}for(_=r(y,_);!$.done;j++,$=S.next())$=h(_,y,j,$.value,w),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?j:$.key),g=o($,g,j),P===null?k=$:P.sibling=$,P=$);return e&&_.forEach(function(Y){return t(y,Y)}),lt&&Wo(y,j),k}function x(y,g,S,w){if(typeof S=="object"&&S!==null&&S.type===Ya&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case id:e:{for(var k=S.key,P=g;P!==null;){if(P.key===k){if(k=S.type,k===Ya){if(P.tag===7){n(y,P.sibling),g=i(P,S.props.children),g.return=y,y=g;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vi&&z2(k)===P.type){n(y,P.sibling),g=i(P,S.props),g.ref=Al(y,P,S),g.return=y,y=g;break e}n(y,P);break}else t(y,P);P=P.sibling}S.type===Ya?(g=oa(S.props.children,y.mode,w,S.key),g.return=y,y=g):(w=lf(S.type,S.key,S.props,null,y.mode,w),w.ref=Al(y,g,S),w.return=y,y=w)}return a(y);case Xa:e:{for(P=S.key;g!==null;){if(g.key===P)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(y,g.sibling),g=i(g,S.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=Mh(S,y.mode,w),g.return=y,y=g}return a(y);case Vi:return P=S._init,x(y,g,P(S._payload),w)}if(Vl(S))return v(y,g,S,w);if(jl(S))return b(y,g,S,w);hd(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,S),g.return=y,y=g):(n(y,g),g=Ih(S,y.mode,w),g.return=y,y=g),a(y)):n(y,g)}return x}var Us=eC(!0),tC=eC(!1),Jf=Co(null),ep=null,is=null,T1=null;function E1(){T1=is=ep=null}function A1(e){var t=Jf.current;tt(Jf),e._currentValue=t}function Sg(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 Ts(e,t){ep=e,T1=is=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_n=!0),e.firstContext=null)}function cr(e){var t=e._currentValue;if(T1!==e)if(e={context:e,memoizedValue:t,next:null},is===null){if(ep===null)throw Error(U(308));is=e,ep.dependencies={lanes:0,firstContext:e}}else is=is.next=e;return t}var Yo=null;function $1(e){Yo===null?Yo=[e]:Yo.push(e)}function nC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$1(t)):(n.next=i.next,i.next=n),t.interleaved=n,ki(e,r)}function ki(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 Ui=!1;function z1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rC(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 hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ki(e,n)}return i=r.interleaved,i===null?(t.next=t,$1(r)):(t.next=i.next,i.next=t),r.interleaved=t,ki(e,n)}function tf(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,v1(e,n)}}function R2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=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};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 tp(e,t,n,r){var i=e.updateQueue;Ui=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=i.baseState;a=0,d=u=c=null,l=o;do{var p=l.lane,h=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,b=l;switch(p=t,h=n,b.tag){case 1:if(v=b.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=ht({},f,p);break e;case 2:Ui=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,a|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(c=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ba|=a,e.lanes=a,e.memoizedState=f}}function I2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Eh.transition;Eh.transition={};try{e(!1),t()}finally{Ue=n,Eh.transition=r}}function xC(){return ur().memoizedState}function Z9(e,t,n){var r=uo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},SC(e))wC(t,n);else if(n=nC(e,t,n,r),n!==null){var i=hn();Pr(n,e,r,i),kC(n,t,r)}}function J9(e,t,n){var r=uo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(SC(e))wC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Er(l,a)){var c=t.interleaved;c===null?(i.next=i,$1(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=nC(e,t,i,r),n!==null&&(i=hn(),Pr(n,e,r,i),kC(n,t,r))}}function SC(e){var t=e.alternate;return e===pt||t!==null&&t===pt}function wC(e,t){cc=rp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,v1(e,n)}}var ip={readContext:cr,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useInsertionEffect:nn,useLayoutEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useMutableSource:nn,useSyncExternalStore:nn,useId:nn,unstable_isNewReconciler:!1},e$={readContext:cr,useCallback:function(e,t){return Lr().memoizedState=[e,t===void 0?null:t],e},useContext:cr,useEffect:L2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rf(4194308,4,hC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rf(4194308,4,e,t)},useInsertionEffect:function(e,t){return rf(4,2,e,t)},useMemo:function(e,t){var n=Lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lr();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=Z9.bind(null,pt,e),[r.memoizedState,e]},useRef:function(e){var t=Lr();return e={current:e},t.memoizedState=e},useState:M2,useDebugValue:F1,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=M2(!1),t=e[0];return e=Q9.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pt,i=Lr();if(lt){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Vt===null)throw Error(U(349));ya&30||sC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,L2(cC.bind(null,r,o,e),[e]),r.flags|=2048,Uc(9,lC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Lr(),t=Vt.identifierPrefix;if(lt){var n=di,r=ui;n=(r&~(1<<32-jr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wc++,0")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{fh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wl(e):""}function PA(e){switch(e.tag){case 5:return Wl(e.type);case 16:return Wl("Lazy");case 13:return Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 2:case 15:return e=ph(e.type,!1),e;case 11:return e=ph(e.type.render,!1),e;case 1:return e=ph(e.type,!0),e;default:return""}}function Y0(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 Ya:return"Fragment";case Xa:return"Portal";case K0:return"Profiler";case d1:return"StrictMode";case q0:return"Suspense";case X0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jk:return(e.displayName||"Context")+".Consumer";case Zk:return(e._context.displayName||"Context")+".Provider";case f1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case p1:return t=e.displayName||null,t!==null?t:Y0(e.type)||"Memo";case Vi:t=e._payload,e=e._init;try{return Y0(e(t))}catch{}}return null}function _A(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 Y0(t);case 8:return t===d1?"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 mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TA(e){var t=t5(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.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 od(e){e._valueTracker||(e._valueTracker=TA(e))}function n5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ff(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 Q0(e,t){var n=t.checked;return ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mo(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 r5(e,t){t=t.checked,t!=null&&u1(e,"checked",t,!1)}function Z0(e,t){r5(e,t);var n=mo(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")?J0(e,t.type,n):t.hasOwnProperty("defaultValue")&&J0(e,t.type,mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function e2(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 J0(e,t,n){(t!=="number"||Ff(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vl=Array.isArray;function Cs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ad.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ac(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ic={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},EA=["Webkit","ms","Moz","O"];Object.keys(ic).forEach(function(e){EA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ic[t]=ic[e]})});function s5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ic.hasOwnProperty(e)&&ic[e]?(""+t).trim():t+"px"}function l5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=s5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var AA=ht({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 ng(e,t){if(t){if(AA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function rg(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 ig=null;function m1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var og=null,js=null,Ps=null;function r2(e){if(e=xu(e)){if(typeof og!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Up(t),og(e.stateNode,e.type,t))}}function c5(e){js?Ps?Ps.push(e):Ps=[e]:js=e}function u5(){if(js){var e=js,t=Ps;if(Ps=js=null,r2(e),t)for(e=0;e>>=0,e===0?32:31-(BA(e)/WA|0)|0}var sd=64,ld=4194304;function Ul(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 Uf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Ul(l):(o&=a,o!==0&&(r=Ul(o)))}else a=n&~i,a!==0?r=Ul(a):o!==0&&(r=Ul(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 yu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=n}function GA(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=ac),f2=" ",p2=!1;function A5(e,t){switch(e){case"keyup":return x9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qa=!1;function w9(e,t){switch(e){case"compositionend":return $5(t);case"keypress":return t.which!==32?null:(p2=!0,f2);case"textInput":return e=t.data,e===f2&&p2?null:e;default:return null}}function k9(e,t){if(Qa)return e==="compositionend"||!w1&&A5(e,t)?(e=T5(),Jd=b1=Yi=null,Qa=!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=v2(n)}}function M5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?M5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function L5(){for(var e=window,t=Ff();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ff(e.document)}return t}function k1(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 z9(e){var t=L5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&M5(n.ownerDocument.documentElement,n)){if(r!==null&&k1(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=y2(n,o);var a=y2(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,Za=null,dg=null,lc=null,fg=!1;function b2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fg||Za==null||Za!==Ff(r)||(r=Za,"selectionStart"in r&&k1(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}),lc&&Lc(lc,r)||(lc=r,r=Kf(dg,"onSelect"),0ts||(e.current=yg[ts],yg[ts]=null,ts--)}function Ye(e,t){ts++,yg[ts]=e.current,e.current=t}var ho={},pn=Co(ho),Tn=Co(!1),ga=ho;function Ws(e,t){var n=e.type.contextTypes;if(!n)return ho;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function En(e){return e=e.childContextTypes,e!=null}function Xf(){tt(Tn),tt(pn)}function P2(e,t,n){if(pn.current!==ho)throw Error(U(168));Ye(pn,t),Ye(Tn,n)}function H5(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,_A(e)||"Unknown",i));return ht({},n,r)}function Yf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,ga=pn.current,Ye(pn,e),Ye(Tn,Tn.current),!0}function _2(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=H5(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,tt(Tn),tt(pn),Ye(pn,e)):tt(Tn),Ye(Tn,n)}var oi=null,Hp=!1,_h=!1;function G5(e){oi===null?oi=[e]:oi.push(e)}function U9(e){Hp=!0,G5(e)}function jo(){if(!_h&&oi!==null){_h=!0;var e=0,t=Ue;try{var n=oi;for(Ue=1;e>=a,i-=a,ui=1<<32-jr(t)+i|n<j?(z=_,_=null):z=_.sibling;var $=p(y,_,S[j],w);if($===null){_===null&&(_=z);break}e&&_&&$.alternate===null&&t(y,_),g=o($,g,j),P===null?k=$:P.sibling=$,P=$,_=z}if(j===S.length)return n(y,_),lt&&Wo(y,j),k;if(_===null){for(;jj?(z=_,_=null):z=_.sibling;var W=p(y,_,$.value,w);if(W===null){_===null&&(_=z);break}e&&_&&W.alternate===null&&t(y,_),g=o(W,g,j),P===null?k=W:P.sibling=W,P=W,_=z}if($.done)return n(y,_),lt&&Wo(y,j),k;if(_===null){for(;!$.done;j++,$=S.next())$=f(y,$.value,w),$!==null&&(g=o($,g,j),P===null?k=$:P.sibling=$,P=$);return lt&&Wo(y,j),k}for(_=r(y,_);!$.done;j++,$=S.next())$=h(_,y,j,$.value,w),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?j:$.key),g=o($,g,j),P===null?k=$:P.sibling=$,P=$);return e&&_.forEach(function(Y){return t(y,Y)}),lt&&Wo(y,j),k}function x(y,g,S,w){if(typeof S=="object"&&S!==null&&S.type===Ya&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case id:e:{for(var k=S.key,P=g;P!==null;){if(P.key===k){if(k=S.type,k===Ya){if(P.tag===7){n(y,P.sibling),g=i(P,S.props.children),g.return=y,y=g;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Vi&&A2(k)===P.type){n(y,P.sibling),g=i(P,S.props),g.ref=Al(y,P,S),g.return=y,y=g;break e}n(y,P);break}else t(y,P);P=P.sibling}S.type===Ya?(g=oa(S.props.children,y.mode,w,S.key),g.return=y,y=g):(w=lf(S.type,S.key,S.props,null,y.mode,w),w.ref=Al(y,g,S),w.return=y,y=w)}return a(y);case Xa:e:{for(P=S.key;g!==null;){if(g.key===P)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(y,g.sibling),g=i(g,S.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=Mh(S,y.mode,w),g.return=y,y=g}return a(y);case Vi:return P=S._init,x(y,g,P(S._payload),w)}if(Vl(S))return v(y,g,S,w);if(jl(S))return b(y,g,S,w);hd(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,S),g.return=y,y=g):(n(y,g),g=Ih(S,y.mode,w),g.return=y,y=g),a(y)):n(y,g)}return x}var Us=Y5(!0),Q5=Y5(!1),Jf=Co(null),ep=null,is=null,_1=null;function T1(){_1=is=ep=null}function E1(e){var t=Jf.current;tt(Jf),e._currentValue=t}function Sg(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 Ts(e,t){ep=e,_1=is=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_n=!0),e.firstContext=null)}function cr(e){var t=e._currentValue;if(_1!==e)if(e={context:e,memoizedValue:t,next:null},is===null){if(ep===null)throw Error(U(308));is=e,ep.dependencies={lanes:0,firstContext:e}}else is=is.next=e;return t}var Yo=null;function A1(e){Yo===null?Yo=[e]:Yo.push(e)}function Z5(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,A1(t)):(n.next=i.next,i.next=n),t.interleaved=n,ki(e,r)}function ki(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 Ui=!1;function $1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function J5(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 hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ki(e,n)}return i=r.interleaved,i===null?(t.next=t,A1(r)):(t.next=i.next,i.next=t),r.interleaved=t,ki(e,n)}function tf(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,g1(e,n)}}function $2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=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};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 tp(e,t,n,r){var i=e.updateQueue;Ui=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=i.baseState;a=0,d=u=c=null,l=o;do{var p=l.lane,h=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,b=l;switch(p=t,h=n,b.tag){case 1:if(v=b.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=ht({},f,p);break e;case 2:Ui=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,a|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(c=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ba|=a,e.lanes=a,e.memoizedState=f}}function z2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Eh.transition;Eh.transition={};try{e(!1),t()}finally{Ue=n,Eh.transition=r}}function gC(){return ur().memoizedState}function q9(e,t,n){var r=uo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vC(e))yC(t,n);else if(n=Z5(e,t,n,r),n!==null){var i=hn();Pr(n,e,r,i),bC(n,t,r)}}function X9(e,t,n){var r=uo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vC(e))yC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Er(l,a)){var c=t.interleaved;c===null?(i.next=i,A1(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Z5(e,t,i,r),n!==null&&(i=hn(),Pr(n,e,r,i),bC(n,t,r))}}function vC(e){var t=e.alternate;return e===pt||t!==null&&t===pt}function yC(e,t){cc=rp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,g1(e,n)}}var ip={readContext:cr,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useInsertionEffect:nn,useLayoutEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useMutableSource:nn,useSyncExternalStore:nn,useId:nn,unstable_isNewReconciler:!1},Y9={readContext:cr,useCallback:function(e,t){return Lr().memoizedState=[e,t===void 0?null:t],e},useContext:cr,useEffect:I2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rf(4194308,4,dC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rf(4194308,4,e,t)},useInsertionEffect:function(e,t){return rf(4,2,e,t)},useMemo:function(e,t){var n=Lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lr();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=q9.bind(null,pt,e),[r.memoizedState,e]},useRef:function(e){var t=Lr();return e={current:e},t.memoizedState=e},useState:R2,useDebugValue:O1,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=R2(!1),t=e[0];return e=K9.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pt,i=Lr();if(lt){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Vt===null)throw Error(U(349));ya&30||rC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,I2(oC.bind(null,r,o,e),[e]),r.flags|=2048,Uc(9,iC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Lr(),t=Vt.identifierPrefix;if(lt){var n=di,r=ui;n=(r&~(1<<32-jr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wc++,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[Fr]=t,e[Oc]=r,RC(e,t,!1,!1),t.stateNode=e;e:{switch(a=rg(n,r),n){case"dialog":Je("cancel",e),Je("close",e),i=r;break;case"iframe":case"object":case"embed":Je("load",e),i=r;break;case"video":case"audio":for(i=0;iKs&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304)}else{if(!r)if(e=np(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$l(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!lt)return rn(t),null}else 2*Ct()-o.renderingStartTime>Ks&&n!==1073741824&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ct(),t.sibling=null,n=dt.current,Ye(dt,r?n&1|2:n&1),t):(rn(t),null);case 22:case 23:return G1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nn&1073741824&&(rn(t),t.subtreeFlags&6&&(t.flags|=8192)):rn(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function l$(e,t){switch(P1(t),t.tag){case 1:return En(t.type)&&Xf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hs(),tt(Tn),tt(pn),M1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return I1(t),null;case 13:if(tt(dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tt(dt),null;case 4:return Hs(),null;case 10:return A1(t.type._context),null;case 22:case 23:return G1(),null;case 24:return null;default:return null}}var vd=!1,ln=!1,c$=typeof WeakSet=="function"?WeakSet:Set,ie=null;function os(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){yt(e,t,r)}else n.current=null}function Ag(e,t,n){try{n()}catch(r){yt(e,t,r)}}var K2=!1;function u$(e,t){if(pg=Hf,e=F5(),C1(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(c=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&&++u===i&&(l=a),p===o&&++d===r&&(c=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(mg={focusedElem:e,selectionRange:n},Hf=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,x=v.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:xr(t.type,b),x);y.__reactInternalSnapshotBeforeUpdate=g}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(U(163))}}catch(w){yt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return v=K2,K2=!1,v}function uc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ag(t,n,o)}i=i.next}while(i!==r)}}function qp(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 $g(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 LC(e){var t=e.alternate;t!==null&&(e.alternate=null,LC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fr],delete t[Oc],delete t[vg],delete t[G9],delete t[K9])),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 NC(e){return e.tag===5||e.tag===3||e.tag===4}function q2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NC(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 zg(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=qf));else if(r!==4&&(e=e.child,e!==null))for(zg(e,t,n),e=e.sibling;e!==null;)zg(e,t,n),e=e.sibling}function Rg(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(Rg(e,t,n),e=e.sibling;e!==null;)Rg(e,t,n),e=e.sibling}var Kt=null,Sr=!1;function Li(e,t,n){for(n=n.child;n!==null;)DC(e,t,n),n=n.sibling}function DC(e,t,n){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(Fp,n)}catch{}switch(n.tag){case 5:ln||os(n,t);case 6:var r=Kt,i=Sr;Kt=null,Li(e,t,n),Kt=r,Sr=i,Kt!==null&&(Sr?(e=Kt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Kt.removeChild(n.stateNode));break;case 18:Kt!==null&&(Sr?(e=Kt,n=n.stateNode,e.nodeType===8?Ph(e.parentNode,n):e.nodeType===1&&Ph(e,n),Ic(e)):Ph(Kt,n.stateNode));break;case 4:r=Kt,i=Sr,Kt=n.stateNode.containerInfo,Sr=!0,Li(e,t,n),Kt=r,Sr=i;break;case 0:case 11:case 14:case 15:if(!ln&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Ag(n,t,a),i=i.next}while(i!==r)}Li(e,t,n);break;case 1:if(!ln&&(os(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){yt(n,t,l)}Li(e,t,n);break;case 21:Li(e,t,n);break;case 22:n.mode&1?(ln=(r=ln)||n.memoizedState!==null,Li(e,t,n),ln=r):Li(e,t,n);break;default:Li(e,t,n)}}function X2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new c$),t.forEach(function(r){var i=b$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*f$(r/1960))-r,10e?16:e,Qi===null)var r=!1;else{if(e=Qi,Qi=null,sp=0,Re&6)throw Error(U(331));var i=Re;for(Re|=4,ie=e.current;ie!==null;){var o=ie,a=o.child;if(ie.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cCt()-U1?ia(e,0):V1|=n),An(e,t)}function GC(e,t){t===0&&(e.mode&1?(t=ld,ld<<=1,!(ld&130023424)&&(ld=4194304)):t=1);var n=hn();e=ki(e,t),e!==null&&(yu(e,t,n),An(e,n))}function y$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),GC(e,n)}function b$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),GC(e,n)}var KC;KC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tn.current)_n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _n=!1,a$(e,t,n);_n=!!(e.flags&131072)}else _n=!1,lt&&t.flags&1048576&&Q5(t,Zf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;of(e,t),e=t.pendingProps;var i=Ws(t,pn.current);Ts(t,n),i=N1(null,t,r,e,i,n);var o=D1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,En(r)?(o=!0,Yf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,z1(t),i.updater=Kp,t.stateNode=i,i._reactInternals=t,kg(t,r,e,n),t=Pg(null,t,r,!0,o,n)):(t.tag=0,lt&&o&&j1(t),mn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(of(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=S$(r),e=xr(r,e),i){case 0:t=jg(null,t,r,e,n);break e;case 1:t=U2(null,t,r,e,n);break e;case 11:t=W2(null,t,r,e,n);break e;case 14:t=V2(null,t,r,xr(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),jg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),U2(e,t,r,i,n);case 3:e:{if(AC(t),e===null)throw Error(U(387));r=t.pendingProps,o=t.memoizedState,i=o.element,rC(e,t),tp(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Gs(Error(U(423)),t),t=H2(e,t,r,n,i);break e}else if(r!==i){i=Gs(Error(U(424)),t),t=H2(e,t,r,n,i);break e}else for(Dn=so(t.stateNode.containerInfo.firstChild),On=t,lt=!0,wr=null,n=tC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vs(),r===i){t=Ci(e,t,n);break e}mn(e,t,r,n)}t=t.child}return t;case 5:return iC(t),e===null&&xg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,hg(r,i)?a=null:o!==null&&hg(r,o)&&(t.flags|=32),EC(e,t),mn(e,t,a,n),t.child;case 6:return e===null&&xg(t),null;case 13:return $C(e,t,n);case 4:return R1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,n):mn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),W2(e,t,r,i,n);case 7:return mn(e,t,t.pendingProps,n),t.child;case 8:return mn(e,t,t.pendingProps.children,n),t.child;case 12:return mn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Ye(Jf,r._currentValue),r._currentValue=a,o!==null)if(Er(o.value,a)){if(o.children===i.children&&!Tn.current){t=Ci(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=hi(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Sg(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Sg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}mn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ts(t,n),i=cr(i),r=r(i),t.flags|=1,mn(e,t,r,n),t.child;case 14:return r=t.type,i=xr(r,t.pendingProps),i=xr(r.type,i),V2(e,t,r,i,n);case 15:return _C(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),of(e,t),t.tag=1,En(r)?(e=!0,Yf(t)):e=!1,Ts(t,n),CC(t,r,i),kg(t,r,i,n),Pg(null,t,r,!0,e,n);case 19:return zC(e,t,n);case 22:return TC(e,t,n)}throw Error(U(156,t.tag))};function qC(e,t){return S5(e,t)}function x$(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 or(e,t,n,r){return new x$(e,t,n,r)}function q1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function S$(e){if(typeof e=="function")return q1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===p1)return 11;if(e===m1)return 14}return 2}function fo(e,t){var n=e.alternate;return n===null?(n=or(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 lf(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")q1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ya:return oa(n.children,i,o,t);case f1:a=8,i|=8;break;case K0:return e=or(12,n,t,i|2),e.elementType=K0,e.lanes=o,e;case q0:return e=or(13,n,t,i),e.elementType=q0,e.lanes=o,e;case X0:return e=or(19,n,t,i),e.elementType=X0,e.lanes=o,e;case i5:return Yp(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case n5:a=10;break e;case r5:a=9;break e;case p1:a=11;break e;case m1:a=14;break e;case Vi:a=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=or(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function oa(e,t,n,r){return e=or(7,e,r,t),e.lanes=n,e}function Yp(e,t,n,r){return e=or(22,e,r,t),e.elementType=i5,e.lanes=n,e.stateNode={isHidden:!1},e}function Ih(e,t,n){return e=or(6,e,null,t),e.lanes=n,e}function Mh(e,t,n){return t=or(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function w$(e,t,n,r,i){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=hh(0),this.expirationTimes=hh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function X1(e,t,n,r,i,o,a,l,c){return e=new w$(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=or(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},z1(o),e}function k$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ZC)}catch(e){console.error(e)}}ZC(),Zk.exports=Gn;var J1=Zk.exports,rS=J1;H0.createRoot=rS.createRoot,H0.hydrateRoot=rS.hydrateRoot;function JC(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function T$(){return!!(globalThis!=null&&globalThis.document)}function e6(e){return e.parentElement&&e6(e.parentElement)?!0:e.hidden}function E$(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function A$(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function $$(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 i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const de=e=>e?"":void 0,gi=e=>e?!0:void 0;function Dg(e){return Array.isArray(e)}function Nt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Dg(e)}function z$(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function R$(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Og(e){if(e==null)return e;const{unitless:t}=R$(e);return t||typeof e=="number"?`${e}px`:e}const t6=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ey=e=>Object.fromEntries(Object.entries(e).sort(t6));function iS(e){const t=ey(e);return Object.assign(Object.values(t),t)}function I$(e){const t=Object.keys(ey(e));return new Set(t)}function oS(e){if(!e)return e;e=Og(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Gl(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Og(e)})`),t&&n.push("and",`(max-width: ${Og(t)})`),n.join(" ")}function M$(e){if(!e)return null;e.base=e.base??"0px";const t=iS(e),n=Object.entries(e).sort(t6).map(([o,a],l,c)=>{let[,u]=c[l+1]??[];return u=parseFloat(u)>0?oS(u):void 0,{_minW:oS(a),breakpoint:o,minW:a,maxW:u,maxWQuery:Gl(null,u),minWQuery:Gl(a),minMaxQuery:Gl(a,u)}}),r=I$(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const a=Object.keys(o);return a.length>0&&a.every(l=>r.has(l))},asObject:ey(e),asArray:iS(e),details:n,get(o){return n.find(a=>a.breakpoint===o)},media:[null,...t.map(o=>Gl(o)).slice(1)],toArrayValue(o){if(!Nt(o))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>o[l]??null);for(;z$(a)===null;)a.pop();return a},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((a,l,c)=>{const u=i[c];return u!=null&&l!=null&&(a[u]=l),a},{})}}}function L$(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function he(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function ty(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function ny(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function N$(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function _e(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,l=m.createContext(a);l.displayName=t;function c(){var d;const u=m.useContext(l);if(!u&&n){const f=new Error(o??N$(r,i));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,c),f}return u}return[l.Provider,c,l]}const V=(...e)=>e.filter(Boolean).join(" "),D$=e=>e.hasAttribute("tabindex");function O$(e){if(!JC(e)||e6(e)||A$(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]():E$(e)?!0:D$(e)}const F$=["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]"],B$=F$.join(),W$=e=>e.offsetWidth>0&&e.offsetHeight>0;function V$(e){const t=Array.from(e.querySelectorAll(B$));return t.unshift(e),t.filter(n=>O$(n)&&W$(n))}function U$(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},n6=H$(U$),G$=e=>e.default||e;function tm(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function r6(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const i6=Object.freeze(["base","sm","md","lg","xl","2xl"]);function ry(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Nt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function K$(e,t=i6){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}const q$=e=>typeof e=="function";function cn(e,...t){return q$(e)?e(...t):e}function X$(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function Y$(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function o6(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:JC(e)&&X$(e)?e:o6(Y$(e))}function a6(e,t){const n={},r={};for(const[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}function Q$(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=a=>{const l={};for(let c=0;ci(Array.isArray(a)?a:r.filter(a));return t.map(o).concat(i(r))}function aS(e,t,n={}){const{stop:r,getKey:i}=n;function o(a,l=[]){if(Nt(a)||Array.isArray(a)){const c={};for(const[u,d]of Object.entries(a)){const f=(i==null?void 0:i(u))??u,p=[...l,f];if(r!=null&&r(a,p))return t(a,l);c[f]=o(d,p)}return c}return t(a,l)}return o(e)}var up={exports:{}};up.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",v="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Null]",g="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",P="[object String]",_="[object Undefined]",j="[object WeakMap]",z="[object ArrayBuffer]",$="[object DataView]",W="[object Float32Array]",Y="[object Float64Array]",ee="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",N="[object Uint8Array]",R="[object Uint8ClampedArray]",F="[object Uint16Array]",M="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,oe={};oe[W]=oe[Y]=oe[ee]=oe[I]=oe[L]=oe[N]=oe[R]=oe[F]=oe[M]=!0,oe[l]=oe[c]=oe[z]=oe[d]=oe[$]=oe[f]=oe[p]=oe[h]=oe[b]=oe[x]=oe[g]=oe[w]=oe[k]=oe[P]=oe[j]=!1;var Q=typeof nd=="object"&&nd&&nd.Object===Object&&nd,ue=typeof self=="object"&&self&&self.Object===Object&&self,ce=Q||ue||Function("return this")(),Be=t&&!t.nodeType&&t,Ze=Be&&!0&&e&&!e.nodeType&&e,te=Ze&&Ze.exports===Be,re=te&&Q.process,ze=function(){try{var C=Ze&&Ze.require&&Ze.require("util").types;return C||re&&re.binding&&re.binding("util")}catch{}}(),ye=ze&&ze.isTypedArray;function ot(C,E,O){switch(O.length){case 0:return C.call(E);case 1:return C.call(E,O[0]);case 2:return C.call(E,O[0],O[1]);case 3:return C.call(E,O[0],O[1],O[2])}return C.apply(E,O)}function ve(C,E){for(var O=-1,le=Array(C);++O-1}function uE(C,E){var O=this.__data__,le=Zu(O,C);return le<0?(++this.size,O.push([C,E])):O[le][1]=E,this}ni.prototype.clear=aE,ni.prototype.delete=sE,ni.prototype.get=lE,ni.prototype.has=cE,ni.prototype.set=uE;function La(C){var E=-1,O=C==null?0:C.length;for(this.clear();++E1?O[Ae-1]:void 0,at=Ae>2?O[2]:void 0;for(Ke=C.length>3&&typeof Ke=="function"?(Ae--,Ke):void 0,at&&OE(O[0],O[1],at)&&(Ke=Ae<3?void 0:Ke,Ae=1),E=Object(E);++le-1&&C%1==0&&C0){if(++E>=i)return arguments[0]}else E=0;return C.apply(void 0,arguments)}}function KE(C){if(C!=null){try{return ei.call(C)}catch{}try{return C+""}catch{}}return""}function td(C,E){return C===E||C!==C&&E!==E}var rh=Ix(function(){return arguments}())?Ix:function(C){return kl(C)&&se.call(C,"callee")&&!Y7.call(C,"callee")},ih=Array.isArray;function oh(C){return C!=null&&Ox(C.length)&&!ah(C)}function qE(C){return kl(C)&&oh(C)}var Dx=Z7||JE;function ah(C){if(!No(C))return!1;var E=Ju(C);return E==h||E==v||E==u||E==S}function Ox(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function No(C){var E=typeof C;return C!=null&&(E=="object"||E=="function")}function kl(C){return C!=null&&typeof C=="object"}function XE(C){if(!kl(C)||Ju(C)!=g)return!1;var E=Ax(C);if(E===null)return!0;var O=se.call(E,"constructor")&&E.constructor;return typeof O=="function"&&O instanceof O&&ei.call(O)==Xu}var Fx=ye?ut(ye):jE;function YE(C){return IE(C,Bx(C))}function Bx(C){return oh(C)?SE(C):PE(C)}var QE=ME(function(C,E,O,le){Mx(C,E,O,le)});function ZE(C){return function(){return C}}function Wx(C){return C}function JE(){return!1}e.exports=QE})(up,up.exports);var Z$=up.exports;const ar=i1(Z$);function _r(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function cf(e,t,n,r){const i=_r(n);return m.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function s6(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(p,h)=>p!==h}=e,o=_r(r),a=_r(i),[l,c]=m.useState(n),u=t!==void 0,d=u?t:l,f=_r(p=>{const v=typeof p=="function"?p(d):p;a(d,v)&&(u||c(v),o(v))},[u,o,d,a]);return[d,f]}function wu(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=_r(n),a=_r(t),[l,c]=m.useState(e.defaultIsOpen||!1),u=r!==void 0?r:l,d=r!==void 0,f=m.useId(),p=i??`disclosure-${f}`,h=m.useCallback(()=>{d||c(!1),a==null||a()},[d,a]),v=m.useCallback(()=>{d||c(!0),o==null||o()},[d,o]),b=m.useCallback(()=>{u?h():v()},[u,v,h]);function x(g={}){return{...g,"aria-expanded":u,"aria-controls":p,onClick(S){var w;(w=g.onClick)==null||w.call(g,S),b()}}}function y(g={}){return{...g,hidden:!u,id:p}}return{isOpen:u,onOpen:v,onClose:h,onToggle:b,isControlled:d,getButtonProps:x,getDisclosureProps:y}}const vi=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,dp=(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 J$(e){return"current"in e}const l6=()=>typeof window<"u";function ez(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const tz=e=>l6()&&e.test(navigator.vendor),nz=e=>l6()&&e.test(ez()),rz=()=>nz(/mac|iphone|ipad|ipod/i),iz=()=>rz()&&tz(/apple/i);function oz(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};cf(i,"pointerdown",o=>{var u,d;if(!iz()||!r)return;const a=((d=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:d[0])??o.target,c=(n??[t]).some(f=>{const p=J$(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});i().activeElement!==a&&c&&(o.preventDefault(),a.focus())})}function az(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 Mt(...e){return t=>{e.forEach(n=>{az(n,t)})}}function iy(...e){return m.useMemo(()=>Mt(...e),e)}function sz(e,t){const n=_r(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const zt={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}`},Rr=e=>c6(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ri=e=>c6(t=>e(t,"~ &"),"[data-peer]",".peer"),c6=(e,...t)=>t.map(e).join(", "),As={_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:Rr(zt.open),_groupClosed:Rr(zt.closed),_groupHover:Rr(zt.hover),_peerHover:ri(zt.hover),_groupFocus:Rr(zt.focus),_peerFocus:ri(zt.focus),_groupFocusVisible:Rr(zt.focusVisible),_peerFocusVisible:ri(zt.focusVisible),_groupActive:Rr(zt.active),_peerActive:ri(zt.active),_groupDisabled:Rr(zt.disabled),_peerDisabled:ri(zt.disabled),_groupInvalid:Rr(zt.invalid),_peerInvalid:ri(zt.invalid),_groupChecked:Rr(zt.checked),_peerChecked:ri(zt.checked),_groupFocusWithin:Rr(zt.focusWithin),_peerFocusWithin:ri(zt.focusWithin),_peerPlaceholderShown:ri(zt.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]"},u6=Object.keys(As),lz=e=>/!(important)?$/.test(e),sS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,cz=(e,t)=>n=>{const r=String(t),i=lz(r),o=sS(r),a=e?`${e}.${o}`:o;let l=Nt(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=sS(l),i?`${l} !important`:l};function oy(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{const l=cz(t,o)(a);let c=(n==null?void 0:n(l,a))??l;return r&&(c=r(c,a)),c}}const xd=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Jn(e,t){return n=>{const r={property:n,scale:e};return r.transform=oy({scale:e,transform:t}),r}}const uz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function dz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:uz(t),transform:n?oy({scale:n,compose:r}):r}}const d6=["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 fz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...d6].join(" ")}function pz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...d6].join(" ")}const mz={"--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(" ")},hz={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 gz(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 vz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Fg={"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"},yz=new Set(Object.values(Fg)),Bg=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),bz=e=>e.trim();function xz(e,t){if(e==null||Bg.has(e))return e;if(!(Wg(e)||Bg.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],a=i==null?void 0:i[2];if(!o||!a)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[c,...u]=a.split(",").map(bz).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const d=c in Fg?Fg[c]:c;u.unshift(d);const f=u.map(p=>{if(yz.has(p))return p;const h=p.indexOf(" "),[v,b]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=Wg(b)?b:b&&b.split(" "),y=`colors.${v}`,g=y in t.__cssMap?t.__cssMap[y].varRef:v;return x?[g,...Array.isArray(x)?x:[x]].join(" "):g});return`${l}(${f.join(", ")})`}const Wg=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Sz=(e,t)=>xz(e,t??{});function wz(e){return/^var\(--.+\)$/.test(e)}const kz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ir=e=>t=>`${e}(${t})`,Ee={filter(e){return e!=="auto"?e:mz},backdropFilter(e){return e!=="auto"?e:hz},ring(e){return gz(Ee.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?fz():e==="auto-gpu"?pz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=kz(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(wz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Sz,blur:Ir("blur"),opacity:Ir("opacity"),brightness:Ir("brightness"),contrast:Ir("contrast"),dropShadow:Ir("drop-shadow"),grayscale:Ir("grayscale"),hueRotate:e=>Ir("hue-rotate")(Ee.degree(e)),invert:Ir("invert"),saturate:Ir("saturate"),sepia:Ir("sepia"),bgImage(e){return e==null||Wg(e)||Bg.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}=vz[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},T={borderWidths:Jn("borderWidths"),borderStyles:Jn("borderStyles"),colors:Jn("colors"),borders:Jn("borders"),gradients:Jn("gradients",Ee.gradient),radii:Jn("radii",Ee.px),space:Jn("space",xd(Ee.vh,Ee.px)),spaceT:Jn("space",xd(Ee.vh,Ee.px)),degreeT(e){return{property:e,transform:Ee.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:oy({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Jn("sizes",xd(Ee.vh,Ee.px)),sizesT:Jn("sizes",xd(Ee.vh,Ee.fraction)),shadows:Jn("shadows"),logical:dz,blur:Jn("blur",Ee.blur)},uf={background:T.colors("background"),backgroundColor:T.colors("backgroundColor"),backgroundImage:T.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ee.bgClip},bgSize:T.prop("backgroundSize"),bgPosition:T.prop("backgroundPosition"),bg:T.colors("background"),bgColor:T.colors("backgroundColor"),bgPos:T.prop("backgroundPosition"),bgRepeat:T.prop("backgroundRepeat"),bgAttachment:T.prop("backgroundAttachment"),bgGradient:T.gradients("backgroundImage"),bgClip:{transform:Ee.bgClip}};Object.assign(uf,{bgImage:uf.backgroundImage,bgImg:uf.backgroundImage});const Ne={border:T.borders("border"),borderWidth:T.borderWidths("borderWidth"),borderStyle:T.borderStyles("borderStyle"),borderColor:T.colors("borderColor"),borderRadius:T.radii("borderRadius"),borderTop:T.borders("borderTop"),borderBlockStart:T.borders("borderBlockStart"),borderTopLeftRadius:T.radii("borderTopLeftRadius"),borderStartStartRadius:T.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:T.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:T.radii("borderTopRightRadius"),borderStartEndRadius:T.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:T.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:T.borders("borderRight"),borderInlineEnd:T.borders("borderInlineEnd"),borderBottom:T.borders("borderBottom"),borderBlockEnd:T.borders("borderBlockEnd"),borderBottomLeftRadius:T.radii("borderBottomLeftRadius"),borderBottomRightRadius:T.radii("borderBottomRightRadius"),borderLeft:T.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:T.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:T.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:T.borders(["borderLeft","borderRight"]),borderInline:T.borders("borderInline"),borderY:T.borders(["borderTop","borderBottom"]),borderBlock:T.borders("borderBlock"),borderTopWidth:T.borderWidths("borderTopWidth"),borderBlockStartWidth:T.borderWidths("borderBlockStartWidth"),borderTopColor:T.colors("borderTopColor"),borderBlockStartColor:T.colors("borderBlockStartColor"),borderTopStyle:T.borderStyles("borderTopStyle"),borderBlockStartStyle:T.borderStyles("borderBlockStartStyle"),borderBottomWidth:T.borderWidths("borderBottomWidth"),borderBlockEndWidth:T.borderWidths("borderBlockEndWidth"),borderBottomColor:T.colors("borderBottomColor"),borderBlockEndColor:T.colors("borderBlockEndColor"),borderBottomStyle:T.borderStyles("borderBottomStyle"),borderBlockEndStyle:T.borderStyles("borderBlockEndStyle"),borderLeftWidth:T.borderWidths("borderLeftWidth"),borderInlineStartWidth:T.borderWidths("borderInlineStartWidth"),borderLeftColor:T.colors("borderLeftColor"),borderInlineStartColor:T.colors("borderInlineStartColor"),borderLeftStyle:T.borderStyles("borderLeftStyle"),borderInlineStartStyle:T.borderStyles("borderInlineStartStyle"),borderRightWidth:T.borderWidths("borderRightWidth"),borderInlineEndWidth:T.borderWidths("borderInlineEndWidth"),borderRightColor:T.colors("borderRightColor"),borderInlineEndColor:T.colors("borderInlineEndColor"),borderRightStyle:T.borderStyles("borderRightStyle"),borderInlineEndStyle:T.borderStyles("borderInlineEndStyle"),borderTopRadius:T.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:T.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:T.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:T.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ne,{rounded:Ne.borderRadius,roundedTop:Ne.borderTopRadius,roundedTopLeft:Ne.borderTopLeftRadius,roundedTopRight:Ne.borderTopRightRadius,roundedTopStart:Ne.borderStartStartRadius,roundedTopEnd:Ne.borderStartEndRadius,roundedBottom:Ne.borderBottomRadius,roundedBottomLeft:Ne.borderBottomLeftRadius,roundedBottomRight:Ne.borderBottomRightRadius,roundedBottomStart:Ne.borderEndStartRadius,roundedBottomEnd:Ne.borderEndEndRadius,roundedLeft:Ne.borderLeftRadius,roundedRight:Ne.borderRightRadius,roundedStart:Ne.borderInlineStartRadius,roundedEnd:Ne.borderInlineEndRadius,borderStart:Ne.borderInlineStart,borderEnd:Ne.borderInlineEnd,borderTopStartRadius:Ne.borderStartStartRadius,borderTopEndRadius:Ne.borderStartEndRadius,borderBottomStartRadius:Ne.borderEndStartRadius,borderBottomEndRadius:Ne.borderEndEndRadius,borderStartRadius:Ne.borderInlineStartRadius,borderEndRadius:Ne.borderInlineEndRadius,borderStartWidth:Ne.borderInlineStartWidth,borderEndWidth:Ne.borderInlineEndWidth,borderStartColor:Ne.borderInlineStartColor,borderEndColor:Ne.borderInlineEndColor,borderStartStyle:Ne.borderInlineStartStyle,borderEndStyle:Ne.borderInlineEndStyle});const Cz={color:T.colors("color"),textColor:T.colors("color"),fill:T.colors("fill"),stroke:T.colors("stroke"),accentColor:T.colors("accentColor"),textFillColor:T.colors("textFillColor")},fp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ee.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:T.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:T.space("gap"),rowGap:T.space("rowGap"),columnGap:T.space("columnGap")};Object.assign(fp,{flexDir:fp.flexDirection});const tr={width:T.sizesT("width"),inlineSize:T.sizesT("inlineSize"),height:T.sizes("height"),blockSize:T.sizes("blockSize"),boxSize:T.sizes(["width","height"]),minWidth:T.sizes("minWidth"),minInlineSize:T.sizes("minInlineSize"),minHeight:T.sizes("minHeight"),minBlockSize:T.sizes("minBlockSize"),maxWidth:T.sizes("maxWidth"),maxInlineSize:T.sizes("maxInlineSize"),maxHeight:T.sizes("maxHeight"),maxBlockSize:T.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 i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:T.propT("float",Ee.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(tr,{w:tr.width,h:tr.height,minW:tr.minWidth,maxW:tr.maxWidth,minH:tr.minHeight,maxH:tr.maxHeight,overscroll:tr.overscrollBehavior,overscrollX:tr.overscrollBehaviorX,overscrollY:tr.overscrollBehaviorY});const jz={filter:{transform:Ee.filter},blur:T.blur("--chakra-blur"),brightness:T.propT("--chakra-brightness",Ee.brightness),contrast:T.propT("--chakra-contrast",Ee.contrast),hueRotate:T.propT("--chakra-hue-rotate",Ee.hueRotate),invert:T.propT("--chakra-invert",Ee.invert),saturate:T.propT("--chakra-saturate",Ee.saturate),dropShadow:T.propT("--chakra-drop-shadow",Ee.dropShadow),backdropFilter:{transform:Ee.backdropFilter},backdropBlur:T.blur("--chakra-backdrop-blur"),backdropBrightness:T.propT("--chakra-backdrop-brightness",Ee.brightness),backdropContrast:T.propT("--chakra-backdrop-contrast",Ee.contrast),backdropHueRotate:T.propT("--chakra-backdrop-hue-rotate",Ee.hueRotate),backdropInvert:T.propT("--chakra-backdrop-invert",Ee.invert),backdropSaturate:T.propT("--chakra-backdrop-saturate",Ee.saturate)},Pz={ring:{transform:Ee.ring},ringColor:T.colors("--chakra-ring-color"),ringOffset:T.prop("--chakra-ring-offset-width"),ringOffsetColor:T.colors("--chakra-ring-offset-color"),ringInset:T.prop("--chakra-ring-inset")},_z={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ee.outline},outlineOffset:!0,outlineColor:T.colors("outlineColor")},f6={gridGap:T.space("gridGap"),gridColumnGap:T.space("gridColumnGap"),gridRowGap:T.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 Tz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},Az=Ez(Tz),$z={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},zz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Lh=(e,t,n)=>{const r={},i=Az(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},Rz={srOnly:{transform(e){return e===!0?$z:e==="focusable"?zz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Lh(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Lh(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Lh(t,e,n)}},pc={position:!0,pos:T.prop("position"),zIndex:T.prop("zIndex","zIndices"),inset:T.spaceT("inset"),insetX:T.spaceT(["left","right"]),insetInline:T.spaceT("insetInline"),insetY:T.spaceT(["top","bottom"]),insetBlock:T.spaceT("insetBlock"),top:T.spaceT("top"),insetBlockStart:T.spaceT("insetBlockStart"),bottom:T.spaceT("bottom"),insetBlockEnd:T.spaceT("insetBlockEnd"),left:T.spaceT("left"),insetInlineStart:T.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:T.spaceT("right"),insetInlineEnd:T.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(pc,{insetStart:pc.insetInlineStart,insetEnd:pc.insetInlineEnd});const Vg={boxShadow:T.shadows("boxShadow"),mixBlendMode:!0,blendMode:T.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:T.prop("backgroundBlendMode"),opacity:!0};Object.assign(Vg,{shadow:Vg.boxShadow});const et={margin:T.spaceT("margin"),marginTop:T.spaceT("marginTop"),marginBlockStart:T.spaceT("marginBlockStart"),marginRight:T.spaceT("marginRight"),marginInlineEnd:T.spaceT("marginInlineEnd"),marginBottom:T.spaceT("marginBottom"),marginBlockEnd:T.spaceT("marginBlockEnd"),marginLeft:T.spaceT("marginLeft"),marginInlineStart:T.spaceT("marginInlineStart"),marginX:T.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:T.spaceT("marginInline"),marginY:T.spaceT(["marginTop","marginBottom"]),marginBlock:T.spaceT("marginBlock"),padding:T.space("padding"),paddingTop:T.space("paddingTop"),paddingBlockStart:T.space("paddingBlockStart"),paddingRight:T.space("paddingRight"),paddingBottom:T.space("paddingBottom"),paddingBlockEnd:T.space("paddingBlockEnd"),paddingLeft:T.space("paddingLeft"),paddingInlineStart:T.space("paddingInlineStart"),paddingInlineEnd:T.space("paddingInlineEnd"),paddingX:T.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:T.space("paddingInline"),paddingY:T.space(["paddingTop","paddingBottom"]),paddingBlock:T.space("paddingBlock")};Object.assign(et,{m:et.margin,mt:et.marginTop,mr:et.marginRight,me:et.marginInlineEnd,marginEnd:et.marginInlineEnd,mb:et.marginBottom,ml:et.marginLeft,ms:et.marginInlineStart,marginStart:et.marginInlineStart,mx:et.marginX,my:et.marginY,p:et.padding,pt:et.paddingTop,py:et.paddingY,px:et.paddingX,pb:et.paddingBottom,pl:et.paddingLeft,ps:et.paddingInlineStart,paddingStart:et.paddingInlineStart,pr:et.paddingRight,pe:et.paddingInlineEnd,paddingEnd:et.paddingInlineEnd});const Iz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:T.spaceT("scrollMargin"),scrollMarginTop:T.spaceT("scrollMarginTop"),scrollMarginBottom:T.spaceT("scrollMarginBottom"),scrollMarginLeft:T.spaceT("scrollMarginLeft"),scrollMarginRight:T.spaceT("scrollMarginRight"),scrollMarginX:T.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:T.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:T.spaceT("scrollPadding"),scrollPaddingTop:T.spaceT("scrollPaddingTop"),scrollPaddingBottom:T.spaceT("scrollPaddingBottom"),scrollPaddingLeft:T.spaceT("scrollPaddingLeft"),scrollPaddingRight:T.spaceT("scrollPaddingRight"),scrollPaddingX:T.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:T.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},Mz={fontFamily:T.prop("fontFamily","fonts"),fontSize:T.prop("fontSize","fontSizes",Ee.px),fontWeight:T.prop("fontWeight","fontWeights"),lineHeight:T.prop("lineHeight","lineHeights"),letterSpacing:T.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"}},Lz={textDecorationColor:T.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:T.shadows("textShadow")},Nz={clipPath:!0,transform:T.propT("transform",Ee.transform),transformOrigin:!0,translateX:T.spaceT("--chakra-translate-x"),translateY:T.spaceT("--chakra-translate-y"),skewX:T.degreeT("--chakra-skew-x"),skewY:T.degreeT("--chakra-skew-y"),scaleX:T.prop("--chakra-scale-x"),scaleY:T.prop("--chakra-scale-y"),scale:T.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:T.degreeT("--chakra-rotate")},Dz={listStyleType:!0,listStylePosition:!0,listStylePos:T.prop("listStylePosition"),listStyleImage:!0,listStyleImg:T.prop("listStyleImage")},Oz={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:T.prop("transitionDuration","transition.duration"),transitionProperty:T.prop("transitionProperty","transition.property"),transitionTimingFunction:T.prop("transitionTimingFunction","transition.easing")},ay=ar({},uf,Ne,Cz,fp,tr,jz,Pz,_z,f6,Rz,pc,Vg,et,Iz,Mz,Lz,Nz,Dz,Oz),Fz=Object.assign({},et,tr,fp,f6,pc),p6=Object.keys(Fz),Bz=[...Object.keys(ay),...u6],Wz={...ay,...As},Vz=e=>e in Wz,Uz=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let l=cn(e[a],t);if(l==null)continue;if(l=Nt(l)&&n(l)?r(l):l,!Array.isArray(l)){o[a]=l;continue}const c=l.slice(0,i.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!Gz(t),qz=(e,t)=>{if(t==null)return t;const n=a=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[a])==null?void 0:c.varRef},r=a=>n(a)??a,[i,o]=Hz(t);return t=n(i)??r(o)??r(t),t};function Xz(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var d;const l=cn(o,r),c=Uz(l)(r);let u={};for(let f in c){const p=c[f];let h=cn(p,r);f in n&&(f=n[f]),Kz(f,h)&&(h=qz(r,h));let v=t[f];if(v===!0&&(v={property:f}),Nt(h)){u[f]=u[f]??{},u[f]=ar({},u[f],i(h,!0));continue}let b=((d=v==null?void 0:v.transform)==null?void 0:d.call(v,h,r,l))??h;b=v!=null&&v.processResult?i(b,!0):b;const x=cn(v==null?void 0:v.property,r);if(!a&&(v!=null&&v.static)){const y=cn(v.static,r);u=ar({},u,y)}if(x&&Array.isArray(x)){for(const y of x)u[y]=b;continue}if(x){x==="&"&&Nt(b)?u=ar({},u,b):u[x]=b;continue}if(Nt(b)){u=ar({},u,b);continue}u[f]=b}return u};return i}const m6=e=>t=>Xz({theme:t,pseudos:As,configs:ay})(e);function fe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Yz(e,t,n){var r,i;return((i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)??n}function Qz(e,t){if(Array.isArray(e))return e;if(Nt(e))return t(e);if(e!=null)return[e]}function Zz(e,t){for(let n=t+1;n{ar(l,{[S]:d?g[S]:{[y]:g[S]}})});continue}if(!f){d?ar(l,g):l[y]=g;continue}l[y]=g}}return l}}function eR(e){return t=>{const{variant:n,size:r,theme:i}=t,o=Jz(i);return ar({},cn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function $e(e){return tm(e,["styleConfig","size","variant","colorScheme"])}function h6(e){return Nt(e)&&e.reference?e.reference:String(e)}const nm=(e,...t)=>t.map(h6).join(` ${e} `).replace(/calc/g,""),lS=(...e)=>`calc(${nm("+",...e)})`,cS=(...e)=>`calc(${nm("-",...e)})`,Ug=(...e)=>`calc(${nm("*",...e)})`,uS=(...e)=>`calc(${nm("/",...e)})`,dS=e=>{const t=h6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ug(t,-1)},ai=Object.assign(e=>({add:(...t)=>ai(lS(e,...t)),subtract:(...t)=>ai(cS(e,...t)),multiply:(...t)=>ai(Ug(e,...t)),divide:(...t)=>ai(uS(e,...t)),negate:()=>ai(dS(e)),toString:()=>e.toString()}),{add:lS,subtract:cS,multiply:Ug,divide:uS,negate:dS});function tR(e,t="-"){return e.replace(/\s+/g,t)}function nR(e){const t=tR(e.toString());return iR(rR(t))}function rR(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function iR(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function oR(e,t=""){return[t,e].filter(Boolean).join("-")}function aR(e,t){return`var(${e}${t?`, ${t}`:""})`}function sR(e,t=""){return nR(`--${oR(e,t)}`)}function X(e,t,n){const r=sR(e,n);return{variable:r,reference:aR(r,t)}}function g6(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=X(`${e}-${i}`,o);continue}n[r]=X(`${e}-${r}`)}return n}const lR=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function cR(e){return r6(e,lR)}function uR(e){return e.semanticTokens}function dR(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function fR(e){const t=cR(e),n=uR(e),r=o=>u6.includes(o)||o==="default",i={};return aS(t,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!1,value:o})}),aS(n,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(r)}),i}function fS(e,t){return X(String(e).replace(/\./g,"-"),void 0,t)}function pR(e){var a;const t=fR(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const i={};function o(l,c){const d=[String(l).split(".")[0],c].join(".");if(!t[d])return c;const{reference:p}=fS(d,n);return p}for(const[l,c]of Object.entries(t)){const{isSemantic:u,value:d}=c,{variable:f,reference:p}=fS(l,n);if(!u){if(l.startsWith("space")){const v=l.split("."),[b,...x]=v,y=`${b}.-${x.join(".")}`,g=ai.negate(d),S=ai.negate(p);i[y]={value:g,var:f,varRef:S}}r[f]=d,i[l]={value:d,var:f,varRef:p};continue}const h=Nt(d)?d:{default:d};r=ar(r,Object.entries(h).reduce((v,[b,x])=>{if(!x)return v;const y=o(l,`${x}`);if(b==="default")return v[f]=y,v;const g=(As==null?void 0:As[b])??b;return v[g]={[f]:y},v},{})),i[l]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:i}}function mR(e){const t=dR(e),{cssMap:n,cssVars:r}=pR(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:M$(t.breakpoints)}),t}function Me(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 i(...d){r();for(const f of d)t[f]=c(f);return Me(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Me(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}const hR=Me("accordion").parts("root","container","button","panel","icon"),v6=Me("alert").parts("title","description","container","icon","spinner"),gR=Me("avatar").parts("label","badge","container","excessLabel","group"),vR=Me("breadcrumb").parts("link","item","container","separator");Me("button").parts();const y6=Me("checkbox").parts("control","icon","container","label");Me("progress").parts("track","filledTrack","label");const yR=Me("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),bR=Me("editable").parts("preview","input","textarea"),b6=Me("form").parts("container","requiredIndicator","helperText"),xR=Me("formError").parts("text","icon"),sy=Me("input").parts("addon","field","element","group"),SR=Me("list").parts("container","item","icon"),x6=Me("menu").parts("button","list","item","groupTitle","icon","command","divider"),S6=Me("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),wR=Me("numberinput").parts("root","field","stepperGroup","stepper");Me("pininput").parts("field");const kR=Me("popover").parts("content","header","body","footer","popper","arrow","closeButton"),w6=Me("progress").parts("label","filledTrack","track"),k6=Me("radio").parts("container","control","label"),CR=Me("select").parts("field","icon"),C6=Me("slider").parts("container","track","thumb","filledTrack","mark"),jR=Me("stat").parts("container","label","helpText","number","icon"),j6=Me("switch").parts("container","track","thumb","label"),PR=Me("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),_R=Me("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),TR=Me("tag").parts("container","label","closeButton"),P6=Me("card").parts("container","header","body","footer");Me("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:ER,defineMultiStyleConfig:AR}=fe(hR.keys),$R={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},zR={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},RR={pt:"2",px:"4",pb:"5"},IR={fontSize:"1.25em"},MR=ER({container:$R,button:zR,panel:RR,icon:IR}),LR=AR({baseStyle:MR});function Zo(e,t,n){return Math.min(Math.max(e,n),t)}class Kl extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function ly(e){if(typeof e!="string")throw new Kl(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=UR.test(e)?OR(e):e;const n=FR.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(l=>parseInt(Gc(l,2),16)),parseInt(Gc(a[3]||"f",2),16)/255]}const r=BR.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,16)),parseInt(a[3]||"ff",16)/255]}const i=WR.exec(t);if(i){const a=Array.from(i).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,10)),parseFloat(a[3]||"1")]}const o=VR.exec(t);if(o){const[a,l,c,u]=Array.from(o).slice(1).map(parseFloat);if(Zo(0,100,l)!==l)throw new Kl(e);if(Zo(0,100,c)!==c)throw new Kl(e);return[...HR(a,l,c),Number.isNaN(u)?1:u]}throw new Kl(e)}function NR(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const pS=e=>parseInt(e.replace(/_/g,""),36),DR="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=pS(t.substring(0,3)),r=pS(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function OR(e){const t=e.toLowerCase().trim(),n=DR[NR(t)];if(!n)throw new Kl(e);return`#${n}`}const Gc=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),FR=new RegExp(`^#${Gc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),BR=new RegExp(`^#${Gc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),WR=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Gc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),VR=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,UR=/^[a-z]+$/i,mS=e=>Math.round(e*255),HR=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(mS);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1));let l=0,c=0,u=0;i>=0&&i<1?(l=o,c=a):i>=1&&i<2?(l=a,c=o):i>=2&&i<3?(c=o,u=a):i>=3&&i<4?(c=a,u=o):i>=4&&i<5?(l=a,u=o):i>=5&&i<6&&(l=o,u=a);const d=r-o/2,f=l+d,p=c+d,h=u+d;return[f,p,h].map(mS)};function GR(e,t,n,r){return`rgba(${Zo(0,255,e).toFixed()}, ${Zo(0,255,t).toFixed()}, ${Zo(0,255,n).toFixed()}, ${parseFloat(Zo(0,1,r).toFixed(3))})`}function KR(e,t){const[n,r,i,o]=ly(e);return GR(n,r,i,o-t)}function qR(e){const[t,n,r,i]=ly(e);let o=a=>{const l=Zo(0,255,a).toString(16);return l.length===1?`0${l}`:l};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const XR=e=>Object.keys(e).length===0;function YR(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{const r=YR(e,`colors.${t}`,t);try{return qR(r),r}catch{return n??"#000000"}},QR=e=>{const[t,n,r]=ly(e);return(t*299+n*587+r*114)/1e3},ZR=e=>t=>{const n=nt(t,e);return QR(n)<128?"dark":"light"},JR=e=>t=>ZR(e)(t)==="dark",Ut=(e,t)=>n=>{const r=nt(n,e);return KR(r,1-t)};function hS(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function zh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var J9=typeof WeakMap=="function"?WeakMap:Map;function SC(e,t,n){n=hi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ap||(ap=!0,Ig=r),Cg(e,t)},n}function wC(e,t,n){n=hi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Cg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Cg(e,t),typeof r!="function"&&(co===null?co=new Set([this]):co.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function N2(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new J9;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=p$.bind(null,e,t,n),t.then(e,e))}function D2(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function O2(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=hi(-1,1),t.tag=2,lo(n,t,1))),n.lanes|=1),e)}var e$=Ai.ReactCurrentOwner,_n=!1;function mn(e,t,n,r){t.child=e===null?Q5(t,null,n,r):Us(t,e.child,n,r)}function F2(e,t,n,r,i){n=n.render;var o=t.ref;return Ts(t,i),r=L1(e,t,n,r,o,i),n=N1(),e!==null&&!_n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ci(e,t,i)):(lt&&n&&C1(t),t.flags|=1,mn(e,t,r,i),t.child)}function B2(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!K1(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,kC(e,t,o,r,i)):(e=lf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Lc,n(a,r)&&e.ref===t.ref)return Ci(e,t,i)}return t.flags|=1,e=fo(o,r),e.ref=t.ref,e.return=t,t.child=e}function kC(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Lc(o,r)&&e.ref===t.ref)if(_n=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(_n=!0);else return t.lanes=e.lanes,Ci(e,t,i)}return jg(e,t,n,r,i)}function CC(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ye(as,Nn),Nn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ye(as,Nn),Nn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ye(as,Nn),Nn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ye(as,Nn),Nn|=r;return mn(e,t,i,n),t.child}function jC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jg(e,t,n,r,i){var o=En(n)?ga:pn.current;return o=Ws(t,o),Ts(t,i),n=L1(e,t,n,r,o,i),r=N1(),e!==null&&!_n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ci(e,t,i)):(lt&&r&&C1(t),t.flags|=1,mn(e,t,n,i),t.child)}function W2(e,t,n,r,i){if(En(n)){var o=!0;Yf(t)}else o=!1;if(Ts(t,i),t.stateNode===null)of(e,t),xC(t,n,r),kg(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=cr(u):(u=En(n)?ga:pn.current,u=Ws(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&L2(t,a,r,u),Ui=!1;var p=t.memoizedState;a.state=p,tp(t,r,a,i),c=t.memoizedState,l!==r||p!==c||Tn.current||Ui?(typeof d=="function"&&(wg(t,n,d,r),c=t.memoizedState),(l=Ui||M2(t,n,l,r,p,c,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,J5(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:xr(t.type,l),a.props=u,f=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=cr(c):(c=En(n)?ga:pn.current,c=Ws(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||p!==c)&&L2(t,a,r,c),Ui=!1,p=t.memoizedState,a.state=p,tp(t,r,a,i);var v=t.memoizedState;l!==f||p!==v||Tn.current||Ui?(typeof h=="function"&&(wg(t,n,h,r),v=t.memoizedState),(u=Ui||M2(t,n,u,r,p,v,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Pg(e,t,n,r,o,i)}function Pg(e,t,n,r,i,o){jC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&_2(t,n,!1),Ci(e,t,o);r=t.stateNode,e$.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Us(t,e.child,null,o),t.child=Us(t,null,l,o)):mn(e,t,l,o),t.memoizedState=r.state,i&&_2(t,n,!0),t.child}function PC(e){var t=e.stateNode;t.pendingContext?P2(e,t.pendingContext,t.pendingContext!==t.context):t.context&&P2(e,t.context,!1),z1(e,t.containerInfo)}function V2(e,t,n,r,i){return Vs(),P1(i),t.flags|=256,mn(e,t,n,r),t.child}var _g={dehydrated:null,treeContext:null,retryLane:0};function Tg(e){return{baseLanes:e,cachePool:null,transitions:null}}function _C(e,t,n){var r=t.pendingProps,i=dt.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ye(dt,i&1),e===null)return xg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Yp(a,r,0,null),e=oa(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Tg(n),t.memoizedState=_g,e):F1(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return t$(e,t,a,r,l,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=fo(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=fo(l,o):(o=oa(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Tg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=_g,r}return o=e.child,e=o.sibling,r=fo(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function F1(e,t){return t=Yp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gd(e,t,n,r){return r!==null&&P1(r),Us(t,e.child,null,n),e=F1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function t$(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=zh(Error(U(422))),gd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Yp({mode:"visible",children:r.children},i,0,null),o=oa(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Us(t,e.child,null,a),t.child.memoizedState=Tg(a),t.memoizedState=_g,o);if(!(t.mode&1))return gd(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(U(419)),r=zh(o,r,void 0),gd(e,t,a,r)}if(l=(a&e.childLanes)!==0,_n||l){if(r=Vt,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ki(e,i),Pr(r,e,i,-1))}return G1(),r=zh(Error(U(421))),gd(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=m$.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Dn=so(i.nextSibling),On=t,lt=!0,wr=null,e!==null&&(rr[ir++]=ui,rr[ir++]=di,rr[ir++]=va,ui=e.id,di=e.overflow,va=t),t=F1(t,r.children),t.flags|=4096,t)}function U2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sg(e.return,t,n)}function Rh(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function TC(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(mn(e,t,r.children,n),r=dt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&U2(e,n,t);else if(e.tag===19)U2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ye(dt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&np(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Rh(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&np(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Rh(t,!0,n,null,o);break;case"together":Rh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function of(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ci(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ba|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=fo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function n$(e,t,n){switch(t.tag){case 3:PC(t),Vs();break;case 5:eC(t);break;case 1:En(t.type)&&Yf(t);break;case 4:z1(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ye(Jf,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ye(dt,dt.current&1),t.flags|=128,null):n&t.child.childLanes?_C(e,t,n):(Ye(dt,dt.current&1),e=Ci(e,t,n),e!==null?e.sibling:null);Ye(dt,dt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return TC(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ye(dt,dt.current),r)break;return null;case 22:case 23:return t.lanes=0,CC(e,t,n)}return Ci(e,t,n)}var EC,Eg,AC,$C;EC=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Eg=function(){};AC=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Qo(Gr.current);var o=null;switch(n){case"input":i=Q0(e,i),r=Q0(e,r),o=[];break;case"select":i=ht({},i,{value:void 0}),r=ht({},r,{value:void 0}),o=[];break;case"textarea":i=eg(e,i),r=eg(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qf)}ng(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ec.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ec.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Je("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};$C=function(e,t,n,r){n!==r&&(t.flags|=4)};function $l(e,t){if(!lt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function r$(e,t,n){var r=t.pendingProps;switch(j1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rn(t),null;case 1:return En(t.type)&&Xf(),rn(t),null;case 3:return r=t.stateNode,Hs(),tt(Tn),tt(pn),I1(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(md(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wr!==null&&(Ng(wr),wr=null))),Eg(e,t),rn(t),null;case 5:R1(t);var i=Qo(Bc.current);if(n=t.type,e!==null&&t.stateNode!=null)AC(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return rn(t),null}if(e=Qo(Gr.current),md(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Fr]=t,r[Oc]=o,e=(t.mode&1)!==0,n){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(i=0;i<\/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[Fr]=t,e[Oc]=r,EC(e,t,!1,!1),t.stateNode=e;e:{switch(a=rg(n,r),n){case"dialog":Je("cancel",e),Je("close",e),i=r;break;case"iframe":case"object":case"embed":Je("load",e),i=r;break;case"video":case"audio":for(i=0;iKs&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304)}else{if(!r)if(e=np(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$l(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!lt)return rn(t),null}else 2*Ct()-o.renderingStartTime>Ks&&n!==1073741824&&(t.flags|=128,r=!0,$l(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ct(),t.sibling=null,n=dt.current,Ye(dt,r?n&1|2:n&1),t):(rn(t),null);case 22:case 23:return H1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nn&1073741824&&(rn(t),t.subtreeFlags&6&&(t.flags|=8192)):rn(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function i$(e,t){switch(j1(t),t.tag){case 1:return En(t.type)&&Xf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hs(),tt(Tn),tt(pn),I1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return R1(t),null;case 13:if(tt(dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tt(dt),null;case 4:return Hs(),null;case 10:return E1(t.type._context),null;case 22:case 23:return H1(),null;case 24:return null;default:return null}}var vd=!1,ln=!1,o$=typeof WeakSet=="function"?WeakSet:Set,ie=null;function os(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){yt(e,t,r)}else n.current=null}function Ag(e,t,n){try{n()}catch(r){yt(e,t,r)}}var H2=!1;function a$(e,t){if(pg=Hf,e=L5(),k1(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(c=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&&++u===i&&(l=a),p===o&&++d===r&&(c=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(mg={focusedElem:e,selectionRange:n},Hf=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,x=v.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:xr(t.type,b),x);y.__reactInternalSnapshotBeforeUpdate=g}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(U(163))}}catch(w){yt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return v=H2,H2=!1,v}function uc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ag(t,n,o)}i=i.next}while(i!==r)}}function qp(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 $g(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 zC(e){var t=e.alternate;t!==null&&(e.alternate=null,zC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fr],delete t[Oc],delete t[vg],delete t[W9],delete t[V9])),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 RC(e){return e.tag===5||e.tag===3||e.tag===4}function G2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RC(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 zg(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=qf));else if(r!==4&&(e=e.child,e!==null))for(zg(e,t,n),e=e.sibling;e!==null;)zg(e,t,n),e=e.sibling}function Rg(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(Rg(e,t,n),e=e.sibling;e!==null;)Rg(e,t,n),e=e.sibling}var Kt=null,Sr=!1;function Li(e,t,n){for(n=n.child;n!==null;)IC(e,t,n),n=n.sibling}function IC(e,t,n){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(Fp,n)}catch{}switch(n.tag){case 5:ln||os(n,t);case 6:var r=Kt,i=Sr;Kt=null,Li(e,t,n),Kt=r,Sr=i,Kt!==null&&(Sr?(e=Kt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Kt.removeChild(n.stateNode));break;case 18:Kt!==null&&(Sr?(e=Kt,n=n.stateNode,e.nodeType===8?Ph(e.parentNode,n):e.nodeType===1&&Ph(e,n),Ic(e)):Ph(Kt,n.stateNode));break;case 4:r=Kt,i=Sr,Kt=n.stateNode.containerInfo,Sr=!0,Li(e,t,n),Kt=r,Sr=i;break;case 0:case 11:case 14:case 15:if(!ln&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Ag(n,t,a),i=i.next}while(i!==r)}Li(e,t,n);break;case 1:if(!ln&&(os(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){yt(n,t,l)}Li(e,t,n);break;case 21:Li(e,t,n);break;case 22:n.mode&1?(ln=(r=ln)||n.memoizedState!==null,Li(e,t,n),ln=r):Li(e,t,n);break;default:Li(e,t,n)}}function K2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o$),t.forEach(function(r){var i=h$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*l$(r/1960))-r,10e?16:e,Qi===null)var r=!1;else{if(e=Qi,Qi=null,sp=0,Re&6)throw Error(U(331));var i=Re;for(Re|=4,ie=e.current;ie!==null;){var o=ie,a=o.child;if(ie.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cCt()-V1?ia(e,0):W1|=n),An(e,t)}function WC(e,t){t===0&&(e.mode&1?(t=ld,ld<<=1,!(ld&130023424)&&(ld=4194304)):t=1);var n=hn();e=ki(e,t),e!==null&&(yu(e,t,n),An(e,n))}function m$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),WC(e,n)}function h$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),WC(e,n)}var VC;VC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tn.current)_n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _n=!1,n$(e,t,n);_n=!!(e.flags&131072)}else _n=!1,lt&&t.flags&1048576&&K5(t,Zf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;of(e,t),e=t.pendingProps;var i=Ws(t,pn.current);Ts(t,n),i=L1(null,t,r,e,i,n);var o=N1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,En(r)?(o=!0,Yf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$1(t),i.updater=Kp,t.stateNode=i,i._reactInternals=t,kg(t,r,e,n),t=Pg(null,t,r,!0,o,n)):(t.tag=0,lt&&o&&C1(t),mn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(of(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=v$(r),e=xr(r,e),i){case 0:t=jg(null,t,r,e,n);break e;case 1:t=W2(null,t,r,e,n);break e;case 11:t=F2(null,t,r,e,n);break e;case 14:t=B2(null,t,r,xr(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),jg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),W2(e,t,r,i,n);case 3:e:{if(PC(t),e===null)throw Error(U(387));r=t.pendingProps,o=t.memoizedState,i=o.element,J5(e,t),tp(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Gs(Error(U(423)),t),t=V2(e,t,r,n,i);break e}else if(r!==i){i=Gs(Error(U(424)),t),t=V2(e,t,r,n,i);break e}else for(Dn=so(t.stateNode.containerInfo.firstChild),On=t,lt=!0,wr=null,n=Q5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vs(),r===i){t=Ci(e,t,n);break e}mn(e,t,r,n)}t=t.child}return t;case 5:return eC(t),e===null&&xg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,hg(r,i)?a=null:o!==null&&hg(r,o)&&(t.flags|=32),jC(e,t),mn(e,t,a,n),t.child;case 6:return e===null&&xg(t),null;case 13:return _C(e,t,n);case 4:return z1(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,n):mn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),F2(e,t,r,i,n);case 7:return mn(e,t,t.pendingProps,n),t.child;case 8:return mn(e,t,t.pendingProps.children,n),t.child;case 12:return mn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Ye(Jf,r._currentValue),r._currentValue=a,o!==null)if(Er(o.value,a)){if(o.children===i.children&&!Tn.current){t=Ci(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=hi(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Sg(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Sg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}mn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ts(t,n),i=cr(i),r=r(i),t.flags|=1,mn(e,t,r,n),t.child;case 14:return r=t.type,i=xr(r,t.pendingProps),i=xr(r.type,i),B2(e,t,r,i,n);case 15:return kC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),of(e,t),t.tag=1,En(r)?(e=!0,Yf(t)):e=!1,Ts(t,n),xC(t,r,i),kg(t,r,i,n),Pg(null,t,r,!0,e,n);case 19:return TC(e,t,n);case 22:return CC(e,t,n)}throw Error(U(156,t.tag))};function UC(e,t){return v5(e,t)}function g$(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 or(e,t,n,r){return new g$(e,t,n,r)}function K1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function v$(e){if(typeof e=="function")return K1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===f1)return 11;if(e===p1)return 14}return 2}function fo(e,t){var n=e.alternate;return n===null?(n=or(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 lf(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")K1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ya:return oa(n.children,i,o,t);case d1:a=8,i|=8;break;case K0:return e=or(12,n,t,i|2),e.elementType=K0,e.lanes=o,e;case q0:return e=or(13,n,t,i),e.elementType=q0,e.lanes=o,e;case X0:return e=or(19,n,t,i),e.elementType=X0,e.lanes=o,e;case e5:return Yp(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zk:a=10;break e;case Jk:a=9;break e;case f1:a=11;break e;case p1:a=14;break e;case Vi:a=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=or(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function oa(e,t,n,r){return e=or(7,e,r,t),e.lanes=n,e}function Yp(e,t,n,r){return e=or(22,e,r,t),e.elementType=e5,e.lanes=n,e.stateNode={isHidden:!1},e}function Ih(e,t,n){return e=or(6,e,null,t),e.lanes=n,e}function Mh(e,t,n){return t=or(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y$(e,t,n,r,i){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=hh(0),this.expirationTimes=hh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function q1(e,t,n,r,i,o,a,l,c){return e=new y$(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=or(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$1(o),e}function b$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qC)}catch(e){console.error(e)}}qC(),qk.exports=Gn;var Z1=qk.exports,tS=Z1;H0.createRoot=tS.createRoot,H0.hydrateRoot=tS.hydrateRoot;function XC(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function C$(){return!!(globalThis!=null&&globalThis.document)}function YC(e){return e.parentElement&&YC(e.parentElement)?!0:e.hidden}function j$(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function P$(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function _$(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 i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const de=e=>e?"":void 0,gi=e=>e?!0:void 0;function Dg(e){return Array.isArray(e)}function Nt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Dg(e)}function T$(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function E$(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Og(e){if(e==null)return e;const{unitless:t}=E$(e);return t||typeof e=="number"?`${e}px`:e}const QC=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,J1=e=>Object.fromEntries(Object.entries(e).sort(QC));function nS(e){const t=J1(e);return Object.assign(Object.values(t),t)}function A$(e){const t=Object.keys(J1(e));return new Set(t)}function rS(e){if(!e)return e;e=Og(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Gl(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Og(e)})`),t&&n.push("and",`(max-width: ${Og(t)})`),n.join(" ")}function $$(e){if(!e)return null;e.base=e.base??"0px";const t=nS(e),n=Object.entries(e).sort(QC).map(([o,a],l,c)=>{let[,u]=c[l+1]??[];return u=parseFloat(u)>0?rS(u):void 0,{_minW:rS(a),breakpoint:o,minW:a,maxW:u,maxWQuery:Gl(null,u),minWQuery:Gl(a),minMaxQuery:Gl(a,u)}}),r=A$(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const a=Object.keys(o);return a.length>0&&a.every(l=>r.has(l))},asObject:J1(e),asArray:nS(e),details:n,get(o){return n.find(a=>a.breakpoint===o)},media:[null,...t.map(o=>Gl(o)).slice(1)],toArrayValue(o){if(!Nt(o))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>o[l]??null);for(;T$(a)===null;)a.pop();return a},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((a,l,c)=>{const u=i[c];return u!=null&&l!=null&&(a[u]=l),a},{})}}}function z$(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function he(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function ey(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function ty(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function R$(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function _e(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,l=m.createContext(a);l.displayName=t;function c(){var d;const u=m.useContext(l);if(!u&&n){const f=new Error(o??R$(r,i));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,c),f}return u}return[l.Provider,c,l]}const V=(...e)=>e.filter(Boolean).join(" "),I$=e=>e.hasAttribute("tabindex");function M$(e){if(!XC(e)||YC(e)||P$(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]():j$(e)?!0:I$(e)}const L$=["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]"],N$=L$.join(),D$=e=>e.offsetWidth>0&&e.offsetHeight>0;function O$(e){const t=Array.from(e.querySelectorAll(N$));return t.unshift(e),t.filter(n=>M$(n)&&D$(n))}function F$(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},ZC=B$(F$),W$=e=>e.default||e;function tm(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function JC(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}const e6=Object.freeze(["base","sm","md","lg","xl","2xl"]);function ny(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Nt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function V$(e,t=e6){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}const U$=e=>typeof e=="function";function cn(e,...t){return U$(e)?e(...t):e}function H$(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function G$(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function t6(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:XC(e)&&H$(e)?e:t6(G$(e))}function n6(e,t){const n={},r={};for(const[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}function K$(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=a=>{const l={};for(let c=0;ci(Array.isArray(a)?a:r.filter(a));return t.map(o).concat(i(r))}function iS(e,t,n={}){const{stop:r,getKey:i}=n;function o(a,l=[]){if(Nt(a)||Array.isArray(a)){const c={};for(const[u,d]of Object.entries(a)){const f=(i==null?void 0:i(u))??u,p=[...l,f];if(r!=null&&r(a,p))return t(a,l);c[f]=o(d,p)}return c}return t(a,l)}return o(e)}var up={exports:{}};up.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",v="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Null]",g="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",P="[object String]",_="[object Undefined]",j="[object WeakMap]",z="[object ArrayBuffer]",$="[object DataView]",W="[object Float32Array]",Y="[object Float64Array]",ee="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",N="[object Uint8Array]",R="[object Uint8ClampedArray]",F="[object Uint16Array]",M="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,oe={};oe[W]=oe[Y]=oe[ee]=oe[I]=oe[L]=oe[N]=oe[R]=oe[F]=oe[M]=!0,oe[l]=oe[c]=oe[z]=oe[d]=oe[$]=oe[f]=oe[p]=oe[h]=oe[b]=oe[x]=oe[g]=oe[w]=oe[k]=oe[P]=oe[j]=!1;var Q=typeof nd=="object"&&nd&&nd.Object===Object&&nd,ue=typeof self=="object"&&self&&self.Object===Object&&self,ce=Q||ue||Function("return this")(),Be=t&&!t.nodeType&&t,Ze=Be&&!0&&e&&!e.nodeType&&e,te=Ze&&Ze.exports===Be,re=te&&Q.process,ze=function(){try{var C=Ze&&Ze.require&&Ze.require("util").types;return C||re&&re.binding&&re.binding("util")}catch{}}(),ye=ze&&ze.isTypedArray;function ot(C,E,O){switch(O.length){case 0:return C.call(E);case 1:return C.call(E,O[0]);case 2:return C.call(E,O[0],O[1]);case 3:return C.call(E,O[0],O[1],O[2])}return C.apply(E,O)}function ve(C,E){for(var O=-1,le=Array(C);++O-1}function aE(C,E){var O=this.__data__,le=Zu(O,C);return le<0?(++this.size,O.push([C,E])):O[le][1]=E,this}ni.prototype.clear=nE,ni.prototype.delete=rE,ni.prototype.get=iE,ni.prototype.has=oE,ni.prototype.set=aE;function La(C){var E=-1,O=C==null?0:C.length;for(this.clear();++E1?O[Ae-1]:void 0,at=Ae>2?O[2]:void 0;for(Ke=C.length>3&&typeof Ke=="function"?(Ae--,Ke):void 0,at&&ME(O[0],O[1],at)&&(Ke=Ae<3?void 0:Ke,Ae=1),E=Object(E);++le-1&&C%1==0&&C0){if(++E>=i)return arguments[0]}else E=0;return C.apply(void 0,arguments)}}function VE(C){if(C!=null){try{return ei.call(C)}catch{}try{return C+""}catch{}}return""}function td(C,E){return C===E||C!==C&&E!==E}var rh=zx(function(){return arguments}())?zx:function(C){return kl(C)&&se.call(C,"callee")&&!G7.call(C,"callee")},ih=Array.isArray;function oh(C){return C!=null&&Nx(C.length)&&!ah(C)}function UE(C){return kl(C)&&oh(C)}var Lx=q7||XE;function ah(C){if(!No(C))return!1;var E=Ju(C);return E==h||E==v||E==u||E==S}function Nx(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function No(C){var E=typeof C;return C!=null&&(E=="object"||E=="function")}function kl(C){return C!=null&&typeof C=="object"}function HE(C){if(!kl(C)||Ju(C)!=g)return!1;var E=Tx(C);if(E===null)return!0;var O=se.call(E,"constructor")&&E.constructor;return typeof O=="function"&&O instanceof O&&ei.call(O)==Xu}var Dx=ye?ut(ye):SE;function GE(C){return AE(C,Ox(C))}function Ox(C){return oh(C)?vE(C):wE(C)}var KE=$E(function(C,E,O,le){Rx(C,E,O,le)});function qE(C){return function(){return C}}function Fx(C){return C}function XE(){return!1}e.exports=KE})(up,up.exports);var q$=up.exports;const ar=r1(q$);function _r(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function cf(e,t,n,r){const i=_r(n);return m.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function r6(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(p,h)=>p!==h}=e,o=_r(r),a=_r(i),[l,c]=m.useState(n),u=t!==void 0,d=u?t:l,f=_r(p=>{const v=typeof p=="function"?p(d):p;a(d,v)&&(u||c(v),o(v))},[u,o,d,a]);return[d,f]}function wu(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=_r(n),a=_r(t),[l,c]=m.useState(e.defaultIsOpen||!1),u=r!==void 0?r:l,d=r!==void 0,f=m.useId(),p=i??`disclosure-${f}`,h=m.useCallback(()=>{d||c(!1),a==null||a()},[d,a]),v=m.useCallback(()=>{d||c(!0),o==null||o()},[d,o]),b=m.useCallback(()=>{u?h():v()},[u,v,h]);function x(g={}){return{...g,"aria-expanded":u,"aria-controls":p,onClick(S){var w;(w=g.onClick)==null||w.call(g,S),b()}}}function y(g={}){return{...g,hidden:!u,id:p}}return{isOpen:u,onOpen:v,onClose:h,onToggle:b,isControlled:d,getButtonProps:x,getDisclosureProps:y}}const vi=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,dp=(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 X$(e){return"current"in e}const i6=()=>typeof window<"u";function Y$(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const Q$=e=>i6()&&e.test(navigator.vendor),Z$=e=>i6()&&e.test(Y$()),J$=()=>Z$(/mac|iphone|ipad|ipod/i),ez=()=>J$()&&Q$(/apple/i);function tz(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};cf(i,"pointerdown",o=>{var u,d;if(!ez()||!r)return;const a=((d=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:d[0])??o.target,c=(n??[t]).some(f=>{const p=X$(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});i().activeElement!==a&&c&&(o.preventDefault(),a.focus())})}function nz(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 Mt(...e){return t=>{e.forEach(n=>{nz(n,t)})}}function ry(...e){return m.useMemo(()=>Mt(...e),e)}function rz(e,t){const n=_r(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const zt={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}`},Rr=e=>o6(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ri=e=>o6(t=>e(t,"~ &"),"[data-peer]",".peer"),o6=(e,...t)=>t.map(e).join(", "),As={_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:Rr(zt.open),_groupClosed:Rr(zt.closed),_groupHover:Rr(zt.hover),_peerHover:ri(zt.hover),_groupFocus:Rr(zt.focus),_peerFocus:ri(zt.focus),_groupFocusVisible:Rr(zt.focusVisible),_peerFocusVisible:ri(zt.focusVisible),_groupActive:Rr(zt.active),_peerActive:ri(zt.active),_groupDisabled:Rr(zt.disabled),_peerDisabled:ri(zt.disabled),_groupInvalid:Rr(zt.invalid),_peerInvalid:ri(zt.invalid),_groupChecked:Rr(zt.checked),_peerChecked:ri(zt.checked),_groupFocusWithin:Rr(zt.focusWithin),_peerFocusWithin:ri(zt.focusWithin),_peerPlaceholderShown:ri(zt.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]"},a6=Object.keys(As),iz=e=>/!(important)?$/.test(e),oS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,oz=(e,t)=>n=>{const r=String(t),i=iz(r),o=oS(r),a=e?`${e}.${o}`:o;let l=Nt(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=oS(l),i?`${l} !important`:l};function iy(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{const l=oz(t,o)(a);let c=(n==null?void 0:n(l,a))??l;return r&&(c=r(c,a)),c}}const xd=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Jn(e,t){return n=>{const r={property:n,scale:e};return r.transform=iy({scale:e,transform:t}),r}}const az=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function sz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:az(t),transform:n?iy({scale:n,compose:r}):r}}const s6=["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 lz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s6].join(" ")}function cz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s6].join(" ")}const uz={"--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(" ")},dz={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 fz(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 pz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Fg={"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"},mz=new Set(Object.values(Fg)),Bg=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),hz=e=>e.trim();function gz(e,t){if(e==null||Bg.has(e))return e;if(!(Wg(e)||Bg.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],a=i==null?void 0:i[2];if(!o||!a)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[c,...u]=a.split(",").map(hz).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const d=c in Fg?Fg[c]:c;u.unshift(d);const f=u.map(p=>{if(mz.has(p))return p;const h=p.indexOf(" "),[v,b]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=Wg(b)?b:b&&b.split(" "),y=`colors.${v}`,g=y in t.__cssMap?t.__cssMap[y].varRef:v;return x?[g,...Array.isArray(x)?x:[x]].join(" "):g});return`${l}(${f.join(", ")})`}const Wg=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),vz=(e,t)=>gz(e,t??{});function yz(e){return/^var\(--.+\)$/.test(e)}const bz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ir=e=>t=>`${e}(${t})`,Ee={filter(e){return e!=="auto"?e:uz},backdropFilter(e){return e!=="auto"?e:dz},ring(e){return fz(Ee.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?lz():e==="auto-gpu"?cz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=bz(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(yz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:vz,blur:Ir("blur"),opacity:Ir("opacity"),brightness:Ir("brightness"),contrast:Ir("contrast"),dropShadow:Ir("drop-shadow"),grayscale:Ir("grayscale"),hueRotate:e=>Ir("hue-rotate")(Ee.degree(e)),invert:Ir("invert"),saturate:Ir("saturate"),sepia:Ir("sepia"),bgImage(e){return e==null||Wg(e)||Bg.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}=pz[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},T={borderWidths:Jn("borderWidths"),borderStyles:Jn("borderStyles"),colors:Jn("colors"),borders:Jn("borders"),gradients:Jn("gradients",Ee.gradient),radii:Jn("radii",Ee.px),space:Jn("space",xd(Ee.vh,Ee.px)),spaceT:Jn("space",xd(Ee.vh,Ee.px)),degreeT(e){return{property:e,transform:Ee.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:iy({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Jn("sizes",xd(Ee.vh,Ee.px)),sizesT:Jn("sizes",xd(Ee.vh,Ee.fraction)),shadows:Jn("shadows"),logical:sz,blur:Jn("blur",Ee.blur)},uf={background:T.colors("background"),backgroundColor:T.colors("backgroundColor"),backgroundImage:T.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ee.bgClip},bgSize:T.prop("backgroundSize"),bgPosition:T.prop("backgroundPosition"),bg:T.colors("background"),bgColor:T.colors("backgroundColor"),bgPos:T.prop("backgroundPosition"),bgRepeat:T.prop("backgroundRepeat"),bgAttachment:T.prop("backgroundAttachment"),bgGradient:T.gradients("backgroundImage"),bgClip:{transform:Ee.bgClip}};Object.assign(uf,{bgImage:uf.backgroundImage,bgImg:uf.backgroundImage});const Ne={border:T.borders("border"),borderWidth:T.borderWidths("borderWidth"),borderStyle:T.borderStyles("borderStyle"),borderColor:T.colors("borderColor"),borderRadius:T.radii("borderRadius"),borderTop:T.borders("borderTop"),borderBlockStart:T.borders("borderBlockStart"),borderTopLeftRadius:T.radii("borderTopLeftRadius"),borderStartStartRadius:T.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:T.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:T.radii("borderTopRightRadius"),borderStartEndRadius:T.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:T.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:T.borders("borderRight"),borderInlineEnd:T.borders("borderInlineEnd"),borderBottom:T.borders("borderBottom"),borderBlockEnd:T.borders("borderBlockEnd"),borderBottomLeftRadius:T.radii("borderBottomLeftRadius"),borderBottomRightRadius:T.radii("borderBottomRightRadius"),borderLeft:T.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:T.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:T.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:T.borders(["borderLeft","borderRight"]),borderInline:T.borders("borderInline"),borderY:T.borders(["borderTop","borderBottom"]),borderBlock:T.borders("borderBlock"),borderTopWidth:T.borderWidths("borderTopWidth"),borderBlockStartWidth:T.borderWidths("borderBlockStartWidth"),borderTopColor:T.colors("borderTopColor"),borderBlockStartColor:T.colors("borderBlockStartColor"),borderTopStyle:T.borderStyles("borderTopStyle"),borderBlockStartStyle:T.borderStyles("borderBlockStartStyle"),borderBottomWidth:T.borderWidths("borderBottomWidth"),borderBlockEndWidth:T.borderWidths("borderBlockEndWidth"),borderBottomColor:T.colors("borderBottomColor"),borderBlockEndColor:T.colors("borderBlockEndColor"),borderBottomStyle:T.borderStyles("borderBottomStyle"),borderBlockEndStyle:T.borderStyles("borderBlockEndStyle"),borderLeftWidth:T.borderWidths("borderLeftWidth"),borderInlineStartWidth:T.borderWidths("borderInlineStartWidth"),borderLeftColor:T.colors("borderLeftColor"),borderInlineStartColor:T.colors("borderInlineStartColor"),borderLeftStyle:T.borderStyles("borderLeftStyle"),borderInlineStartStyle:T.borderStyles("borderInlineStartStyle"),borderRightWidth:T.borderWidths("borderRightWidth"),borderInlineEndWidth:T.borderWidths("borderInlineEndWidth"),borderRightColor:T.colors("borderRightColor"),borderInlineEndColor:T.colors("borderInlineEndColor"),borderRightStyle:T.borderStyles("borderRightStyle"),borderInlineEndStyle:T.borderStyles("borderInlineEndStyle"),borderTopRadius:T.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:T.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:T.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:T.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ne,{rounded:Ne.borderRadius,roundedTop:Ne.borderTopRadius,roundedTopLeft:Ne.borderTopLeftRadius,roundedTopRight:Ne.borderTopRightRadius,roundedTopStart:Ne.borderStartStartRadius,roundedTopEnd:Ne.borderStartEndRadius,roundedBottom:Ne.borderBottomRadius,roundedBottomLeft:Ne.borderBottomLeftRadius,roundedBottomRight:Ne.borderBottomRightRadius,roundedBottomStart:Ne.borderEndStartRadius,roundedBottomEnd:Ne.borderEndEndRadius,roundedLeft:Ne.borderLeftRadius,roundedRight:Ne.borderRightRadius,roundedStart:Ne.borderInlineStartRadius,roundedEnd:Ne.borderInlineEndRadius,borderStart:Ne.borderInlineStart,borderEnd:Ne.borderInlineEnd,borderTopStartRadius:Ne.borderStartStartRadius,borderTopEndRadius:Ne.borderStartEndRadius,borderBottomStartRadius:Ne.borderEndStartRadius,borderBottomEndRadius:Ne.borderEndEndRadius,borderStartRadius:Ne.borderInlineStartRadius,borderEndRadius:Ne.borderInlineEndRadius,borderStartWidth:Ne.borderInlineStartWidth,borderEndWidth:Ne.borderInlineEndWidth,borderStartColor:Ne.borderInlineStartColor,borderEndColor:Ne.borderInlineEndColor,borderStartStyle:Ne.borderInlineStartStyle,borderEndStyle:Ne.borderInlineEndStyle});const xz={color:T.colors("color"),textColor:T.colors("color"),fill:T.colors("fill"),stroke:T.colors("stroke"),accentColor:T.colors("accentColor"),textFillColor:T.colors("textFillColor")},fp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ee.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:T.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:T.space("gap"),rowGap:T.space("rowGap"),columnGap:T.space("columnGap")};Object.assign(fp,{flexDir:fp.flexDirection});const tr={width:T.sizesT("width"),inlineSize:T.sizesT("inlineSize"),height:T.sizes("height"),blockSize:T.sizes("blockSize"),boxSize:T.sizes(["width","height"]),minWidth:T.sizes("minWidth"),minInlineSize:T.sizes("minInlineSize"),minHeight:T.sizes("minHeight"),minBlockSize:T.sizes("minBlockSize"),maxWidth:T.sizes("maxWidth"),maxInlineSize:T.sizes("maxInlineSize"),maxHeight:T.sizes("maxHeight"),maxBlockSize:T.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 i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:T.propT("float",Ee.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(tr,{w:tr.width,h:tr.height,minW:tr.minWidth,maxW:tr.maxWidth,minH:tr.minHeight,maxH:tr.maxHeight,overscroll:tr.overscrollBehavior,overscrollX:tr.overscrollBehaviorX,overscrollY:tr.overscrollBehaviorY});const Sz={filter:{transform:Ee.filter},blur:T.blur("--chakra-blur"),brightness:T.propT("--chakra-brightness",Ee.brightness),contrast:T.propT("--chakra-contrast",Ee.contrast),hueRotate:T.propT("--chakra-hue-rotate",Ee.hueRotate),invert:T.propT("--chakra-invert",Ee.invert),saturate:T.propT("--chakra-saturate",Ee.saturate),dropShadow:T.propT("--chakra-drop-shadow",Ee.dropShadow),backdropFilter:{transform:Ee.backdropFilter},backdropBlur:T.blur("--chakra-backdrop-blur"),backdropBrightness:T.propT("--chakra-backdrop-brightness",Ee.brightness),backdropContrast:T.propT("--chakra-backdrop-contrast",Ee.contrast),backdropHueRotate:T.propT("--chakra-backdrop-hue-rotate",Ee.hueRotate),backdropInvert:T.propT("--chakra-backdrop-invert",Ee.invert),backdropSaturate:T.propT("--chakra-backdrop-saturate",Ee.saturate)},wz={ring:{transform:Ee.ring},ringColor:T.colors("--chakra-ring-color"),ringOffset:T.prop("--chakra-ring-offset-width"),ringOffsetColor:T.colors("--chakra-ring-offset-color"),ringInset:T.prop("--chakra-ring-inset")},kz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ee.outline},outlineOffset:!0,outlineColor:T.colors("outlineColor")},l6={gridGap:T.space("gridGap"),gridColumnGap:T.space("gridColumnGap"),gridRowGap:T.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 Cz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},Pz=jz(Cz),_z={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Tz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Lh=(e,t,n)=>{const r={},i=Pz(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},Ez={srOnly:{transform(e){return e===!0?_z:e==="focusable"?Tz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Lh(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Lh(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Lh(t,e,n)}},pc={position:!0,pos:T.prop("position"),zIndex:T.prop("zIndex","zIndices"),inset:T.spaceT("inset"),insetX:T.spaceT(["left","right"]),insetInline:T.spaceT("insetInline"),insetY:T.spaceT(["top","bottom"]),insetBlock:T.spaceT("insetBlock"),top:T.spaceT("top"),insetBlockStart:T.spaceT("insetBlockStart"),bottom:T.spaceT("bottom"),insetBlockEnd:T.spaceT("insetBlockEnd"),left:T.spaceT("left"),insetInlineStart:T.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:T.spaceT("right"),insetInlineEnd:T.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(pc,{insetStart:pc.insetInlineStart,insetEnd:pc.insetInlineEnd});const Vg={boxShadow:T.shadows("boxShadow"),mixBlendMode:!0,blendMode:T.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:T.prop("backgroundBlendMode"),opacity:!0};Object.assign(Vg,{shadow:Vg.boxShadow});const et={margin:T.spaceT("margin"),marginTop:T.spaceT("marginTop"),marginBlockStart:T.spaceT("marginBlockStart"),marginRight:T.spaceT("marginRight"),marginInlineEnd:T.spaceT("marginInlineEnd"),marginBottom:T.spaceT("marginBottom"),marginBlockEnd:T.spaceT("marginBlockEnd"),marginLeft:T.spaceT("marginLeft"),marginInlineStart:T.spaceT("marginInlineStart"),marginX:T.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:T.spaceT("marginInline"),marginY:T.spaceT(["marginTop","marginBottom"]),marginBlock:T.spaceT("marginBlock"),padding:T.space("padding"),paddingTop:T.space("paddingTop"),paddingBlockStart:T.space("paddingBlockStart"),paddingRight:T.space("paddingRight"),paddingBottom:T.space("paddingBottom"),paddingBlockEnd:T.space("paddingBlockEnd"),paddingLeft:T.space("paddingLeft"),paddingInlineStart:T.space("paddingInlineStart"),paddingInlineEnd:T.space("paddingInlineEnd"),paddingX:T.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:T.space("paddingInline"),paddingY:T.space(["paddingTop","paddingBottom"]),paddingBlock:T.space("paddingBlock")};Object.assign(et,{m:et.margin,mt:et.marginTop,mr:et.marginRight,me:et.marginInlineEnd,marginEnd:et.marginInlineEnd,mb:et.marginBottom,ml:et.marginLeft,ms:et.marginInlineStart,marginStart:et.marginInlineStart,mx:et.marginX,my:et.marginY,p:et.padding,pt:et.paddingTop,py:et.paddingY,px:et.paddingX,pb:et.paddingBottom,pl:et.paddingLeft,ps:et.paddingInlineStart,paddingStart:et.paddingInlineStart,pr:et.paddingRight,pe:et.paddingInlineEnd,paddingEnd:et.paddingInlineEnd});const Az={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:T.spaceT("scrollMargin"),scrollMarginTop:T.spaceT("scrollMarginTop"),scrollMarginBottom:T.spaceT("scrollMarginBottom"),scrollMarginLeft:T.spaceT("scrollMarginLeft"),scrollMarginRight:T.spaceT("scrollMarginRight"),scrollMarginX:T.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:T.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:T.spaceT("scrollPadding"),scrollPaddingTop:T.spaceT("scrollPaddingTop"),scrollPaddingBottom:T.spaceT("scrollPaddingBottom"),scrollPaddingLeft:T.spaceT("scrollPaddingLeft"),scrollPaddingRight:T.spaceT("scrollPaddingRight"),scrollPaddingX:T.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:T.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},$z={fontFamily:T.prop("fontFamily","fonts"),fontSize:T.prop("fontSize","fontSizes",Ee.px),fontWeight:T.prop("fontWeight","fontWeights"),lineHeight:T.prop("lineHeight","lineHeights"),letterSpacing:T.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"}},zz={textDecorationColor:T.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:T.shadows("textShadow")},Rz={clipPath:!0,transform:T.propT("transform",Ee.transform),transformOrigin:!0,translateX:T.spaceT("--chakra-translate-x"),translateY:T.spaceT("--chakra-translate-y"),skewX:T.degreeT("--chakra-skew-x"),skewY:T.degreeT("--chakra-skew-y"),scaleX:T.prop("--chakra-scale-x"),scaleY:T.prop("--chakra-scale-y"),scale:T.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:T.degreeT("--chakra-rotate")},Iz={listStyleType:!0,listStylePosition:!0,listStylePos:T.prop("listStylePosition"),listStyleImage:!0,listStyleImg:T.prop("listStyleImage")},Mz={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:T.prop("transitionDuration","transition.duration"),transitionProperty:T.prop("transitionProperty","transition.property"),transitionTimingFunction:T.prop("transitionTimingFunction","transition.easing")},oy=ar({},uf,Ne,xz,fp,tr,Sz,wz,kz,l6,Ez,pc,Vg,et,Az,$z,zz,Rz,Iz,Mz),Lz=Object.assign({},et,tr,fp,l6,pc),c6=Object.keys(Lz),Nz=[...Object.keys(oy),...a6],Dz={...oy,...As},Oz=e=>e in Dz,Fz=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let l=cn(e[a],t);if(l==null)continue;if(l=Nt(l)&&n(l)?r(l):l,!Array.isArray(l)){o[a]=l;continue}const c=l.slice(0,i.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!Wz(t),Uz=(e,t)=>{if(t==null)return t;const n=a=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[a])==null?void 0:c.varRef},r=a=>n(a)??a,[i,o]=Bz(t);return t=n(i)??r(o)??r(t),t};function Hz(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var d;const l=cn(o,r),c=Fz(l)(r);let u={};for(let f in c){const p=c[f];let h=cn(p,r);f in n&&(f=n[f]),Vz(f,h)&&(h=Uz(r,h));let v=t[f];if(v===!0&&(v={property:f}),Nt(h)){u[f]=u[f]??{},u[f]=ar({},u[f],i(h,!0));continue}let b=((d=v==null?void 0:v.transform)==null?void 0:d.call(v,h,r,l))??h;b=v!=null&&v.processResult?i(b,!0):b;const x=cn(v==null?void 0:v.property,r);if(!a&&(v!=null&&v.static)){const y=cn(v.static,r);u=ar({},u,y)}if(x&&Array.isArray(x)){for(const y of x)u[y]=b;continue}if(x){x==="&"&&Nt(b)?u=ar({},u,b):u[x]=b;continue}if(Nt(b)){u=ar({},u,b);continue}u[f]=b}return u};return i}const u6=e=>t=>Hz({theme:t,pseudos:As,configs:oy})(e);function fe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Gz(e,t,n){var r,i;return((i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)??n}function Kz(e,t){if(Array.isArray(e))return e;if(Nt(e))return t(e);if(e!=null)return[e]}function qz(e,t){for(let n=t+1;n{ar(l,{[S]:d?g[S]:{[y]:g[S]}})});continue}if(!f){d?ar(l,g):l[y]=g;continue}l[y]=g}}return l}}function Yz(e){return t=>{const{variant:n,size:r,theme:i}=t,o=Xz(i);return ar({},cn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function $e(e){return tm(e,["styleConfig","size","variant","colorScheme"])}function d6(e){return Nt(e)&&e.reference?e.reference:String(e)}const nm=(e,...t)=>t.map(d6).join(` ${e} `).replace(/calc/g,""),aS=(...e)=>`calc(${nm("+",...e)})`,sS=(...e)=>`calc(${nm("-",...e)})`,Ug=(...e)=>`calc(${nm("*",...e)})`,lS=(...e)=>`calc(${nm("/",...e)})`,cS=e=>{const t=d6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ug(t,-1)},ai=Object.assign(e=>({add:(...t)=>ai(aS(e,...t)),subtract:(...t)=>ai(sS(e,...t)),multiply:(...t)=>ai(Ug(e,...t)),divide:(...t)=>ai(lS(e,...t)),negate:()=>ai(cS(e)),toString:()=>e.toString()}),{add:aS,subtract:sS,multiply:Ug,divide:lS,negate:cS});function Qz(e,t="-"){return e.replace(/\s+/g,t)}function Zz(e){const t=Qz(e.toString());return eR(Jz(t))}function Jz(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function eR(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function tR(e,t=""){return[t,e].filter(Boolean).join("-")}function nR(e,t){return`var(${e}${t?`, ${t}`:""})`}function rR(e,t=""){return Zz(`--${tR(e,t)}`)}function X(e,t,n){const r=rR(e,n);return{variable:r,reference:nR(r,t)}}function f6(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=X(`${e}-${i}`,o);continue}n[r]=X(`${e}-${r}`)}return n}const iR=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function oR(e){return JC(e,iR)}function aR(e){return e.semanticTokens}function sR(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function lR(e){const t=oR(e),n=aR(e),r=o=>a6.includes(o)||o==="default",i={};return iS(t,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!1,value:o})}),iS(n,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(r)}),i}function uS(e,t){return X(String(e).replace(/\./g,"-"),void 0,t)}function cR(e){var a;const t=lR(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const i={};function o(l,c){const d=[String(l).split(".")[0],c].join(".");if(!t[d])return c;const{reference:p}=uS(d,n);return p}for(const[l,c]of Object.entries(t)){const{isSemantic:u,value:d}=c,{variable:f,reference:p}=uS(l,n);if(!u){if(l.startsWith("space")){const v=l.split("."),[b,...x]=v,y=`${b}.-${x.join(".")}`,g=ai.negate(d),S=ai.negate(p);i[y]={value:g,var:f,varRef:S}}r[f]=d,i[l]={value:d,var:f,varRef:p};continue}const h=Nt(d)?d:{default:d};r=ar(r,Object.entries(h).reduce((v,[b,x])=>{if(!x)return v;const y=o(l,`${x}`);if(b==="default")return v[f]=y,v;const g=(As==null?void 0:As[b])??b;return v[g]={[f]:y},v},{})),i[l]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:i}}function uR(e){const t=sR(e),{cssMap:n,cssVars:r}=cR(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:$$(t.breakpoints)}),t}function Me(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 i(...d){r();for(const f of d)t[f]=c(f);return Me(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Me(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}const dR=Me("accordion").parts("root","container","button","panel","icon"),p6=Me("alert").parts("title","description","container","icon","spinner"),fR=Me("avatar").parts("label","badge","container","excessLabel","group"),pR=Me("breadcrumb").parts("link","item","container","separator");Me("button").parts();const m6=Me("checkbox").parts("control","icon","container","label");Me("progress").parts("track","filledTrack","label");const mR=Me("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),hR=Me("editable").parts("preview","input","textarea"),h6=Me("form").parts("container","requiredIndicator","helperText"),gR=Me("formError").parts("text","icon"),ay=Me("input").parts("addon","field","element","group"),vR=Me("list").parts("container","item","icon"),g6=Me("menu").parts("button","list","item","groupTitle","icon","command","divider"),v6=Me("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),yR=Me("numberinput").parts("root","field","stepperGroup","stepper");Me("pininput").parts("field");const bR=Me("popover").parts("content","header","body","footer","popper","arrow","closeButton"),y6=Me("progress").parts("label","filledTrack","track"),b6=Me("radio").parts("container","control","label"),xR=Me("select").parts("field","icon"),x6=Me("slider").parts("container","track","thumb","filledTrack","mark"),SR=Me("stat").parts("container","label","helpText","number","icon"),S6=Me("switch").parts("container","track","thumb","label"),wR=Me("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),kR=Me("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),CR=Me("tag").parts("container","label","closeButton"),w6=Me("card").parts("container","header","body","footer");Me("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:jR,defineMultiStyleConfig:PR}=fe(dR.keys),_R={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},TR={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},ER={pt:"2",px:"4",pb:"5"},AR={fontSize:"1.25em"},$R=jR({container:_R,button:TR,panel:ER,icon:AR}),zR=PR({baseStyle:$R});function Zo(e,t,n){return Math.min(Math.max(e,n),t)}class Kl extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function sy(e){if(typeof e!="string")throw new Kl(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=FR.test(e)?MR(e):e;const n=LR.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(l=>parseInt(Gc(l,2),16)),parseInt(Gc(a[3]||"f",2),16)/255]}const r=NR.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,16)),parseInt(a[3]||"ff",16)/255]}const i=DR.exec(t);if(i){const a=Array.from(i).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,10)),parseFloat(a[3]||"1")]}const o=OR.exec(t);if(o){const[a,l,c,u]=Array.from(o).slice(1).map(parseFloat);if(Zo(0,100,l)!==l)throw new Kl(e);if(Zo(0,100,c)!==c)throw new Kl(e);return[...BR(a,l,c),Number.isNaN(u)?1:u]}throw new Kl(e)}function RR(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const dS=e=>parseInt(e.replace(/_/g,""),36),IR="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=dS(t.substring(0,3)),r=dS(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function MR(e){const t=e.toLowerCase().trim(),n=IR[RR(t)];if(!n)throw new Kl(e);return`#${n}`}const Gc=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),LR=new RegExp(`^#${Gc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),NR=new RegExp(`^#${Gc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),DR=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Gc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),OR=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,FR=/^[a-z]+$/i,fS=e=>Math.round(e*255),BR=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(fS);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1));let l=0,c=0,u=0;i>=0&&i<1?(l=o,c=a):i>=1&&i<2?(l=a,c=o):i>=2&&i<3?(c=o,u=a):i>=3&&i<4?(c=a,u=o):i>=4&&i<5?(l=a,u=o):i>=5&&i<6&&(l=o,u=a);const d=r-o/2,f=l+d,p=c+d,h=u+d;return[f,p,h].map(fS)};function WR(e,t,n,r){return`rgba(${Zo(0,255,e).toFixed()}, ${Zo(0,255,t).toFixed()}, ${Zo(0,255,n).toFixed()}, ${parseFloat(Zo(0,1,r).toFixed(3))})`}function VR(e,t){const[n,r,i,o]=sy(e);return WR(n,r,i,o-t)}function UR(e){const[t,n,r,i]=sy(e);let o=a=>{const l=Zo(0,255,a).toString(16);return l.length===1?`0${l}`:l};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const HR=e=>Object.keys(e).length===0;function GR(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{const r=GR(e,`colors.${t}`,t);try{return UR(r),r}catch{return n??"#000000"}},KR=e=>{const[t,n,r]=sy(e);return(t*299+n*587+r*114)/1e3},qR=e=>t=>{const n=nt(t,e);return KR(n)<128?"dark":"light"},XR=e=>t=>qR(e)(t)==="dark",Ut=(e,t)=>n=>{const r=nt(n,e);return VR(r,1-t)};function pS(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -46,19 +46,19 @@ Error generating stack: `+o.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}const eI=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function tI(e){const t=eI();return!e||XR(e)?t:e.string&&e.colors?rI(e.string,e.colors):e.string&&!e.colors?nI(e.string):e.colors&&!e.string?iI(e.colors):t}function nI(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function rI(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function cy(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function _6(e){return Nt(e)&&e.reference?e.reference:String(e)}const rm=(e,...t)=>t.map(_6).join(` ${e} `).replace(/calc/g,""),gS=(...e)=>`calc(${rm("+",...e)})`,vS=(...e)=>`calc(${rm("-",...e)})`,Hg=(...e)=>`calc(${rm("*",...e)})`,yS=(...e)=>`calc(${rm("/",...e)})`,bS=e=>{const t=_6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hg(t,-1)},si=Object.assign(e=>({add:(...t)=>si(gS(e,...t)),subtract:(...t)=>si(vS(e,...t)),multiply:(...t)=>si(Hg(e,...t)),divide:(...t)=>si(yS(e,...t)),negate:()=>si(bS(e)),toString:()=>e.toString()}),{add:gS,subtract:vS,multiply:Hg,divide:yS,negate:bS});function oI(e){return!Number.isInteger(parseFloat(e.toString()))}function aI(e,t="-"){return e.replace(/\s+/g,t)}function T6(e){const t=aI(e.toString());return t.includes("\\.")?e:oI(e)?t.replace(".","\\."):e}function sI(e,t=""){return[t,T6(e)].filter(Boolean).join("-")}function lI(e,t){return`var(${T6(e)}${t?`, ${t}`:""})`}function cI(e,t=""){return`--${sI(e,t)}`}function wt(e,t){const n=cI(e,t==null?void 0:t.prefix);return{variable:n,reference:lI(n,uI(t==null?void 0:t.fallback))}}function uI(e){return e==null?void 0:e.reference}const{definePartsStyle:ku,defineMultiStyleConfig:dI}=fe(v6.keys),Fn=X("alert-fg"),ji=X("alert-bg"),fI=ku({container:{bg:ji.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function uy(e){const{theme:t,colorScheme:n}=e,r=Ut(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const pI=ku(e=>{const{colorScheme:t}=e,n=uy(e);return{container:{[Fn.variable]:`colors.${t}.600`,[ji.variable]:n.light,_dark:{[Fn.variable]:`colors.${t}.200`,[ji.variable]:n.dark}}}}),mI=ku(e=>{const{colorScheme:t}=e,n=uy(e);return{container:{[Fn.variable]:`colors.${t}.600`,[ji.variable]:n.light,_dark:{[Fn.variable]:`colors.${t}.200`,[ji.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Fn.reference}}}),hI=ku(e=>{const{colorScheme:t}=e,n=uy(e);return{container:{[Fn.variable]:`colors.${t}.600`,[ji.variable]:n.light,_dark:{[Fn.variable]:`colors.${t}.200`,[ji.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Fn.reference}}}),gI=ku(e=>{const{colorScheme:t}=e;return{container:{[Fn.variable]:"colors.white",[ji.variable]:`colors.${t}.600`,_dark:{[Fn.variable]:"colors.gray.900",[ji.variable]:`colors.${t}.200`},color:Fn.reference}}}),vI={subtle:pI,"left-accent":mI,"top-accent":hI,solid:gI},yI=dI({baseStyle:fI,variants:vI,defaultProps:{variant:"subtle",colorScheme:"blue"}}),E6={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"},bI={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"},xI={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},A6={...E6,...bI,container:xI},SI=e=>typeof e=="function";function gn(e,...t){return SI(e)?e(...t):e}const{definePartsStyle:$6,defineMultiStyleConfig:wI}=fe(gR.keys),$s=X("avatar-border-color"),mc=X("avatar-bg"),Kc=X("avatar-font-size"),qs=X("avatar-size"),kI={borderRadius:"full",border:"0.2em solid",borderColor:$s.reference,[$s.variable]:"white",_dark:{[$s.variable]:"colors.gray.800"}},CI={bg:mc.reference,fontSize:Kc.reference,width:qs.reference,height:qs.reference,lineHeight:"1",[mc.variable]:"colors.gray.200",_dark:{[mc.variable]:"colors.whiteAlpha.400"}},jI=e=>{const{name:t,theme:n}=e,r=t?tI({string:t}):"colors.gray.400",i=JR(r)(n);let o="white";return i||(o="gray.800"),{bg:mc.reference,fontSize:Kc.reference,color:o,borderColor:$s.reference,verticalAlign:"top",width:qs.reference,height:qs.reference,"&:not([data-loaded])":{[mc.variable]:r},[$s.variable]:"colors.white",_dark:{[$s.variable]:"colors.gray.800"}}},PI={fontSize:Kc.reference,lineHeight:"1"},_I=$6(e=>({badge:gn(kI,e),excessLabel:gn(CI,e),container:gn(jI,e),label:PI}));function Ni(e){const t=e!=="100%"?A6[e]:void 0;return $6({container:{[qs.variable]:t??e,[Kc.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[qs.variable]:t??e,[Kc.variable]:`calc(${t??e} / 2.5)`}})}const TI={"2xs":Ni(4),xs:Ni(6),sm:Ni(8),md:Ni(12),lg:Ni(16),xl:Ni(24),"2xl":Ni(32),full:Ni("100%")},EI=wI({baseStyle:_I,sizes:TI,defaultProps:{size:"md"}}),jt=g6("badge",["bg","color","shadow"]),AI={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:jt.bg.reference,color:jt.color.reference,boxShadow:jt.shadow.reference},$I=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.500`,.6)(n);return{[jt.bg.variable]:`colors.${t}.500`,[jt.color.variable]:"colors.white",_dark:{[jt.bg.variable]:r,[jt.color.variable]:"colors.whiteAlpha.800"}}},zI=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.200`,.16)(n);return{[jt.bg.variable]:`colors.${t}.100`,[jt.color.variable]:`colors.${t}.800`,_dark:{[jt.bg.variable]:r,[jt.color.variable]:`colors.${t}.200`}}},RI=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.200`,.8)(n);return{[jt.color.variable]:`colors.${t}.500`,_dark:{[jt.color.variable]:r},[jt.shadow.variable]:`inset 0 0 0px 1px ${jt.color.reference}`}},II={solid:$I,subtle:zI,outline:RI},hc={baseStyle:AI,variants:II,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:MI,definePartsStyle:LI}=fe(vR.keys),Nh=X("breadcrumb-link-decor"),NI={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"}}},DI=LI({link:NI}),OI=MI({baseStyle:DI}),FI={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"}}},z6=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:J("gray.800","whiteAlpha.900")(e),_hover:{bg:J("gray.100","whiteAlpha.200")(e)},_active:{bg:J("gray.200","whiteAlpha.300")(e)}};const r=Ut(`${t}.200`,.12)(n),i=Ut(`${t}.200`,.24)(n);return{color:J(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:J(`${t}.50`,r)(e)},_active:{bg:J(`${t}.100`,i)(e)}}},BI=e=>{const{colorScheme:t}=e,n=J("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"},...gn(z6,e)}},WI={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},VI=e=>{const{colorScheme:t}=e;if(t==="gray"){const l=J("gray.100","whiteAlpha.200")(e);return{bg:l,color:J("gray.800","whiteAlpha.900")(e),_hover:{bg:J("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:J("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=WI[t]??{},a=J(n,`${t}.200`)(e);return{bg:a,color:J(r,"gray.800")(e),_hover:{bg:J(i,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:J(o,`${t}.400`)(e)}}},UI=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:J(`${t}.700`,`${t}.500`)(e)}}},HI={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},GI={ghost:z6,outline:BI,solid:VI,link:UI,unstyled:HI},KI={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"}},qI={baseStyle:FI,variants:GI,sizes:KI,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:aa,defineMultiStyleConfig:XI}=fe(P6.keys),pp=X("card-bg"),yi=X("card-padding"),R6=X("card-shadow"),df=X("card-radius"),I6=X("card-border-width","0"),M6=X("card-border-color"),YI=aa({container:{[pp.variable]:"colors.chakra-body-bg",backgroundColor:pp.reference,boxShadow:R6.reference,borderRadius:df.reference,color:"chakra-body-text",borderWidth:I6.reference,borderColor:M6.reference},body:{padding:yi.reference,flex:"1 1 0%"},header:{padding:yi.reference},footer:{padding:yi.reference}}),QI={sm:aa({container:{[df.variable]:"radii.base",[yi.variable]:"space.3"}}),md:aa({container:{[df.variable]:"radii.md",[yi.variable]:"space.5"}}),lg:aa({container:{[df.variable]:"radii.xl",[yi.variable]:"space.7"}})},ZI={elevated:aa({container:{[R6.variable]:"shadows.base",_dark:{[pp.variable]:"colors.gray.700"}}}),outline:aa({container:{[I6.variable]:"1px",[M6.variable]:"colors.chakra-border-color"}}),filled:aa({container:{[pp.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[yi.variable]:0},header:{[yi.variable]:0},footer:{[yi.variable]:0}}},JI=XI({baseStyle:YI,variants:ZI,sizes:QI,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:ff,defineMultiStyleConfig:eM}=fe(y6.keys),gc=X("checkbox-size"),tM=e=>{const{colorScheme:t}=e;return{w:gc.reference,h:gc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e),_hover:{bg:J(`${t}.600`,`${t}.300`)(e),borderColor:J(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:J("gray.200","transparent")(e),bg:J("gray.200","whiteAlpha.300")(e),color:J("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e)},_disabled:{bg:J("gray.100","whiteAlpha.100")(e),borderColor:J("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:J("red.500","red.300")(e)}}},nM={_disabled:{cursor:"not-allowed"}},rM={userSelect:"none",_disabled:{opacity:.4}},iM={transitionProperty:"transform",transitionDuration:"normal"},oM=ff(e=>({icon:iM,container:nM,control:gn(tM,e),label:rM})),aM={sm:ff({control:{[gc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ff({control:{[gc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ff({control:{[gc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Hi=eM({baseStyle:oM,sizes:aM,defaultProps:{size:"md",colorScheme:"blue"}}),vc=wt("close-button-size"),Rl=wt("close-button-bg"),sM={w:[vc.reference],h:[vc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Rl.variable]:"colors.blackAlpha.100",_dark:{[Rl.variable]:"colors.whiteAlpha.100"}},_active:{[Rl.variable]:"colors.blackAlpha.200",_dark:{[Rl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Rl.reference},lM={lg:{[vc.variable]:"sizes.10",fontSize:"md"},md:{[vc.variable]:"sizes.8",fontSize:"xs"},sm:{[vc.variable]:"sizes.6",fontSize:"2xs"}},cM={baseStyle:sM,sizes:lM,defaultProps:{size:"md"}},{variants:uM,defaultProps:dM}=hc,fM={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:jt.bg.reference,color:jt.color.reference,boxShadow:jt.shadow.reference},pM={baseStyle:fM,variants:uM,defaultProps:dM},mM={w:"100%",mx:"auto",maxW:"prose",px:"4"},hM={baseStyle:mM},gM={opacity:.6,borderColor:"inherit"},vM={borderStyle:"solid"},yM={borderStyle:"dashed"},bM={solid:vM,dashed:yM},xM={baseStyle:gM,variants:bM,defaultProps:{variant:"solid"}},{definePartsStyle:Gg,defineMultiStyleConfig:SM}=fe(yR.keys),Dh=X("drawer-bg"),Oh=X("drawer-box-shadow");function Oa(e){return Gg(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const wM={bg:"blackAlpha.600",zIndex:"modal"},kM={display:"flex",zIndex:"modal",justifyContent:"center"},CM=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Dh.variable]:"colors.white",[Oh.variable]:"shadows.lg",_dark:{[Dh.variable]:"colors.gray.700",[Oh.variable]:"shadows.dark-lg"},bg:Dh.reference,boxShadow:Oh.reference}},jM={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},PM={position:"absolute",top:"2",insetEnd:"3"},_M={px:"6",py:"2",flex:"1",overflow:"auto"},TM={px:"6",py:"4"},EM=Gg(e=>({overlay:wM,dialogContainer:kM,dialog:gn(CM,e),header:jM,closeButton:PM,body:_M,footer:TM})),AM={xs:Oa("xs"),sm:Oa("md"),md:Oa("lg"),lg:Oa("2xl"),xl:Oa("4xl"),full:Oa("full")},$M=SM({baseStyle:EM,sizes:AM,defaultProps:{size:"xs"}}),{definePartsStyle:zM,defineMultiStyleConfig:RM}=fe(bR.keys),IM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},MM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},LM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},NM=zM({preview:IM,input:MM,textarea:LM}),DM=RM({baseStyle:NM}),{definePartsStyle:OM,defineMultiStyleConfig:FM}=fe(b6.keys),zs=X("form-control-color"),BM={marginStart:"1",[zs.variable]:"colors.red.500",_dark:{[zs.variable]:"colors.red.300"},color:zs.reference},WM={mt:"2",[zs.variable]:"colors.gray.600",_dark:{[zs.variable]:"colors.whiteAlpha.600"},color:zs.reference,lineHeight:"normal",fontSize:"sm"},VM=OM({container:{width:"100%",position:"relative"},requiredIndicator:BM,helperText:WM}),UM=FM({baseStyle:VM}),{definePartsStyle:HM,defineMultiStyleConfig:GM}=fe(xR.keys),Rs=X("form-error-color"),KM={[Rs.variable]:"colors.red.500",_dark:{[Rs.variable]:"colors.red.300"},color:Rs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},qM={marginEnd:"0.5em",[Rs.variable]:"colors.red.500",_dark:{[Rs.variable]:"colors.red.300"},color:Rs.reference},XM=HM({text:KM,icon:qM}),YM=GM({baseStyle:XM}),QM={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},ZM={baseStyle:QM},JM={fontFamily:"heading",fontWeight:"bold"},eL={"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}},tL={baseStyle:JM,sizes:eL,defaultProps:{size:"xl"}},{definePartsStyle:fi,defineMultiStyleConfig:nL}=fe(sy.keys),ss=X("input-height"),ls=X("input-font-size"),cs=X("input-padding"),us=X("input-border-radius"),rL=fi({addon:{height:ss.reference,fontSize:ls.reference,px:cs.reference,borderRadius:us.reference},field:{width:"100%",height:ss.reference,fontSize:ls.reference,px:cs.reference,borderRadius:us.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Di={lg:{[ls.variable]:"fontSizes.lg",[cs.variable]:"space.4",[us.variable]:"radii.md",[ss.variable]:"sizes.12"},md:{[ls.variable]:"fontSizes.md",[cs.variable]:"space.4",[us.variable]:"radii.md",[ss.variable]:"sizes.10"},sm:{[ls.variable]:"fontSizes.sm",[cs.variable]:"space.3",[us.variable]:"radii.sm",[ss.variable]:"sizes.8"},xs:{[ls.variable]:"fontSizes.xs",[cs.variable]:"space.2",[us.variable]:"radii.sm",[ss.variable]:"sizes.6"}},iL={lg:fi({field:Di.lg,group:Di.lg}),md:fi({field:Di.md,group:Di.md}),sm:fi({field:Di.sm,group:Di.sm}),xs:fi({field:Di.xs,group:Di.xs})};function dy(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}const oL=fi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=dy(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0 0 0 1px ${nt(t,r)}`},_focusVisible:{zIndex:1,borderColor:nt(t,n),boxShadow:`0 0 0 1px ${nt(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),aL=fi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=dy(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r)},_focusVisible:{bg:"transparent",borderColor:nt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),sL=fi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=dy(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0px 1px 0px 0px ${nt(t,r)}`},_focusVisible:{borderColor:nt(t,n),boxShadow:`0px 1px 0px 0px ${nt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),lL=fi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),cL={outline:oL,filled:aL,flushed:sL,unstyled:lL},Fe=nL({baseStyle:rL,sizes:iL,variants:cL,defaultProps:{size:"md",variant:"outline"}}),Fh=X("kbd-bg"),uL={[Fh.variable]:"colors.gray.100",_dark:{[Fh.variable]:"colors.whiteAlpha.100"},bg:Fh.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},dL={baseStyle:uL},fL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},pL={baseStyle:fL},{defineMultiStyleConfig:mL,definePartsStyle:hL}=fe(SR.keys),gL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},vL=hL({icon:gL}),yL=mL({baseStyle:vL}),{defineMultiStyleConfig:bL,definePartsStyle:xL}=fe(x6.keys),Nr=X("menu-bg"),Bh=X("menu-shadow"),SL={[Nr.variable]:"#fff",[Bh.variable]:"shadows.sm",_dark:{[Nr.variable]:"colors.gray.700",[Bh.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Nr.reference,boxShadow:Bh.reference},wL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Nr.variable]:"colors.gray.100",_dark:{[Nr.variable]:"colors.whiteAlpha.100"}},_active:{[Nr.variable]:"colors.gray.200",_dark:{[Nr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Nr.variable]:"colors.gray.100",_dark:{[Nr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Nr.reference},kL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},CL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},jL={opacity:.6},PL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},_L={transitionProperty:"common",transitionDuration:"normal"},TL=xL({button:_L,list:SL,item:wL,groupTitle:kL,icon:CL,command:jL,divider:PL}),EL=bL({baseStyle:TL}),{defineMultiStyleConfig:AL,definePartsStyle:Kg}=fe(S6.keys),Wh=X("modal-bg"),Vh=X("modal-shadow"),$L={bg:"blackAlpha.600",zIndex:"modal"},zL=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"}},RL=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,[Wh.variable]:"colors.white",[Vh.variable]:"shadows.lg",_dark:{[Wh.variable]:"colors.gray.700",[Vh.variable]:"shadows.dark-lg"},bg:Wh.reference,boxShadow:Vh.reference}},IL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},ML={position:"absolute",top:"2",insetEnd:"3"},LL=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},NL={px:"6",py:"4"},DL=Kg(e=>({overlay:$L,dialogContainer:gn(zL,e),dialog:gn(RL,e),header:IL,closeButton:ML,body:gn(LL,e),footer:NL}));function vr(e){return Kg(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const OL={xs:vr("xs"),sm:vr("sm"),md:vr("md"),lg:vr("lg"),xl:vr("xl"),"2xl":vr("2xl"),"3xl":vr("3xl"),"4xl":vr("4xl"),"5xl":vr("5xl"),"6xl":vr("6xl"),full:vr("full")},FL=AL({baseStyle:DL,sizes:OL,defaultProps:{size:"md"}}),L6={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:BL,definePartsStyle:N6}=fe(wR.keys),fy=wt("number-input-stepper-width"),D6=wt("number-input-input-padding"),WL=si(fy).add("0.5rem").toString(),Uh=wt("number-input-bg"),Hh=wt("number-input-color"),Gh=wt("number-input-border-color"),VL={[fy.variable]:"sizes.6",[D6.variable]:WL},UL=e=>{var t;return((t=gn(Fe.baseStyle,e))==null?void 0:t.field)??{}},HL={width:fy.reference},GL={borderStart:"1px solid",borderStartColor:Gh.reference,color:Hh.reference,bg:Uh.reference,[Hh.variable]:"colors.chakra-body-text",[Gh.variable]:"colors.chakra-border-color",_dark:{[Hh.variable]:"colors.whiteAlpha.800",[Gh.variable]:"colors.whiteAlpha.300"},_active:{[Uh.variable]:"colors.gray.200",_dark:{[Uh.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},KL=N6(e=>({root:VL,field:gn(UL,e)??{},stepperGroup:HL,stepper:GL}));function Sd(e){var o,a;const t=(o=Fe.sizes)==null?void 0:o[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",i=L6.fontSizes[r];return N6({field:{...t.field,paddingInlineEnd:D6.reference,verticalAlign:"top"},stepper:{fontSize:si(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const qL={xs:Sd("xs"),sm:Sd("sm"),md:Sd("md"),lg:Sd("lg")},XL=BL({baseStyle:KL,sizes:qL,variants:Fe.variants,defaultProps:Fe.defaultProps});var Ck;const YL={...(Ck=Fe.baseStyle)==null?void 0:Ck.field,textAlign:"center"},QL={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 jk;const ZL={outline:e=>{var t,n;return((n=gn((t=Fe.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=gn((t=Fe.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=gn((t=Fe.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((jk=Fe.variants)==null?void 0:jk.unstyled.field)??{}},JL={baseStyle:YL,sizes:QL,variants:ZL,defaultProps:Fe.defaultProps},{defineMultiStyleConfig:eN,definePartsStyle:tN}=fe(kR.keys),wd=wt("popper-bg"),nN=wt("popper-arrow-bg"),xS=wt("popper-arrow-shadow-color"),rN={zIndex:"popover"},iN={[wd.variable]:"colors.white",bg:wd.reference,[nN.variable]:wd.reference,[xS.variable]:"colors.gray.200",_dark:{[wd.variable]:"colors.gray.700",[xS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},oN={px:3,py:2,borderBottomWidth:"1px"},aN={px:3,py:2},sN={px:3,py:2,borderTopWidth:"1px"},lN={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},cN=tN({popper:rN,content:iN,header:oN,body:aN,footer:sN,closeButton:lN}),uN=eN({baseStyle:cN}),{defineMultiStyleConfig:dN,definePartsStyle:ql}=fe(w6.keys),fN=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=J(hS(),hS("1rem","rgba(0,0,0,0.1)"))(e),a=J(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}const YR=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function QR(e){const t=YR();return!e||HR(e)?t:e.string&&e.colors?JR(e.string,e.colors):e.string&&!e.colors?ZR(e.string):e.colors&&!e.string?eI(e.colors):t}function ZR(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function JR(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function ly(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function k6(e){return Nt(e)&&e.reference?e.reference:String(e)}const rm=(e,...t)=>t.map(k6).join(` ${e} `).replace(/calc/g,""),mS=(...e)=>`calc(${rm("+",...e)})`,hS=(...e)=>`calc(${rm("-",...e)})`,Hg=(...e)=>`calc(${rm("*",...e)})`,gS=(...e)=>`calc(${rm("/",...e)})`,vS=e=>{const t=k6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hg(t,-1)},si=Object.assign(e=>({add:(...t)=>si(mS(e,...t)),subtract:(...t)=>si(hS(e,...t)),multiply:(...t)=>si(Hg(e,...t)),divide:(...t)=>si(gS(e,...t)),negate:()=>si(vS(e)),toString:()=>e.toString()}),{add:mS,subtract:hS,multiply:Hg,divide:gS,negate:vS});function tI(e){return!Number.isInteger(parseFloat(e.toString()))}function nI(e,t="-"){return e.replace(/\s+/g,t)}function C6(e){const t=nI(e.toString());return t.includes("\\.")?e:tI(e)?t.replace(".","\\."):e}function rI(e,t=""){return[t,C6(e)].filter(Boolean).join("-")}function iI(e,t){return`var(${C6(e)}${t?`, ${t}`:""})`}function oI(e,t=""){return`--${rI(e,t)}`}function wt(e,t){const n=oI(e,t==null?void 0:t.prefix);return{variable:n,reference:iI(n,aI(t==null?void 0:t.fallback))}}function aI(e){return e==null?void 0:e.reference}const{definePartsStyle:ku,defineMultiStyleConfig:sI}=fe(p6.keys),Fn=X("alert-fg"),ji=X("alert-bg"),lI=ku({container:{bg:ji.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Fn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function cy(e){const{theme:t,colorScheme:n}=e,r=Ut(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const cI=ku(e=>{const{colorScheme:t}=e,n=cy(e);return{container:{[Fn.variable]:`colors.${t}.600`,[ji.variable]:n.light,_dark:{[Fn.variable]:`colors.${t}.200`,[ji.variable]:n.dark}}}}),uI=ku(e=>{const{colorScheme:t}=e,n=cy(e);return{container:{[Fn.variable]:`colors.${t}.600`,[ji.variable]:n.light,_dark:{[Fn.variable]:`colors.${t}.200`,[ji.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Fn.reference}}}),dI=ku(e=>{const{colorScheme:t}=e,n=cy(e);return{container:{[Fn.variable]:`colors.${t}.600`,[ji.variable]:n.light,_dark:{[Fn.variable]:`colors.${t}.200`,[ji.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Fn.reference}}}),fI=ku(e=>{const{colorScheme:t}=e;return{container:{[Fn.variable]:"colors.white",[ji.variable]:`colors.${t}.600`,_dark:{[Fn.variable]:"colors.gray.900",[ji.variable]:`colors.${t}.200`},color:Fn.reference}}}),pI={subtle:cI,"left-accent":uI,"top-accent":dI,solid:fI},mI=sI({baseStyle:lI,variants:pI,defaultProps:{variant:"subtle",colorScheme:"blue"}}),j6={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"},hI={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"},gI={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},P6={...j6,...hI,container:gI},vI=e=>typeof e=="function";function gn(e,...t){return vI(e)?e(...t):e}const{definePartsStyle:_6,defineMultiStyleConfig:yI}=fe(fR.keys),$s=X("avatar-border-color"),mc=X("avatar-bg"),Kc=X("avatar-font-size"),qs=X("avatar-size"),bI={borderRadius:"full",border:"0.2em solid",borderColor:$s.reference,[$s.variable]:"white",_dark:{[$s.variable]:"colors.gray.800"}},xI={bg:mc.reference,fontSize:Kc.reference,width:qs.reference,height:qs.reference,lineHeight:"1",[mc.variable]:"colors.gray.200",_dark:{[mc.variable]:"colors.whiteAlpha.400"}},SI=e=>{const{name:t,theme:n}=e,r=t?QR({string:t}):"colors.gray.400",i=XR(r)(n);let o="white";return i||(o="gray.800"),{bg:mc.reference,fontSize:Kc.reference,color:o,borderColor:$s.reference,verticalAlign:"top",width:qs.reference,height:qs.reference,"&:not([data-loaded])":{[mc.variable]:r},[$s.variable]:"colors.white",_dark:{[$s.variable]:"colors.gray.800"}}},wI={fontSize:Kc.reference,lineHeight:"1"},kI=_6(e=>({badge:gn(bI,e),excessLabel:gn(xI,e),container:gn(SI,e),label:wI}));function Ni(e){const t=e!=="100%"?P6[e]:void 0;return _6({container:{[qs.variable]:t??e,[Kc.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[qs.variable]:t??e,[Kc.variable]:`calc(${t??e} / 2.5)`}})}const CI={"2xs":Ni(4),xs:Ni(6),sm:Ni(8),md:Ni(12),lg:Ni(16),xl:Ni(24),"2xl":Ni(32),full:Ni("100%")},jI=yI({baseStyle:kI,sizes:CI,defaultProps:{size:"md"}}),jt=f6("badge",["bg","color","shadow"]),PI={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:jt.bg.reference,color:jt.color.reference,boxShadow:jt.shadow.reference},_I=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.500`,.6)(n);return{[jt.bg.variable]:`colors.${t}.500`,[jt.color.variable]:"colors.white",_dark:{[jt.bg.variable]:r,[jt.color.variable]:"colors.whiteAlpha.800"}}},TI=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.200`,.16)(n);return{[jt.bg.variable]:`colors.${t}.100`,[jt.color.variable]:`colors.${t}.800`,_dark:{[jt.bg.variable]:r,[jt.color.variable]:`colors.${t}.200`}}},EI=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.200`,.8)(n);return{[jt.color.variable]:`colors.${t}.500`,_dark:{[jt.color.variable]:r},[jt.shadow.variable]:`inset 0 0 0px 1px ${jt.color.reference}`}},AI={solid:_I,subtle:TI,outline:EI},hc={baseStyle:PI,variants:AI,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:$I,definePartsStyle:zI}=fe(pR.keys),Nh=X("breadcrumb-link-decor"),RI={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"}}},II=zI({link:RI}),MI=$I({baseStyle:II}),LI={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"}}},T6=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:J("gray.800","whiteAlpha.900")(e),_hover:{bg:J("gray.100","whiteAlpha.200")(e)},_active:{bg:J("gray.200","whiteAlpha.300")(e)}};const r=Ut(`${t}.200`,.12)(n),i=Ut(`${t}.200`,.24)(n);return{color:J(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:J(`${t}.50`,r)(e)},_active:{bg:J(`${t}.100`,i)(e)}}},NI=e=>{const{colorScheme:t}=e,n=J("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"},...gn(T6,e)}},DI={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},OI=e=>{const{colorScheme:t}=e;if(t==="gray"){const l=J("gray.100","whiteAlpha.200")(e);return{bg:l,color:J("gray.800","whiteAlpha.900")(e),_hover:{bg:J("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:J("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=DI[t]??{},a=J(n,`${t}.200`)(e);return{bg:a,color:J(r,"gray.800")(e),_hover:{bg:J(i,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:J(o,`${t}.400`)(e)}}},FI=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:J(`${t}.700`,`${t}.500`)(e)}}},BI={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},WI={ghost:T6,outline:NI,solid:OI,link:FI,unstyled:BI},VI={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"}},UI={baseStyle:LI,variants:WI,sizes:VI,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:aa,defineMultiStyleConfig:HI}=fe(w6.keys),pp=X("card-bg"),yi=X("card-padding"),E6=X("card-shadow"),df=X("card-radius"),A6=X("card-border-width","0"),$6=X("card-border-color"),GI=aa({container:{[pp.variable]:"colors.chakra-body-bg",backgroundColor:pp.reference,boxShadow:E6.reference,borderRadius:df.reference,color:"chakra-body-text",borderWidth:A6.reference,borderColor:$6.reference},body:{padding:yi.reference,flex:"1 1 0%"},header:{padding:yi.reference},footer:{padding:yi.reference}}),KI={sm:aa({container:{[df.variable]:"radii.base",[yi.variable]:"space.3"}}),md:aa({container:{[df.variable]:"radii.md",[yi.variable]:"space.5"}}),lg:aa({container:{[df.variable]:"radii.xl",[yi.variable]:"space.7"}})},qI={elevated:aa({container:{[E6.variable]:"shadows.base",_dark:{[pp.variable]:"colors.gray.700"}}}),outline:aa({container:{[A6.variable]:"1px",[$6.variable]:"colors.chakra-border-color"}}),filled:aa({container:{[pp.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[yi.variable]:0},header:{[yi.variable]:0},footer:{[yi.variable]:0}}},XI=HI({baseStyle:GI,variants:qI,sizes:KI,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:ff,defineMultiStyleConfig:YI}=fe(m6.keys),gc=X("checkbox-size"),QI=e=>{const{colorScheme:t}=e;return{w:gc.reference,h:gc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e),_hover:{bg:J(`${t}.600`,`${t}.300`)(e),borderColor:J(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:J("gray.200","transparent")(e),bg:J("gray.200","whiteAlpha.300")(e),color:J("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e)},_disabled:{bg:J("gray.100","whiteAlpha.100")(e),borderColor:J("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:J("red.500","red.300")(e)}}},ZI={_disabled:{cursor:"not-allowed"}},JI={userSelect:"none",_disabled:{opacity:.4}},eM={transitionProperty:"transform",transitionDuration:"normal"},tM=ff(e=>({icon:eM,container:ZI,control:gn(QI,e),label:JI})),nM={sm:ff({control:{[gc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ff({control:{[gc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ff({control:{[gc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Hi=YI({baseStyle:tM,sizes:nM,defaultProps:{size:"md",colorScheme:"blue"}}),vc=wt("close-button-size"),Rl=wt("close-button-bg"),rM={w:[vc.reference],h:[vc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Rl.variable]:"colors.blackAlpha.100",_dark:{[Rl.variable]:"colors.whiteAlpha.100"}},_active:{[Rl.variable]:"colors.blackAlpha.200",_dark:{[Rl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Rl.reference},iM={lg:{[vc.variable]:"sizes.10",fontSize:"md"},md:{[vc.variable]:"sizes.8",fontSize:"xs"},sm:{[vc.variable]:"sizes.6",fontSize:"2xs"}},oM={baseStyle:rM,sizes:iM,defaultProps:{size:"md"}},{variants:aM,defaultProps:sM}=hc,lM={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:jt.bg.reference,color:jt.color.reference,boxShadow:jt.shadow.reference},cM={baseStyle:lM,variants:aM,defaultProps:sM},uM={w:"100%",mx:"auto",maxW:"prose",px:"4"},dM={baseStyle:uM},fM={opacity:.6,borderColor:"inherit"},pM={borderStyle:"solid"},mM={borderStyle:"dashed"},hM={solid:pM,dashed:mM},gM={baseStyle:fM,variants:hM,defaultProps:{variant:"solid"}},{definePartsStyle:Gg,defineMultiStyleConfig:vM}=fe(mR.keys),Dh=X("drawer-bg"),Oh=X("drawer-box-shadow");function Oa(e){return Gg(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const yM={bg:"blackAlpha.600",zIndex:"modal"},bM={display:"flex",zIndex:"modal",justifyContent:"center"},xM=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Dh.variable]:"colors.white",[Oh.variable]:"shadows.lg",_dark:{[Dh.variable]:"colors.gray.700",[Oh.variable]:"shadows.dark-lg"},bg:Dh.reference,boxShadow:Oh.reference}},SM={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},wM={position:"absolute",top:"2",insetEnd:"3"},kM={px:"6",py:"2",flex:"1",overflow:"auto"},CM={px:"6",py:"4"},jM=Gg(e=>({overlay:yM,dialogContainer:bM,dialog:gn(xM,e),header:SM,closeButton:wM,body:kM,footer:CM})),PM={xs:Oa("xs"),sm:Oa("md"),md:Oa("lg"),lg:Oa("2xl"),xl:Oa("4xl"),full:Oa("full")},_M=vM({baseStyle:jM,sizes:PM,defaultProps:{size:"xs"}}),{definePartsStyle:TM,defineMultiStyleConfig:EM}=fe(hR.keys),AM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},$M={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},zM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},RM=TM({preview:AM,input:$M,textarea:zM}),IM=EM({baseStyle:RM}),{definePartsStyle:MM,defineMultiStyleConfig:LM}=fe(h6.keys),zs=X("form-control-color"),NM={marginStart:"1",[zs.variable]:"colors.red.500",_dark:{[zs.variable]:"colors.red.300"},color:zs.reference},DM={mt:"2",[zs.variable]:"colors.gray.600",_dark:{[zs.variable]:"colors.whiteAlpha.600"},color:zs.reference,lineHeight:"normal",fontSize:"sm"},OM=MM({container:{width:"100%",position:"relative"},requiredIndicator:NM,helperText:DM}),FM=LM({baseStyle:OM}),{definePartsStyle:BM,defineMultiStyleConfig:WM}=fe(gR.keys),Rs=X("form-error-color"),VM={[Rs.variable]:"colors.red.500",_dark:{[Rs.variable]:"colors.red.300"},color:Rs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},UM={marginEnd:"0.5em",[Rs.variable]:"colors.red.500",_dark:{[Rs.variable]:"colors.red.300"},color:Rs.reference},HM=BM({text:VM,icon:UM}),GM=WM({baseStyle:HM}),KM={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},qM={baseStyle:KM},XM={fontFamily:"heading",fontWeight:"bold"},YM={"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}},QM={baseStyle:XM,sizes:YM,defaultProps:{size:"xl"}},{definePartsStyle:fi,defineMultiStyleConfig:ZM}=fe(ay.keys),ss=X("input-height"),ls=X("input-font-size"),cs=X("input-padding"),us=X("input-border-radius"),JM=fi({addon:{height:ss.reference,fontSize:ls.reference,px:cs.reference,borderRadius:us.reference},field:{width:"100%",height:ss.reference,fontSize:ls.reference,px:cs.reference,borderRadius:us.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Di={lg:{[ls.variable]:"fontSizes.lg",[cs.variable]:"space.4",[us.variable]:"radii.md",[ss.variable]:"sizes.12"},md:{[ls.variable]:"fontSizes.md",[cs.variable]:"space.4",[us.variable]:"radii.md",[ss.variable]:"sizes.10"},sm:{[ls.variable]:"fontSizes.sm",[cs.variable]:"space.3",[us.variable]:"radii.sm",[ss.variable]:"sizes.8"},xs:{[ls.variable]:"fontSizes.xs",[cs.variable]:"space.2",[us.variable]:"radii.sm",[ss.variable]:"sizes.6"}},eL={lg:fi({field:Di.lg,group:Di.lg}),md:fi({field:Di.md,group:Di.md}),sm:fi({field:Di.sm,group:Di.sm}),xs:fi({field:Di.xs,group:Di.xs})};function uy(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}const tL=fi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=uy(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0 0 0 1px ${nt(t,r)}`},_focusVisible:{zIndex:1,borderColor:nt(t,n),boxShadow:`0 0 0 1px ${nt(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),nL=fi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=uy(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r)},_focusVisible:{bg:"transparent",borderColor:nt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),rL=fi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=uy(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0px 1px 0px 0px ${nt(t,r)}`},_focusVisible:{borderColor:nt(t,n),boxShadow:`0px 1px 0px 0px ${nt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),iL=fi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),oL={outline:tL,filled:nL,flushed:rL,unstyled:iL},Fe=ZM({baseStyle:JM,sizes:eL,variants:oL,defaultProps:{size:"md",variant:"outline"}}),Fh=X("kbd-bg"),aL={[Fh.variable]:"colors.gray.100",_dark:{[Fh.variable]:"colors.whiteAlpha.100"},bg:Fh.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},sL={baseStyle:aL},lL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},cL={baseStyle:lL},{defineMultiStyleConfig:uL,definePartsStyle:dL}=fe(vR.keys),fL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},pL=dL({icon:fL}),mL=uL({baseStyle:pL}),{defineMultiStyleConfig:hL,definePartsStyle:gL}=fe(g6.keys),Nr=X("menu-bg"),Bh=X("menu-shadow"),vL={[Nr.variable]:"#fff",[Bh.variable]:"shadows.sm",_dark:{[Nr.variable]:"colors.gray.700",[Bh.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Nr.reference,boxShadow:Bh.reference},yL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Nr.variable]:"colors.gray.100",_dark:{[Nr.variable]:"colors.whiteAlpha.100"}},_active:{[Nr.variable]:"colors.gray.200",_dark:{[Nr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Nr.variable]:"colors.gray.100",_dark:{[Nr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Nr.reference},bL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},xL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},SL={opacity:.6},wL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},kL={transitionProperty:"common",transitionDuration:"normal"},CL=gL({button:kL,list:vL,item:yL,groupTitle:bL,icon:xL,command:SL,divider:wL}),jL=hL({baseStyle:CL}),{defineMultiStyleConfig:PL,definePartsStyle:Kg}=fe(v6.keys),Wh=X("modal-bg"),Vh=X("modal-shadow"),_L={bg:"blackAlpha.600",zIndex:"modal"},TL=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"}},EL=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,[Wh.variable]:"colors.white",[Vh.variable]:"shadows.lg",_dark:{[Wh.variable]:"colors.gray.700",[Vh.variable]:"shadows.dark-lg"},bg:Wh.reference,boxShadow:Vh.reference}},AL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},$L={position:"absolute",top:"2",insetEnd:"3"},zL=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},RL={px:"6",py:"4"},IL=Kg(e=>({overlay:_L,dialogContainer:gn(TL,e),dialog:gn(EL,e),header:AL,closeButton:$L,body:gn(zL,e),footer:RL}));function vr(e){return Kg(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const ML={xs:vr("xs"),sm:vr("sm"),md:vr("md"),lg:vr("lg"),xl:vr("xl"),"2xl":vr("2xl"),"3xl":vr("3xl"),"4xl":vr("4xl"),"5xl":vr("5xl"),"6xl":vr("6xl"),full:vr("full")},LL=PL({baseStyle:IL,sizes:ML,defaultProps:{size:"md"}}),z6={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:NL,definePartsStyle:R6}=fe(yR.keys),dy=wt("number-input-stepper-width"),I6=wt("number-input-input-padding"),DL=si(dy).add("0.5rem").toString(),Uh=wt("number-input-bg"),Hh=wt("number-input-color"),Gh=wt("number-input-border-color"),OL={[dy.variable]:"sizes.6",[I6.variable]:DL},FL=e=>{var t;return((t=gn(Fe.baseStyle,e))==null?void 0:t.field)??{}},BL={width:dy.reference},WL={borderStart:"1px solid",borderStartColor:Gh.reference,color:Hh.reference,bg:Uh.reference,[Hh.variable]:"colors.chakra-body-text",[Gh.variable]:"colors.chakra-border-color",_dark:{[Hh.variable]:"colors.whiteAlpha.800",[Gh.variable]:"colors.whiteAlpha.300"},_active:{[Uh.variable]:"colors.gray.200",_dark:{[Uh.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},VL=R6(e=>({root:OL,field:gn(FL,e)??{},stepperGroup:BL,stepper:WL}));function Sd(e){var o,a;const t=(o=Fe.sizes)==null?void 0:o[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",i=z6.fontSizes[r];return R6({field:{...t.field,paddingInlineEnd:I6.reference,verticalAlign:"top"},stepper:{fontSize:si(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const UL={xs:Sd("xs"),sm:Sd("sm"),md:Sd("md"),lg:Sd("lg")},HL=NL({baseStyle:VL,sizes:UL,variants:Fe.variants,defaultProps:Fe.defaultProps});var xk;const GL={...(xk=Fe.baseStyle)==null?void 0:xk.field,textAlign:"center"},KL={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 Sk;const qL={outline:e=>{var t,n;return((n=gn((t=Fe.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=gn((t=Fe.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=gn((t=Fe.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((Sk=Fe.variants)==null?void 0:Sk.unstyled.field)??{}},XL={baseStyle:GL,sizes:KL,variants:qL,defaultProps:Fe.defaultProps},{defineMultiStyleConfig:YL,definePartsStyle:QL}=fe(bR.keys),wd=wt("popper-bg"),ZL=wt("popper-arrow-bg"),yS=wt("popper-arrow-shadow-color"),JL={zIndex:"popover"},eN={[wd.variable]:"colors.white",bg:wd.reference,[ZL.variable]:wd.reference,[yS.variable]:"colors.gray.200",_dark:{[wd.variable]:"colors.gray.700",[yS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},tN={px:3,py:2,borderBottomWidth:"1px"},nN={px:3,py:2},rN={px:3,py:2,borderTopWidth:"1px"},iN={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},oN=QL({popper:JL,content:eN,header:tN,body:nN,footer:rN,closeButton:iN}),aN=YL({baseStyle:oN}),{defineMultiStyleConfig:sN,definePartsStyle:ql}=fe(y6.keys),lN=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=J(pS(),pS("1rem","rgba(0,0,0,0.1)"))(e),a=J(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( to right, transparent 0%, ${nt(n,a)} 50%, transparent 100% - )`;return{...!r&&i&&o,...r?{bgImage:l}:{bgColor:a}}},pN={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},mN=e=>({bg:J("gray.100","whiteAlpha.300")(e)}),hN=e=>({transitionProperty:"common",transitionDuration:"slow",...fN(e)}),gN=ql(e=>({label:pN,filledTrack:hN(e),track:mN(e)})),vN={xs:ql({track:{h:"1"}}),sm:ql({track:{h:"2"}}),md:ql({track:{h:"3"}}),lg:ql({track:{h:"4"}})},yN=dN({sizes:vN,baseStyle:gN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:bN,definePartsStyle:pf}=fe(k6.keys),xN=e=>{var n;const t=(n=gn(Hi.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"}}}},SN=pf(e=>{var t,n;return{label:(t=Hi.baseStyle)==null?void 0:t.call(Hi,e).label,container:(n=Hi.baseStyle)==null?void 0:n.call(Hi,e).container,control:xN(e)}}),wN={md:pf({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:pf({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:pf({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},kN=bN({baseStyle:SN,sizes:wN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:CN,definePartsStyle:jN}=fe(CR.keys),kd=X("select-bg");var Pk;const PN={...(Pk=Fe.baseStyle)==null?void 0:Pk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:kd.reference,[kd.variable]:"colors.white",_dark:{[kd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:kd.reference}},_N={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},TN=jN({field:PN,icon:_N}),Cd={paddingInlineEnd:"8"};var _k,Tk,Ek,Ak,$k,zk,Rk,Ik;const EN={lg:{...(_k=Fe.sizes)==null?void 0:_k.lg,field:{...(Tk=Fe.sizes)==null?void 0:Tk.lg.field,...Cd}},md:{...(Ek=Fe.sizes)==null?void 0:Ek.md,field:{...(Ak=Fe.sizes)==null?void 0:Ak.md.field,...Cd}},sm:{...($k=Fe.sizes)==null?void 0:$k.sm,field:{...(zk=Fe.sizes)==null?void 0:zk.sm.field,...Cd}},xs:{...(Rk=Fe.sizes)==null?void 0:Rk.xs,field:{...(Ik=Fe.sizes)==null?void 0:Ik.xs.field,...Cd},icon:{insetEnd:"1"}}},AN=CN({baseStyle:TN,sizes:EN,variants:Fe.variants,defaultProps:Fe.defaultProps}),Kh=X("skeleton-start-color"),qh=X("skeleton-end-color"),$N={[Kh.variable]:"colors.gray.100",[qh.variable]:"colors.gray.400",_dark:{[Kh.variable]:"colors.gray.800",[qh.variable]:"colors.gray.600"},background:Kh.reference,borderColor:qh.reference,opacity:.7,borderRadius:"sm"},zN={baseStyle:$N},Xh=X("skip-link-bg"),RN={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Xh.variable]:"colors.white",_dark:{[Xh.variable]:"colors.gray.700"},bg:Xh.reference}},IN={baseStyle:RN},{defineMultiStyleConfig:MN,definePartsStyle:im}=fe(C6.keys),Sa=X("slider-thumb-size"),qc=X("slider-track-size"),qi=X("slider-bg"),LN=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...cy({orientation:t,vertical:{h:"100%",px:ai(Sa.reference).divide(2).toString()},horizontal:{w:"100%",py:ai(Sa.reference).divide(2).toString()}})}},NN=e=>({...cy({orientation:e.orientation,horizontal:{h:qc.reference},vertical:{w:qc.reference}}),overflow:"hidden",borderRadius:"sm",[qi.variable]:"colors.gray.200",_dark:{[qi.variable]:"colors.whiteAlpha.200"},_disabled:{[qi.variable]:"colors.gray.300",_dark:{[qi.variable]:"colors.whiteAlpha.300"}},bg:qi.reference}),DN=e=>{const{orientation:t}=e;return{...cy({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Sa.reference,h:Sa.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"}}},ON=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[qi.variable]:`colors.${t}.500`,_dark:{[qi.variable]:`colors.${t}.200`},bg:qi.reference}},FN=im(e=>({container:LN(e),track:NN(e),thumb:DN(e),filledTrack:ON(e)})),BN=im({container:{[Sa.variable]:"sizes.4",[qc.variable]:"sizes.1"}}),WN=im({container:{[Sa.variable]:"sizes.3.5",[qc.variable]:"sizes.1"}}),VN=im({container:{[Sa.variable]:"sizes.2.5",[qc.variable]:"sizes.0.5"}}),UN={lg:BN,md:WN,sm:VN},HN=MN({baseStyle:FN,sizes:UN,defaultProps:{size:"md",colorScheme:"blue"}}),qo=wt("spinner-size"),GN={width:[qo.reference],height:[qo.reference]},KN={xs:{[qo.variable]:"sizes.3"},sm:{[qo.variable]:"sizes.4"},md:{[qo.variable]:"sizes.6"},lg:{[qo.variable]:"sizes.8"},xl:{[qo.variable]:"sizes.12"}},qN={baseStyle:GN,sizes:KN,defaultProps:{size:"md"}},{defineMultiStyleConfig:XN,definePartsStyle:O6}=fe(jR.keys),YN={fontWeight:"medium"},QN={opacity:.8,marginBottom:"2"},ZN={verticalAlign:"baseline",fontWeight:"semibold"},JN={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},eD=O6({container:{},label:YN,helpText:QN,number:ZN,icon:JN}),tD={md:O6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},nD=XN({baseStyle:eD,sizes:tD,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rD,definePartsStyle:Xl}=fe(["stepper","step","title","description","indicator","separator","icon","number"]),li=X("stepper-indicator-size"),ds=X("stepper-icon-size"),fs=X("stepper-title-font-size"),Yl=X("stepper-description-font-size"),Il=X("stepper-accent-color"),iD=Xl(({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"},[Il.variable]:`colors.${e}.500`,_dark:{[Il.variable]:`colors.${e}.200`}},title:{fontSize:fs.reference,fontWeight:"medium"},description:{fontSize:Yl.reference,color:"chakra-subtle-text"},number:{fontSize:fs.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:ds.reference,height:ds.reference},indicator:{flexShrink:0,borderRadius:"full",width:li.reference,height:li.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Il.reference},"&[data-status=complete]":{bg:Il.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Il.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${li.reference} - 8px)`,top:`calc(${li.reference} + 4px)`,insetStart:`calc(${li.reference} / 2 - 1px)`}}})),oD=rD({baseStyle:iD,sizes:{xs:Xl({stepper:{[li.variable]:"sizes.4",[ds.variable]:"sizes.3",[fs.variable]:"fontSizes.xs",[Yl.variable]:"fontSizes.xs"}}),sm:Xl({stepper:{[li.variable]:"sizes.6",[ds.variable]:"sizes.4",[fs.variable]:"fontSizes.sm",[Yl.variable]:"fontSizes.xs"}}),md:Xl({stepper:{[li.variable]:"sizes.8",[ds.variable]:"sizes.5",[fs.variable]:"fontSizes.md",[Yl.variable]:"fontSizes.sm"}}),lg:Xl({stepper:{[li.variable]:"sizes.10",[ds.variable]:"sizes.6",[fs.variable]:"fontSizes.lg",[Yl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aD,definePartsStyle:mf}=fe(j6.keys),yc=wt("switch-track-width"),sa=wt("switch-track-height"),Yh=wt("switch-track-diff"),sD=si.subtract(yc,sa),qg=wt("switch-thumb-x"),Ml=wt("switch-bg"),lD=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[yc.reference],height:[sa.reference],transitionProperty:"common",transitionDuration:"fast",[Ml.variable]:"colors.gray.300",_dark:{[Ml.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ml.variable]:`colors.${t}.500`,_dark:{[Ml.variable]:`colors.${t}.200`}},bg:Ml.reference}},cD={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[sa.reference],height:[sa.reference],_checked:{transform:`translateX(${qg.reference})`}},uD=mf(e=>({container:{[Yh.variable]:sD,[qg.variable]:Yh.reference,_rtl:{[qg.variable]:si(Yh).negate().toString()}},track:lD(e),thumb:cD})),dD={sm:mf({container:{[yc.variable]:"1.375rem",[sa.variable]:"sizes.3"}}),md:mf({container:{[yc.variable]:"1.875rem",[sa.variable]:"sizes.4"}}),lg:mf({container:{[yc.variable]:"2.875rem",[sa.variable]:"sizes.6"}})},fD=aD({baseStyle:uD,sizes:dD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:pD,definePartsStyle:Is}=fe(PR.keys),mD=Is({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"}}),mp={"&[data-is-numeric=true]":{textAlign:"end"}},hD=Is(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},caption:{color:J("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),gD=Is(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},caption:{color:J("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e)},td:{background:J(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),vD={simple:hD,striped:gD,unstyled:{}},yD={sm:Is({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:Is({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Is({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},bD=pD({baseStyle:mD,variants:vD,sizes:yD,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Pn=X("tabs-color"),kr=X("tabs-bg"),jd=X("tabs-border-color"),{defineMultiStyleConfig:xD,definePartsStyle:Kr}=fe(_R.keys),SD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},wD=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}}},kD=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},CD={p:4},jD=Kr(e=>({root:SD(e),tab:wD(e),tablist:kD(e),tabpanel:CD})),PD={sm:Kr({tab:{py:1,px:4,fontSize:"sm"}}),md:Kr({tab:{fontSize:"md",py:2,px:4}}),lg:Kr({tab:{fontSize:"lg",py:3,px:4}})},_D=Kr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Pn.variable]:`colors.${t}.600`,_dark:{[Pn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[kr.variable]:"colors.gray.200",_dark:{[kr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Pn.reference,bg:kr.reference}}}),TD=Kr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[jd.variable]:"transparent",_selected:{[Pn.variable]:`colors.${t}.600`,[jd.variable]:"colors.white",_dark:{[Pn.variable]:`colors.${t}.300`,[jd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:jd.reference},color:Pn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ED=Kr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[kr.variable]:"colors.gray.50",_dark:{[kr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[kr.variable]:"colors.white",[Pn.variable]:`colors.${t}.600`,_dark:{[kr.variable]:"colors.gray.800",[Pn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Pn.reference,bg:kr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),AD=Kr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:nt(n,`${t}.700`),bg:nt(n,`${t}.100`)}}}}),$D=Kr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Pn.variable]:"colors.gray.600",_dark:{[Pn.variable]:"inherit"},_selected:{[Pn.variable]:"colors.white",[kr.variable]:`colors.${t}.600`,_dark:{[Pn.variable]:"colors.gray.800",[kr.variable]:`colors.${t}.300`}},color:Pn.reference,bg:kr.reference}}}),zD=Kr({}),RD={line:_D,enclosed:TD,"enclosed-colored":ED,"soft-rounded":AD,"solid-rounded":$D,unstyled:zD},ID=xD({baseStyle:jD,sizes:PD,variants:RD,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:MD,definePartsStyle:la}=fe(TR.keys),SS=X("tag-bg"),wS=X("tag-color"),Qh=X("tag-shadow"),hf=X("tag-min-height"),gf=X("tag-min-width"),vf=X("tag-font-size"),yf=X("tag-padding-inline"),LD={fontWeight:"medium",lineHeight:1.2,outline:0,[wS.variable]:jt.color.reference,[SS.variable]:jt.bg.reference,[Qh.variable]:jt.shadow.reference,color:wS.reference,bg:SS.reference,boxShadow:Qh.reference,borderRadius:"md",minH:hf.reference,minW:gf.reference,fontSize:vf.reference,px:yf.reference,_focusVisible:{[Qh.variable]:"shadows.outline"}},ND={lineHeight:1.2,overflow:"visible"},DD={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}},OD=la({container:LD,label:ND,closeButton:DD}),FD={sm:la({container:{[hf.variable]:"sizes.5",[gf.variable]:"sizes.5",[vf.variable]:"fontSizes.xs",[yf.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:la({container:{[hf.variable]:"sizes.6",[gf.variable]:"sizes.6",[vf.variable]:"fontSizes.sm",[yf.variable]:"space.2"}}),lg:la({container:{[hf.variable]:"sizes.8",[gf.variable]:"sizes.8",[vf.variable]:"fontSizes.md",[yf.variable]:"space.3"}})},BD={subtle:la(e=>{var t;return{container:(t=hc.variants)==null?void 0:t.subtle(e)}}),solid:la(e=>{var t;return{container:(t=hc.variants)==null?void 0:t.solid(e)}}),outline:la(e=>{var t;return{container:(t=hc.variants)==null?void 0:t.outline(e)}})},WD=MD({variants:BD,baseStyle:OD,sizes:FD,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Mk;const VD={...(Mk=Fe.baseStyle)==null?void 0:Mk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Lk;const UD={outline:e=>{var t;return((t=Fe.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Fe.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Fe.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Lk=Fe.variants)==null?void 0:Lk.unstyled.field)??{}};var Nk,Dk,Ok,Fk;const HD={xs:((Nk=Fe.sizes)==null?void 0:Nk.xs.field)??{},sm:((Dk=Fe.sizes)==null?void 0:Dk.sm.field)??{},md:((Ok=Fe.sizes)==null?void 0:Ok.md.field)??{},lg:((Fk=Fe.sizes)==null?void 0:Fk.lg.field)??{}},GD={baseStyle:VD,sizes:HD,variants:UD,defaultProps:{size:"md",variant:"outline"}},Pd=wt("tooltip-bg"),Zh=wt("tooltip-fg"),KD=wt("popper-arrow-bg"),qD={bg:Pd.reference,color:Zh.reference,[Pd.variable]:"colors.gray.700",[Zh.variable]:"colors.whiteAlpha.900",_dark:{[Pd.variable]:"colors.gray.300",[Zh.variable]:"colors.gray.900"},[KD.variable]:Pd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},XD={baseStyle:qD},YD={Accordion:LR,Alert:yI,Avatar:EI,Badge:hc,Breadcrumb:OI,Button:qI,Checkbox:Hi,CloseButton:cM,Code:pM,Container:hM,Divider:xM,Drawer:$M,Editable:DM,Form:UM,FormError:YM,FormLabel:ZM,Heading:tL,Input:Fe,Kbd:dL,Link:pL,List:yL,Menu:EL,Modal:FL,NumberInput:XL,PinInput:JL,Popover:uN,Progress:yN,Radio:kN,Select:AN,Skeleton:zN,SkipLink:IN,Slider:HN,Spinner:qN,Stat:nD,Switch:fD,Table:bD,Tabs:ID,Tag:WD,Textarea:GD,Tooltip:XD,Card:JI,Stepper:oD},QD={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},ZD={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},JD={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"}},eO={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},tO={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"},nO={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"},rO={"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)"},iO={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},oO={property:nO,easing:rO,duration:iO},aO={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},sO={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},lO={breakpoints:ZD,zIndices:aO,radii:eO,blur:sO,colors:JD,...L6,sizes:A6,shadows:tO,space:E6,borders:QD,transition:oO},cO={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"}}},uO={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"}}},dO=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function fO(e){return Nt(e)?dO.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const pO="ltr",mO={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Jo={semanticTokens:cO,direction:pO,...lO,components:YD,styles:uO,config:mO};function hO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yt(fl,--Rn):0,Xs--,Tt===10&&(Xs=1,am--),Tt}function Bn(){return Tt=Rn2||Yc(Tt)>3?"":" "}function TO(e,t){for(;--t&&Bn()&&!(Tt<48||Tt>102||Tt>57&&Tt<65||Tt>70&&Tt<97););return Cu(e,bf()+(t<6&&qr()==32&&Bn()==32))}function Yg(e){for(;Bn();)switch(Tt){case e:return Rn;case 34:case 39:e!==34&&e!==39&&Yg(Tt);break;case 40:e===41&&Yg(e);break;case 92:Bn();break}return Rn}function EO(e,t){for(;Bn()&&e+Tt!==57;)if(e+Tt===84&&qr()===47)break;return"/*"+Cu(t,Rn-1)+"*"+om(e===47?e:Bn())}function AO(e){for(;!Yc(qr());)Bn();return Cu(e,Rn)}function $O(e){return H6(Sf("",null,null,null,[""],e=U6(e),0,[0],e))}function Sf(e,t,n,r,i,o,a,l,c){for(var u=0,d=0,f=a,p=0,h=0,v=0,b=1,x=1,y=1,g=0,S="",w=i,k=o,P=r,_=S;x;)switch(v=g,g=Bn()){case 40:if(v!=108&&Yt(_,f-1)==58){Xg(_+=Oe(xf(g),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=xf(g);break;case 9:case 10:case 13:case 32:_+=_O(v);break;case 92:_+=TO(bf()-1,7);continue;case 47:switch(qr()){case 42:case 47:_d(zO(EO(Bn(),bf()),t,n),c);break;default:_+="/"}break;case 123*b:l[u++]=Dr(_)*y;case 125*b:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+d:y==-1&&(_=Oe(_,/\f/g,"")),h>0&&Dr(_)-f&&_d(h>32?CS(_+";",r,n,f-1):CS(Oe(_," ","")+";",r,n,f-2),c);break;case 59:_+=";";default:if(_d(P=kS(_,t,n,u,d,i,l,S,w=[],k=[],f),o),g===123)if(d===0)Sf(_,t,P,P,w,o,f,l,k);else switch(p===99&&Yt(_,3)===110?100:p){case 100:case 108:case 109:case 115:Sf(e,P,P,r&&_d(kS(e,P,P,0,0,i,l,S,i,w=[],f),k),i,k,f,l,r?w:k);break;default:Sf(_,P,P,P,[""],k,0,l,k)}}u=d=h=0,b=y=1,S=_="",f=a;break;case 58:f=1+Dr(_),h=v;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&PO()==125)continue}switch(_+=om(g),g*b){case 38:y=d>0?1:(_+="\f",-1);break;case 44:l[u++]=(Dr(_)-1)*y,y=1;break;case 64:qr()===45&&(_+=xf(Bn())),p=qr(),d=f=Dr(S=_+=AO(bf())),g++;break;case 45:v===45&&Dr(_)==2&&(b=0)}}return o}function kS(e,t,n,r,i,o,a,l,c,u,d){for(var f=i-1,p=i===0?o:[""],h=hy(p),v=0,b=0,x=0;v0?p[y]+" "+g:Oe(g,/&\f/g,p[y])))&&(c[x++]=S);return sm(e,t,n,i===0?py:l,c,u,d)}function zO(e,t,n){return sm(e,t,n,F6,om(jO()),Xc(e,2,-2),0)}function CS(e,t,n,r){return sm(e,t,n,my,Xc(e,0,r),Xc(e,r+1,-1),r)}function Ms(e,t){for(var n="",r=hy(e),i=0;i6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+hp+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xg(e,"stretch")?K6(Oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yt(e,t+1)!==115)break;case 6444:switch(Yt(e,Dr(e)-3-(~Xg(e,"!important")&&10))){case 107:return Oe(e,":",":"+De)+e;case 101:return Oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Yt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+on+"$2box$3")+e}break;case 5936:switch(Yt(e,t+11)){case 114:return De+e+on+Oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+on+Oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+on+Oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+on+e+e}return e}var BO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case my:t.return=K6(t.value,t.length);break;case B6:return Ms([Ll(t,{value:Oe(t.value,"@","@"+De)})],i);case py:if(t.length)return CO(t.props,function(o){switch(kO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ms([Ll(t,{props:[Oe(o,/:(read-\w+)/,":"+hp+"$1")]})],i);case"::placeholder":return Ms([Ll(t,{props:[Oe(o,/:(plac\w+)/,":"+De+"input-$1")]}),Ll(t,{props:[Oe(o,/:(plac\w+)/,":"+hp+"$1")]}),Ll(t,{props:[Oe(o,/:(plac\w+)/,on+"input-$1")]})],i)}return""})}},WO=[BO],VO=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(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||WO,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),y=1;y({bg:J("gray.100","whiteAlpha.300")(e)}),dN=e=>({transitionProperty:"common",transitionDuration:"slow",...lN(e)}),fN=ql(e=>({label:cN,filledTrack:dN(e),track:uN(e)})),pN={xs:ql({track:{h:"1"}}),sm:ql({track:{h:"2"}}),md:ql({track:{h:"3"}}),lg:ql({track:{h:"4"}})},mN=sN({sizes:pN,baseStyle:fN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hN,definePartsStyle:pf}=fe(b6.keys),gN=e=>{var n;const t=(n=gn(Hi.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"}}}},vN=pf(e=>{var t,n;return{label:(t=Hi.baseStyle)==null?void 0:t.call(Hi,e).label,container:(n=Hi.baseStyle)==null?void 0:n.call(Hi,e).container,control:gN(e)}}),yN={md:pf({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:pf({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:pf({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},bN=hN({baseStyle:vN,sizes:yN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:xN,definePartsStyle:SN}=fe(xR.keys),kd=X("select-bg");var wk;const wN={...(wk=Fe.baseStyle)==null?void 0:wk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:kd.reference,[kd.variable]:"colors.white",_dark:{[kd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:kd.reference}},kN={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},CN=SN({field:wN,icon:kN}),Cd={paddingInlineEnd:"8"};var kk,Ck,jk,Pk,_k,Tk,Ek,Ak;const jN={lg:{...(kk=Fe.sizes)==null?void 0:kk.lg,field:{...(Ck=Fe.sizes)==null?void 0:Ck.lg.field,...Cd}},md:{...(jk=Fe.sizes)==null?void 0:jk.md,field:{...(Pk=Fe.sizes)==null?void 0:Pk.md.field,...Cd}},sm:{...(_k=Fe.sizes)==null?void 0:_k.sm,field:{...(Tk=Fe.sizes)==null?void 0:Tk.sm.field,...Cd}},xs:{...(Ek=Fe.sizes)==null?void 0:Ek.xs,field:{...(Ak=Fe.sizes)==null?void 0:Ak.xs.field,...Cd},icon:{insetEnd:"1"}}},PN=xN({baseStyle:CN,sizes:jN,variants:Fe.variants,defaultProps:Fe.defaultProps}),Kh=X("skeleton-start-color"),qh=X("skeleton-end-color"),_N={[Kh.variable]:"colors.gray.100",[qh.variable]:"colors.gray.400",_dark:{[Kh.variable]:"colors.gray.800",[qh.variable]:"colors.gray.600"},background:Kh.reference,borderColor:qh.reference,opacity:.7,borderRadius:"sm"},TN={baseStyle:_N},Xh=X("skip-link-bg"),EN={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Xh.variable]:"colors.white",_dark:{[Xh.variable]:"colors.gray.700"},bg:Xh.reference}},AN={baseStyle:EN},{defineMultiStyleConfig:$N,definePartsStyle:im}=fe(x6.keys),Sa=X("slider-thumb-size"),qc=X("slider-track-size"),qi=X("slider-bg"),zN=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ly({orientation:t,vertical:{h:"100%",px:ai(Sa.reference).divide(2).toString()},horizontal:{w:"100%",py:ai(Sa.reference).divide(2).toString()}})}},RN=e=>({...ly({orientation:e.orientation,horizontal:{h:qc.reference},vertical:{w:qc.reference}}),overflow:"hidden",borderRadius:"sm",[qi.variable]:"colors.gray.200",_dark:{[qi.variable]:"colors.whiteAlpha.200"},_disabled:{[qi.variable]:"colors.gray.300",_dark:{[qi.variable]:"colors.whiteAlpha.300"}},bg:qi.reference}),IN=e=>{const{orientation:t}=e;return{...ly({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Sa.reference,h:Sa.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"}}},MN=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[qi.variable]:`colors.${t}.500`,_dark:{[qi.variable]:`colors.${t}.200`},bg:qi.reference}},LN=im(e=>({container:zN(e),track:RN(e),thumb:IN(e),filledTrack:MN(e)})),NN=im({container:{[Sa.variable]:"sizes.4",[qc.variable]:"sizes.1"}}),DN=im({container:{[Sa.variable]:"sizes.3.5",[qc.variable]:"sizes.1"}}),ON=im({container:{[Sa.variable]:"sizes.2.5",[qc.variable]:"sizes.0.5"}}),FN={lg:NN,md:DN,sm:ON},BN=$N({baseStyle:LN,sizes:FN,defaultProps:{size:"md",colorScheme:"blue"}}),qo=wt("spinner-size"),WN={width:[qo.reference],height:[qo.reference]},VN={xs:{[qo.variable]:"sizes.3"},sm:{[qo.variable]:"sizes.4"},md:{[qo.variable]:"sizes.6"},lg:{[qo.variable]:"sizes.8"},xl:{[qo.variable]:"sizes.12"}},UN={baseStyle:WN,sizes:VN,defaultProps:{size:"md"}},{defineMultiStyleConfig:HN,definePartsStyle:M6}=fe(SR.keys),GN={fontWeight:"medium"},KN={opacity:.8,marginBottom:"2"},qN={verticalAlign:"baseline",fontWeight:"semibold"},XN={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},YN=M6({container:{},label:GN,helpText:KN,number:qN,icon:XN}),QN={md:M6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},ZN=HN({baseStyle:YN,sizes:QN,defaultProps:{size:"md"}}),{defineMultiStyleConfig:JN,definePartsStyle:Xl}=fe(["stepper","step","title","description","indicator","separator","icon","number"]),li=X("stepper-indicator-size"),ds=X("stepper-icon-size"),fs=X("stepper-title-font-size"),Yl=X("stepper-description-font-size"),Il=X("stepper-accent-color"),eD=Xl(({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"},[Il.variable]:`colors.${e}.500`,_dark:{[Il.variable]:`colors.${e}.200`}},title:{fontSize:fs.reference,fontWeight:"medium"},description:{fontSize:Yl.reference,color:"chakra-subtle-text"},number:{fontSize:fs.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:ds.reference,height:ds.reference},indicator:{flexShrink:0,borderRadius:"full",width:li.reference,height:li.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Il.reference},"&[data-status=complete]":{bg:Il.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Il.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${li.reference} - 8px)`,top:`calc(${li.reference} + 4px)`,insetStart:`calc(${li.reference} / 2 - 1px)`}}})),tD=JN({baseStyle:eD,sizes:{xs:Xl({stepper:{[li.variable]:"sizes.4",[ds.variable]:"sizes.3",[fs.variable]:"fontSizes.xs",[Yl.variable]:"fontSizes.xs"}}),sm:Xl({stepper:{[li.variable]:"sizes.6",[ds.variable]:"sizes.4",[fs.variable]:"fontSizes.sm",[Yl.variable]:"fontSizes.xs"}}),md:Xl({stepper:{[li.variable]:"sizes.8",[ds.variable]:"sizes.5",[fs.variable]:"fontSizes.md",[Yl.variable]:"fontSizes.sm"}}),lg:Xl({stepper:{[li.variable]:"sizes.10",[ds.variable]:"sizes.6",[fs.variable]:"fontSizes.lg",[Yl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nD,definePartsStyle:mf}=fe(S6.keys),yc=wt("switch-track-width"),sa=wt("switch-track-height"),Yh=wt("switch-track-diff"),rD=si.subtract(yc,sa),qg=wt("switch-thumb-x"),Ml=wt("switch-bg"),iD=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[yc.reference],height:[sa.reference],transitionProperty:"common",transitionDuration:"fast",[Ml.variable]:"colors.gray.300",_dark:{[Ml.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ml.variable]:`colors.${t}.500`,_dark:{[Ml.variable]:`colors.${t}.200`}},bg:Ml.reference}},oD={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[sa.reference],height:[sa.reference],_checked:{transform:`translateX(${qg.reference})`}},aD=mf(e=>({container:{[Yh.variable]:rD,[qg.variable]:Yh.reference,_rtl:{[qg.variable]:si(Yh).negate().toString()}},track:iD(e),thumb:oD})),sD={sm:mf({container:{[yc.variable]:"1.375rem",[sa.variable]:"sizes.3"}}),md:mf({container:{[yc.variable]:"1.875rem",[sa.variable]:"sizes.4"}}),lg:mf({container:{[yc.variable]:"2.875rem",[sa.variable]:"sizes.6"}})},lD=nD({baseStyle:aD,sizes:sD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cD,definePartsStyle:Is}=fe(wR.keys),uD=Is({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"}}),mp={"&[data-is-numeric=true]":{textAlign:"end"}},dD=Is(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},caption:{color:J("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),fD=Is(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...mp},caption:{color:J("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e)},td:{background:J(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),pD={simple:dD,striped:fD,unstyled:{}},mD={sm:Is({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:Is({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Is({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},hD=cD({baseStyle:uD,variants:pD,sizes:mD,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Pn=X("tabs-color"),kr=X("tabs-bg"),jd=X("tabs-border-color"),{defineMultiStyleConfig:gD,definePartsStyle:Kr}=fe(kR.keys),vD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},yD=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}}},bD=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},xD={p:4},SD=Kr(e=>({root:vD(e),tab:yD(e),tablist:bD(e),tabpanel:xD})),wD={sm:Kr({tab:{py:1,px:4,fontSize:"sm"}}),md:Kr({tab:{fontSize:"md",py:2,px:4}}),lg:Kr({tab:{fontSize:"lg",py:3,px:4}})},kD=Kr(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Pn.variable]:`colors.${t}.600`,_dark:{[Pn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[kr.variable]:"colors.gray.200",_dark:{[kr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Pn.reference,bg:kr.reference}}}),CD=Kr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[jd.variable]:"transparent",_selected:{[Pn.variable]:`colors.${t}.600`,[jd.variable]:"colors.white",_dark:{[Pn.variable]:`colors.${t}.300`,[jd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:jd.reference},color:Pn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jD=Kr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[kr.variable]:"colors.gray.50",_dark:{[kr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[kr.variable]:"colors.white",[Pn.variable]:`colors.${t}.600`,_dark:{[kr.variable]:"colors.gray.800",[Pn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Pn.reference,bg:kr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),PD=Kr(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:nt(n,`${t}.700`),bg:nt(n,`${t}.100`)}}}}),_D=Kr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Pn.variable]:"colors.gray.600",_dark:{[Pn.variable]:"inherit"},_selected:{[Pn.variable]:"colors.white",[kr.variable]:`colors.${t}.600`,_dark:{[Pn.variable]:"colors.gray.800",[kr.variable]:`colors.${t}.300`}},color:Pn.reference,bg:kr.reference}}}),TD=Kr({}),ED={line:kD,enclosed:CD,"enclosed-colored":jD,"soft-rounded":PD,"solid-rounded":_D,unstyled:TD},AD=gD({baseStyle:SD,sizes:wD,variants:ED,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:$D,definePartsStyle:la}=fe(CR.keys),bS=X("tag-bg"),xS=X("tag-color"),Qh=X("tag-shadow"),hf=X("tag-min-height"),gf=X("tag-min-width"),vf=X("tag-font-size"),yf=X("tag-padding-inline"),zD={fontWeight:"medium",lineHeight:1.2,outline:0,[xS.variable]:jt.color.reference,[bS.variable]:jt.bg.reference,[Qh.variable]:jt.shadow.reference,color:xS.reference,bg:bS.reference,boxShadow:Qh.reference,borderRadius:"md",minH:hf.reference,minW:gf.reference,fontSize:vf.reference,px:yf.reference,_focusVisible:{[Qh.variable]:"shadows.outline"}},RD={lineHeight:1.2,overflow:"visible"},ID={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}},MD=la({container:zD,label:RD,closeButton:ID}),LD={sm:la({container:{[hf.variable]:"sizes.5",[gf.variable]:"sizes.5",[vf.variable]:"fontSizes.xs",[yf.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:la({container:{[hf.variable]:"sizes.6",[gf.variable]:"sizes.6",[vf.variable]:"fontSizes.sm",[yf.variable]:"space.2"}}),lg:la({container:{[hf.variable]:"sizes.8",[gf.variable]:"sizes.8",[vf.variable]:"fontSizes.md",[yf.variable]:"space.3"}})},ND={subtle:la(e=>{var t;return{container:(t=hc.variants)==null?void 0:t.subtle(e)}}),solid:la(e=>{var t;return{container:(t=hc.variants)==null?void 0:t.solid(e)}}),outline:la(e=>{var t;return{container:(t=hc.variants)==null?void 0:t.outline(e)}})},DD=$D({variants:ND,baseStyle:MD,sizes:LD,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var $k;const OD={...($k=Fe.baseStyle)==null?void 0:$k.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var zk;const FD={outline:e=>{var t;return((t=Fe.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Fe.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Fe.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((zk=Fe.variants)==null?void 0:zk.unstyled.field)??{}};var Rk,Ik,Mk,Lk;const BD={xs:((Rk=Fe.sizes)==null?void 0:Rk.xs.field)??{},sm:((Ik=Fe.sizes)==null?void 0:Ik.sm.field)??{},md:((Mk=Fe.sizes)==null?void 0:Mk.md.field)??{},lg:((Lk=Fe.sizes)==null?void 0:Lk.lg.field)??{}},WD={baseStyle:OD,sizes:BD,variants:FD,defaultProps:{size:"md",variant:"outline"}},Pd=wt("tooltip-bg"),Zh=wt("tooltip-fg"),VD=wt("popper-arrow-bg"),UD={bg:Pd.reference,color:Zh.reference,[Pd.variable]:"colors.gray.700",[Zh.variable]:"colors.whiteAlpha.900",_dark:{[Pd.variable]:"colors.gray.300",[Zh.variable]:"colors.gray.900"},[VD.variable]:Pd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},HD={baseStyle:UD},GD={Accordion:zR,Alert:mI,Avatar:jI,Badge:hc,Breadcrumb:MI,Button:UI,Checkbox:Hi,CloseButton:oM,Code:cM,Container:dM,Divider:gM,Drawer:_M,Editable:IM,Form:FM,FormError:GM,FormLabel:qM,Heading:QM,Input:Fe,Kbd:sL,Link:cL,List:mL,Menu:jL,Modal:LL,NumberInput:HL,PinInput:XL,Popover:aN,Progress:mN,Radio:bN,Select:PN,Skeleton:TN,SkipLink:AN,Slider:BN,Spinner:UN,Stat:ZN,Switch:lD,Table:hD,Tabs:AD,Tag:DD,Textarea:WD,Tooltip:HD,Card:XI,Stepper:tD},KD={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},qD={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},XD={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"}},YD={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},QD={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"},ZD={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"},JD={"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)"},eO={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},tO={property:ZD,easing:JD,duration:eO},nO={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},rO={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},iO={breakpoints:qD,zIndices:nO,radii:YD,blur:rO,colors:XD,...z6,sizes:P6,shadows:QD,space:j6,borders:KD,transition:tO},oO={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"}}},aO={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"}}},sO=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function lO(e){return Nt(e)?sO.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const cO="ltr",uO={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Jo={semanticTokens:oO,direction:cO,...iO,components:GD,styles:aO,config:uO};function dO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yt(fl,--Rn):0,Xs--,Tt===10&&(Xs=1,am--),Tt}function Bn(){return Tt=Rn2||Yc(Tt)>3?"":" "}function CO(e,t){for(;--t&&Bn()&&!(Tt<48||Tt>102||Tt>57&&Tt<65||Tt>70&&Tt<97););return Cu(e,bf()+(t<6&&qr()==32&&Bn()==32))}function Yg(e){for(;Bn();)switch(Tt){case e:return Rn;case 34:case 39:e!==34&&e!==39&&Yg(Tt);break;case 40:e===41&&Yg(e);break;case 92:Bn();break}return Rn}function jO(e,t){for(;Bn()&&e+Tt!==57;)if(e+Tt===84&&qr()===47)break;return"/*"+Cu(t,Rn-1)+"*"+om(e===47?e:Bn())}function PO(e){for(;!Yc(qr());)Bn();return Cu(e,Rn)}function _O(e){return B6(Sf("",null,null,null,[""],e=F6(e),0,[0],e))}function Sf(e,t,n,r,i,o,a,l,c){for(var u=0,d=0,f=a,p=0,h=0,v=0,b=1,x=1,y=1,g=0,S="",w=i,k=o,P=r,_=S;x;)switch(v=g,g=Bn()){case 40:if(v!=108&&Yt(_,f-1)==58){Xg(_+=Oe(xf(g),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=xf(g);break;case 9:case 10:case 13:case 32:_+=kO(v);break;case 92:_+=CO(bf()-1,7);continue;case 47:switch(qr()){case 42:case 47:_d(TO(jO(Bn(),bf()),t,n),c);break;default:_+="/"}break;case 123*b:l[u++]=Dr(_)*y;case 125*b:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+d:y==-1&&(_=Oe(_,/\f/g,"")),h>0&&Dr(_)-f&&_d(h>32?wS(_+";",r,n,f-1):wS(Oe(_," ","")+";",r,n,f-2),c);break;case 59:_+=";";default:if(_d(P=SS(_,t,n,u,d,i,l,S,w=[],k=[],f),o),g===123)if(d===0)Sf(_,t,P,P,w,o,f,l,k);else switch(p===99&&Yt(_,3)===110?100:p){case 100:case 108:case 109:case 115:Sf(e,P,P,r&&_d(SS(e,P,P,0,0,i,l,S,i,w=[],f),k),i,k,f,l,r?w:k);break;default:Sf(_,P,P,P,[""],k,0,l,k)}}u=d=h=0,b=y=1,S=_="",f=a;break;case 58:f=1+Dr(_),h=v;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&wO()==125)continue}switch(_+=om(g),g*b){case 38:y=d>0?1:(_+="\f",-1);break;case 44:l[u++]=(Dr(_)-1)*y,y=1;break;case 64:qr()===45&&(_+=xf(Bn())),p=qr(),d=f=Dr(S=_+=PO(bf())),g++;break;case 45:v===45&&Dr(_)==2&&(b=0)}}return o}function SS(e,t,n,r,i,o,a,l,c,u,d){for(var f=i-1,p=i===0?o:[""],h=my(p),v=0,b=0,x=0;v0?p[y]+" "+g:Oe(g,/&\f/g,p[y])))&&(c[x++]=S);return sm(e,t,n,i===0?fy:l,c,u,d)}function TO(e,t,n){return sm(e,t,n,L6,om(SO()),Xc(e,2,-2),0)}function wS(e,t,n,r){return sm(e,t,n,py,Xc(e,0,r),Xc(e,r+1,-1),r)}function Ms(e,t){for(var n="",r=my(e),i=0;i6)switch(Yt(e,t+1)){case 109:if(Yt(e,t+4)!==45)break;case 102:return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+hp+(Yt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xg(e,"stretch")?V6(Oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yt(e,t+1)!==115)break;case 6444:switch(Yt(e,Dr(e)-3-(~Xg(e,"!important")&&10))){case 107:return Oe(e,":",":"+De)+e;case 101:return Oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(Yt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+on+"$2box$3")+e}break;case 5936:switch(Yt(e,t+11)){case 114:return De+e+on+Oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+on+Oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+on+Oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+on+e+e}return e}var NO=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case py:t.return=V6(t.value,t.length);break;case N6:return Ms([Ll(t,{value:Oe(t.value,"@","@"+De)})],i);case fy:if(t.length)return xO(t.props,function(o){switch(bO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ms([Ll(t,{props:[Oe(o,/:(read-\w+)/,":"+hp+"$1")]})],i);case"::placeholder":return Ms([Ll(t,{props:[Oe(o,/:(plac\w+)/,":"+De+"input-$1")]}),Ll(t,{props:[Oe(o,/:(plac\w+)/,":"+hp+"$1")]}),Ll(t,{props:[Oe(o,/:(plac\w+)/,on+"input-$1")]})],i)}return""})}},DO=[NO],OO=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(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||DO,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=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(i){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 eF={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},tF=/[A-Z]|^ms/g,nF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,J6=function(t){return t.charCodeAt(1)===45},_S=function(t){return t!=null&&typeof t!="boolean"},Jh=G6(function(e){return J6(e)?e:e.replace(tF,"-$&").toLowerCase()}),TS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nF,function(r,i,o){return Or={name:i,styles:o,next:Or},i})}return eF[t]!==1&&!J6(t)&&typeof n=="number"&&n!==0?n+"px":n};function Qc(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 i=n;if(i.anim===1)return Or={name:i.name,styles:i.styles,next:Or},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Or={name:a.name,styles:a.styles,next:Or},a=a.next;var l=o.styles+";";return l}return rF(e,t,n)}case"function":{if(e!==void 0){var c=Or,u=n(e);return Or=c,Qc(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function rF(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Td.dark:Td.light),document.body.classList.remove(i?Td.light:Td.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),a=l=>{i(l.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const i=document.createElement("style");return i.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&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const hF="chakra-ui-color-mode";function gF(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 vF=gF(hF),zS=()=>{},yF=T$()?m.useLayoutEffect:m.useEffect;function RS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const nj=function(t){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:l=vF}=t,c=oF(),u=o==="dark"?"dark":"light",[d,f]=m.useState(()=>RS(l,u)),[p,h]=m.useState(()=>RS(l)),{getSystemTheme:v,setClassName:b,setDataset:x,addListener:y}=m.useMemo(()=>mF({preventTransition:a,nonce:c==null?void 0:c.nonce}),[a,c==null?void 0:c.nonce]),g=o==="system"&&!d?p:d,S=m.useCallback(P=>{const _=P==="system"?v():P;f(_),b(_==="dark"),x(_),l.set(_)},[l,v,b,x]);yF(()=>{o==="system"&&h(v())},[]),m.useEffect(()=>{const P=l.get();if(P){S(P);return}if(o==="system"){S("system");return}S(u)},[l,u,o,S]);const w=m.useCallback(()=>{S(g==="dark"?"light":"dark")},[g,S]);m.useEffect(()=>{if(i)return y(S)},[i,y,S]);const k=m.useMemo(()=>({colorMode:n??g,toggleColorMode:n?zS:w,setColorMode:n?zS:S,forced:n!==void 0}),[g,w,S,n]);return s.jsx(Cy.Provider,{value:k,children:r})};nj.displayName="ColorModeProvider";const rj=String.raw,ij=rj` + */var Gt=typeof Symbol=="function"&&Symbol.for,hy=Gt?Symbol.for("react.element"):60103,gy=Gt?Symbol.for("react.portal"):60106,lm=Gt?Symbol.for("react.fragment"):60107,cm=Gt?Symbol.for("react.strict_mode"):60108,um=Gt?Symbol.for("react.profiler"):60114,dm=Gt?Symbol.for("react.provider"):60109,fm=Gt?Symbol.for("react.context"):60110,vy=Gt?Symbol.for("react.async_mode"):60111,pm=Gt?Symbol.for("react.concurrent_mode"):60111,mm=Gt?Symbol.for("react.forward_ref"):60112,hm=Gt?Symbol.for("react.suspense"):60113,FO=Gt?Symbol.for("react.suspense_list"):60120,gm=Gt?Symbol.for("react.memo"):60115,vm=Gt?Symbol.for("react.lazy"):60116,BO=Gt?Symbol.for("react.block"):60121,WO=Gt?Symbol.for("react.fundamental"):60117,VO=Gt?Symbol.for("react.responder"):60118,UO=Gt?Symbol.for("react.scope"):60119;function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hy:switch(e=e.type,e){case vy:case pm:case lm:case um:case cm:case hm:return e;default:switch(e=e&&e.$$typeof,e){case fm:case mm:case vm:case gm:case dm:return e;default:return t}}case gy:return t}}}function H6(e){return qn(e)===pm}Ge.AsyncMode=vy;Ge.ConcurrentMode=pm;Ge.ContextConsumer=fm;Ge.ContextProvider=dm;Ge.Element=hy;Ge.ForwardRef=mm;Ge.Fragment=lm;Ge.Lazy=vm;Ge.Memo=gm;Ge.Portal=gy;Ge.Profiler=um;Ge.StrictMode=cm;Ge.Suspense=hm;Ge.isAsyncMode=function(e){return H6(e)||qn(e)===vy};Ge.isConcurrentMode=H6;Ge.isContextConsumer=function(e){return qn(e)===fm};Ge.isContextProvider=function(e){return qn(e)===dm};Ge.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hy};Ge.isForwardRef=function(e){return qn(e)===mm};Ge.isFragment=function(e){return qn(e)===lm};Ge.isLazy=function(e){return qn(e)===vm};Ge.isMemo=function(e){return qn(e)===gm};Ge.isPortal=function(e){return qn(e)===gy};Ge.isProfiler=function(e){return qn(e)===um};Ge.isStrictMode=function(e){return qn(e)===cm};Ge.isSuspense=function(e){return qn(e)===hm};Ge.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lm||e===pm||e===um||e===cm||e===hm||e===FO||typeof e=="object"&&e!==null&&(e.$$typeof===vm||e.$$typeof===gm||e.$$typeof===dm||e.$$typeof===fm||e.$$typeof===mm||e.$$typeof===WO||e.$$typeof===VO||e.$$typeof===UO||e.$$typeof===BO)};Ge.typeOf=qn;U6.exports=Ge;var HO=U6.exports,G6=HO,GO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K6={};K6[G6.ForwardRef]=GO;K6[G6.Memo]=KO;var qO=!0;function q6(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var yy=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||qO===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},by=function(t,n,r){yy(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function XO(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 YO={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},QO=/[A-Z]|^ms/g,ZO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,X6=function(t){return t.charCodeAt(1)===45},jS=function(t){return t!=null&&typeof t!="boolean"},Jh=W6(function(e){return X6(e)?e:e.replace(QO,"-$&").toLowerCase()}),PS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZO,function(r,i,o){return Or={name:i,styles:o,next:Or},i})}return YO[t]!==1&&!X6(t)&&typeof n=="number"&&n!==0?n+"px":n};function Qc(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 i=n;if(i.anim===1)return Or={name:i.name,styles:i.styles,next:Or},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Or={name:a.name,styles:a.styles,next:Or},a=a.next;var l=o.styles+";";return l}return JO(e,t,n)}case"function":{if(e!==void 0){var c=Or,u=n(e);return Or=c,Qc(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function JO(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Td.dark:Td.light),document.body.classList.remove(i?Td.light:Td.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),a=l=>{i(l.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const i=document.createElement("style");return i.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&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const dF="chakra-ui-color-mode";function fF(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 pF=fF(dF),AS=()=>{},mF=C$()?m.useLayoutEffect:m.useEffect;function $S(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const Z6=function(t){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:l=pF}=t,c=tF(),u=o==="dark"?"dark":"light",[d,f]=m.useState(()=>$S(l,u)),[p,h]=m.useState(()=>$S(l)),{getSystemTheme:v,setClassName:b,setDataset:x,addListener:y}=m.useMemo(()=>uF({preventTransition:a,nonce:c==null?void 0:c.nonce}),[a,c==null?void 0:c.nonce]),g=o==="system"&&!d?p:d,S=m.useCallback(P=>{const _=P==="system"?v():P;f(_),b(_==="dark"),x(_),l.set(_)},[l,v,b,x]);mF(()=>{o==="system"&&h(v())},[]),m.useEffect(()=>{const P=l.get();if(P){S(P);return}if(o==="system"){S("system");return}S(u)},[l,u,o,S]);const w=m.useCallback(()=>{S(g==="dark"?"light":"dark")},[g,S]);m.useEffect(()=>{if(i)return y(S)},[i,y,S]);const k=m.useMemo(()=>({colorMode:n??g,toggleColorMode:n?AS:w,setColorMode:n?AS:S,forced:n!==void 0}),[g,w,S,n]);return s.jsx(ky.Provider,{value:k,children:r})};Z6.displayName="ColorModeProvider";const J6=String.raw,ej=J6` :root, :host { --chakra-vh: 100vh; @@ -84,7 +84,7 @@ Error generating stack: `+o.message+` --chakra-vh: 100dvh; } } -`,bF=()=>s.jsx(bm,{styles:ij}),xF=({scope:e=""})=>s.jsx(bm,{styles:rj` +`,hF=()=>s.jsx(bm,{styles:ej}),gF=({scope:e=""})=>s.jsx(bm,{styles:J6` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -336,8 +336,8 @@ Error generating stack: `+o.message+` display: none; } - ${ij} - `});function SF(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=m.useMemo(()=>mR(n),[n]);return s.jsxs(lF,{theme:i,children:[s.jsx(wF,{root:t}),r]})}function wF({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return s.jsx(bm,{styles:n=>({[t]:n.__cssVars})})}_e({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function $r(e){return _e({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function kF(){const{colorMode:e}=Pu();return s.jsx(bm,{styles:t=>{const n=n6(t,"styles.global"),r=cn(n,{theme:t,colorMode:e});return r?m6(r)(t):void 0}})}const[CF,jF]=_e({strict:!1,name:"PortalManagerContext"});function oj(e){const{children:t,zIndex:n}=e;return s.jsx(CF,{value:{zIndex:n},children:t})}oj.displayName="PortalManager";const jy=m.createContext({getDocument(){return document},getWindow(){return window}});jy.displayName="EnvironmentContext";function PF({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return vi(()=>{e&&t()},[e]),m.useContext(jy)}function aj(e){const{children:t,environment:n,disabled:r}=e,i=m.useRef(null),o=m.useMemo(()=>n||{getDocument:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument)??document},getWindow:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return s.jsxs(jy.Provider,{value:o,children:[t,a&&s.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}aj.displayName="EnvironmentProvider";const _F=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:a={},environment:l,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:d}=e,f=s.jsx(aj,{environment:l,disabled:u,children:t});return s.jsx(SF,{theme:a,cssVarsRoot:c,children:s.jsxs(nj,{colorModeManager:n,options:a.config,children:[o?s.jsx(xF,{scope:i}):s.jsx(bF,{}),!d&&s.jsx(kF,{}),r?s.jsx(oj,{zIndex:r,children:f}):f]})})},Py=m.createContext({});function _y(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const _u=m.createContext(null),Ty=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class TF 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 EF({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=m.useContext(Ty);return m.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u}=i.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + ${ej} + `});function vF(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=m.useMemo(()=>uR(n),[n]);return s.jsxs(iF,{theme:i,children:[s.jsx(yF,{root:t}),r]})}function yF({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return s.jsx(bm,{styles:n=>({[t]:n.__cssVars})})}_e({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function $r(e){return _e({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function bF(){const{colorMode:e}=Pu();return s.jsx(bm,{styles:t=>{const n=ZC(t,"styles.global"),r=cn(n,{theme:t,colorMode:e});return r?u6(r)(t):void 0}})}const[xF,SF]=_e({strict:!1,name:"PortalManagerContext"});function tj(e){const{children:t,zIndex:n}=e;return s.jsx(xF,{value:{zIndex:n},children:t})}tj.displayName="PortalManager";const Cy=m.createContext({getDocument(){return document},getWindow(){return window}});Cy.displayName="EnvironmentContext";function wF({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return vi(()=>{e&&t()},[e]),m.useContext(Cy)}function nj(e){const{children:t,environment:n,disabled:r}=e,i=m.useRef(null),o=m.useMemo(()=>n||{getDocument:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument)??document},getWindow:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return s.jsxs(Cy.Provider,{value:o,children:[t,a&&s.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}nj.displayName="EnvironmentProvider";const kF=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:a={},environment:l,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:d}=e,f=s.jsx(nj,{environment:l,disabled:u,children:t});return s.jsx(vF,{theme:a,cssVarsRoot:c,children:s.jsxs(Z6,{colorModeManager:n,options:a.config,children:[o?s.jsx(gF,{scope:i}):s.jsx(hF,{}),!d&&s.jsx(bF,{}),r?s.jsx(tj,{zIndex:r,children:f}):f]})})},jy=m.createContext({});function Py(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const _u=m.createContext(null),_y=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class CF 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 jF({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=m.useContext(_y);return m.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u}=i.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${a}px !important; @@ -345,10 +345,10 @@ Error generating stack: `+o.message+` top: ${c}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(d)}},[t]),s.jsx(TF,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const AF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const l=_y($F),c=m.useId(),u=m.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=m.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return m.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(EF,{isPresent:n,children:e})),s.jsx(_u.Provider,{value:d,children:e})};function $F(){return new Map}function Ey(e=!0){const t=m.useContext(_u);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=m.useId();m.useEffect(()=>{e&&i(o)},[e]);const a=m.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}function zF(){return RF(m.useContext(_u))}function RF(e){return e===null?!0:e.isPresent}const Ed=e=>e.key||"";function IS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Ay=typeof window<"u",sj=Ay?m.useLayoutEffect:m.useEffect,$i=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[l,c]=Ey(a),u=m.useMemo(()=>IS(e),[e]),d=a&&!l?[]:u.map(Ed),f=m.useRef(!0),p=m.useRef(u),h=_y(()=>new Map),[v,b]=m.useState(u),[x,y]=m.useState(u);sj(()=>{f.current=!1,p.current=u;for(let w=0;w{const k=Ed(w),P=a&&!l?!1:u===x||d.includes(k),_=()=>{if(h.has(k))h.set(k,!0);else return;let j=!0;h.forEach(z=>{z||(j=!1)}),j&&(S==null||S(),y(p.current),a&&(c==null||c()),r&&r())};return s.jsx(AF,{isPresent:P,initial:!f.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:P?void 0:_,children:w},k)})})},Wn=e=>e;let lj=Wn;function $y(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},bi=e=>e*1e3,xi=e=>e/1e3,IF={useManualTiming:!1};function MF(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&o.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const Ad=["read","resolveKeyframes","update","preRender","render","postRender"],LF=40;function cj(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Ad.reduce((y,g)=>(y[g]=MF(o),y),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:p}=a,h=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,LF),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ad.reduce((y,g)=>{const S=a[g];return y[g]=(w,k=!1,P=!1)=>(n||v(),S.schedule(w,k,P)),y},{}),cancel:y=>{for(let g=0;gMS[e].some(n=>!!t[n])};function NF(e){for(const t in e)Zs[t]={...Zs[t],...e[t]}}const DF=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 vp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||DF.has(e)}let dj=e=>!vp(e);function OF(e){e&&(dj=t=>t.startsWith("on")?!vp(t):e(t))}try{OF(require("@emotion/is-prop-valid").default)}catch{}function FF(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(dj(i)||n===!0&&vp(i)||!t&&!vp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function BF(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const xm=m.createContext({});function Zc(e){return typeof e=="string"||Array.isArray(e)}function Sm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const zy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ry=["initial",...zy];function wm(e){return Sm(e.animate)||Ry.some(t=>Zc(e[t]))}function fj(e){return!!(wm(e)||e.variants)}function WF(e,t){if(wm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zc(n)?n:void 0,animate:Zc(r)?r:void 0}}return e.inherit!==!1?t:{}}function VF(e){const{initial:t,animate:n}=WF(e,m.useContext(xm));return m.useMemo(()=>({initial:t,animate:n}),[LS(t),LS(n)])}function LS(e){return Array.isArray(e)?e.join(" "):e}const UF=Symbol.for("motionComponentSymbol");function ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function HF(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):ps(n)&&(n.current=r))},[t])}const Iy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),GF="framerAppearId",pj="data-"+Iy(GF),{schedule:My}=cj(queueMicrotask,!1),mj=m.createContext({});function KF(e,t,n,r,i){var o,a;const{visualElement:l}=m.useContext(xm),c=m.useContext(uj),u=m.useContext(_u),d=m.useContext(Ty).reducedMotion,f=m.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(mj);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&qF(f.current,n,i,h);const v=m.useRef(!1);m.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const b=n[pj],x=m.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return sj(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),My.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,b)}),x.current=!1))}),p}function qF(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hj(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&ps(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function hj(e){if(e)return e.options.allowProjection!==!1?e.projection:hj(e.parent)}function XF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&NF(e);function l(u,d){let f;const p={...m.useContext(Ty),...u,layoutId:YF(u)},{isStatic:h}=p,v=VF(u),b=r(u,h);if(!h&&Ay){QF();const x=ZF(p);f=x.MeasureLayout,v.visualElement=KF(i,b,p,t,x.ProjectionNode)}return s.jsxs(xm.Provider,{value:v,children:[f&&v.visualElement?s.jsx(f,{visualElement:v.visualElement,...p}):null,n(i,u,HF(b,v.visualElement,d),b,h,v.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=m.forwardRef(l);return c[UF]=i,c}function YF({layoutId:e}){const t=m.useContext(Py).id;return t&&e!==void 0?t+"-"+e:e}function QF(e,t){m.useContext(uj).strict}function ZF(e){const{drag:t,layout:n}=Zs;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 JF=["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 Ly(e){return typeof e!="string"||e.includes("-")?!1:!!(JF.indexOf(e)>-1||/[A-Z]/u.test(e))}function NS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ny(e,t,n,r){if(typeof t=="function"){const[i,o]=NS(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=NS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Zg=e=>Array.isArray(e),eB=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),tB=e=>Zg(e)?e[e.length-1]||0:e,un=e=>!!(e&&e.getVelocity);function wf(e){const t=un(e)?e.get():e;return eB(t)?t.toValue():t}function nB({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:rB(r,i,o,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const gj=e=>(t,n)=>{const r=m.useContext(xm),i=m.useContext(_u),o=()=>nB(e,t,r,i);return n?o():_y(o)};function rB(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=wf(o[p]);let{initial:a,animate:l}=e;const c=wm(e),u=fj(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!Sm(f)){const p=Array.isArray(f)?f:[f];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),yj=vj("--"),iB=vj("var(--"),Dy=e=>iB(e)?oB.test(e.split("/*")[0].trim()):!1,oB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Jc={...ml,transform:e=>Pi(0,1,e)},$d={...ml,default:1},Tu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fi=Tu("deg"),Xr=Tu("%"),be=Tu("px"),aB=Tu("vh"),sB=Tu("vw"),DS={...Xr,parse:e=>Xr.parse(e)/100,transform:e=>Xr.transform(e*100)},lB={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be},cB={rotate:Fi,rotateX:Fi,rotateY:Fi,rotateZ:Fi,scale:$d,scaleX:$d,scaleY:$d,scaleZ:$d,skew:Fi,skewX:Fi,skewY:Fi,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:Jc,originX:DS,originY:DS,originZ:be},OS={...ml,transform:Math.round},Oy={...lB,...cB,zIndex:OS,size:be,fillOpacity:Jc,strokeOpacity:Jc,numOctaves:OS},uB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dB=pl.length;function fB(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}}),xj=()=>({...Wy(),attrs:{}}),Vy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Sj(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const wj=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 kj(e,t,n,r){Sj(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(wj.has(i)?i:Iy(i),t.attrs[i])}const yp={};function vB(e){Object.assign(yp,e)}function Cj(e,{layout:t,layoutId:n}){return za.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yp[e]||e==="opacity")}function Uy(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(un(i[a])||t.style&&un(t.style[a])||Cj(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function jj(e,t,n){const r=Uy(e,t,n);for(const i in e)if(un(e[i])||un(t[i])){const o=pl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function yB(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 BS=["x","y","width","height","cx","cy","r"],bB={useVisualState:gj({scrapeMotionValuesFromProps:jj,createRenderState:xj,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(za.has(l)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let l=0;l{yB(n,r),it.render(()=>{By(r,i,Vy(n.tagName),e.transformTemplate),kj(n,r)})})}})},xB={useVisualState:gj({scrapeMotionValuesFromProps:Uy,createRenderState:Wy})};function Pj(e,t,n){for(const r in t)!un(t[r])&&!Cj(r,n)&&(e[r]=t[r])}function SB({transformTemplate:e},t){return m.useMemo(()=>{const n=Wy();return Fy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wB(e,t){const n=e.style||{},r={};return Pj(r,n,e),Object.assign(r,SB(e,t)),r}function kB(e,t){const n={},r=wB(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 CB(e,t,n,r){const i=m.useMemo(()=>{const o=xj();return By(o,t,Vy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Pj(o,e.style,e),i.style={...o,...i.style}}return i}function jB(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(Ly(n)?CB:kB)(r,o,a,n),u=FF(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...c,ref:i}:{},{children:f}=r,p=m.useMemo(()=>un(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function PB(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Ly(r)?bB:xB,preloadedFeatures:e,useRender:jB(i),createVisualElement:t,Component:r};return XF(a)}}function _j(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 TB{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(_B()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].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 EB extends TB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Hy(e,t){return e?e[t]||e.default||e:void 0}const Jg=2e4;function Tj(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Jg?1/0:t}function Gy(e){return typeof e=="function"}function WS(e,t){e.timeline=t,e.onfinish=null}const Ky=e=>Array.isArray(e)&&typeof e[0]=="number",AB={linearEasing:void 0};function $B(e,t){const n=$y(e);return()=>{var r;return(r=AB[t])!==null&&r!==void 0?r:n()}}const bp=$B(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ej=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ql([0,.65,.55,1]),circOut:Ql([.55,0,1,.45]),backIn:Ql([.31,.01,.66,-.59]),backOut:Ql([.33,1.53,.69,.99])};function $j(e,t){if(e)return typeof e=="function"&&bp()?Ej(e,t):Ky(e)?Ql(e):Array.isArray(e)?e.map(n=>$j(n,t)||ev.easeOut):ev[e]}const br={x:!1,y:!1};function zj(){return br.x||br.y}function zB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function Rj(e,t){const n=zB(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function VS(e){return t=>{t.pointerType==="touch"||zj()||e(t)}}function RB(e,t,n={}){const[r,i,o]=Rj(e,n),a=VS(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=VS(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const Ij=(e,t)=>t?e===t?!0:Ij(e,t.parentElement):!1,qy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,IB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function MB(e){return IB.has(e.tagName)||e.tabIndex!==-1}const Zl=new WeakSet;function US(e){return t=>{t.key==="Enter"&&e(t)}}function t0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const LB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=US(()=>{if(Zl.has(n))return;t0(n,"down");const i=US(()=>{t0(n,"up")}),o=()=>t0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function HS(e){return qy(e)&&!zj()}function NB(e,t,n={}){const[r,i,o]=Rj(e,n),a=l=>{const c=l.currentTarget;if(!HS(l)||Zl.has(c))return;Zl.add(c);const u=t(l),d=(h,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!HS(h)||!Zl.has(c))&&(Zl.delete(c),typeof u=="function"&&u(h,{success:v}))},f=h=>{d(h,n.useGlobalTarget||Ij(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",p,i)};return r.forEach(l=>{!MB(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),l.addEventListener("focus",u=>LB(u,i),i)}),o}function DB(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}const Mj=new Set(["width","height","top","left","right","bottom",...pl]);let kf;function OB(){kf=void 0}const Yr={now:()=>(kf===void 0&&Yr.set(qt.isProcessing||IF.useManualTiming?qt.timestamp:performance.now()),kf),set:e=>{kf=e,queueMicrotask(OB)}};function Xy(e,t){e.indexOf(t)===-1&&e.push(t)}function Yy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qy{constructor(){this.subscriptions=[]}add(t){return Xy(this.subscriptions,t),()=>Yy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class BB{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Yr.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=Yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FB(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 Qy);const r=this.events[t].add(n);return t==="change"?()=>{r(),it.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=Yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>GS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,GS);return Lj(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 eu(e,t){return new BB(e,t)}function WB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,eu(n))}function VB(e,t){const n=km(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=tB(o[a]);WB(e,a,l)}}function UB(e){return!!(un(e)&&e.add)}function tv(e,t){const n=e.getValue("willChange");if(UB(n))return n.add(t)}function Nj(e){return e.props[pj]}const Dj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,HB=1e-7,GB=12;function KB(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=Dj(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>HB&&++lKB(o,0,1,e,n);return o=>o===0||o===1?o:Dj(i(o),t,r)}const Oj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fj=e=>t=>1-e(1-t),Bj=Eu(.33,1.53,.69,.99),Zy=Fj(Bj),Wj=Oj(Zy),Vj=e=>(e*=2)<1?.5*Zy(e):.5*(2-Math.pow(2,-10*(e-1))),Jy=e=>1-Math.sin(Math.acos(e)),Uj=Fj(Jy),Hj=Oj(Jy),Gj=e=>/^0[^.\s]+$/u.test(e);function qB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Gj(e):!0}const bc=e=>Math.round(e*1e5)/1e5,eb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XB(e){return e==null}const YB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tb=(e,t)=>n=>!!(typeof n=="string"&&YB.test(n)&&n.startsWith(e)||t&&!XB(n)&&Object.prototype.hasOwnProperty.call(n,t)),Kj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(eb);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},QB=e=>Pi(0,255,e),n0={...ml,transform:e=>Math.round(QB(e))},ea={test:tb("rgb","red"),parse:Kj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+n0.transform(e)+", "+n0.transform(t)+", "+n0.transform(n)+", "+bc(Jc.transform(r))+")"};function ZB(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const nv={test:tb("#"),parse:ZB,transform:ea.transform},ms={test:tb("hsl","hue"),parse:Kj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xr.transform(bc(t))+", "+Xr.transform(bc(n))+", "+bc(Jc.transform(r))+")"},an={test:e=>ea.test(e)||nv.test(e)||ms.test(e),parse:e=>ea.test(e)?ea.parse(e):ms.test(e)?ms.parse(e):nv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ea.transform(e):ms.transform(e)},JB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eW(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(eb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(JB))===null||n===void 0?void 0:n.length)||0)>0}const qj="number",Xj="color",tW="var",nW="var(",KS="${}",rW=/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 tu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(rW,c=>(an.test(c)?(r.color.push(o),i.push(Xj),n.push(an.parse(c))):c.startsWith(nW)?(r.var.push(o),i.push(tW),n.push(c)):(r.number.push(o),i.push(qj),n.push(parseFloat(c))),++o,KS)).split(KS);return{values:n,split:l,indexes:r,types:i}}function Yj(e){return tu(e).values}function Qj(e){const{split:t,types:n}=tu(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function oW(e){const t=Yj(e);return Qj(e)(t.map(iW))}const vo={test:eW,parse:Yj,createTransformer:Qj,getAnimatableNone:oW},aW=new Set(["brightness","contrast","saturate","opacity"]);function sW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eb)||[];if(!r)return e;const i=n.replace(r,"");let o=aW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const lW=/\b([a-z-]*)\(.*?\)/gu,rv={...vo,getAnimatableNone:e=>{const t=e.match(lW);return t?t.map(sW).join(" "):e}},cW={...Oy,color:an,backgroundColor:an,outlineColor:an,fill:an,stroke:an,borderColor:an,borderTopColor:an,borderRightColor:an,borderBottomColor:an,borderLeftColor:an,filter:rv,WebkitFilter:rv},nb=e=>cW[e];function Zj(e,t){let n=nb(e);return n!==rv&&(n=vo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uW=new Set(["auto","none","0"]);function dW(e,t,n){let r=0,i;for(;re===ml||e===be,XS=(e,t)=>parseFloat(e.split(", ")[t]),YS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return XS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?XS(o[1],e):0}},fW=new Set(["x","y","z"]),pW=pl.filter(e=>!fW.has(e));function mW(e){const t=[];return pW.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Js={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:YS(4,13),y:YS(5,14)};Js.translateX=Js.x;Js.translateY=Js.y;const ca=new Set;let iv=!1,ov=!1;function Jj(){if(ov){const e=Array.from(ca).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=mW(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ov=!1,iv=!1,ca.forEach(e=>e.complete()),ca.clear()}function eP(){ca.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ov=!0)})}function hW(){eP(),Jj()}class rb{constructor(t,n,r,i,o,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=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ca.add(this),iv||(iv=!0,it.read(eP),it.resolveKeyframes(Jj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vW(e){const t=gW.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function nP(e,t,n=1){const[r,i]=vW(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return tP(a)?parseFloat(a):a}return Dy(i)?nP(i,t,n+1):i}const rP=e=>t=>t.test(e),yW={test:e=>e==="auto",parse:e=>e},iP=[ml,be,Xr,Fi,sB,aB,yW],QS=e=>iP.find(rP(e));class oP extends rb{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const ZS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vo.test(e)||e==="0")&&!e.startsWith("url("));function bW(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Cm(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(SW),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const wW=40;class aP{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>wW?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hW(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!xW(t,r,i,o))if(a)this.options.duration=0;else{c&&c(Cm(t,this.options,n)),l&&l(),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 ft=(e,t,n)=>e+(t-e)*n;function r0(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 kW({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=r0(c,l,e+1/3),o=r0(c,l,e),a=r0(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function xp(e,t){return n=>n>0?t:e}const i0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},CW=[nv,ea,ms],jW=e=>CW.find(t=>t.test(e));function JS(e){const t=jW(e);if(!t)return!1;let n=t.parse(e);return t===ms&&(n=kW(n)),n}const e4=(e,t)=>{const n=JS(e),r=JS(t);if(!n||!r)return xp(e,t);const i={...n};return o=>(i.red=i0(n.red,r.red,o),i.green=i0(n.green,r.green,o),i.blue=i0(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),ea.transform(i))},PW=(e,t)=>n=>t(e(n)),Au=(...e)=>e.reduce(PW),av=new Set(["none","hidden"]);function _W(e,t){return av.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TW(e,t){return n=>ft(e,t,n)}function ib(e){return typeof e=="number"?TW:typeof e=="string"?Dy(e)?xp:an.test(e)?e4:$W:Array.isArray(e)?sP:typeof e=="object"?an.test(e)?e4:EW:xp}function sP(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>ib(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function AW(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=vo.createTransformer(t),r=tu(e),i=tu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?av.has(e)&&!i.values.length||av.has(t)&&!r.values.length?_W(e,t):Au(sP(AW(r,i),i.values),n):xp(e,t)};function lP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):ib(e)(e,t)}const zW=5;function cP(e,t,n){const r=Math.max(t-zW,0);return Lj(n-e(r),t-r)}const vt={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},o0=.001;function RW({duration:e=vt.duration,bounce:t=vt.bounce,velocity:n=vt.velocity,mass:r=vt.mass}){let i,o,a=1-t;a=Pi(vt.minDamping,vt.maxDamping,a),e=Pi(vt.minDuration,vt.maxDuration,xi(e)),a<1?(i=u=>{const d=u*a,f=d*e,p=d-n,h=sv(u,a),v=Math.exp(-f);return o0-p/h*v},o=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),b=sv(Math.pow(u,2),a);return(-i(u)+o0>0?-1:1)*((p-h)*v)/b}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-o0+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=MW(i,o,l);if(e=bi(e),isNaN(c))return{stiffness:vt.stiffness,damping:vt.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const IW=12;function MW(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function DW(e){let t={velocity:vt.velocity,stiffness:vt.stiffness,damping:vt.damping,mass:vt.mass,isResolvedFromDuration:!1,...e};if(!t4(e,NW)&&t4(e,LW))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Pi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:vt.mass,stiffness:i,damping:o}}else{const n=RW(e);t={...t,...n,mass:vt.mass},t.isResolvedFromDuration=!0}return t}function uP(e=vt.visualDuration,t=vt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=DW({...n,velocity:-xi(n.velocity||0)}),v=p||0,b=u/(2*Math.sqrt(c*d)),x=a-o,y=xi(Math.sqrt(c/d)),g=Math.abs(x)<5;r||(r=g?vt.restSpeed.granular:vt.restSpeed.default),i||(i=g?vt.restDelta.granular:vt.restDelta.default);let S;if(b<1){const k=sv(y,b);S=P=>{const _=Math.exp(-b*y*P);return a-_*((v+b*y*x)/k*Math.sin(k*P)+x*Math.cos(k*P))}}else if(b===1)S=k=>a-Math.exp(-y*k)*(x+(v+y*x)*k);else{const k=y*Math.sqrt(b*b-1);S=P=>{const _=Math.exp(-b*y*P),j=Math.min(k*P,300);return a-_*((v+b*y*x)*Math.sinh(j)+k*x*Math.cosh(j))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const P=S(k);if(h)l.done=k>=f;else{let _=0;b<1&&(_=k===0?bi(v):cP(S,k,P));const j=Math.abs(_)<=r,z=Math.abs(a-P)<=i;l.done=j&&z}return l.value=l.done?a:P,l},toString:()=>{const k=Math.min(Tj(w),Jg),P=Ej(_=>w.next(k*_).value,k,30);return k+"ms "+P}};return w}function n4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=j=>l!==void 0&&jc,v=j=>l===void 0?c:c===void 0||Math.abs(l-j)-b*Math.exp(-j/r),S=j=>y+g(j),w=j=>{const z=g(j),$=S(j);p.done=Math.abs(z)<=u,p.value=p.done?y:$};let k,P;const _=j=>{h(p.value)&&(k=j,P=uP({keyframes:[p.value,v(p.value)],velocity:cP(S,j,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return _(0),{calculatedDuration:null,next:j=>{let z=!1;return!P&&k===void 0&&(z=!0,w(j),_(j)),k!==void 0&&j>=k?P.next(j-k):(!z&&w(j),p)}}}const OW=Eu(.42,0,1,1),FW=Eu(0,0,.58,1),dP=Eu(.42,0,.58,1),BW=e=>Array.isArray(e)&&typeof e[0]!="number",WW={linear:Wn,easeIn:OW,easeInOut:dP,easeOut:FW,circIn:Jy,circInOut:Hj,circOut:Uj,backIn:Zy,backInOut:Wj,backOut:Bj,anticipate:Vj},r4=e=>{if(Ky(e)){lj(e.length===4);const[t,n,r,i]=e;return Eu(t,n,r,i)}else if(typeof e=="string")return WW[e];return e};function VW(e,t,n){const r=[],i=n||lP,o=e.length-1;for(let a=0;at[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=VW(t,r,i),c=l.length,u=d=>{if(a&&d1)for(;fu(Pi(e[0],e[o-1],d)):u}function HW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qs(0,t,r);e.push(ft(n,1,i))}}function GW(e){const t=[0];return HW(t,e.length-1),t}function KW(e,t){return e.map(n=>n*t)}function qW(e,t){return e.map(()=>t||dP).splice(0,e.length-1)}function Sp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=BW(r)?r.map(r4):r4(r),o={done:!1,value:t[0]},a=KW(n&&n.length===t.length?n:GW(t),e),l=UW(a,t,{ease:Array.isArray(i)?i:qW(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const XW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>it.update(t,!0),stop:()=>go(t),now:()=>qt.isProcessing?qt.timestamp:Yr.now()}},YW={decay:n4,inertia:n4,tween:Sp,keyframes:Sp,spring:uP},QW=e=>e/100;class ob extends aP{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||rb,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(o,l,n,r,i),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:i=0,repeatType:o,velocity:a=0}=this.options,l=Gy(n)?n:YW[n]||Sp;let c,u;l!==Sp&&typeof t[0]!="number"&&(c=Au(QW,lP(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Tj(d));const{calculatedDuration:f}=d,p=f+i,h=p*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,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:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:h,repeatType:v,repeatDelay:b,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 y=this.currentTime-p*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=o;if(h){const j=Math.min(this.currentTime,d)/f;let z=Math.floor(j),$=j%1;!$&&j>=1&&($=1),$===1&&z--,z=Math.min(z,h+1),!!(z%2)&&(v==="reverse"?($=1-$,b&&($-=b/f)):v==="mirror"&&(w=a)),S=Pi(0,1,$)*f}const k=g?{done:!1,value:c[0]}:w.next(S);l&&(k.value=l(k.value));let{done:P}=k;!g&&u!==null&&(P=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return _&&i!==void 0&&(k.value=Cm(c,this.options,i)),x&&x(k.value),_&&this.finish(),k}get duration(){const{resolved:t}=this;return t?xi(t.calculatedDuration):0}get time(){return xi(this.currentTime)}set time(t){t=bi(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=xi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=XW,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):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 ZW=new Set(["opacity","clipPath","filter","transform"]);function JW(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=$j(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const eV=$y(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wp=10,tV=2e4;function nV(e){return Gy(e.type)||e.type==="spring"||!Aj(e.ease)}function rV(e,t){const n=new ob({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(a,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&bp()&&iV(o)&&(o=fP[o]),nV(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:v,...b}=this.options,x=rV(t,b);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,i=x.times,o=x.ease,a="keyframes"}const d=JW(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(WS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Cm(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return xi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return xi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=bi(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 Wn;const{animation:r}=n;WS(r,t)}return Wn}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:i,type:o,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:p,...h}=this.options,v=new ob({...h,keyframes:r,duration:i,type:o,ease:a,times:l,isGenerator:!0}),b=bi(this.time);u.setWithVelocity(v.sample(b-wp).value,v.sample(b).value,wp)}const{onStop:c}=this.options;c&&c(),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:i,repeatType:o,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return eV()&&r&&ZW.has(r)&&!c&&!u&&!i&&o!=="mirror"&&a!==0&&l!=="inertia"}}const oV={type:"spring",stiffness:500,damping:25,restSpeed:10},aV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sV={type:"keyframes",duration:.8},lV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cV=(e,{keyframes:t})=>t.length>2?sV:za.has(e)?e.startsWith("scale")?aV(t[1]):oV:lV;function uV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const ab=(e,t,n,r={},i,o)=>a=>{const l=Hy(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-bi(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};uV(l)||(d={...d,...cV(e,d)}),d.duration&&(d.duration=bi(d.duration)),d.repeatDelay&&(d.repeatDelay=bi(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&&!o&&t.get()!==void 0){const p=Cm(d.keyframes,l);if(p!==void 0)return it.update(()=>{d.onUpdate(p),d.onComplete()}),new EB([])}return!o&&i4.supports(d)?new i4(d):new ob(d)};function dV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=c[f];if(h===void 0||d&&dV(d,f))continue;const v={delay:n,...Hy(a||{},f)};let b=!1;if(window.MotionHandoffAnimation){const y=Nj(e);if(y){const g=window.MotionHandoffAnimation(y,f,it);g!==null&&(v.startTime=g,b=!0)}}tv(e,f),p.start(ab(f,p,h,e.shouldReduceMotion&&Mj.has(f)?{type:!1}:v,e,b));const x=p.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{it.update(()=>{l&&VB(e,l)})}),u}function lv(e,t,n={}){var r;const i=km(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(pP(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=o;return fV(e,t,d+u,f,p,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function fV(e,t,n=0,r=0,i=1,o){const a=[],l=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(pV).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(lv(u,t,{...o,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function pV(e,t){return e.sortNodePosition(t)}function mV(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>lv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=lv(e,t,n);else{const i=typeof t=="function"?km(e,t,n.custom):t;r=Promise.all(pP(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hV=Ry.length;function mP(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mP(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})=>mV(e,n,r)))}function bV(e){let t=yV(e),n=o4(),r=!0;const i=c=>(u,d)=>{var f;const p=km(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:v,...b}=p;u={...u,...b,...v}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=mP(e.parent)||{},f=[],p=new Set;let h={},v=1/0;for(let x=0;xv&&w,z=!1;const $=Array.isArray(S)?S:[S];let W=$.reduce(i(y),{});k===!1&&(W={});const{prevResolvedValues:Y={}}=g,ee={...Y,...W},I=R=>{j=!0,p.has(R)&&(z=!0,p.delete(R)),g.needsAnimating[R]=!0;const F=e.getValue(R);F&&(F.liveStyle=!1)};for(const R in ee){const F=W[R],M=Y[R];if(h.hasOwnProperty(R))continue;let G=!1;Zg(F)&&Zg(M)?G=!_j(F,M):G=F!==M,G?F!=null?I(R):p.add(R):F!==void 0&&p.has(R)?I(R):g.protectedKeys[R]=!0}g.prevProp=S,g.prevResolvedValues=W,g.isActive&&(h={...h,...W}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(P&&_)||z)&&f.push(...$.map(R=>({animation:R,options:{type:y}})))}if(p.size){const x={};p.forEach(y=>{const g=e.getBaseTarget(y),S=e.getValue(y);S&&(S.liveStyle=!0),x[y]=g??null}),f.push({animation:x})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)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(c,u)}),n[c].isActive=u;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=o4(),r=!0}}}function xV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_j(t,e):!1}function Do(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function o4(){return{animate:Do(!0),whileInView:Do(),whileHover:Do(),whileTap:Do(),whileDrag:Do(),whileFocus:Do(),exit:Do()}}class Po{constructor(t){this.isMounted=!1,this.node=t}update(){}}class SV extends Po{constructor(t){super(t),t.animationState||(t.animationState=bV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sm(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 wV=0;class kV extends Po{constructor(){super(...arguments),this.id=wV++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const CV={animation:{Feature:SV},exit:{Feature:kV}};function nu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $u(e){return{point:{x:e.pageX,y:e.pageY}}}const jV=e=>t=>qy(t)&&e(t,$u(t));function xc(e,t,n,r){return nu(e,t,jV(n),r)}const a4=(e,t)=>Math.abs(e-t);function PV(e,t){const n=a4(e.x,t.x),r=a4(e.y,t.y);return Math.sqrt(n**2+r**2)}class hP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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=s0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=PV(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=f,{timestamp:b}=qt;this.history.push({...v,timestamp:b});const{onStart:x,onMove:y}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=a0(p,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=s0(f.type==="pointercancel"?this.lastMoveEventInfo:a0(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),v&&v(f,x)},!qy(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=$u(t),l=a0(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=qt;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,s0(l,this.history)),this.removeListeners=Au(xc(this.contextWindow,"pointermove",this.handlePointerMove),xc(this.contextWindow,"pointerup",this.handlePointerUp),xc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),go(this.updatePoint)}}function a0(e,t){return t?{point:t(e.point)}:e}function s4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function s0({point:e},t){return{point:e,delta:s4(e,gP(t)),offset:s4(e,_V(t)),velocity:TV(t,.1)}}function _V(e){return e[0]}function gP(e){return e[e.length-1]}function TV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=gP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>bi(t)));)n--;if(!r)return{x:0,y:0};const o=xi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const vP=1e-4,EV=1-vP,AV=1+vP,yP=.01,$V=0-yP,zV=0+yP;function Un(e){return e.max-e.min}function RV(e,t,n){return Math.abs(e-t)<=n}function l4(e,t,n,r=.5){e.origin=r,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Un(n)/Un(t),e.translate=ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=EV&&e.scale<=AV||isNaN(e.scale))&&(e.scale=1),(e.translate>=$V&&e.translate<=zV||isNaN(e.translate))&&(e.translate=0)}function Sc(e,t,n,r){l4(e.x,t.x,n.x,r?r.originX:void 0),l4(e.y,t.y,n.y,r?r.originY:void 0)}function c4(e,t,n){e.min=n.min+t.min,e.max=e.min+Un(t)}function IV(e,t,n){c4(e.x,t.x,n.x),c4(e.y,t.y,n.y)}function u4(e,t,n){e.min=t.min-n.min,e.max=e.min+Un(t)}function wc(e,t,n){u4(e.x,t.x,n.x),u4(e.y,t.y,n.y)}function MV(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ft(n,e,r.max):Math.min(e,n)),e}function d4(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 LV(e,{top:t,left:n,bottom:r,right:i}){return{x:d4(e.x,n,i),y:d4(e.y,t,r)}}function f4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qs(t.min,t.max-r,e.min):r>i&&(n=Qs(e.min,e.max-i,t.min)),Pi(0,1,n)}function OV(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 cv=.35;function FV(e=cv){return e===!1?e=0:e===!0&&(e=cv),{x:p4(e,"left","right"),y:p4(e,"top","bottom")}}function p4(e,t,n){return{min:m4(e,t),max:m4(e,n)}}function m4(e,t){return typeof e=="number"?e:e[t]||0}const h4=()=>({translate:0,scale:1,origin:0,originPoint:0}),hs=()=>({x:h4(),y:h4()}),g4=()=>({min:0,max:0}),kt=()=>({x:g4(),y:g4()});function nr(e){return[e("x"),e("y")]}function bP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WV(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 l0(e){return e===void 0||e===1}function uv({scale:e,scaleX:t,scaleY:n}){return!l0(e)||!l0(t)||!l0(n)}function Uo(e){return uv(e)||xP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xP(e){return v4(e.x)||v4(e.y)}function v4(e){return e&&e!=="0%"}function kp(e,t,n){const r=e-n,i=t*r;return n+i}function y4(e,t,n,r,i){return i!==void 0&&(e=kp(e,i,r)),kp(e,n,r)+t}function dv(e,t=0,n=1,r,i){e.min=y4(e.min,t,n,r,i),e.max=y4(e.max,t,n,r,i)}function SP(e,{x:t,y:n}){dv(e.x,t.translate,t.scale,t.originPoint),dv(e.y,n.translate,n.scale,n.originPoint)}const b4=.999999999999,x4=1.0000000000001;function VV(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;lb4&&(t.x=1),t.yb4&&(t.y=1)}function gs(e,t){e.min=e.min+t,e.max=e.max+t}function S4(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);dv(e,t,n,o,r)}function vs(e,t){S4(e.x,t.x,t.scaleX,t.scale,t.originX),S4(e.y,t.y,t.scaleY,t.scale,t.originY)}function wP(e,t){return bP(WV(e.getBoundingClientRect(),t))}function UV(e,t,n){const r=wP(e,n),{scroll:i}=t;return i&&(gs(r.x,i.offset.x),gs(r.y,i.offset.y)),r}const kP=({current:e})=>e?e.ownerDocument.defaultView:null,HV=new WeakMap;class GV{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=kt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor($u(d).point)},o=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=DB(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),nr(x=>{let y=this.getAxisMotionValue(x).get()||0;if(Xr.test(y)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[x];S&&(y=Un(S)*(parseFloat(y)/100))}}this.originPoint[x]=y}),v&&it.postRender(()=>v(d,f)),tv(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:v,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=KV(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),b&&b(d,f)},l=(d,f)=>this.stop(d,f),c=()=>nr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new hP(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:kP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&it.postRender(()=>o(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:i}=this.getProps();if(!r||!zd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=MV(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=LV(i.layoutBox,n):this.constraints=!1,this.elastic=FV(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=OV(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=UV(r,i.root,this.visualElement.getTransformPagePoint());let a=NV(i.layout.layoutBox,o);if(n){const l=n(BV(a));this.hasMutatedConstraints=!!l,l&&(a=bP(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=nr(d=>{if(!zd(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return tv(this.visualElement,t),r.start(ab(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!zd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-ft(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=DV({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!zd(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(ft(c,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;HV.set(this.visualElement,this);const t=this.visualElement.current,n=xc(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ps(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),it.read(r);const a=nu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(nr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=cv,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function zd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qV extends Po{constructor(t){super(t),this.removeGroupControls=Wn,this.removeListeners=Wn,this.controls=new GV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const w4=e=>(t,n)=>{e&&it.postRender(()=>e(t,n))};class XV extends Po{constructor(){super(...arguments),this.removePointerDownListener=Wn}onPointerDown(t){this.session=new hP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:w4(t),onStart:w4(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&it.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=xc(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 Cf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function k4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(be.test(e))e=parseFloat(e);else return e;const n=k4(e,t.target.x),r=k4(e,t.target.y);return`${n}% ${r}%`}},YV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=vo.parse(e);if(i.length>5)return r;const o=vo.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const u=ft(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class QV extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;vB(ZV),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Cf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||it.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),My.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function CP(e){const[t,n]=Ey(),r=m.useContext(Py);return s.jsx(QV,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(mj),isPresent:t,safeToRemove:n})}const ZV={borderRadius:{...Nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nl,borderTopRightRadius:Nl,borderBottomLeftRadius:Nl,borderBottomRightRadius:Nl,boxShadow:YV};function JV(e,t,n){const r=un(e)?e:eu(e);return r.start(ab("",r,t,n)),r.animation}function eU(e){return e instanceof SVGElement&&e.tagName!=="svg"}const tU=(e,t)=>e.depth-t.depth;class nU{constructor(){this.children=[],this.isDirty=!1}add(t){Xy(this.children,t),this.isDirty=!0}remove(t){Yy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tU),this.isDirty=!1,this.children.forEach(t)}}function rU(e,t){const n=Yr.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(go(r),e(o-t))};return it.read(r,!0),()=>go(r)}const jP=["TopLeft","TopRight","BottomLeft","BottomRight"],iU=jP.length,C4=e=>typeof e=="string"?parseFloat(e):e,j4=e=>typeof e=="number"||be.test(e);function oU(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,aU(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,sU(r))):o&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Qs(e,t,r))}function _4(e,t){e.min=t.min,e.max=t.max}function er(e,t){_4(e.x,t.x),_4(e.y,t.y)}function T4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function E4(e,t,n,r,i){return e-=t,e=kp(e,1/n,r),i!==void 0&&(e=kp(e,1/i,r)),e}function lU(e,t=0,n=1,r=.5,i,o=e,a=e){if(Xr.test(t)&&(t=parseFloat(t),t=ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ft(o.min,o.max,r);e===o&&(l-=t),e.min=E4(e.min,t,n,l,i),e.max=E4(e.max,t,n,l,i)}function A4(e,t,[n,r,i],o,a){lU(e,t[n],t[r],t[i],t.scale,o,a)}const cU=["x","scaleX","originX"],uU=["y","scaleY","originY"];function $4(e,t,n,r){A4(e.x,t,cU,n?n.x:void 0,r?r.x:void 0),A4(e.y,t,uU,n?n.y:void 0,r?r.y:void 0)}function z4(e){return e.translate===0&&e.scale===1}function _P(e){return z4(e.x)&&z4(e.y)}function R4(e,t){return e.min===t.min&&e.max===t.max}function dU(e,t){return R4(e.x,t.x)&&R4(e.y,t.y)}function I4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function TP(e,t){return I4(e.x,t.x)&&I4(e.y,t.y)}function M4(e){return Un(e.x)/Un(e.y)}function L4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class fU{constructor(){this.members=[]}add(t){Xy(this.members,t),t.scheduleRender()}remove(t){if(Yy(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;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:i}=t.options;i===!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 pU(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Ho={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Jl=typeof window<"u"&&window.MotionDebug!==void 0,c0=["","X","Y","Z"],mU={visibility:"hidden"},N4=1e3;let hU=0;function u0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function EP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Nj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",it,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&EP(r)}function AP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=hU++,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,Jl&&(Ho.totalNodes=Ho.resolvedTargetDeltas=Ho.recalculatedProjection=0),this.nodes.forEach(yU),this.nodes.forEach(kU),this.nodes.forEach(CU),this.nodes.forEach(bU),Jl&&window.MotionDebug.record(Ho)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=rU(p,250),Cf.hasAnimatedSinceResize&&(Cf.hasAnimatedSinceResize=!1,this.nodes.forEach(O4))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||EU,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=d.getProps(),g=!this.targetLayout||!TP(this.targetLayout,v)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...Hy(b,"layout"),onPlay:x,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||O4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,go(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(jU),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&&EP(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 c=0;c{const k=w/1e3;F4(f.x,a.x,k),F4(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_U(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&dU(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=kt()),er(S,this.relativeTarget)),b&&(this.animationValues=d,oU(d,u,this.latestValues,k,g,y)),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&&(go(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{Cf.hasAnimatedSinceResize=!0,this.currentAnimation=JV(0,N4,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},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(N4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&$P(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||kt();const f=Un(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Un(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}er(l,c),vs(l,d),Sc(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new fU),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(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:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&u0("z",a,u,this.animationValues);for(let d=0;d{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(D4),this.root.sharedNodes.clear()}}}function gU(e){e.updateLayout()}function vU(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:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?nr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Un(p);p.min=r[f].min,p.max=p.min+h}):$P(o,n.layoutBox,r)&&nr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Un(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=hs();Sc(l,r,n.layoutBox);const c=hs();a?Sc(c,e.applyTransform(i,!0),n.measuredBox):Sc(c,r,n.layoutBox);const u=!_P(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const v=kt();wc(v,n.layoutBox,p.layoutBox);const b=kt();wc(b,r,h.layoutBox),TP(v,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function yU(e){Jl&&Ho.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 bU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xU(e){e.clearSnapshot()}function D4(e){e.clearMeasurements()}function SU(e){e.isLayoutDirty=!1}function wU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function kU(e){e.resolveTargetDelta()}function CU(e){e.calcProjection()}function jU(e){e.resetSkewAndRotation()}function PU(e){e.removeLeadSnapshot()}function F4(e,t,n){e.translate=ft(t.translate,0,n),e.scale=ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function B4(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function _U(e,t,n,r){B4(e.x,t.x,n.x,r),B4(e.y,t.y,n.y,r)}function TU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const EU={duration:.45,ease:[.4,0,.1,1]},W4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),V4=W4("applewebkit/")&&!W4("chrome/")?Math.round:Wn;function U4(e){e.min=V4(e.min),e.max=V4(e.max)}function AU(e){U4(e.x),U4(e.y)}function $P(e,t,n){return e==="position"||e==="preserve-aspect"&&!RV(M4(t),M4(n),.2)}function $U(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const zU=AP({attachResizeListener:(e,t)=>nu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),d0={current:void 0},zP=AP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!d0.current){const e=new zU({});e.mount(window),e.setOptions({layoutScroll:!0}),d0.current=e}return d0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RU={pan:{Feature:XV},drag:{Feature:qV,ProjectionNode:zP,MeasureLayout:CP}};function H4(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&it.postRender(()=>o(t,$u(t)))}class IU extends Po{mount(){const{current:t}=this.node;t&&(this.unmount=RB(t,n=>(H4(this.node,n,"Start"),r=>H4(this.node,r,"End"))))}unmount(){}}class MU extends Po{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=Au(nu(this.node.current,"focus",()=>this.onFocus()),nu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function G4(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&it.postRender(()=>o(t,$u(t)))}class LU extends Po{mount(){const{current:t}=this.node;t&&(this.unmount=NB(t,n=>(G4(this.node,n,"Start"),(r,{success:i})=>G4(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fv=new WeakMap,f0=new WeakMap,NU=e=>{const t=fv.get(e.target);t&&t(e)},DU=e=>{e.forEach(NU)};function OU({root:e,...t}){const n=e||document;f0.has(n)||f0.set(n,{});const r=f0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(DU,{root:e,...t})),r[i]}function FU(e,t,n){const r=OU(t);return fv.set(e,n),r.observe(e),()=>{fv.delete(e),r.unobserve(e)}}const BU={some:0,all:1};class WU extends Po{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:BU[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return FU(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(VU(t,n))&&this.startObserver()}unmount(){}}function VU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const UU={inView:{Feature:WU},tap:{Feature:LU},focus:{Feature:MU},hover:{Feature:IU}},HU={layout:{ProjectionNode:zP,MeasureLayout:CP}},pv={current:null},RP={current:!1};function GU(){if(RP.current=!0,!!Ay)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pv.current=e.matches;e.addListener(t),t()}else pv.current=!1}const KU=[...iP,an,vo],qU=e=>KU.find(rP(e)),K4=new WeakMap;function XU(e,t,n){for(const r in t){const i=t[r],o=n[r];if(un(i))e.addValue(r,i);else if(un(o))e.addValue(r,eu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,eu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const q4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class YU{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rb,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=Yr.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),RP.current||GU(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){K4.delete(this.current),this.projection&&this.projection.unmount(),go(this.notifyUpdate),go(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=za.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&it.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 Zs){const n=Zs[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}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=eu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=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 i!=null&&(typeof i=="string"&&(tP(i)||Gj(i))?i=parseFloat(i):!qU(i)&&vo.test(n)&&(i=Zj(t,n)),this.setBaseTarget(t,un(i)?i.get():i)),un(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Ny(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!un(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Qy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class IP extends YU{constructor(){super(...arguments),this.KeyframeResolver=oP}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;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function QU(e){return window.getComputedStyle(e)}class ZU extends IP{constructor(){super(...arguments),this.type="html",this.renderInstance=Sj}readValueFromInstance(t,n){if(za.has(n)){const r=nb(n);return r&&r.default||0}else{const r=QU(t),i=(yj(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wP(t,n)}build(t,n,r){Fy(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Uy(t,n,r)}}class JU extends IP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(za.has(n)){const r=nb(n);return r&&r.default||0}return n=wj.has(n)?n:Iy(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return jj(t,n,r)}build(t,n,r){By(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){kj(t,n,r,i)}mount(t){this.isSVGTag=Vy(t.tagName),super.mount(t)}}const eH=(e,t)=>Ly(e)?new JU(t):new ZU(t,{allowProjection:e!==m.Fragment}),tH=PB({...CV,...UU,...RU,...HU},eH),Xn=BF(tH),nH=(e,t)=>e.find(n=>n.id===t);function X4(e,t){const n=MP(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function MP(e,t){for(const[n,r]of Object.entries(e))if(nH(r,t))return n}function rH(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 iH(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=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:i,right:o,left:a}}var oH=/^((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)-.*))$/,aH=G6(function(e){return oH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sH=aH,lH=function(t){return t!=="theme"},Y4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?sH:lH},Q4=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},cH=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return by(n,r,i),tj(function(){return xy(n,r,i)}),null},uH=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var l=Q4(t,n,r),c=l||Y4(i),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),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,v=1;vt=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,[l]=Q$(a,Vz),c=cn(e,t),u=$$({},i,c,ny(l),o),d=m6(u)(t.theme);return r?[d,r]:d};function p0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=mH);const i=gH({baseStyle:n}),o=hH(e,r)(i);return m.forwardRef(function(c,u){const{children:d,...f}=c,{colorMode:p,forced:h}=Pu(),v=h?p:void 0;return m.createElement(o,{ref:u,"data-theme":v,...f},d)})}function vH(){const e=new Map;return new Proxy(p0,{apply(t,n,r){return p0(...r)},get(t,n){return e.has(n)||e.set(n,p0(n)),e.get(n)}})}const D=vH(),yH={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]}}},LP=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=yH,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(l),h=zF();dp(()=>{h||r==null||r()},[h]),dp(()=>{p(l)},[l]);const v=()=>p(null),b=()=>p(l),x=()=>{h&&i()};m.useEffect(()=>{h&&o&&i()},[h,o,i]),sz(x,f);const y=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),g=m.useMemo(()=>rH(a),[a]);return s.jsx(Xn.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:b,custom:{position:a},style:g,children:s.jsx(D.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:cn(n,{id:t,onClose:x})})})});LP.displayName="ToastComponent";function B(e){return m.forwardRef(e)}var bH=typeof Element<"u",xH=typeof Map=="function",SH=typeof Set=="function",wH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function jf(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,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!jf(e[r],t[r]))return!1;return!0}var o;if(xH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!jf(r.value[1],t.get(r.value[0])))return!1;return!0}if(SH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(wH&&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(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(bH&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!jf(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var kH=function(t,n){try{return jf(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 CH=i1(kH);function zi(){const e=m.useContext(Ys);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function NP(){const e=Pu(),t=zi();return{...e,theme:t}}function jH(e,t,n){if(t==null)return t;const r=i=>{var o,a;return(a=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:a.value};return r(t)??r(n)??n}function PH(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const a=i.filter(Boolean),l=r.map((c,u)=>{const d=`${e}.${c}`;return jH(o,d,a[u]??c)});return Array.isArray(t)?l:l[0]}}function _H(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function DP(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=NP(),a=e?n6(i,`components.${e}`):void 0,l=n||a,c=ar({theme:i,colorMode:o},(l==null?void 0:l.defaultProps)??{},_H(r),(d,f)=>d?void 0:f),u=m.useRef({});if(l){const f=eR(l)(c);CH(u.current,f)||(u.current=f)}return u.current}function Yn(e,t={}){return DP(e,t)}function Qe(e,t={}){return DP(e,t)}const Z4={path:s.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[s.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"}),s.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"}),s.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},At=B((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:l,__css:c,...u}=e,d=V("chakra-icon",l),f=Yn("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...f},h={ref:t,focusable:o,className:d,__css:p},v=r??Z4.viewBox;if(n&&typeof n!="string")return s.jsx(D.svg,{as:n,...h,...u});const b=a??Z4.path;return s.jsx(D.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:b})});At.displayName="Icon";function TH(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 EH(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 J4(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 AH=ju({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),yn=B((e,t)=>{const n=Yn("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:l,...c}=$e(e),u=V("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${AH} ${o} linear infinite`,...n};return s.jsx(D.div,{ref:t,__css:d,className:u,...c,children:r&&s.jsx(D.span,{srOnly:!0,children:r})})});yn.displayName="Spinner";const[$H,sb]=_e({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[zH,lb]=_e({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),OP={info:{icon:EH,colorScheme:"blue"},warning:{icon:J4,colorScheme:"orange"},success:{icon:TH,colorScheme:"green"},error:{icon:J4,colorScheme:"red"},loading:{icon:yn,colorScheme:"blue"}};function RH(e){return OP[e].colorScheme}function IH(e){return OP[e].icon}const FP=B(function(t,n){const{status:r="info",addRole:i=!0,...o}=$e(t),a=t.colorScheme??RH(r),l=Qe("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return s.jsx($H,{value:{status:r},children:s.jsx(zH,{value:l,children:s.jsx(D.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:V("chakra-alert",t.className),__css:c})})})});FP.displayName="Alert";function BP(e){const{status:t}=sb(),n=IH(t),r=lb(),i=t==="loading"?r.spinner:r.icon;return s.jsx(D.span,{display:"inherit","data-status":t,...e,className:V("chakra-alert__icon",e.className),__css:i,children:e.children||s.jsx(n,{h:"100%",w:"100%"})})}BP.displayName="AlertIcon";const WP=B(function(t,n){const r=lb(),{status:i}=sb();return s.jsx(D.div,{ref:n,"data-status":i,...t,className:V("chakra-alert__title",t.className),__css:r.title})});WP.displayName="AlertTitle";const VP=B(function(t,n){const{status:r}=sb(),i=lb(),o={display:"inline",...i.description};return s.jsx(D.div,{ref:n,"data-status":r,...t,className:V("chakra-alert__desc",t.className),__css:o})});VP.displayName="AlertDescription";function MH(e){return s.jsx(At,{focusable:"false","aria-hidden":!0,...e,children:s.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 jm=B(function(t,n){const r=Yn("CloseButton",t),{children:i,isDisabled:o,__css:a,...l}=$e(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return s.jsx(D.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...c,...r,...a},...l,children:i||s.jsx(MH,{width:"1em",height:"1em"})})});jm.displayName="CloseButton";const LH=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:a,description:l,colorScheme:c,icon:u}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return s.jsxs(FP,{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:c,children:[s.jsx(BP,{children:u}),s.jsxs(D.div,{flex:"1",maxWidth:"100%",children:[i&&s.jsx(WP,{id:d==null?void 0:d.title,children:i}),l&&s.jsx(VP,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&s.jsx(jm,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function UP(e={}){const{render:t,toastComponent:n=LH}=e;return i=>typeof t=="function"?t({...i,...e}):s.jsx(n,{...i,...e})}const NH={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Br=DH(NH);function DH(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(a=>({...a,[o]:a[o].filter(l=>l.id!=i)}))},notify:(i,o)=>{const a=OH(i,o),{position:l,id:c}=a;return r(u=>{const f=l.includes("top")?[a,...u[l]??[]]:[...u[l]??[],a];return{...u,[l]:f}}),c},update:(i,o)=>{i&&r(a=>{const l={...a},{position:c,index:u}=X4(l,i);return c&&u!==-1&&(l[c][u]={...l[c][u],...o,message:UP(o)}),l})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,u)=>(c[u]=o[u].map(d=>({...d,requestClose:!0})),c),{...o}))},close:i=>{r(o=>{const a=MP(o,i);return a?{...o,[a]:o[a].map(l=>l.id==i?{...l,requestClose:!0}:l)}:o})},isActive:i=>!!X4(Br.getState(),i).position}}let ew=0;function OH(e,t={}){ew+=1;const n=t.id??ew,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Br.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[HP,FH]=_e({strict:!1,name:"PortalContext"}),cb="chakra-portal",BH=".chakra-portal",WH=e=>s.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),VH=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=m.useState(null),o=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const l=FH(),c=jF();vi(()=>{if(!r)return;const d=r.ownerDocument,f=t?l??d.body:d.body;if(!f)return;o.current=d.createElement("div"),o.current.className=cb,f.appendChild(o.current),a({});const p=o.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const u=c!=null&&c.zIndex?s.jsx(WH,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?J1.createPortal(s.jsx(HP,{value:o.current,children:u}),o.current):s.jsx("span",{ref:d=>{d&&i(d)}})},UH=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=cb),c},[i]),[,l]=m.useState({});return vi(()=>l({}),[]),vi(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?J1.createPortal(s.jsx(HP,{value:r?a:null,children:t}),a):null};function hl(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?s.jsx(UH,{containerRef:n,...r}):s.jsx(VH,{...r})}hl.className=cb;hl.selector=BH;hl.displayName="Portal";const[HH,GH]=_e({name:"ToastOptionsContext",strict:!1}),KH=e=>{const t=m.useSyncExternalStore(Br.subscribe,Br.getState,Br.getState),{motionVariants:n,component:r=LP,portalProps:i,animatePresenceProps:o}=e,l=Object.keys(t).map(c=>{const u=t[c];return s.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,"aria-hidden":!u.length,id:`chakra-toast-manager-${c}`,style:iH(c),children:s.jsx($i,{...o,initial:!1,children:u.map(d=>s.jsx(r,{motionVariants:n,...d},d.id))})},c)});return s.jsx(hl,{...i,children:l})},qH=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return s.jsxs(_F,{theme:r,...o,children:[s.jsx(HH,{value:i==null?void 0:i.defaultOptions,children:n}),s.jsx(KH,{...i})]})},XH=qH(Jo);function tw(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 YH=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function nw(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function rw(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const m0=typeof window<"u"?m.useLayoutEffect:m.useEffect,iw=e=>e;var QH=Object.defineProperty,ZH=(e,t,n)=>t in e?QH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gt=(e,t,n)=>(ZH(e,typeof t!="symbol"?t+"":t,n),n);class JH{constructor(){gt(this,"descendants",new Map),gt(this,"register",t=>{if(t!=null)return YH(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),gt(this,"unregister",t=>{this.descendants.delete(t);const n=tw(Array.from(this.descendants.keys()));this.assignIndex(n)}),gt(this,"destroy",()=>{this.descendants.clear()}),gt(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),gt(this,"count",()=>this.descendants.size),gt(this,"enabledCount",()=>this.enabledValues().length),gt(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),gt(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),gt(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),gt(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),gt(this,"first",()=>this.item(0)),gt(this,"firstEnabled",()=>this.enabledItem(0)),gt(this,"last",()=>this.item(this.descendants.size-1)),gt(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),gt(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),gt(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),gt(this,"next",(t,n=!0)=>{const r=nw(t,this.count(),n);return this.item(r)}),gt(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=nw(i,this.enabledCount(),n);return this.enabledItem(o)}),gt(this,"prev",(t,n=!0)=>{const r=rw(t,this.count()-1,n);return this.item(r)}),gt(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=rw(i,this.enabledCount()-1,n);return this.enabledItem(o)}),gt(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=tw(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const o={node:t,index:-1,...n};this.descendants.set(t,o),this.assignIndex(i)})}}function eG(){const[e,t]=_e({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const i=m.useRef(new JH);return m0(()=>()=>i.current.destroy()),i.current},i=>{const o=t(),[a,l]=m.useState(-1),c=m.useRef(null);m0(()=>()=>{c.current&&o.unregister(c.current)},[]),m0(()=>{if(!c.current)return;const d=Number(c.current.dataset.index);a!=d&&!Number.isNaN(d)&&l(d)});const u=iw(i?o.register(i):o.register);return{descendants:o,index:a,enabledIndex:o.enabledIndexOf(c.current),register:Mt(u,c)}}]}const pi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Dl={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 hv(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Dl.slideRight;case"left":return Dl.slideLeft;case"bottom":return Dl.slideDown;case"top":return Dl.slideUp;default:return Dl.slideRight}}const ua={enter:{duration:.2,ease:pi.easeOut},exit:{duration:.1,ease:pi.easeIn}},Tr={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})},tG=e=>e!=null&&parseInt(e.toString(),10)>0,ow={exit:{height:{duration:.2,ease:pi.ease},opacity:{duration:.3,ease:pi.ease}},enter:{height:{duration:.3,ease:pi.ease},opacity:{duration:.4,ease:pi.ease}}},nG={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:tG(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??Tr.exit(ow.exit,i)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??Tr.enter(ow.enter,i)})},zu=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:l,className:c,transition:u,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,v]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{v(!0)});return()=>clearTimeout(S)},[]);const b=parseFloat(o.toString())>0,x={startingHeight:o,endingHeight:a,animateOpacity:i,transition:h?u:{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:b?"block":"none"}}},y=r?n:!0,g=n||r?"enter":"exit";return s.jsx($i,{...f,initial:!1,custom:x,children:y&&s.jsx(Xn.div,{ref:t,...p,className:V("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:x,variants:nG,initial:r?"exit":!1,animate:g,exit:"exit"})})});zu.displayName="Collapse";const[rG,GP]=_e({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function iG(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 KP(e){const{name:t,getInitials:n,...r}=e,i=GP();return s.jsx(D.div,{role:"img","aria-label":t,...r,__css:i.label,children:t?n==null?void 0:n(t):null})}KP.displayName="AvatarName";const qP=e=>s.jsxs(D.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[s.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"}),s.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 XP(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:l,ignoreFallback:c}=e,[u,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const v=new Image;v.src=n,a&&(v.crossOrigin=a),r&&(v.srcset=r),l&&(v.sizes=l),t&&(v.loading=t),v.onload=b=>{h(),d("loaded"),i==null||i(b)},v.onerror=b=>{h(),d("failed"),o==null||o(b)},f.current=v},[n,a,r,l,i,o,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return vi(()=>{if(!c)return u==="loading"&&p(),()=>{h()}},[u,p,c]),c?"loaded":u}const oG=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function YP(e){const{src:t,srcSet:n,onError:r,onLoad:i,getInitials:o,name:a,borderRadius:l,loading:c,iconLabel:u,icon:d=s.jsx(qP,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,b=XP({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!b?a?s.jsx(KP,{className:"chakra-avatar__initials",getInitials:o,name:a}):m.cloneElement(d,{role:"img","aria-label":u}):s.jsx(D.img,{src:t,srcSet:n,alt:a??u,onLoad:i,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:c,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}YP.displayName="AvatarImage";const aG={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},ub=B((e,t)=>{const n=Qe("Avatar",e),[r,i]=m.useState(!1),{src:o,srcSet:a,name:l,showBorder:c,borderRadius:u="full",onError:d,onLoad:f,getInitials:p=iG,icon:h=s.jsx(qP,{}),iconLabel:v=" avatar",loading:b,children:x,borderColor:y,ignoreFallback:g,crossOrigin:S,referrerPolicy:w,...k}=$e(e),P={borderRadius:u,borderWidth:c?"2px":void 0,...aG,...n.container};return y&&(P.borderColor=y),s.jsx(D.span,{ref:t,...k,className:V("chakra-avatar",e.className),"data-loaded":de(r),__css:P,children:s.jsxs(rG,{value:n,children:[s.jsx(YP,{src:o,srcSet:a,loading:b,onLoad:he(f,()=>{i(!0)}),onError:d,getInitials:p,name:l,borderRadius:u,icon:h,iconLabel:v,ignoreFallback:g,crossOrigin:S,referrerPolicy:w}),x]})})});ub.displayName="Avatar";const sG={"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%)"}},QP=B(function(t,n){const{placement:r="bottom-end",className:i,...o}=t,a=GP(),c={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...sG[r],...a.badge};return s.jsx(D.div,{ref:n,...o,className:V("chakra-avatar__badge",i),__css:c})});QP.displayName="AvatarBadge";const dn=B(function(t,n){const r=Yn("Badge",t),{className:i,...o}=$e(t);return s.jsx(D.span,{ref:n,className:V("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});dn.displayName="Badge";const ne=D("div");ne.displayName="Box";const[lG,cG]=_e({strict:!1,name:"ButtonGroupContext"});function ec(e){const{children:t,className:n,...r}=e,i=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=V("chakra-button__icon",n);return s.jsx(D.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}ec.displayName="ButtonIcon";function gv(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=s.jsx(yn,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...l}=e,c=V("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,r]);return s.jsx(D.div,{className:c,...l,__css:d,children:i})}gv.displayName="ButtonSpinner";function uG(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const xe=B((e,t)=>{const n=cG(),r=Yn("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:a,children:l,leftIcon:c,rightIcon:u,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:v="start",className:b,as:x,shouldWrapChildren:y,...g}=$e(e),S=m.useMemo(()=>{const _={...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:_}}},[r,n]),{ref:w,type:k}=uG(x),P={rightIcon:u,leftIcon:c,iconSpacing:f,children:l,shouldWrapChildren:y};return s.jsxs(D.button,{disabled:i||o,ref:iy(t,w),as:x,type:p??k,"data-active":de(a),"data-loading":de(o),__css:S,className:V("chakra-button",b),...g,children:[o&&v==="start"&&s.jsx(gv,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),o?d||s.jsx(D.span,{opacity:0,children:s.jsx(aw,{...P})}):s.jsx(aw,{...P}),o&&v==="end"&&s.jsx(gv,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});xe.displayName="Button";function aw(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i,shouldWrapChildren:o}=e;return o?s.jsxs("span",{style:{display:"contents"},children:[t&&s.jsx(ec,{marginEnd:i,children:t}),r,n&&s.jsx(ec,{marginStart:i,children:n})]}):s.jsxs(s.Fragment,{children:[t&&s.jsx(ec,{marginEnd:i,children:t}),r,n&&s.jsx(ec,{marginStart:i,children:n})]})}const dG={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}}},fG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Pm=B(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:l="0.5rem",isAttached:c,isDisabled:u,orientation:d="horizontal",...f}=t,p=V("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:u}),[r,i,o,u]);let v={display:"inline-flex",...c?dG[d]:fG[d](l)};const b=d==="vertical";return s.jsx(lG,{value:h,children:s.jsx(D.div,{ref:n,role:"group",__css:v,className:p,"data-attached":c?"":void 0,"data-orientation":d,flexDir:b?"column":void 0,...f})})});Pm.displayName="ButtonGroup";const vn=B((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=n||r,c=m.isValidElement(l)?m.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return s.jsx(xe,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:c})});vn.displayName="IconButton";const[pG,mG]=$r("Card"),db=B(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:l,...c}=$e(t),u=Qe("Card",t);return s.jsx(D.div,{ref:n,className:V("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:l,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...c,children:s.jsx(pG,{value:u,children:i})})}),fb=B(function(t,n){const{className:r,...i}=t,o=mG();return s.jsx(D.div,{ref:n,className:V("chakra-card__body",r),__css:o.body,...i})}),ZP=D("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});ZP.displayName="Center";const hG={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};B(function(t,n){const{axis:r="both",...i}=t;return s.jsx(D.div,{ref:n,__css:hG[r],...i,position:"absolute"})});var gG=()=>typeof document<"u",sw=!1,Ru=null,ka=!1,vv=!1,yv=new Set;function pb(e,t){yv.forEach(n=>n(e,t))}var vG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function yG(e){return!(e.metaKey||!vG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function lw(e){ka=!0,yG(e)&&(Ru="keyboard",pb("keyboard",e))}function Fa(e){if(Ru="pointer",e.type==="mousedown"||e.type==="pointerdown"){ka=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;pb("pointer",e)}}function bG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function xG(e){bG(e)&&(ka=!0,Ru="virtual")}function SG(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!ka&&!vv&&(Ru="virtual",pb("virtual",e)),ka=!1,vv=!1)}function wG(){ka=!1,vv=!0}function cw(){return Ru!=="pointer"}function kG(){if(!gG()||sw)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){ka=!0,e.apply(this,n)},document.addEventListener("keydown",lw,!0),document.addEventListener("keyup",lw,!0),document.addEventListener("click",xG,!0),window.addEventListener("focus",SG,!0),window.addEventListener("blur",wG,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Fa,!0),document.addEventListener("pointermove",Fa,!0),document.addEventListener("pointerup",Fa,!0)):(document.addEventListener("mousedown",Fa,!0),document.addEventListener("mousemove",Fa,!0),document.addEventListener("mouseup",Fa,!0)),sw=!0}function JP(e){kG(),e(cw());const t=()=>e(cw());return yv.add(t),()=>{yv.delete(t)}}const[CG,e_]=_e({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[jG,Iu]=_e({strict:!1,name:"FormControlContext"});function PG(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,l=m.useId(),c=t||`field-${l}`,u=`${c}-label`,d=`${c}-feedback`,f=`${c}-helptext`,[p,h]=m.useState(!1),[v,b]=m.useState(!1),[x,y]=m.useState(!1),g=m.useCallback((_={},j=null)=>({id:f,..._,ref:Mt(j,z=>{z&&b(!0)})}),[f]),S=m.useCallback((_={},j=null)=>({..._,ref:j,"data-focus":de(x),"data-disabled":de(i),"data-invalid":de(r),"data-readonly":de(o),id:_.id!==void 0?_.id:u,htmlFor:_.htmlFor!==void 0?_.htmlFor:c}),[c,i,x,r,o,u]),w=m.useCallback((_={},j=null)=>({id:d,..._,ref:Mt(j,z=>{z&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((_={},j=null)=>({..._,...a,ref:j,role:"group","data-focus":de(x),"data-disabled":de(i),"data-invalid":de(r),"data-readonly":de(o)}),[a,i,x,r,o]),P=m.useCallback((_={},j=null)=>({..._,ref:j,role:"presentation","aria-hidden":!0,children:_.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!x,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:v,setHasHelpText:b,id:c,labelId:u,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:g,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:P}}const ke=B(function(t,n){const r=Qe("Form",t),i=$e(t),{getRootProps:o,htmlProps:a,...l}=PG(i),c=V("chakra-form-control",t.className);return s.jsx(jG,{value:l,children:s.jsx(CG,{value:r,children:s.jsx(D.div,{...o({},n),className:c,__css:r.container})})})});ke.displayName="FormControl";const ru=B(function(t,n){const r=Iu(),i=e_(),o=V("chakra-form__helper-text",t.className);return s.jsx(D.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});ru.displayName="FormHelperText";function t_(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=n_(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":gi(n),"aria-required":gi(i),"aria-readonly":gi(r)}}function n_(e){const t=Iu(),{id:n,disabled:r,readOnly:i,required:o,isRequired:a,isInvalid:l,isReadOnly:c,isDisabled:u,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??u??(t==null?void 0:t.isDisabled),isReadOnly:i??c??(t==null?void 0:t.isReadOnly),isRequired:o??a??(t==null?void 0:t.isRequired),isInvalid:l??(t==null?void 0:t.isInvalid),onFocus:he(t==null?void 0:t.onFocus,d),onBlur:he(t==null?void 0:t.onBlur,f)}}const r_={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function _G(e={}){const t=n_(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:a,onBlur:l,onFocus:c,"aria-describedby":u}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:v,name:b,value:x,tabIndex:y=void 0,"aria-label":g,"aria-labelledby":S,"aria-invalid":w,...k}=e,P=tm(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),_=_r(h),j=_r(l),z=_r(c),[$,W]=m.useState(!1),[Y,ee]=m.useState(!1),[I,L]=m.useState(!1),N=m.useRef(!1);m.useEffect(()=>JP(ve=>{N.current=ve}),[]);const R=m.useRef(null),[F,M]=m.useState(!0),[G,Z]=m.useState(!!d),ae=f!==void 0,oe=ae?f:G,Q=m.useCallback(ve=>{if(r||n){ve.preventDefault();return}ae||Z(oe?ve.currentTarget.checked:v?!0:ve.currentTarget.checked),_==null||_(ve)},[r,n,oe,ae,v,_]);vi(()=>{R.current&&(R.current.indeterminate=!!v)},[v]),dp(()=>{n&&W(!1)},[n,W]),vi(()=>{const ve=R.current;if(!(ve!=null&&ve.form))return;const ut=()=>{Z(!!d)};return ve.form.addEventListener("reset",ut),()=>{var Ve;return(Ve=ve.form)==null?void 0:Ve.removeEventListener("reset",ut)}},[]);const ue=n&&!p,ce=m.useCallback(ve=>{ve.key===" "&&L(!0)},[L]),Be=m.useCallback(ve=>{ve.key===" "&&L(!1)},[L]);vi(()=>{if(!R.current)return;R.current.checked!==oe&&Z(R.current.checked)},[R.current]);const Ze=m.useCallback((ve={},ut=null)=>{const Ve=$t=>{$&&$t.preventDefault(),L(!0)};return{...ve,ref:ut,"data-active":de(I),"data-hover":de(Y),"data-checked":de(oe),"data-focus":de($),"data-focus-visible":de($&&N.current),"data-indeterminate":de(v),"data-disabled":de(n),"data-invalid":de(o),"data-readonly":de(r),"aria-hidden":!0,onMouseDown:he(ve.onMouseDown,Ve),onMouseUp:he(ve.onMouseUp,()=>L(!1)),onMouseEnter:he(ve.onMouseEnter,()=>ee(!0)),onMouseLeave:he(ve.onMouseLeave,()=>ee(!1))}},[I,oe,n,$,Y,v,o,r]),te=m.useCallback((ve={},ut=null)=>({...ve,ref:ut,"data-active":de(I),"data-hover":de(Y),"data-checked":de(oe),"data-focus":de($),"data-focus-visible":de($&&N.current),"data-indeterminate":de(v),"data-disabled":de(n),"data-invalid":de(o),"data-readonly":de(r)}),[I,oe,n,$,Y,v,o,r]),re=m.useCallback((ve={},ut=null)=>({...P,...ve,ref:Mt(ut,Ve=>{Ve&&M(Ve.tagName==="LABEL")}),onClick:he(ve.onClick,()=>{var Ve;F||((Ve=R.current)==null||Ve.click(),requestAnimationFrame(()=>{var $t;($t=R.current)==null||$t.focus({preventScroll:!0})}))}),"data-disabled":de(n),"data-checked":de(oe),"data-invalid":de(o)}),[P,n,oe,o,F]),ze=m.useCallback((ve={},ut=null)=>({...ve,ref:Mt(R,ut),type:"checkbox",name:b,value:x,id:a,tabIndex:y,onChange:he(ve.onChange,Q),onBlur:he(ve.onBlur,j,()=>W(!1)),onFocus:he(ve.onFocus,z,()=>W(!0)),onKeyDown:he(ve.onKeyDown,ce),onKeyUp:he(ve.onKeyUp,Be),required:i,checked:oe,disabled:ue,readOnly:r,"aria-label":g,"aria-labelledby":S,"aria-invalid":w?!!w:o,"aria-describedby":u,"aria-disabled":n,"aria-checked":v?"mixed":oe,style:r_}),[b,x,a,y,Q,j,z,ce,Be,i,oe,ue,r,g,S,w,o,u,n,v]),ye=m.useCallback((ve={},ut=null)=>({...ve,ref:ut,onMouseDown:he(ve.onMouseDown,TG),"data-disabled":de(n),"data-checked":de(oe),"data-invalid":de(o)}),[oe,n,o]);return{state:{isInvalid:o,isFocused:$,isChecked:oe,isActive:I,isHovered:Y,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:re,getCheckboxProps:Ze,getIndicatorProps:te,getInputProps:ze,getLabelProps:ye,htmlProps:P}}function TG(e){e.preventDefault(),e.stopPropagation()}const EG=new Set(["dark","light","system"]);function AG(e){let t=e;return EG.has(t)||(t="light"),t}function $G(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=AG(t),o=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="${i}",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){}})(); + `),()=>{document.head.removeChild(d)}},[t]),s.jsx(CF,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const PF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const l=Py(_F),c=m.useId(),u=m.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=m.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return m.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(jF,{isPresent:n,children:e})),s.jsx(_u.Provider,{value:d,children:e})};function _F(){return new Map}function Ty(e=!0){const t=m.useContext(_u);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=m.useId();m.useEffect(()=>{e&&i(o)},[e]);const a=m.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}function TF(){return EF(m.useContext(_u))}function EF(e){return e===null?!0:e.isPresent}const Ed=e=>e.key||"";function zS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Ey=typeof window<"u",rj=Ey?m.useLayoutEffect:m.useEffect,$i=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[l,c]=Ty(a),u=m.useMemo(()=>zS(e),[e]),d=a&&!l?[]:u.map(Ed),f=m.useRef(!0),p=m.useRef(u),h=Py(()=>new Map),[v,b]=m.useState(u),[x,y]=m.useState(u);rj(()=>{f.current=!1,p.current=u;for(let w=0;w{const k=Ed(w),P=a&&!l?!1:u===x||d.includes(k),_=()=>{if(h.has(k))h.set(k,!0);else return;let j=!0;h.forEach(z=>{z||(j=!1)}),j&&(S==null||S(),y(p.current),a&&(c==null||c()),r&&r())};return s.jsx(PF,{isPresent:P,initial:!f.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:P?void 0:_,children:w},k)})})},Wn=e=>e;let ij=Wn;function Ay(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},bi=e=>e*1e3,xi=e=>e/1e3,AF={useManualTiming:!1};function $F(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&o.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const Ad=["read","resolveKeyframes","update","preRender","render","postRender"],zF=40;function oj(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Ad.reduce((y,g)=>(y[g]=$F(o),y),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:p}=a,h=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,zF),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ad.reduce((y,g)=>{const S=a[g];return y[g]=(w,k=!1,P=!1)=>(n||v(),S.schedule(w,k,P)),y},{}),cancel:y=>{for(let g=0;gRS[e].some(n=>!!t[n])};function RF(e){for(const t in e)Zs[t]={...Zs[t],...e[t]}}const IF=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 vp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||IF.has(e)}let sj=e=>!vp(e);function MF(e){e&&(sj=t=>t.startsWith("on")?!vp(t):e(t))}try{MF(require("@emotion/is-prop-valid").default)}catch{}function LF(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(sj(i)||n===!0&&vp(i)||!t&&!vp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function NF(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const xm=m.createContext({});function Zc(e){return typeof e=="string"||Array.isArray(e)}function Sm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const $y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zy=["initial",...$y];function wm(e){return Sm(e.animate)||zy.some(t=>Zc(e[t]))}function lj(e){return!!(wm(e)||e.variants)}function DF(e,t){if(wm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zc(n)?n:void 0,animate:Zc(r)?r:void 0}}return e.inherit!==!1?t:{}}function OF(e){const{initial:t,animate:n}=DF(e,m.useContext(xm));return m.useMemo(()=>({initial:t,animate:n}),[IS(t),IS(n)])}function IS(e){return Array.isArray(e)?e.join(" "):e}const FF=Symbol.for("motionComponentSymbol");function ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function BF(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):ps(n)&&(n.current=r))},[t])}const Ry=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),WF="framerAppearId",cj="data-"+Ry(WF),{schedule:Iy}=oj(queueMicrotask,!1),uj=m.createContext({});function VF(e,t,n,r,i){var o,a;const{visualElement:l}=m.useContext(xm),c=m.useContext(aj),u=m.useContext(_u),d=m.useContext(_y).reducedMotion,f=m.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(uj);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&UF(f.current,n,i,h);const v=m.useRef(!1);m.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const b=n[cj],x=m.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return rj(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Iy.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,b)}),x.current=!1))}),p}function UF(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dj(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&ps(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function dj(e){if(e)return e.options.allowProjection!==!1?e.projection:dj(e.parent)}function HF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&RF(e);function l(u,d){let f;const p={...m.useContext(_y),...u,layoutId:GF(u)},{isStatic:h}=p,v=OF(u),b=r(u,h);if(!h&&Ey){KF();const x=qF(p);f=x.MeasureLayout,v.visualElement=VF(i,b,p,t,x.ProjectionNode)}return s.jsxs(xm.Provider,{value:v,children:[f&&v.visualElement?s.jsx(f,{visualElement:v.visualElement,...p}):null,n(i,u,BF(b,v.visualElement,d),b,h,v.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=m.forwardRef(l);return c[FF]=i,c}function GF({layoutId:e}){const t=m.useContext(jy).id;return t&&e!==void 0?t+"-"+e:e}function KF(e,t){m.useContext(aj).strict}function qF(e){const{drag:t,layout:n}=Zs;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 XF=["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 My(e){return typeof e!="string"||e.includes("-")?!1:!!(XF.indexOf(e)>-1||/[A-Z]/u.test(e))}function MS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ly(e,t,n,r){if(typeof t=="function"){const[i,o]=MS(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=MS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Zg=e=>Array.isArray(e),YF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QF=e=>Zg(e)?e[e.length-1]||0:e,un=e=>!!(e&&e.getVelocity);function wf(e){const t=un(e)?e.get():e;return YF(t)?t.toValue():t}function ZF({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:JF(r,i,o,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const fj=e=>(t,n)=>{const r=m.useContext(xm),i=m.useContext(_u),o=()=>ZF(e,t,r,i);return n?o():Py(o)};function JF(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=wf(o[p]);let{initial:a,animate:l}=e;const c=wm(e),u=lj(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!Sm(f)){const p=Array.isArray(f)?f:[f];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),mj=pj("--"),eB=pj("var(--"),Ny=e=>eB(e)?tB.test(e.split("/*")[0].trim()):!1,tB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Jc={...ml,transform:e=>Pi(0,1,e)},$d={...ml,default:1},Tu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fi=Tu("deg"),Xr=Tu("%"),be=Tu("px"),nB=Tu("vh"),rB=Tu("vw"),LS={...Xr,parse:e=>Xr.parse(e)/100,transform:e=>Xr.transform(e*100)},iB={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be},oB={rotate:Fi,rotateX:Fi,rotateY:Fi,rotateZ:Fi,scale:$d,scaleX:$d,scaleY:$d,scaleZ:$d,skew:Fi,skewX:Fi,skewY:Fi,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:Jc,originX:LS,originY:LS,originZ:be},NS={...ml,transform:Math.round},Dy={...iB,...oB,zIndex:NS,size:be,fillOpacity:Jc,strokeOpacity:Jc,numOctaves:NS},aB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sB=pl.length;function lB(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}}),gj=()=>({...By(),attrs:{}}),Wy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vj(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const yj=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 bj(e,t,n,r){vj(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yj.has(i)?i:Ry(i),t.attrs[i])}const yp={};function pB(e){Object.assign(yp,e)}function xj(e,{layout:t,layoutId:n}){return za.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yp[e]||e==="opacity")}function Vy(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(un(i[a])||t.style&&un(t.style[a])||xj(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function Sj(e,t,n){const r=Vy(e,t,n);for(const i in e)if(un(e[i])||un(t[i])){const o=pl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function mB(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 OS=["x","y","width","height","cx","cy","r"],hB={useVisualState:fj({scrapeMotionValuesFromProps:Sj,createRenderState:gj,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(za.has(l)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let l=0;l{mB(n,r),it.render(()=>{Fy(r,i,Wy(n.tagName),e.transformTemplate),bj(n,r)})})}})},gB={useVisualState:fj({scrapeMotionValuesFromProps:Vy,createRenderState:By})};function wj(e,t,n){for(const r in t)!un(t[r])&&!xj(r,n)&&(e[r]=t[r])}function vB({transformTemplate:e},t){return m.useMemo(()=>{const n=By();return Oy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function yB(e,t){const n=e.style||{},r={};return wj(r,n,e),Object.assign(r,vB(e,t)),r}function bB(e,t){const n={},r=yB(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 xB(e,t,n,r){const i=m.useMemo(()=>{const o=gj();return Fy(o,t,Wy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};wj(o,e.style,e),i.style={...o,...i.style}}return i}function SB(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(My(n)?xB:bB)(r,o,a,n),u=LF(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...c,ref:i}:{},{children:f}=r,p=m.useMemo(()=>un(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function wB(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...My(r)?hB:gB,preloadedFeatures:e,useRender:SB(i),createVisualElement:t,Component:r};return HF(a)}}function kj(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 CB{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(kB()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].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 jB extends CB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Uy(e,t){return e?e[t]||e.default||e:void 0}const Jg=2e4;function Cj(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Jg?1/0:t}function Hy(e){return typeof e=="function"}function FS(e,t){e.timeline=t,e.onfinish=null}const Gy=e=>Array.isArray(e)&&typeof e[0]=="number",PB={linearEasing:void 0};function _B(e,t){const n=Ay(e);return()=>{var r;return(r=PB[t])!==null&&r!==void 0?r:n()}}const bp=_B(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jj=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ql([0,.65,.55,1]),circOut:Ql([.55,0,1,.45]),backIn:Ql([.31,.01,.66,-.59]),backOut:Ql([.33,1.53,.69,.99])};function _j(e,t){if(e)return typeof e=="function"&&bp()?jj(e,t):Gy(e)?Ql(e):Array.isArray(e)?e.map(n=>_j(n,t)||ev.easeOut):ev[e]}const br={x:!1,y:!1};function Tj(){return br.x||br.y}function TB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function Ej(e,t){const n=TB(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function BS(e){return t=>{t.pointerType==="touch"||Tj()||e(t)}}function EB(e,t,n={}){const[r,i,o]=Ej(e,n),a=BS(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=BS(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const Aj=(e,t)=>t?e===t?!0:Aj(e,t.parentElement):!1,Ky=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,AB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $B(e){return AB.has(e.tagName)||e.tabIndex!==-1}const Zl=new WeakSet;function WS(e){return t=>{t.key==="Enter"&&e(t)}}function t0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=WS(()=>{if(Zl.has(n))return;t0(n,"down");const i=WS(()=>{t0(n,"up")}),o=()=>t0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function VS(e){return Ky(e)&&!Tj()}function RB(e,t,n={}){const[r,i,o]=Ej(e,n),a=l=>{const c=l.currentTarget;if(!VS(l)||Zl.has(c))return;Zl.add(c);const u=t(l),d=(h,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!VS(h)||!Zl.has(c))&&(Zl.delete(c),typeof u=="function"&&u(h,{success:v}))},f=h=>{d(h,n.useGlobalTarget||Aj(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",p,i)};return r.forEach(l=>{!$B(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),l.addEventListener("focus",u=>zB(u,i),i)}),o}function IB(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}const $j=new Set(["width","height","top","left","right","bottom",...pl]);let kf;function MB(){kf=void 0}const Yr={now:()=>(kf===void 0&&Yr.set(qt.isProcessing||AF.useManualTiming?qt.timestamp:performance.now()),kf),set:e=>{kf=e,queueMicrotask(MB)}};function qy(e,t){e.indexOf(t)===-1&&e.push(t)}function Xy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yy{constructor(){this.subscriptions=[]}add(t){return qy(this.subscriptions,t),()=>Xy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class NB{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Yr.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=Yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=LB(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 Yy);const r=this.events[t].add(n);return t==="change"?()=>{r(),it.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=Yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>US)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,US);return zj(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 eu(e,t){return new NB(e,t)}function DB(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,eu(n))}function OB(e,t){const n=km(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=QF(o[a]);DB(e,a,l)}}function FB(e){return!!(un(e)&&e.add)}function tv(e,t){const n=e.getValue("willChange");if(FB(n))return n.add(t)}function Rj(e){return e.props[cj]}const Ij=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BB=1e-7,WB=12;function VB(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=Ij(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>BB&&++lVB(o,0,1,e,n);return o=>o===0||o===1?o:Ij(i(o),t,r)}const Mj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lj=e=>t=>1-e(1-t),Nj=Eu(.33,1.53,.69,.99),Qy=Lj(Nj),Dj=Mj(Qy),Oj=e=>(e*=2)<1?.5*Qy(e):.5*(2-Math.pow(2,-10*(e-1))),Zy=e=>1-Math.sin(Math.acos(e)),Fj=Lj(Zy),Bj=Mj(Zy),Wj=e=>/^0[^.\s]+$/u.test(e);function UB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wj(e):!0}const bc=e=>Math.round(e*1e5)/1e5,Jy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HB(e){return e==null}const GB=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eb=(e,t)=>n=>!!(typeof n=="string"&&GB.test(n)&&n.startsWith(e)||t&&!HB(n)&&Object.prototype.hasOwnProperty.call(n,t)),Vj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(Jy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},KB=e=>Pi(0,255,e),n0={...ml,transform:e=>Math.round(KB(e))},ea={test:eb("rgb","red"),parse:Vj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+n0.transform(e)+", "+n0.transform(t)+", "+n0.transform(n)+", "+bc(Jc.transform(r))+")"};function qB(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const nv={test:eb("#"),parse:qB,transform:ea.transform},ms={test:eb("hsl","hue"),parse:Vj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xr.transform(bc(t))+", "+Xr.transform(bc(n))+", "+bc(Jc.transform(r))+")"},an={test:e=>ea.test(e)||nv.test(e)||ms.test(e),parse:e=>ea.test(e)?ea.parse(e):ms.test(e)?ms.parse(e):nv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ea.transform(e):ms.transform(e)},XB=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function YB(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Jy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(XB))===null||n===void 0?void 0:n.length)||0)>0}const Uj="number",Hj="color",QB="var",ZB="var(",HS="${}",JB=/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 tu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(JB,c=>(an.test(c)?(r.color.push(o),i.push(Hj),n.push(an.parse(c))):c.startsWith(ZB)?(r.var.push(o),i.push(QB),n.push(c)):(r.number.push(o),i.push(Uj),n.push(parseFloat(c))),++o,HS)).split(HS);return{values:n,split:l,indexes:r,types:i}}function Gj(e){return tu(e).values}function Kj(e){const{split:t,types:n}=tu(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function tW(e){const t=Gj(e);return Kj(e)(t.map(eW))}const vo={test:YB,parse:Gj,createTransformer:Kj,getAnimatableNone:tW},nW=new Set(["brightness","contrast","saturate","opacity"]);function rW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Jy)||[];if(!r)return e;const i=n.replace(r,"");let o=nW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const iW=/\b([a-z-]*)\(.*?\)/gu,rv={...vo,getAnimatableNone:e=>{const t=e.match(iW);return t?t.map(rW).join(" "):e}},oW={...Dy,color:an,backgroundColor:an,outlineColor:an,fill:an,stroke:an,borderColor:an,borderTopColor:an,borderRightColor:an,borderBottomColor:an,borderLeftColor:an,filter:rv,WebkitFilter:rv},tb=e=>oW[e];function qj(e,t){let n=tb(e);return n!==rv&&(n=vo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aW=new Set(["auto","none","0"]);function sW(e,t,n){let r=0,i;for(;re===ml||e===be,KS=(e,t)=>parseFloat(e.split(", ")[t]),qS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return KS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?KS(o[1],e):0}},lW=new Set(["x","y","z"]),cW=pl.filter(e=>!lW.has(e));function uW(e){const t=[];return cW.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Js={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:qS(4,13),y:qS(5,14)};Js.translateX=Js.x;Js.translateY=Js.y;const ca=new Set;let iv=!1,ov=!1;function Xj(){if(ov){const e=Array.from(ca).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=uW(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ov=!1,iv=!1,ca.forEach(e=>e.complete()),ca.clear()}function Yj(){ca.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ov=!0)})}function dW(){Yj(),Xj()}class nb{constructor(t,n,r,i,o,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=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ca.add(this),iv||(iv=!0,it.read(Yj),it.resolveKeyframes(Xj))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pW(e){const t=fW.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Zj(e,t,n=1){const[r,i]=pW(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Qj(a)?parseFloat(a):a}return Ny(i)?Zj(i,t,n+1):i}const Jj=e=>t=>t.test(e),mW={test:e=>e==="auto",parse:e=>e},eP=[ml,be,Xr,Fi,rB,nB,mW],XS=e=>eP.find(Jj(e));class tP extends nb{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const YS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vo.test(e)||e==="0")&&!e.startsWith("url("));function hW(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Cm(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(vW),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const yW=40;class nP{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yW?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&dW(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!gW(t,r,i,o))if(a)this.options.duration=0;else{c&&c(Cm(t,this.options,n)),l&&l(),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 ft=(e,t,n)=>e+(t-e)*n;function r0(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 bW({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=r0(c,l,e+1/3),o=r0(c,l,e),a=r0(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function xp(e,t){return n=>n>0?t:e}const i0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},xW=[nv,ea,ms],SW=e=>xW.find(t=>t.test(e));function QS(e){const t=SW(e);if(!t)return!1;let n=t.parse(e);return t===ms&&(n=bW(n)),n}const ZS=(e,t)=>{const n=QS(e),r=QS(t);if(!n||!r)return xp(e,t);const i={...n};return o=>(i.red=i0(n.red,r.red,o),i.green=i0(n.green,r.green,o),i.blue=i0(n.blue,r.blue,o),i.alpha=ft(n.alpha,r.alpha,o),ea.transform(i))},wW=(e,t)=>n=>t(e(n)),Au=(...e)=>e.reduce(wW),av=new Set(["none","hidden"]);function kW(e,t){return av.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function CW(e,t){return n=>ft(e,t,n)}function rb(e){return typeof e=="number"?CW:typeof e=="string"?Ny(e)?xp:an.test(e)?ZS:_W:Array.isArray(e)?rP:typeof e=="object"?an.test(e)?ZS:jW:xp}function rP(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>rb(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function PW(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=vo.createTransformer(t),r=tu(e),i=tu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?av.has(e)&&!i.values.length||av.has(t)&&!r.values.length?kW(e,t):Au(rP(PW(r,i),i.values),n):xp(e,t)};function iP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):rb(e)(e,t)}const TW=5;function oP(e,t,n){const r=Math.max(t-TW,0);return zj(n-e(r),t-r)}const vt={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},o0=.001;function EW({duration:e=vt.duration,bounce:t=vt.bounce,velocity:n=vt.velocity,mass:r=vt.mass}){let i,o,a=1-t;a=Pi(vt.minDamping,vt.maxDamping,a),e=Pi(vt.minDuration,vt.maxDuration,xi(e)),a<1?(i=u=>{const d=u*a,f=d*e,p=d-n,h=sv(u,a),v=Math.exp(-f);return o0-p/h*v},o=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),b=sv(Math.pow(u,2),a);return(-i(u)+o0>0?-1:1)*((p-h)*v)/b}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-o0+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=$W(i,o,l);if(e=bi(e),isNaN(c))return{stiffness:vt.stiffness,damping:vt.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const AW=12;function $W(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function IW(e){let t={velocity:vt.velocity,stiffness:vt.stiffness,damping:vt.damping,mass:vt.mass,isResolvedFromDuration:!1,...e};if(!JS(e,RW)&&JS(e,zW))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Pi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:vt.mass,stiffness:i,damping:o}}else{const n=EW(e);t={...t,...n,mass:vt.mass},t.isResolvedFromDuration=!0}return t}function aP(e=vt.visualDuration,t=vt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=IW({...n,velocity:-xi(n.velocity||0)}),v=p||0,b=u/(2*Math.sqrt(c*d)),x=a-o,y=xi(Math.sqrt(c/d)),g=Math.abs(x)<5;r||(r=g?vt.restSpeed.granular:vt.restSpeed.default),i||(i=g?vt.restDelta.granular:vt.restDelta.default);let S;if(b<1){const k=sv(y,b);S=P=>{const _=Math.exp(-b*y*P);return a-_*((v+b*y*x)/k*Math.sin(k*P)+x*Math.cos(k*P))}}else if(b===1)S=k=>a-Math.exp(-y*k)*(x+(v+y*x)*k);else{const k=y*Math.sqrt(b*b-1);S=P=>{const _=Math.exp(-b*y*P),j=Math.min(k*P,300);return a-_*((v+b*y*x)*Math.sinh(j)+k*x*Math.cosh(j))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const P=S(k);if(h)l.done=k>=f;else{let _=0;b<1&&(_=k===0?bi(v):oP(S,k,P));const j=Math.abs(_)<=r,z=Math.abs(a-P)<=i;l.done=j&&z}return l.value=l.done?a:P,l},toString:()=>{const k=Math.min(Cj(w),Jg),P=jj(_=>w.next(k*_).value,k,30);return k+"ms "+P}};return w}function e4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=j=>l!==void 0&&jc,v=j=>l===void 0?c:c===void 0||Math.abs(l-j)-b*Math.exp(-j/r),S=j=>y+g(j),w=j=>{const z=g(j),$=S(j);p.done=Math.abs(z)<=u,p.value=p.done?y:$};let k,P;const _=j=>{h(p.value)&&(k=j,P=aP({keyframes:[p.value,v(p.value)],velocity:oP(S,j,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return _(0),{calculatedDuration:null,next:j=>{let z=!1;return!P&&k===void 0&&(z=!0,w(j),_(j)),k!==void 0&&j>=k?P.next(j-k):(!z&&w(j),p)}}}const MW=Eu(.42,0,1,1),LW=Eu(0,0,.58,1),sP=Eu(.42,0,.58,1),NW=e=>Array.isArray(e)&&typeof e[0]!="number",DW={linear:Wn,easeIn:MW,easeInOut:sP,easeOut:LW,circIn:Zy,circInOut:Bj,circOut:Fj,backIn:Qy,backInOut:Dj,backOut:Nj,anticipate:Oj},t4=e=>{if(Gy(e)){ij(e.length===4);const[t,n,r,i]=e;return Eu(t,n,r,i)}else if(typeof e=="string")return DW[e];return e};function OW(e,t,n){const r=[],i=n||iP,o=e.length-1;for(let a=0;at[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=OW(t,r,i),c=l.length,u=d=>{if(a&&d1)for(;fu(Pi(e[0],e[o-1],d)):u}function BW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qs(0,t,r);e.push(ft(n,1,i))}}function WW(e){const t=[0];return BW(t,e.length-1),t}function VW(e,t){return e.map(n=>n*t)}function UW(e,t){return e.map(()=>t||sP).splice(0,e.length-1)}function Sp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=NW(r)?r.map(t4):t4(r),o={done:!1,value:t[0]},a=VW(n&&n.length===t.length?n:WW(t),e),l=FW(a,t,{ease:Array.isArray(i)?i:UW(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const HW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>it.update(t,!0),stop:()=>go(t),now:()=>qt.isProcessing?qt.timestamp:Yr.now()}},GW={decay:e4,inertia:e4,tween:Sp,keyframes:Sp,spring:aP},KW=e=>e/100;class ib extends nP{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||nb,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(o,l,n,r,i),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:i=0,repeatType:o,velocity:a=0}=this.options,l=Hy(n)?n:GW[n]||Sp;let c,u;l!==Sp&&typeof t[0]!="number"&&(c=Au(KW,iP(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Cj(d));const{calculatedDuration:f}=d,p=f+i,h=p*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,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:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:h,repeatType:v,repeatDelay:b,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 y=this.currentTime-p*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=o;if(h){const j=Math.min(this.currentTime,d)/f;let z=Math.floor(j),$=j%1;!$&&j>=1&&($=1),$===1&&z--,z=Math.min(z,h+1),!!(z%2)&&(v==="reverse"?($=1-$,b&&($-=b/f)):v==="mirror"&&(w=a)),S=Pi(0,1,$)*f}const k=g?{done:!1,value:c[0]}:w.next(S);l&&(k.value=l(k.value));let{done:P}=k;!g&&u!==null&&(P=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return _&&i!==void 0&&(k.value=Cm(c,this.options,i)),x&&x(k.value),_&&this.finish(),k}get duration(){const{resolved:t}=this;return t?xi(t.calculatedDuration):0}get time(){return xi(this.currentTime)}set time(t){t=bi(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=xi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=HW,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):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 qW=new Set(["opacity","clipPath","filter","transform"]);function XW(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=_j(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const YW=Ay(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wp=10,QW=2e4;function ZW(e){return Hy(e.type)||e.type==="spring"||!Pj(e.ease)}function JW(e,t){const n=new ib({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(a,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&bp()&&eV(o)&&(o=lP[o]),ZW(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:v,...b}=this.options,x=JW(t,b);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,i=x.times,o=x.ease,a="keyframes"}const d=XW(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(FS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Cm(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return xi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return xi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=bi(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 Wn;const{animation:r}=n;FS(r,t)}return Wn}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:i,type:o,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:p,...h}=this.options,v=new ib({...h,keyframes:r,duration:i,type:o,ease:a,times:l,isGenerator:!0}),b=bi(this.time);u.setWithVelocity(v.sample(b-wp).value,v.sample(b).value,wp)}const{onStop:c}=this.options;c&&c(),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:i,repeatType:o,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return YW()&&r&&qW.has(r)&&!c&&!u&&!i&&o!=="mirror"&&a!==0&&l!=="inertia"}}const tV={type:"spring",stiffness:500,damping:25,restSpeed:10},nV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rV={type:"keyframes",duration:.8},iV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oV=(e,{keyframes:t})=>t.length>2?rV:za.has(e)?e.startsWith("scale")?nV(t[1]):tV:iV;function aV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const ob=(e,t,n,r={},i,o)=>a=>{const l=Uy(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-bi(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};aV(l)||(d={...d,...oV(e,d)}),d.duration&&(d.duration=bi(d.duration)),d.repeatDelay&&(d.repeatDelay=bi(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&&!o&&t.get()!==void 0){const p=Cm(d.keyframes,l);if(p!==void 0)return it.update(()=>{d.onUpdate(p),d.onComplete()}),new jB([])}return!o&&n4.supports(d)?new n4(d):new ib(d)};function sV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function cP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=c[f];if(h===void 0||d&&sV(d,f))continue;const v={delay:n,...Uy(a||{},f)};let b=!1;if(window.MotionHandoffAnimation){const y=Rj(e);if(y){const g=window.MotionHandoffAnimation(y,f,it);g!==null&&(v.startTime=g,b=!0)}}tv(e,f),p.start(ob(f,p,h,e.shouldReduceMotion&&$j.has(f)?{type:!1}:v,e,b));const x=p.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{it.update(()=>{l&&OB(e,l)})}),u}function lv(e,t,n={}){var r;const i=km(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(cP(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=o;return lV(e,t,d+u,f,p,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function lV(e,t,n=0,r=0,i=1,o){const a=[],l=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(cV).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(lv(u,t,{...o,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function cV(e,t){return e.sortNodePosition(t)}function uV(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>lv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=lv(e,t,n);else{const i=typeof t=="function"?km(e,t,n.custom):t;r=Promise.all(cP(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const dV=zy.length;function uP(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?uP(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})=>uV(e,n,r)))}function hV(e){let t=mV(e),n=r4(),r=!0;const i=c=>(u,d)=>{var f;const p=km(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:v,...b}=p;u={...u,...b,...v}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=uP(e.parent)||{},f=[],p=new Set;let h={},v=1/0;for(let x=0;xv&&w,z=!1;const $=Array.isArray(S)?S:[S];let W=$.reduce(i(y),{});k===!1&&(W={});const{prevResolvedValues:Y={}}=g,ee={...Y,...W},I=R=>{j=!0,p.has(R)&&(z=!0,p.delete(R)),g.needsAnimating[R]=!0;const F=e.getValue(R);F&&(F.liveStyle=!1)};for(const R in ee){const F=W[R],M=Y[R];if(h.hasOwnProperty(R))continue;let G=!1;Zg(F)&&Zg(M)?G=!kj(F,M):G=F!==M,G?F!=null?I(R):p.add(R):F!==void 0&&p.has(R)?I(R):g.protectedKeys[R]=!0}g.prevProp=S,g.prevResolvedValues=W,g.isActive&&(h={...h,...W}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(P&&_)||z)&&f.push(...$.map(R=>({animation:R,options:{type:y}})))}if(p.size){const x={};p.forEach(y=>{const g=e.getBaseTarget(y),S=e.getValue(y);S&&(S.liveStyle=!0),x[y]=g??null}),f.push({animation:x})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)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(c,u)}),n[c].isActive=u;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=r4(),r=!0}}}function gV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kj(t,e):!1}function Do(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r4(){return{animate:Do(!0),whileInView:Do(),whileHover:Do(),whileTap:Do(),whileDrag:Do(),whileFocus:Do(),exit:Do()}}class Po{constructor(t){this.isMounted=!1,this.node=t}update(){}}class vV extends Po{constructor(t){super(t),t.animationState||(t.animationState=hV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sm(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 yV=0;class bV extends Po{constructor(){super(...arguments),this.id=yV++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const xV={animation:{Feature:vV},exit:{Feature:bV}};function nu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $u(e){return{point:{x:e.pageX,y:e.pageY}}}const SV=e=>t=>Ky(t)&&e(t,$u(t));function xc(e,t,n,r){return nu(e,t,SV(n),r)}const i4=(e,t)=>Math.abs(e-t);function wV(e,t){const n=i4(e.x,t.x),r=i4(e.y,t.y);return Math.sqrt(n**2+r**2)}class dP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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=s0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=wV(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=f,{timestamp:b}=qt;this.history.push({...v,timestamp:b});const{onStart:x,onMove:y}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=a0(p,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=s0(f.type==="pointercancel"?this.lastMoveEventInfo:a0(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),v&&v(f,x)},!Ky(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=$u(t),l=a0(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=qt;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,s0(l,this.history)),this.removeListeners=Au(xc(this.contextWindow,"pointermove",this.handlePointerMove),xc(this.contextWindow,"pointerup",this.handlePointerUp),xc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),go(this.updatePoint)}}function a0(e,t){return t?{point:t(e.point)}:e}function o4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function s0({point:e},t){return{point:e,delta:o4(e,fP(t)),offset:o4(e,kV(t)),velocity:CV(t,.1)}}function kV(e){return e[0]}function fP(e){return e[e.length-1]}function CV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=fP(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>bi(t)));)n--;if(!r)return{x:0,y:0};const o=xi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const pP=1e-4,jV=1-pP,PV=1+pP,mP=.01,_V=0-mP,TV=0+mP;function Un(e){return e.max-e.min}function EV(e,t,n){return Math.abs(e-t)<=n}function a4(e,t,n,r=.5){e.origin=r,e.originPoint=ft(t.min,t.max,e.origin),e.scale=Un(n)/Un(t),e.translate=ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jV&&e.scale<=PV||isNaN(e.scale))&&(e.scale=1),(e.translate>=_V&&e.translate<=TV||isNaN(e.translate))&&(e.translate=0)}function Sc(e,t,n,r){a4(e.x,t.x,n.x,r?r.originX:void 0),a4(e.y,t.y,n.y,r?r.originY:void 0)}function s4(e,t,n){e.min=n.min+t.min,e.max=e.min+Un(t)}function AV(e,t,n){s4(e.x,t.x,n.x),s4(e.y,t.y,n.y)}function l4(e,t,n){e.min=t.min-n.min,e.max=e.min+Un(t)}function wc(e,t,n){l4(e.x,t.x,n.x),l4(e.y,t.y,n.y)}function $V(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ft(n,e,r.max):Math.min(e,n)),e}function c4(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 zV(e,{top:t,left:n,bottom:r,right:i}){return{x:c4(e.x,n,i),y:c4(e.y,t,r)}}function u4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qs(t.min,t.max-r,e.min):r>i&&(n=Qs(e.min,e.max-i,t.min)),Pi(0,1,n)}function MV(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 cv=.35;function LV(e=cv){return e===!1?e=0:e===!0&&(e=cv),{x:d4(e,"left","right"),y:d4(e,"top","bottom")}}function d4(e,t,n){return{min:f4(e,t),max:f4(e,n)}}function f4(e,t){return typeof e=="number"?e:e[t]||0}const p4=()=>({translate:0,scale:1,origin:0,originPoint:0}),hs=()=>({x:p4(),y:p4()}),m4=()=>({min:0,max:0}),kt=()=>({x:m4(),y:m4()});function nr(e){return[e("x"),e("y")]}function hP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function NV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function DV(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 l0(e){return e===void 0||e===1}function uv({scale:e,scaleX:t,scaleY:n}){return!l0(e)||!l0(t)||!l0(n)}function Uo(e){return uv(e)||gP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gP(e){return h4(e.x)||h4(e.y)}function h4(e){return e&&e!=="0%"}function kp(e,t,n){const r=e-n,i=t*r;return n+i}function g4(e,t,n,r,i){return i!==void 0&&(e=kp(e,i,r)),kp(e,n,r)+t}function dv(e,t=0,n=1,r,i){e.min=g4(e.min,t,n,r,i),e.max=g4(e.max,t,n,r,i)}function vP(e,{x:t,y:n}){dv(e.x,t.translate,t.scale,t.originPoint),dv(e.y,n.translate,n.scale,n.originPoint)}const v4=.999999999999,y4=1.0000000000001;function OV(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;lv4&&(t.x=1),t.yv4&&(t.y=1)}function gs(e,t){e.min=e.min+t,e.max=e.max+t}function b4(e,t,n,r,i=.5){const o=ft(e.min,e.max,i);dv(e,t,n,o,r)}function vs(e,t){b4(e.x,t.x,t.scaleX,t.scale,t.originX),b4(e.y,t.y,t.scaleY,t.scale,t.originY)}function yP(e,t){return hP(DV(e.getBoundingClientRect(),t))}function FV(e,t,n){const r=yP(e,n),{scroll:i}=t;return i&&(gs(r.x,i.offset.x),gs(r.y,i.offset.y)),r}const bP=({current:e})=>e?e.ownerDocument.defaultView:null,BV=new WeakMap;class WV{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=kt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor($u(d).point)},o=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=IB(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),nr(x=>{let y=this.getAxisMotionValue(x).get()||0;if(Xr.test(y)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[x];S&&(y=Un(S)*(parseFloat(y)/100))}}this.originPoint[x]=y}),v&&it.postRender(()=>v(d,f)),tv(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:v,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=VV(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),b&&b(d,f)},l=(d,f)=>this.stop(d,f),c=()=>nr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new dP(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:bP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&it.postRender(()=>o(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:i}=this.getProps();if(!r||!zd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=$V(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=zV(i.layoutBox,n):this.constraints=!1,this.elastic=LV(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=MV(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=FV(r,i.root,this.visualElement.getTransformPagePoint());let a=RV(i.layout.layoutBox,o);if(n){const l=n(NV(a));this.hasMutatedConstraints=!!l,l&&(a=hP(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=nr(d=>{if(!zd(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return tv(this.visualElement,t),r.start(ob(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nr(n=>{const{drag:r}=this.getProps();if(!zd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-ft(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};nr(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=IV({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(a=>{if(!zd(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(ft(c,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;BV.set(this.visualElement,this);const t=this.visualElement.current,n=xc(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ps(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),it.read(r);const a=nu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(nr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=cv,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function zd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function VV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class UV extends Po{constructor(t){super(t),this.removeGroupControls=Wn,this.removeListeners=Wn,this.controls=new WV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const x4=e=>(t,n)=>{e&&it.postRender(()=>e(t,n))};class HV extends Po{constructor(){super(...arguments),this.removePointerDownListener=Wn}onPointerDown(t){this.session=new dP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:x4(t),onStart:x4(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&it.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=xc(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 Cf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function S4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(be.test(e))e=parseFloat(e);else return e;const n=S4(e,t.target.x),r=S4(e,t.target.y);return`${n}% ${r}%`}},GV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=vo.parse(e);if(i.length>5)return r;const o=vo.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const u=ft(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class KV extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;pB(qV),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Cf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||it.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Iy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function xP(e){const[t,n]=Ty(),r=m.useContext(jy);return s.jsx(KV,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(uj),isPresent:t,safeToRemove:n})}const qV={borderRadius:{...Nl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nl,borderTopRightRadius:Nl,borderBottomLeftRadius:Nl,borderBottomRightRadius:Nl,boxShadow:GV};function XV(e,t,n){const r=un(e)?e:eu(e);return r.start(ob("",r,t,n)),r.animation}function YV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const QV=(e,t)=>e.depth-t.depth;class ZV{constructor(){this.children=[],this.isDirty=!1}add(t){qy(this.children,t),this.isDirty=!0}remove(t){Xy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(QV),this.isDirty=!1,this.children.forEach(t)}}function JV(e,t){const n=Yr.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(go(r),e(o-t))};return it.read(r,!0),()=>go(r)}const SP=["TopLeft","TopRight","BottomLeft","BottomRight"],eU=SP.length,w4=e=>typeof e=="string"?parseFloat(e):e,k4=e=>typeof e=="number"||be.test(e);function tU(e,t,n,r,i,o){i?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,nU(r)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,rU(r))):o&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Qs(e,t,r))}function j4(e,t){e.min=t.min,e.max=t.max}function er(e,t){j4(e.x,t.x),j4(e.y,t.y)}function P4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _4(e,t,n,r,i){return e-=t,e=kp(e,1/n,r),i!==void 0&&(e=kp(e,1/i,r)),e}function iU(e,t=0,n=1,r=.5,i,o=e,a=e){if(Xr.test(t)&&(t=parseFloat(t),t=ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ft(o.min,o.max,r);e===o&&(l-=t),e.min=_4(e.min,t,n,l,i),e.max=_4(e.max,t,n,l,i)}function T4(e,t,[n,r,i],o,a){iU(e,t[n],t[r],t[i],t.scale,o,a)}const oU=["x","scaleX","originX"],aU=["y","scaleY","originY"];function E4(e,t,n,r){T4(e.x,t,oU,n?n.x:void 0,r?r.x:void 0),T4(e.y,t,aU,n?n.y:void 0,r?r.y:void 0)}function A4(e){return e.translate===0&&e.scale===1}function kP(e){return A4(e.x)&&A4(e.y)}function $4(e,t){return e.min===t.min&&e.max===t.max}function sU(e,t){return $4(e.x,t.x)&&$4(e.y,t.y)}function z4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function CP(e,t){return z4(e.x,t.x)&&z4(e.y,t.y)}function R4(e){return Un(e.x)/Un(e.y)}function I4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class lU{constructor(){this.members=[]}add(t){qy(this.members,t),t.scheduleRender()}remove(t){if(Xy(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;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:i}=t.options;i===!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 cU(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Ho={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Jl=typeof window<"u"&&window.MotionDebug!==void 0,c0=["","X","Y","Z"],uU={visibility:"hidden"},M4=1e3;let dU=0;function u0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Rj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",it,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jP(r)}function PP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=dU++,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,Jl&&(Ho.totalNodes=Ho.resolvedTargetDeltas=Ho.recalculatedProjection=0),this.nodes.forEach(mU),this.nodes.forEach(bU),this.nodes.forEach(xU),this.nodes.forEach(hU),Jl&&window.MotionDebug.record(Ho)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=JV(p,250),Cf.hasAnimatedSinceResize&&(Cf.hasAnimatedSinceResize=!1,this.nodes.forEach(N4))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||jU,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=d.getProps(),g=!this.targetLayout||!CP(this.targetLayout,v)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...Uy(b,"layout"),onPlay:x,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||N4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,go(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(SU),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&&jP(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 c=0;c{const k=w/1e3;D4(f.x,a.x,k),D4(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kU(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&sU(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=kt()),er(S,this.relativeTarget)),b&&(this.animationValues=d,tU(d,u,this.latestValues,k,g,y)),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&&(go(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{Cf.hasAnimatedSinceResize=!0,this.currentAnimation=XV(0,M4,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},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(M4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&_P(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||kt();const f=Un(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Un(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}er(l,c),vs(l,d),Sc(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new lU),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(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:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&u0("z",a,u,this.animationValues);for(let d=0;d{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(L4),this.root.sharedNodes.clear()}}}function fU(e){e.updateLayout()}function pU(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:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?nr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Un(p);p.min=r[f].min,p.max=p.min+h}):_P(o,n.layoutBox,r)&&nr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Un(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=hs();Sc(l,r,n.layoutBox);const c=hs();a?Sc(c,e.applyTransform(i,!0),n.measuredBox):Sc(c,r,n.layoutBox);const u=!kP(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const v=kt();wc(v,n.layoutBox,p.layoutBox);const b=kt();wc(b,r,h.layoutBox),CP(v,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function mU(e){Jl&&Ho.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 hU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gU(e){e.clearSnapshot()}function L4(e){e.clearMeasurements()}function vU(e){e.isLayoutDirty=!1}function yU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function N4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bU(e){e.resolveTargetDelta()}function xU(e){e.calcProjection()}function SU(e){e.resetSkewAndRotation()}function wU(e){e.removeLeadSnapshot()}function D4(e,t,n){e.translate=ft(t.translate,0,n),e.scale=ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function O4(e,t,n,r){e.min=ft(t.min,n.min,r),e.max=ft(t.max,n.max,r)}function kU(e,t,n,r){O4(e.x,t.x,n.x,r),O4(e.y,t.y,n.y,r)}function CU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const jU={duration:.45,ease:[.4,0,.1,1]},F4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),B4=F4("applewebkit/")&&!F4("chrome/")?Math.round:Wn;function W4(e){e.min=B4(e.min),e.max=B4(e.max)}function PU(e){W4(e.x),W4(e.y)}function _P(e,t,n){return e==="position"||e==="preserve-aspect"&&!EV(R4(t),R4(n),.2)}function _U(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TU=PP({attachResizeListener:(e,t)=>nu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),d0={current:void 0},TP=PP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!d0.current){const e=new TU({});e.mount(window),e.setOptions({layoutScroll:!0}),d0.current=e}return d0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),EU={pan:{Feature:HV},drag:{Feature:UV,ProjectionNode:TP,MeasureLayout:xP}};function V4(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&it.postRender(()=>o(t,$u(t)))}class AU extends Po{mount(){const{current:t}=this.node;t&&(this.unmount=EB(t,n=>(V4(this.node,n,"Start"),r=>V4(this.node,r,"End"))))}unmount(){}}class $U extends Po{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=Au(nu(this.node.current,"focus",()=>this.onFocus()),nu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function U4(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&it.postRender(()=>o(t,$u(t)))}class zU extends Po{mount(){const{current:t}=this.node;t&&(this.unmount=RB(t,n=>(U4(this.node,n,"Start"),(r,{success:i})=>U4(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fv=new WeakMap,f0=new WeakMap,RU=e=>{const t=fv.get(e.target);t&&t(e)},IU=e=>{e.forEach(RU)};function MU({root:e,...t}){const n=e||document;f0.has(n)||f0.set(n,{});const r=f0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(IU,{root:e,...t})),r[i]}function LU(e,t,n){const r=MU(t);return fv.set(e,n),r.observe(e),()=>{fv.delete(e),r.unobserve(e)}}const NU={some:0,all:1};class DU extends Po{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:NU[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return LU(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OU(t,n))&&this.startObserver()}unmount(){}}function OU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const FU={inView:{Feature:DU},tap:{Feature:zU},focus:{Feature:$U},hover:{Feature:AU}},BU={layout:{ProjectionNode:TP,MeasureLayout:xP}},pv={current:null},EP={current:!1};function WU(){if(EP.current=!0,!!Ey)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pv.current=e.matches;e.addListener(t),t()}else pv.current=!1}const VU=[...eP,an,vo],UU=e=>VU.find(Jj(e)),H4=new WeakMap;function HU(e,t,n){for(const r in t){const i=t[r],o=n[r];if(un(i))e.addValue(r,i);else if(un(o))e.addValue(r,eu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,eu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const G4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class GU{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nb,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=Yr.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),EP.current||WU(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){H4.delete(this.current),this.projection&&this.projection.unmount(),go(this.notifyUpdate),go(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=za.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&it.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 Zs){const n=Zs[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}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=eu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=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 i!=null&&(typeof i=="string"&&(Qj(i)||Wj(i))?i=parseFloat(i):!UU(i)&&vo.test(n)&&(i=qj(t,n)),this.setBaseTarget(t,un(i)?i.get():i)),un(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Ly(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!un(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class AP extends GU{constructor(){super(...arguments),this.KeyframeResolver=tP}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;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function KU(e){return window.getComputedStyle(e)}class qU extends AP{constructor(){super(...arguments),this.type="html",this.renderInstance=vj}readValueFromInstance(t,n){if(za.has(n)){const r=tb(n);return r&&r.default||0}else{const r=KU(t),i=(mj(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yP(t,n)}build(t,n,r){Oy(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vy(t,n,r)}}class XU extends AP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(za.has(n)){const r=tb(n);return r&&r.default||0}return n=yj.has(n)?n:Ry(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Sj(t,n,r)}build(t,n,r){Fy(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){bj(t,n,r,i)}mount(t){this.isSVGTag=Wy(t.tagName),super.mount(t)}}const YU=(e,t)=>My(e)?new XU(t):new qU(t,{allowProjection:e!==m.Fragment}),QU=wB({...xV,...FU,...EU,...BU},YU),Xn=NF(QU),ZU=(e,t)=>e.find(n=>n.id===t);function K4(e,t){const n=$P(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function $P(e,t){for(const[n,r]of Object.entries(e))if(ZU(r,t))return n}function JU(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 eH(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=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:i,right:o,left:a}}var tH=/^((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)-.*))$/,nH=W6(function(e){return tH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),rH=nH,iH=function(t){return t!=="theme"},q4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?rH:iH},X4=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},oH=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return yy(n,r,i),Q6(function(){return by(n,r,i)}),null},aH=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var l=X4(t,n,r),c=l||q4(i),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),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,v=1;vt=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,[l]=K$(a,Oz),c=cn(e,t),u=_$({},i,c,ty(l),o),d=u6(u)(t.theme);return r?[d,r]:d};function p0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=uH);const i=fH({baseStyle:n}),o=dH(e,r)(i);return m.forwardRef(function(c,u){const{children:d,...f}=c,{colorMode:p,forced:h}=Pu(),v=h?p:void 0;return m.createElement(o,{ref:u,"data-theme":v,...f},d)})}function pH(){const e=new Map;return new Proxy(p0,{apply(t,n,r){return p0(...r)},get(t,n){return e.has(n)||e.set(n,p0(n)),e.get(n)}})}const D=pH(),mH={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]}}},zP=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=mH,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(l),h=TF();dp(()=>{h||r==null||r()},[h]),dp(()=>{p(l)},[l]);const v=()=>p(null),b=()=>p(l),x=()=>{h&&i()};m.useEffect(()=>{h&&o&&i()},[h,o,i]),rz(x,f);const y=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),g=m.useMemo(()=>JU(a),[a]);return s.jsx(Xn.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:b,custom:{position:a},style:g,children:s.jsx(D.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:cn(n,{id:t,onClose:x})})})});zP.displayName="ToastComponent";function B(e){return m.forwardRef(e)}var hH=typeof Element<"u",gH=typeof Map=="function",vH=typeof Set=="function",yH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function jf(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,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!jf(e[r],t[r]))return!1;return!0}var o;if(gH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!jf(r.value[1],t.get(r.value[0])))return!1;return!0}if(vH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(yH&&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(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(hH&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!jf(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var bH=function(t,n){try{return jf(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 xH=r1(bH);function zi(){const e=m.useContext(Ys);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function RP(){const e=Pu(),t=zi();return{...e,theme:t}}function SH(e,t,n){if(t==null)return t;const r=i=>{var o,a;return(a=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:a.value};return r(t)??r(n)??n}function wH(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const a=i.filter(Boolean),l=r.map((c,u)=>{const d=`${e}.${c}`;return SH(o,d,a[u]??c)});return Array.isArray(t)?l:l[0]}}function kH(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function IP(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=RP(),a=e?ZC(i,`components.${e}`):void 0,l=n||a,c=ar({theme:i,colorMode:o},(l==null?void 0:l.defaultProps)??{},kH(r),(d,f)=>d?void 0:f),u=m.useRef({});if(l){const f=Yz(l)(c);xH(u.current,f)||(u.current=f)}return u.current}function Yn(e,t={}){return IP(e,t)}function Qe(e,t={}){return IP(e,t)}const Y4={path:s.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[s.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"}),s.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"}),s.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},At=B((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:l,__css:c,...u}=e,d=V("chakra-icon",l),f=Yn("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...f},h={ref:t,focusable:o,className:d,__css:p},v=r??Y4.viewBox;if(n&&typeof n!="string")return s.jsx(D.svg,{as:n,...h,...u});const b=a??Y4.path;return s.jsx(D.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:b})});At.displayName="Icon";function CH(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 jH(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 Q4(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 PH=ju({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),yn=B((e,t)=>{const n=Yn("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:l,...c}=$e(e),u=V("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${PH} ${o} linear infinite`,...n};return s.jsx(D.div,{ref:t,__css:d,className:u,...c,children:r&&s.jsx(D.span,{srOnly:!0,children:r})})});yn.displayName="Spinner";const[_H,ab]=_e({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[TH,sb]=_e({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),MP={info:{icon:jH,colorScheme:"blue"},warning:{icon:Q4,colorScheme:"orange"},success:{icon:CH,colorScheme:"green"},error:{icon:Q4,colorScheme:"red"},loading:{icon:yn,colorScheme:"blue"}};function EH(e){return MP[e].colorScheme}function AH(e){return MP[e].icon}const LP=B(function(t,n){const{status:r="info",addRole:i=!0,...o}=$e(t),a=t.colorScheme??EH(r),l=Qe("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return s.jsx(_H,{value:{status:r},children:s.jsx(TH,{value:l,children:s.jsx(D.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:V("chakra-alert",t.className),__css:c})})})});LP.displayName="Alert";function NP(e){const{status:t}=ab(),n=AH(t),r=sb(),i=t==="loading"?r.spinner:r.icon;return s.jsx(D.span,{display:"inherit","data-status":t,...e,className:V("chakra-alert__icon",e.className),__css:i,children:e.children||s.jsx(n,{h:"100%",w:"100%"})})}NP.displayName="AlertIcon";const DP=B(function(t,n){const r=sb(),{status:i}=ab();return s.jsx(D.div,{ref:n,"data-status":i,...t,className:V("chakra-alert__title",t.className),__css:r.title})});DP.displayName="AlertTitle";const OP=B(function(t,n){const{status:r}=ab(),i=sb(),o={display:"inline",...i.description};return s.jsx(D.div,{ref:n,"data-status":r,...t,className:V("chakra-alert__desc",t.className),__css:o})});OP.displayName="AlertDescription";function $H(e){return s.jsx(At,{focusable:"false","aria-hidden":!0,...e,children:s.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 jm=B(function(t,n){const r=Yn("CloseButton",t),{children:i,isDisabled:o,__css:a,...l}=$e(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return s.jsx(D.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...c,...r,...a},...l,children:i||s.jsx($H,{width:"1em",height:"1em"})})});jm.displayName="CloseButton";const zH=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:a,description:l,colorScheme:c,icon:u}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return s.jsxs(LP,{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:c,children:[s.jsx(NP,{children:u}),s.jsxs(D.div,{flex:"1",maxWidth:"100%",children:[i&&s.jsx(DP,{id:d==null?void 0:d.title,children:i}),l&&s.jsx(OP,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&s.jsx(jm,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function FP(e={}){const{render:t,toastComponent:n=zH}=e;return i=>typeof t=="function"?t({...i,...e}):s.jsx(n,{...i,...e})}const RH={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Br=IH(RH);function IH(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(a=>({...a,[o]:a[o].filter(l=>l.id!=i)}))},notify:(i,o)=>{const a=MH(i,o),{position:l,id:c}=a;return r(u=>{const f=l.includes("top")?[a,...u[l]??[]]:[...u[l]??[],a];return{...u,[l]:f}}),c},update:(i,o)=>{i&&r(a=>{const l={...a},{position:c,index:u}=K4(l,i);return c&&u!==-1&&(l[c][u]={...l[c][u],...o,message:FP(o)}),l})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,u)=>(c[u]=o[u].map(d=>({...d,requestClose:!0})),c),{...o}))},close:i=>{r(o=>{const a=$P(o,i);return a?{...o,[a]:o[a].map(l=>l.id==i?{...l,requestClose:!0}:l)}:o})},isActive:i=>!!K4(Br.getState(),i).position}}let Z4=0;function MH(e,t={}){Z4+=1;const n=t.id??Z4,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Br.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[BP,LH]=_e({strict:!1,name:"PortalContext"}),lb="chakra-portal",NH=".chakra-portal",DH=e=>s.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),OH=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=m.useState(null),o=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const l=LH(),c=SF();vi(()=>{if(!r)return;const d=r.ownerDocument,f=t?l??d.body:d.body;if(!f)return;o.current=d.createElement("div"),o.current.className=lb,f.appendChild(o.current),a({});const p=o.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const u=c!=null&&c.zIndex?s.jsx(DH,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?Z1.createPortal(s.jsx(BP,{value:o.current,children:u}),o.current):s.jsx("span",{ref:d=>{d&&i(d)}})},FH=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=lb),c},[i]),[,l]=m.useState({});return vi(()=>l({}),[]),vi(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?Z1.createPortal(s.jsx(BP,{value:r?a:null,children:t}),a):null};function hl(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?s.jsx(FH,{containerRef:n,...r}):s.jsx(OH,{...r})}hl.className=lb;hl.selector=NH;hl.displayName="Portal";const[BH,WH]=_e({name:"ToastOptionsContext",strict:!1}),VH=e=>{const t=m.useSyncExternalStore(Br.subscribe,Br.getState,Br.getState),{motionVariants:n,component:r=zP,portalProps:i,animatePresenceProps:o}=e,l=Object.keys(t).map(c=>{const u=t[c];return s.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,"aria-hidden":!u.length,id:`chakra-toast-manager-${c}`,style:eH(c),children:s.jsx($i,{...o,initial:!1,children:u.map(d=>s.jsx(r,{motionVariants:n,...d},d.id))})},c)});return s.jsx(hl,{...i,children:l})},UH=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return s.jsxs(kF,{theme:r,...o,children:[s.jsx(BH,{value:i==null?void 0:i.defaultOptions,children:n}),s.jsx(VH,{...i})]})},HH=UH(Jo);function J4(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 GH=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function ew(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function tw(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const m0=typeof window<"u"?m.useLayoutEffect:m.useEffect,nw=e=>e;var KH=Object.defineProperty,qH=(e,t,n)=>t in e?KH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gt=(e,t,n)=>(qH(e,typeof t!="symbol"?t+"":t,n),n);class XH{constructor(){gt(this,"descendants",new Map),gt(this,"register",t=>{if(t!=null)return GH(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),gt(this,"unregister",t=>{this.descendants.delete(t);const n=J4(Array.from(this.descendants.keys()));this.assignIndex(n)}),gt(this,"destroy",()=>{this.descendants.clear()}),gt(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),gt(this,"count",()=>this.descendants.size),gt(this,"enabledCount",()=>this.enabledValues().length),gt(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),gt(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),gt(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),gt(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),gt(this,"first",()=>this.item(0)),gt(this,"firstEnabled",()=>this.enabledItem(0)),gt(this,"last",()=>this.item(this.descendants.size-1)),gt(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),gt(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),gt(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),gt(this,"next",(t,n=!0)=>{const r=ew(t,this.count(),n);return this.item(r)}),gt(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=ew(i,this.enabledCount(),n);return this.enabledItem(o)}),gt(this,"prev",(t,n=!0)=>{const r=tw(t,this.count()-1,n);return this.item(r)}),gt(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=tw(i,this.enabledCount()-1,n);return this.enabledItem(o)}),gt(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=J4(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const o={node:t,index:-1,...n};this.descendants.set(t,o),this.assignIndex(i)})}}function YH(){const[e,t]=_e({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const i=m.useRef(new XH);return m0(()=>()=>i.current.destroy()),i.current},i=>{const o=t(),[a,l]=m.useState(-1),c=m.useRef(null);m0(()=>()=>{c.current&&o.unregister(c.current)},[]),m0(()=>{if(!c.current)return;const d=Number(c.current.dataset.index);a!=d&&!Number.isNaN(d)&&l(d)});const u=nw(i?o.register(i):o.register);return{descendants:o,index:a,enabledIndex:o.enabledIndexOf(c.current),register:Mt(u,c)}}]}const pi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Dl={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 hv(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Dl.slideRight;case"left":return Dl.slideLeft;case"bottom":return Dl.slideDown;case"top":return Dl.slideUp;default:return Dl.slideRight}}const ua={enter:{duration:.2,ease:pi.easeOut},exit:{duration:.1,ease:pi.easeIn}},Tr={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})},QH=e=>e!=null&&parseInt(e.toString(),10)>0,rw={exit:{height:{duration:.2,ease:pi.ease},opacity:{duration:.3,ease:pi.ease}},enter:{height:{duration:.3,ease:pi.ease},opacity:{duration:.4,ease:pi.ease}}},ZH={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:QH(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??Tr.exit(rw.exit,i)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??Tr.enter(rw.enter,i)})},zu=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:l,className:c,transition:u,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,v]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{v(!0)});return()=>clearTimeout(S)},[]);const b=parseFloat(o.toString())>0,x={startingHeight:o,endingHeight:a,animateOpacity:i,transition:h?u:{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:b?"block":"none"}}},y=r?n:!0,g=n||r?"enter":"exit";return s.jsx($i,{...f,initial:!1,custom:x,children:y&&s.jsx(Xn.div,{ref:t,...p,className:V("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:x,variants:ZH,initial:r?"exit":!1,animate:g,exit:"exit"})})});zu.displayName="Collapse";const[JH,WP]=_e({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function eG(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 VP(e){const{name:t,getInitials:n,...r}=e,i=WP();return s.jsx(D.div,{role:"img","aria-label":t,...r,__css:i.label,children:t?n==null?void 0:n(t):null})}VP.displayName="AvatarName";const UP=e=>s.jsxs(D.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[s.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"}),s.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 HP(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:l,ignoreFallback:c}=e,[u,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const v=new Image;v.src=n,a&&(v.crossOrigin=a),r&&(v.srcset=r),l&&(v.sizes=l),t&&(v.loading=t),v.onload=b=>{h(),d("loaded"),i==null||i(b)},v.onerror=b=>{h(),d("failed"),o==null||o(b)},f.current=v},[n,a,r,l,i,o,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return vi(()=>{if(!c)return u==="loading"&&p(),()=>{h()}},[u,p,c]),c?"loaded":u}const tG=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function GP(e){const{src:t,srcSet:n,onError:r,onLoad:i,getInitials:o,name:a,borderRadius:l,loading:c,iconLabel:u,icon:d=s.jsx(UP,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,b=HP({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!b?a?s.jsx(VP,{className:"chakra-avatar__initials",getInitials:o,name:a}):m.cloneElement(d,{role:"img","aria-label":u}):s.jsx(D.img,{src:t,srcSet:n,alt:a??u,onLoad:i,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:c,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}GP.displayName="AvatarImage";const nG={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},cb=B((e,t)=>{const n=Qe("Avatar",e),[r,i]=m.useState(!1),{src:o,srcSet:a,name:l,showBorder:c,borderRadius:u="full",onError:d,onLoad:f,getInitials:p=eG,icon:h=s.jsx(UP,{}),iconLabel:v=" avatar",loading:b,children:x,borderColor:y,ignoreFallback:g,crossOrigin:S,referrerPolicy:w,...k}=$e(e),P={borderRadius:u,borderWidth:c?"2px":void 0,...nG,...n.container};return y&&(P.borderColor=y),s.jsx(D.span,{ref:t,...k,className:V("chakra-avatar",e.className),"data-loaded":de(r),__css:P,children:s.jsxs(JH,{value:n,children:[s.jsx(GP,{src:o,srcSet:a,loading:b,onLoad:he(f,()=>{i(!0)}),onError:d,getInitials:p,name:l,borderRadius:u,icon:h,iconLabel:v,ignoreFallback:g,crossOrigin:S,referrerPolicy:w}),x]})})});cb.displayName="Avatar";const rG={"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%)"}},KP=B(function(t,n){const{placement:r="bottom-end",className:i,...o}=t,a=WP(),c={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...rG[r],...a.badge};return s.jsx(D.div,{ref:n,...o,className:V("chakra-avatar__badge",i),__css:c})});KP.displayName="AvatarBadge";const dn=B(function(t,n){const r=Yn("Badge",t),{className:i,...o}=$e(t);return s.jsx(D.span,{ref:n,className:V("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});dn.displayName="Badge";const ne=D("div");ne.displayName="Box";const[iG,oG]=_e({strict:!1,name:"ButtonGroupContext"});function ec(e){const{children:t,className:n,...r}=e,i=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=V("chakra-button__icon",n);return s.jsx(D.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}ec.displayName="ButtonIcon";function gv(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=s.jsx(yn,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...l}=e,c=V("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,r]);return s.jsx(D.div,{className:c,...l,__css:d,children:i})}gv.displayName="ButtonSpinner";function aG(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const xe=B((e,t)=>{const n=oG(),r=Yn("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:a,children:l,leftIcon:c,rightIcon:u,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:v="start",className:b,as:x,shouldWrapChildren:y,...g}=$e(e),S=m.useMemo(()=>{const _={...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:_}}},[r,n]),{ref:w,type:k}=aG(x),P={rightIcon:u,leftIcon:c,iconSpacing:f,children:l,shouldWrapChildren:y};return s.jsxs(D.button,{disabled:i||o,ref:ry(t,w),as:x,type:p??k,"data-active":de(a),"data-loading":de(o),__css:S,className:V("chakra-button",b),...g,children:[o&&v==="start"&&s.jsx(gv,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),o?d||s.jsx(D.span,{opacity:0,children:s.jsx(iw,{...P})}):s.jsx(iw,{...P}),o&&v==="end"&&s.jsx(gv,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});xe.displayName="Button";function iw(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i,shouldWrapChildren:o}=e;return o?s.jsxs("span",{style:{display:"contents"},children:[t&&s.jsx(ec,{marginEnd:i,children:t}),r,n&&s.jsx(ec,{marginStart:i,children:n})]}):s.jsxs(s.Fragment,{children:[t&&s.jsx(ec,{marginEnd:i,children:t}),r,n&&s.jsx(ec,{marginStart:i,children:n})]})}const sG={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}}},lG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Pm=B(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:l="0.5rem",isAttached:c,isDisabled:u,orientation:d="horizontal",...f}=t,p=V("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:u}),[r,i,o,u]);let v={display:"inline-flex",...c?sG[d]:lG[d](l)};const b=d==="vertical";return s.jsx(iG,{value:h,children:s.jsx(D.div,{ref:n,role:"group",__css:v,className:p,"data-attached":c?"":void 0,"data-orientation":d,flexDir:b?"column":void 0,...f})})});Pm.displayName="ButtonGroup";const vn=B((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=n||r,c=m.isValidElement(l)?m.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return s.jsx(xe,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:c})});vn.displayName="IconButton";const[cG,uG]=$r("Card"),ub=B(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:l,...c}=$e(t),u=Qe("Card",t);return s.jsx(D.div,{ref:n,className:V("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:l,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...c,children:s.jsx(cG,{value:u,children:i})})}),db=B(function(t,n){const{className:r,...i}=t,o=uG();return s.jsx(D.div,{ref:n,className:V("chakra-card__body",r),__css:o.body,...i})}),qP=D("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});qP.displayName="Center";const dG={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};B(function(t,n){const{axis:r="both",...i}=t;return s.jsx(D.div,{ref:n,__css:dG[r],...i,position:"absolute"})});var fG=()=>typeof document<"u",ow=!1,Ru=null,ka=!1,vv=!1,yv=new Set;function fb(e,t){yv.forEach(n=>n(e,t))}var pG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function mG(e){return!(e.metaKey||!pG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function aw(e){ka=!0,mG(e)&&(Ru="keyboard",fb("keyboard",e))}function Fa(e){if(Ru="pointer",e.type==="mousedown"||e.type==="pointerdown"){ka=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;fb("pointer",e)}}function hG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function gG(e){hG(e)&&(ka=!0,Ru="virtual")}function vG(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!ka&&!vv&&(Ru="virtual",fb("virtual",e)),ka=!1,vv=!1)}function yG(){ka=!1,vv=!0}function sw(){return Ru!=="pointer"}function bG(){if(!fG()||ow)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){ka=!0,e.apply(this,n)},document.addEventListener("keydown",aw,!0),document.addEventListener("keyup",aw,!0),document.addEventListener("click",gG,!0),window.addEventListener("focus",vG,!0),window.addEventListener("blur",yG,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Fa,!0),document.addEventListener("pointermove",Fa,!0),document.addEventListener("pointerup",Fa,!0)):(document.addEventListener("mousedown",Fa,!0),document.addEventListener("mousemove",Fa,!0),document.addEventListener("mouseup",Fa,!0)),ow=!0}function XP(e){bG(),e(sw());const t=()=>e(sw());return yv.add(t),()=>{yv.delete(t)}}const[xG,YP]=_e({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[SG,Iu]=_e({strict:!1,name:"FormControlContext"});function wG(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,l=m.useId(),c=t||`field-${l}`,u=`${c}-label`,d=`${c}-feedback`,f=`${c}-helptext`,[p,h]=m.useState(!1),[v,b]=m.useState(!1),[x,y]=m.useState(!1),g=m.useCallback((_={},j=null)=>({id:f,..._,ref:Mt(j,z=>{z&&b(!0)})}),[f]),S=m.useCallback((_={},j=null)=>({..._,ref:j,"data-focus":de(x),"data-disabled":de(i),"data-invalid":de(r),"data-readonly":de(o),id:_.id!==void 0?_.id:u,htmlFor:_.htmlFor!==void 0?_.htmlFor:c}),[c,i,x,r,o,u]),w=m.useCallback((_={},j=null)=>({id:d,..._,ref:Mt(j,z=>{z&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((_={},j=null)=>({..._,...a,ref:j,role:"group","data-focus":de(x),"data-disabled":de(i),"data-invalid":de(r),"data-readonly":de(o)}),[a,i,x,r,o]),P=m.useCallback((_={},j=null)=>({..._,ref:j,role:"presentation","aria-hidden":!0,children:_.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!x,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:v,setHasHelpText:b,id:c,labelId:u,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:g,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:P}}const ke=B(function(t,n){const r=Qe("Form",t),i=$e(t),{getRootProps:o,htmlProps:a,...l}=wG(i),c=V("chakra-form-control",t.className);return s.jsx(SG,{value:l,children:s.jsx(xG,{value:r,children:s.jsx(D.div,{...o({},n),className:c,__css:r.container})})})});ke.displayName="FormControl";const ru=B(function(t,n){const r=Iu(),i=YP(),o=V("chakra-form__helper-text",t.className);return s.jsx(D.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});ru.displayName="FormHelperText";function QP(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=ZP(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":gi(n),"aria-required":gi(i),"aria-readonly":gi(r)}}function ZP(e){const t=Iu(),{id:n,disabled:r,readOnly:i,required:o,isRequired:a,isInvalid:l,isReadOnly:c,isDisabled:u,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??u??(t==null?void 0:t.isDisabled),isReadOnly:i??c??(t==null?void 0:t.isReadOnly),isRequired:o??a??(t==null?void 0:t.isRequired),isInvalid:l??(t==null?void 0:t.isInvalid),onFocus:he(t==null?void 0:t.onFocus,d),onBlur:he(t==null?void 0:t.onBlur,f)}}const JP={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function kG(e={}){const t=ZP(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:a,onBlur:l,onFocus:c,"aria-describedby":u}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:v,name:b,value:x,tabIndex:y=void 0,"aria-label":g,"aria-labelledby":S,"aria-invalid":w,...k}=e,P=tm(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),_=_r(h),j=_r(l),z=_r(c),[$,W]=m.useState(!1),[Y,ee]=m.useState(!1),[I,L]=m.useState(!1),N=m.useRef(!1);m.useEffect(()=>XP(ve=>{N.current=ve}),[]);const R=m.useRef(null),[F,M]=m.useState(!0),[G,Z]=m.useState(!!d),ae=f!==void 0,oe=ae?f:G,Q=m.useCallback(ve=>{if(r||n){ve.preventDefault();return}ae||Z(oe?ve.currentTarget.checked:v?!0:ve.currentTarget.checked),_==null||_(ve)},[r,n,oe,ae,v,_]);vi(()=>{R.current&&(R.current.indeterminate=!!v)},[v]),dp(()=>{n&&W(!1)},[n,W]),vi(()=>{const ve=R.current;if(!(ve!=null&&ve.form))return;const ut=()=>{Z(!!d)};return ve.form.addEventListener("reset",ut),()=>{var Ve;return(Ve=ve.form)==null?void 0:Ve.removeEventListener("reset",ut)}},[]);const ue=n&&!p,ce=m.useCallback(ve=>{ve.key===" "&&L(!0)},[L]),Be=m.useCallback(ve=>{ve.key===" "&&L(!1)},[L]);vi(()=>{if(!R.current)return;R.current.checked!==oe&&Z(R.current.checked)},[R.current]);const Ze=m.useCallback((ve={},ut=null)=>{const Ve=$t=>{$&&$t.preventDefault(),L(!0)};return{...ve,ref:ut,"data-active":de(I),"data-hover":de(Y),"data-checked":de(oe),"data-focus":de($),"data-focus-visible":de($&&N.current),"data-indeterminate":de(v),"data-disabled":de(n),"data-invalid":de(o),"data-readonly":de(r),"aria-hidden":!0,onMouseDown:he(ve.onMouseDown,Ve),onMouseUp:he(ve.onMouseUp,()=>L(!1)),onMouseEnter:he(ve.onMouseEnter,()=>ee(!0)),onMouseLeave:he(ve.onMouseLeave,()=>ee(!1))}},[I,oe,n,$,Y,v,o,r]),te=m.useCallback((ve={},ut=null)=>({...ve,ref:ut,"data-active":de(I),"data-hover":de(Y),"data-checked":de(oe),"data-focus":de($),"data-focus-visible":de($&&N.current),"data-indeterminate":de(v),"data-disabled":de(n),"data-invalid":de(o),"data-readonly":de(r)}),[I,oe,n,$,Y,v,o,r]),re=m.useCallback((ve={},ut=null)=>({...P,...ve,ref:Mt(ut,Ve=>{Ve&&M(Ve.tagName==="LABEL")}),onClick:he(ve.onClick,()=>{var Ve;F||((Ve=R.current)==null||Ve.click(),requestAnimationFrame(()=>{var $t;($t=R.current)==null||$t.focus({preventScroll:!0})}))}),"data-disabled":de(n),"data-checked":de(oe),"data-invalid":de(o)}),[P,n,oe,o,F]),ze=m.useCallback((ve={},ut=null)=>({...ve,ref:Mt(R,ut),type:"checkbox",name:b,value:x,id:a,tabIndex:y,onChange:he(ve.onChange,Q),onBlur:he(ve.onBlur,j,()=>W(!1)),onFocus:he(ve.onFocus,z,()=>W(!0)),onKeyDown:he(ve.onKeyDown,ce),onKeyUp:he(ve.onKeyUp,Be),required:i,checked:oe,disabled:ue,readOnly:r,"aria-label":g,"aria-labelledby":S,"aria-invalid":w?!!w:o,"aria-describedby":u,"aria-disabled":n,"aria-checked":v?"mixed":oe,style:JP}),[b,x,a,y,Q,j,z,ce,Be,i,oe,ue,r,g,S,w,o,u,n,v]),ye=m.useCallback((ve={},ut=null)=>({...ve,ref:ut,onMouseDown:he(ve.onMouseDown,CG),"data-disabled":de(n),"data-checked":de(oe),"data-invalid":de(o)}),[oe,n,o]);return{state:{isInvalid:o,isFocused:$,isChecked:oe,isActive:I,isHovered:Y,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:re,getCheckboxProps:Ze,getIndicatorProps:te,getInputProps:ze,getLabelProps:ye,htmlProps:P}}function CG(e){e.preventDefault(),e.stopPropagation()}const jG=new Set(["dark","light","system"]);function PG(e){let t=e;return jG.has(t)||(t="light"),t}function _G(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=PG(t),o=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="${i}",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){}})(); `,l=`(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="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${o?a:l}`.trim()}function zG(e={}){const{nonce:t}=e;return s.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:$G(e)}})}const fn=B(function(t,n){const{className:r,centerContent:i,...o}=$e(t),a=Yn("Container",t);return s.jsx(D.div,{ref:n,className:V("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});fn.displayName="Container";const da=B(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:l,borderStyle:c,borderColor:u,...d}=Yn("Divider",t),{className:f,orientation:p="horizontal",__css:h,...v}=$e(t),b={vertical:{borderLeftWidth:r||a||l||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||l||"1px",width:"100%"}};return s.jsx(D.hr,{ref:n,"aria-orientation":p,...v,__css:{...d,border:"0",borderColor:u,borderStyle:c,...b[p],...h},className:V("chakra-divider",f)})});da.displayName="Divider";const[RG,i_]=_e({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[IG,mb]=_e({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function uw(e,t){return e?e===t||e.contains(t):!1}function MG(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:i,value:o,isDisabled:a,defaultValue:l,startWithEditView:c,isPreviewFocusable:u=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:v,...b}=e,x=_r(h),y=!!(c&&!a),[g,S]=m.useState(y),[w,k]=s6({defaultValue:l||"",value:o,onChange:t}),[P,_]=m.useState(w),j=m.useRef(null),z=m.useRef(null),$=m.useRef(null),W=m.useRef(null),Y=m.useRef(null);oz({ref:j,enabled:g,elements:[W,Y]});const ee=!g&&!a;vi(()=>{var te,re;g&&((te=j.current)==null||te.focus(),f&&((re=j.current)==null||re.select()))},[]),dp(()=>{var te,re,ze,ye;if(!g){v?(te=v.current)==null||te.focus():(re=$.current)==null||re.focus();return}(ze=j.current)==null||ze.focus(),f&&((ye=j.current)==null||ye.select()),x==null||x()},[g,x,f]);const I=m.useCallback(()=>{ee&&S(!0)},[ee]),L=m.useCallback(()=>{_(w)},[w]),N=m.useCallback(()=>{S(!1),k(P),n==null||n(P),i==null||i(P)},[n,i,k,P]),R=m.useCallback(()=>{S(!1),_(w),r==null||r(w),i==null||i(P)},[w,r,i,P]);m.useEffect(()=>{if(g)return;const te=j.current;(te==null?void 0:te.ownerDocument.activeElement)===te&&(te==null||te.blur())},[g]);const F=m.useCallback(te=>{k(te.currentTarget.value)},[k]),M=m.useCallback(te=>{const re=te.key,ye={Escape:N,Enter:ot=>{!ot.shiftKey&&!ot.metaKey&&R()}}[re];ye&&(te.preventDefault(),ye(te))},[N,R]),G=m.useCallback(te=>{const re=te.key,ye={Escape:N}[re];ye&&(te.preventDefault(),ye(te))},[N]),Z=w.length===0,ae=m.useCallback(te=>{if(!g)return;const re=te.currentTarget.ownerDocument,ze=te.relatedTarget??re.activeElement,ye=uw(W.current,ze),ot=uw(Y.current,ze);!ye&&!ot&&(d?R():N())},[d,R,N,g]),oe=m.useCallback((te={},re=null)=>{const ze=ee&&u?0:void 0;return{...te,ref:Mt(re,z),children:Z?p:w,hidden:g,"aria-disabled":gi(a),tabIndex:ze,onFocus:he(te.onFocus,I,L)}},[a,g,ee,u,Z,I,L,p,w]),Q=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:Mt(re,j),disabled:a,"aria-disabled":gi(a),value:w,onBlur:he(te.onBlur,ae),onChange:he(te.onChange,F),onKeyDown:he(te.onKeyDown,M),onFocus:he(te.onFocus,L)}),[a,g,ae,F,M,L,p,w]),ue=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:Mt(re,j),disabled:a,"aria-disabled":gi(a),value:w,onBlur:he(te.onBlur,ae),onChange:he(te.onChange,F),onKeyDown:he(te.onKeyDown,G),onFocus:he(te.onFocus,L)}),[a,g,ae,F,G,L,p,w]),ce=m.useCallback((te={},re=null)=>({"aria-label":"Edit",...te,type:"button",onClick:he(te.onClick,I),ref:Mt(re,$),disabled:a}),[I,a]),Be=m.useCallback((te={},re=null)=>({...te,"aria-label":"Submit",ref:Mt(Y,re),type:"button",onClick:he(te.onClick,R),disabled:a}),[R,a]),Ze=m.useCallback((te={},re=null)=>({"aria-label":"Cancel",id:"cancel",...te,ref:Mt(W,re),type:"button",onClick:he(te.onClick,N),disabled:a}),[N,a]);return{isEditing:g,isDisabled:a,isValueEmpty:Z,value:w,onEdit:I,onCancel:N,onSubmit:R,getPreviewProps:oe,getInputProps:Q,getTextareaProps:ue,getEditButtonProps:ce,getSubmitButtonProps:Be,getCancelButtonProps:Ze,htmlProps:b}}const Pf=B(function(t,n){const r=Qe("Editable",t),i=$e(t),{htmlProps:o,...a}=MG(i),{isEditing:l,onSubmit:c,onCancel:u,onEdit:d}=a,f=V("chakra-editable",t.className),p=cn(t.children,{isEditing:l,onSubmit:c,onCancel:u,onEdit:d});return s.jsx(IG,{value:a,children:s.jsx(RG,{value:r,children:s.jsx(D.div,{ref:n,...o,className:f,children:p})})})});Pf.displayName="Editable";const o_={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},_f=B(function(t,n){const{getInputProps:r}=mb(),i=i_(),o=r(t,n),a=V("chakra-editable__input",t.className);return s.jsx(D.input,{...o,__css:{outline:0,...o_,...i.input},className:a})});_f.displayName="EditableInput";const Tf=B(function(t,n){const{getPreviewProps:r}=mb(),i=i_(),o=r(t,n),a=V("chakra-editable__preview",t.className);return s.jsx(D.span,{...o,__css:{cursor:"text",display:"inline-block",...o_,...i.preview},className:a})});Tf.displayName="EditablePreview";function LG(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=mb();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function tc(e){return typeof e=="function"}function NG(...e){return t=>e.reduce((n,r)=>r(n),t)}const DG=e=>function(...n){let r=[...n],i=n[n.length-1];return fO(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,NG(...r.map(o=>a=>tc(o)?o(a):OG(a,o)))(i)},hb=DG(Jo);function OG(...e){return ar({},...e,a_)}function a_(e,t,n,r){if((tc(e)||tc(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=tc(e)?e(...i):e,a=tc(t)?t(...i):t;return ar({},o,a,a_)};if(Nt(e)&&Dg(t)||Dg(e)&&Nt(t))return t}const St=B(function(t,n){const{direction:r,align:i,justify:o,wrap:a,basis:l,grow:c,shrink:u,...d}=t,f={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:l,flexGrow:c,flexShrink:u};return s.jsx(D.div,{ref:n,__css:f,...d})});St.displayName="Flex";function FG(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 bv="data-focus-lock",s_="data-focus-lock-disabled",BG="data-no-focus-lock",WG="data-autofocus-inside",VG="data-no-autofocus";function h0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function UG(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var HG=typeof window<"u"?m.useLayoutEffect:m.useEffect,dw=new WeakMap;function l_(e,t){var n=UG(null,function(r){return e.forEach(function(i){return h0(i,r)})});return HG(function(){var r=dw.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||h0(l,null)}),o.forEach(function(l){i.has(l)||h0(l,a)})}dw.set(n,e)},[e]),n}var g0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Wr=function(){return Wr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(dK)},pK=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],xb=pK.join(","),mK="".concat(xb,", [data-focus-guard]"),C_=function(e,t){return Jr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?mK:xb)?[r]:[],C_(r))},[])},hK=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?el([e.contentDocument.body],t):[e]},el=function(e,t){return e.reduce(function(n,r){var i,o=C_(r,t),a=(i=[]).concat.apply(i,o.map(function(l){return hK(l,t)}));return n.concat(a,r.parentNode?Jr(r.parentNode.querySelectorAll(xb)).filter(function(l){return l===r}):[])},[])},gK=function(e){var t=e.querySelectorAll("[".concat(WG,"]"));return Jr(t).map(function(n){return el([n])}).reduce(function(n,r){return n.concat(r)},[])},Sb=function(e,t){return Jr(e).filter(function(n){return b_(t,n)}).filter(function(n){return lK(n)})},fw=function(e,t){return t===void 0&&(t=new Map),Jr(e).filter(function(n){return x_(t,n)})},wb=function(e,t,n){return bb(Sb(el(e,n),t),!0,n)},ou=function(e,t){return bb(Sb(el(e),t),!1)},vK=function(e,t){return Sb(gK(e),t)},fa=function(e,t){return e.shadowRoot?fa(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Jr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?fa(i,t):!1}return fa(n,t)})},yK=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,l){return!t.has(l)})},j_=function(e){return e.parentNode?j_(e.parentNode):e},kb=function(e){var t=Ca(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(bv);return n.push.apply(n,i?yK(Jr(j_(r).querySelectorAll("[".concat(bv,'="').concat(i,'"]:not([').concat(s_,'="disabled"])')))):[r]),n},[])},bK=function(e){try{return e()}catch{return}},au=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?au(t.shadowRoot):t instanceof HTMLIFrameElement&&bK(function(){return t.contentWindow.document})?au(t.contentWindow.document):t}},xK=function(e,t){return e===t},SK=function(e,t){return!!Jr(e.querySelectorAll("iframe")).some(function(n){return xK(n,t)})},P_=function(e,t){return t===void 0&&(t=au(g_(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:kb(e).some(function(n){return fa(n,t)||SK(n,t)})},wK=function(e){e===void 0&&(e=document);var t=au(e);return t?Jr(e.querySelectorAll("[".concat(BG,"]"))).some(function(n){return fa(n,t)}):!1},kK=function(e,t){return t.filter(k_).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Cb=function(e,t){return k_(e)&&e.name?kK(e,t):e},CK=function(e){var t=new Set;return e.forEach(function(n){return t.add(Cb(n,e))}),e.filter(function(n){return t.has(n)})},pw=function(e){return e[0]&&e.length>1?Cb(e[0],e):e[0]},mw=function(e,t){return e.indexOf(Cb(t,e))},wv="NEW_FOCUS",jK=function(e,t,n,r,i){var o=e.length,a=e[0],l=e[o-1],c=yb(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,d=i?n.indexOf(i):u,f=i?e.indexOf(i):-1;if(u===-1)return f!==-1?f:wv;if(f===-1)return wv;var p=u-d,h=n.indexOf(a),v=n.indexOf(l),b=CK(n),x=r!==void 0?b.indexOf(r):-1,y=i?b.indexOf(i):x,g=b.filter(function(j){return j.tabIndex>=0}),S=r!==void 0?g.indexOf(r):-1,w=i?g.indexOf(i):S,k=S>=0&&w>=0?w-S:y-x;if(!p&&f>=0||t.length===0)return f;var P=mw(e,t[0]),_=mw(e,t[t.length-1]);if(u<=h&&c&&Math.abs(p)>1)return _;if(u>=v&&c&&Math.abs(p)>1)return P;if(p&&Math.abs(k)>1)return f;if(u<=h)return _;if(u>v)return P;if(p)return Math.abs(p)>1?f:(o+f+p)%o}},PK=function(e){return function(t){var n,r=(n=S_(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},hw=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=fw(r.filter(PK(n)));return i&&i.length?pw(i):pw(fw(t))},kv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&kv(e.parentNode.host||e.parentNode,t),t},v0=function(e,t){for(var n=kv(e),r=kv(t),i=0;i=0)return o}return!1},__=function(e,t,n){var r=Ca(e),i=Ca(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(l){a=v0(a||l,l)||a,n.filter(Boolean).forEach(function(c){var u=v0(o,c);u&&(!a||fa(u,a)?a=u:a=v0(u,a))})}),a},gw=function(e,t){return e.reduce(function(n,r){return n.concat(vK(r,t))},[])},_K=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(uK)},TK=function(e,t){var n=au(Ca(e).length>0?document:g_(e).ownerDocument),r=kb(e).filter(Sv),i=__(n||e,e,r),o=new Map,a=ou(r,o),l=a.filter(function(v){var b=v.node;return Sv(b)});if(l[0]){var c=ou([i],o).map(function(v){var b=v.node;return b}),u=_K(c,l),d=u.map(function(v){var b=v.node;return b}),f=u.filter(function(v){var b=v.tabIndex;return b>=0}).map(function(v){var b=v.node;return b}),p=jK(d,f,c,n,t);if(p===wv){var h=hw(a,f,gw(r,o))||hw(a,d,gw(r,o));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:u[p]}},EK=function(e){var t=kb(e).filter(Sv),n=__(e,e,t),r=bb(el([n],!0),!0,!0),i=el(t,!1);return r.map(function(o){var a=o.node,l=o.index;return{node:a,index:l,lockItem:i.indexOf(a)>=0,guard:yb(a)}})},jb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},y0=0,b0=!1,T_=function(e,t,n){n===void 0&&(n={});var r=TK(e,t);if(!b0&&r){if(y0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),b0=!0,setTimeout(function(){b0=!1},1);return}y0++,jb(r.node,n.focusOptions),y0--}};function Ol(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 AK=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ol(n),parent:Ol(n.parentElement),left:Ol(n.previousElementSibling),right:Ol(n.nextElementSibling)}),n=n.parentElement;return{element:Ol(e),stack:t,ownerDocument:e.ownerDocument}},$K=function(e){var t,n,r,i,o;if(e)for(var a=e.stack,l=e.ownerDocument,c=new Map,u=0,d=a;u-1&&(x.filter(function(g){var S=g.guard,w=g.node;return S&&w.dataset.focusAutoGuard}).forEach(function(g){var S=g.node;return S.removeAttribute("tabIndex")}),yw(y,x.length,1,x),yw(y,-1,-1,x))}}}return t},I_=function(t){Cp()&&t&&(t.stopPropagation(),t.preventDefault())},Tb=function(){return Pb(Cp)},XK=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||VK(r,n)},YK=function(){return null},M_=function(){_b=!0},L_=function(){_b=!1,su="just",Pb(function(){su="meanwhile"})},QK=function(){document.addEventListener("focusin",I_),document.addEventListener("focusout",Tb),window.addEventListener("focus",M_),window.addEventListener("blur",L_)},ZK=function(){document.removeEventListener("focusin",I_),document.removeEventListener("focusout",Tb),window.removeEventListener("focus",M_),window.removeEventListener("blur",L_)};function JK(e){return e.filter(function(t){var n=t.disabled;return!n})}var N_={moveFocusInside:T_,focusInside:P_,focusNextElement:MK,focusPrevElement:LK,focusFirstElement:NK,focusLastElement:DK,captureFocusRestore:E_};function eq(e){var t=e.slice(-1)[0];t&&!Ls&&QK();var n=Ls,r=n&&t&&t.id===n.id;Ls=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(Cn=null,(!r||n.observed!==t.observed)&&t.onActivation(N_),Cp(),Pb(Cp)):(ZK(),Cn=null)}m_.assignSyncMedium(XK);h_.assignMedium(Tb);qG.assignMedium(function(e){return e(N_)});const tq=nK(JK,eq)(YK);var Cv=m.forwardRef(function(t,n){return Xt.createElement(vb,wa({sideCar:tq,ref:n},t))}),D_=vb.propTypes||{};D_.sideCar;FG(D_,["sideCar"]);Cv.propTypes={};const nq=Cv.default??Cv,O_=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:u}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&V$(r.current).length===0&&requestAnimationFrame(()=>{var v;(v=r.current)==null||v.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=i&&!n;return s.jsx(nq,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};O_.displayName="FocusLock";const Ce=B(function(t,n){const r=Yn("FormLabel",t),i=$e(t),{className:o,children:a,requiredIndicator:l=s.jsx(F_,{}),optionalIndicator:c=null,...u}=i,d=Iu(),f=(d==null?void 0:d.getLabelProps(u,n))??{ref:n,...u};return s.jsxs(D.label,{...f,className:V("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?l:c]})});Ce.displayName="FormLabel";const F_=B(function(t,n){const r=Iu(),i=e_();if(!(r!=null&&r.isRequired))return null;const o=V("chakra-form__required-indicator",t.className);return s.jsx(D.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});F_.displayName="RequiredIndicator";const B_=B(function(t,n){const{templateAreas:r,gap:i,rowGap:o,columnGap:a,column:l,row:c,autoFlow:u,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...v}=t,b={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:l,gridRow:c,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return s.jsx(D.div,{ref:n,__css:b,...v})});B_.displayName="Grid";const bn=B(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:l,...c}=t,u=zi(),d=l?iq(l,u):oq(r);return s.jsx(B_,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:d,...c})});bn.displayName="SimpleGrid";function rq(e){return typeof e=="number"?`${e}px`:e}function iq(e,t){return ry(e,n=>{const r=PH("sizes",n,rq(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function oq(e){return ry(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function _m(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=m.Children.toArray(e.path),a=B((l,c)=>s.jsx(At,{ref:c,viewBox:t,...i,...l,children:o.length?o:s.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const jv=B(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...a}=t;return s.jsx("img",{width:r,height:i,ref:n,alt:o,...a})});jv.displayName="NativeImage";const W_=B(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:a,align:l,fit:c,loading:u,ignoreFallback:d,crossOrigin:f,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:h,...v}=t,b=r!==void 0||i!==void 0,x=u!=null||d||!b,y=XP({...t,crossOrigin:f,ignoreFallback:x}),g=oG(y,p),S={ref:n,objectFit:c,objectPosition:l,...x?v:tm(v,["onError","onLoad"])};return g?i||s.jsx(D.img,{as:jv,className:"chakra-image__placeholder",src:r,...S}):s.jsx(D.img,{as:jv,src:o,srcSet:a,crossOrigin:f,loading:u,referrerPolicy:h,className:"chakra-image",...S})});W_.displayName="Image";const bt=B(function(t,n){const{htmlSize:r,...i}=t,o=Qe("Input",i),a=$e(i),l=t_(a),c=V("chakra-input",t.className);return s.jsx(D.input,{size:r,...l,__css:o.field,ref:n,className:c})});bt.displayName="Input";bt.id="Input";const[aq,sq]=_e({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Eb=B(function(t,n){const r=Qe("Input",t),{children:i,className:o,...a}=$e(t),l=V("chakra-input__group",o),c={},u=ty(i),d=r.field;u.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(c.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(c.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(c.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const f=u.map(p=>{var v,b;const h=ny({size:((v=p.props)==null?void 0:v.size)||t.size,variant:((b=p.props)==null?void 0:b.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,c,p.props))});return s.jsx(D.div,{className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:s.jsx(aq,{value:r,children:f})})});Eb.displayName="InputGroup";const lq=D("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Tm=B(function(t,n){const{placement:r="left",...i}=t,o=sq(),a=o.field,c={[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,...o.element};return s.jsx(lq,{ref:n,__css:c,...i})});Tm.id="InputElement";Tm.displayName="InputElement";const Ab=B(function(t,n){const{className:r,...i}=t,o=V("chakra-input__left-element",r);return s.jsx(Tm,{ref:n,placement:"left",className:o,...i})});Ab.id="InputLeftElement";Ab.displayName="InputLeftElement";const Em=B(function(t,n){const{className:r,...i}=t,o=V("chakra-input__right-element",r);return s.jsx(Tm,{ref:n,placement:"right",className:o,...i})});Em.id="InputRightElement";Em.displayName="InputRightElement";const _o=B(function(t,n){const r=Yn("Link",t),{className:i,isExternal:o,...a}=$e(t);return s.jsx(D.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:n,className:V("chakra-link",i),...a,__css:r})});_o.displayName="Link";const[cq,V_]=_e({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Mu=B(function(t,n){const r=Qe("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:l,...c}=$e(t),u=ty(i),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return s.jsx(cq,{value:r,children:s.jsx(D.ul,{ref:n,listStyleType:o,listStylePosition:a,role:"list",__css:{...r.container,...f},...c,children:u})})});Mu.displayName="List";const uq=B((e,t)=>{const{as:n,...r}=e;return s.jsx(Mu,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});uq.displayName="OrderedList";const dq=B(function(t,n){const{as:r,...i}=t;return s.jsx(Mu,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});dq.displayName="UnorderedList";const $b=B(function(t,n){const r=V_();return s.jsx(D.li,{ref:n,...t,__css:r.item})});$b.displayName="ListItem";const U_=B(function(t,n){const r=V_();return s.jsx(At,{ref:n,role:"presentation",...t,__css:r.icon})});U_.displayName="ListIcon";function fq(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=PF(),o=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(u=>u!=null);const[l,c]=m.useState(()=>o.map((u,d)=>({media:u,matches:n?!!a[d]:i().matchMedia(u).matches})));return m.useEffect(()=>{const u=i();c(o.map(p=>({media:p,matches:u.matchMedia(p).matches})));const d=o.map(p=>u.matchMedia(p)),f=p=>{c(h=>h.slice().map(v=>v.media===p.media?{...v,matches:p.matches}:v))};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)})}},[i]),l.map(u=>u.matches)}function pq(e){var l;const t=Nt(e)?e:{fallback:e??"base"},r=zi().__breakpoints.details.map(({minMaxQuery:c,breakpoint:u})=>({breakpoint:u,query:c.replace("@media screen and ","")})),i=r.map(c=>c.breakpoint===t.fallback),a=fq(r.map(c=>c.query),{fallback:i,ssr:t.ssr}).findIndex(c=>c==!0);return((l=r[a])==null?void 0:l.breakpoint)??t.fallback}function mq(e,t,n=i6){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const o=n[i];if(e.hasOwnProperty(o)){r=i;break}i-=1}if(r!==-1){const o=n[r];return e[o]}}function jp(e,t){var l;const n=Nt(t)?t:{fallback:t??"base"},r=pq(n),i=zi();if(!r)return;const o=Array.from(((l=i.__breakpoints)==null?void 0:l.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(K$(e,o)).map(([c,u])=>[c,u])):e;return mq(a,r,o)}var $n="top",dr="bottom",fr="right",zn="left",zb="auto",Lu=[$n,dr,fr,zn],tl="start",lu="end",hq="clippingParents",H_="viewport",Fl="popper",gq="reference",bw=Lu.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+lu])},[]),G_=[].concat(Lu,[zb]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+lu])},[]),vq="beforeRead",yq="read",bq="afterRead",xq="beforeMain",Sq="main",wq="afterMain",kq="beforeWrite",Cq="write",jq="afterWrite",Pq=[vq,yq,bq,xq,Sq,wq,kq,Cq,jq];function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function Hn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ja(e){var t=Hn(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Rb(e){if(typeof ShadowRoot>"u")return!1;var t=Hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _q(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!lr(o)||!Zr(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function Tq(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 i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!lr(i)||!Zr(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Eq={name:"applyStyles",enabled:!0,phase:"write",fn:_q,effect:Tq,requires:["computeStyles"]};function Qr(e){return e.split("-")[0]}var pa=Math.max,Pp=Math.min,nl=Math.round;function Pv(){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 K_(){return!/^((?!chrome|android).)*safari/i.test(Pv())}function rl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&lr(e)&&(i=e.offsetWidth>0&&nl(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&nl(r.height)/e.offsetHeight||1);var a=ja(e)?Hn(e):window,l=a.visualViewport,c=!K_()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Ib(e){var t=rl(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 q_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Rb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _i(e){return Hn(e).getComputedStyle(e)}function Aq(e){return["table","td","th"].indexOf(Zr(e))>=0}function To(e){return((ja(e)?e.ownerDocument:e.document)||window.document).documentElement}function Am(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||(Rb(e)?e.host:null)||To(e)}function xw(e){return!lr(e)||_i(e).position==="fixed"?null:e.offsetParent}function $q(e){var t=/firefox/i.test(Pv()),n=/Trident/i.test(Pv());if(n&&lr(e)){var r=_i(e);if(r.position==="fixed")return null}var i=Am(e);for(Rb(i)&&(i=i.host);lr(i)&&["html","body"].indexOf(Zr(i))<0;){var o=_i(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Nu(e){for(var t=Hn(e),n=xw(e);n&&Aq(n)&&_i(n).position==="static";)n=xw(n);return n&&(Zr(n)==="html"||Zr(n)==="body"&&_i(n).position==="static")?t:n||$q(e)||t}function Mb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kc(e,t,n){return pa(e,Pp(t,n))}function zq(e,t,n){var r=kc(e,t,n);return r>n?n:r}function X_(){return{top:0,right:0,bottom:0,left:0}}function Y_(e){return Object.assign({},X_(),e)}function Q_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Rq=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Y_(typeof t!="number"?t:Q_(t,Lu))};function Iq(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Qr(n.placement),c=Mb(l),u=[zn,fr].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=Rq(i.padding,n),p=Ib(o),h=c==="y"?$n:zn,v=c==="y"?dr:fr,b=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],y=Nu(o),g=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-x/2,w=f[h],k=g-p[d]-f[v],P=g/2-p[d]/2+S,_=kc(w,P,k),j=c;n.modifiersData[r]=(t={},t[j]=_,t.centerOffset=_-P,t)}}function Mq(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||q_(t.elements.popper,i)&&(t.elements.arrow=i))}const Lq={name:"arrow",enabled:!0,phase:"main",fn:Iq,effect:Mq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(e){return e.split("-")[1]}var Nq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dq(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:nl(n*i)/i||0,y:nl(r*i)/i||0}}function Sw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,v=a.y,b=v===void 0?0:v,x=typeof d=="function"?d({x:h,y:b}):{x:h,y:b};h=x.x,b=x.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),S=zn,w=$n,k=window;if(u){var P=Nu(n),_="clientHeight",j="clientWidth";if(P===Hn(n)&&(P=To(n),_i(P).position!=="static"&&l==="absolute"&&(_="scrollHeight",j="scrollWidth")),P=P,i===$n||(i===zn||i===fr)&&o===lu){w=dr;var z=f&&P===k&&k.visualViewport?k.visualViewport.height:P[_];b-=z-r.height,b*=c?1:-1}if(i===zn||(i===$n||i===dr)&&o===lu){S=fr;var $=f&&P===k&&k.visualViewport?k.visualViewport.width:P[j];h-=$-r.width,h*=c?1:-1}}var W=Object.assign({position:l},u&&Nq),Y=d===!0?Dq({x:h,y:b},Hn(n)):{x:h,y:b};if(h=Y.x,b=Y.y,c){var ee;return Object.assign({},W,(ee={},ee[w]=g?"0":"",ee[S]=y?"0":"",ee.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",ee))}return Object.assign({},W,(t={},t[w]=g?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function Oq(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Qr(t.placement),variation:il(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Sw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Fq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Oq,data:{}};var Rd={passive:!0};function Bq(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=Hn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Rd)}),l&&c.addEventListener("resize",n.update,Rd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Rd)}),l&&c.removeEventListener("resize",n.update,Rd)}}const Wq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bq,data:{}};var Vq={left:"right",right:"left",bottom:"top",top:"bottom"};function Ef(e){return e.replace(/left|right|bottom|top/g,function(t){return Vq[t]})}var Uq={start:"end",end:"start"};function ww(e){return e.replace(/start|end/g,function(t){return Uq[t]})}function Lb(e){var t=Hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nb(e){return rl(To(e)).left+Lb(e).scrollLeft}function Hq(e,t){var n=Hn(e),r=To(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=K_();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+Nb(e),y:c}}function Gq(e){var t,n=To(e),r=Lb(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=pa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Nb(e),c=-r.scrollTop;return _i(i||n).direction==="rtl"&&(l+=pa(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Db(e){var t=_i(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Z_(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:lr(e)&&Db(e)?e:Z_(Am(e))}function Cc(e,t){var n;t===void 0&&(t=[]);var r=Z_(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Hn(r),a=i?[o].concat(o.visualViewport||[],Db(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(Cc(Am(a)))}function _v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kq(e,t){var n=rl(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 kw(e,t,n){return t===H_?_v(Hq(e,n)):ja(t)?Kq(t,n):_v(Gq(To(e)))}function qq(e){var t=Cc(Am(e)),n=["absolute","fixed"].indexOf(_i(e).position)>=0,r=n&&lr(e)?Nu(e):e;return ja(r)?t.filter(function(i){return ja(i)&&q_(i,r)&&Zr(i)!=="body"}):[]}function Xq(e,t,n,r){var i=t==="clippingParents"?qq(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var d=kw(e,u,r);return c.top=pa(d.top,c.top),c.right=Pp(d.right,c.right),c.bottom=Pp(d.bottom,c.bottom),c.left=pa(d.left,c.left),c},kw(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function J_(e){var t=e.reference,n=e.element,r=e.placement,i=r?Qr(r):null,o=r?il(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case $n:c={x:a,y:t.y-n.height};break;case dr:c={x:a,y:t.y+t.height};break;case fr:c={x:t.x+t.width,y:l};break;case zn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Mb(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case tl:c[u]=c[u]-(t[d]/2-n[d]/2);break;case lu:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function cu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?hq:l,u=n.rootBoundary,d=u===void 0?H_:u,f=n.elementContext,p=f===void 0?Fl:f,h=n.altBoundary,v=h===void 0?!1:h,b=n.padding,x=b===void 0?0:b,y=Y_(typeof x!="number"?x:Q_(x,Lu)),g=p===Fl?gq:Fl,S=e.rects.popper,w=e.elements[v?g:p],k=Xq(ja(w)?w:w.contextElement||To(e.elements.popper),c,d,a),P=rl(e.elements.reference),_=J_({reference:P,element:S,placement:i}),j=_v(Object.assign({},S,_)),z=p===Fl?j:P,$={top:k.top-z.top+y.top,bottom:z.bottom-k.bottom+y.bottom,left:k.left-z.left+y.left,right:z.right-k.right+y.right},W=e.modifiersData.offset;if(p===Fl&&W){var Y=W[i];Object.keys($).forEach(function(ee){var I=[fr,dr].indexOf(ee)>=0?1:-1,L=[$n,dr].indexOf(ee)>=0?"y":"x";$[ee]+=Y[L]*I})}return $}function Yq(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?G_:c,d=il(r),f=d?l?bw:bw.filter(function(v){return il(v)===d}):Lu,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,b){return v[b]=cu(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[Qr(b)],v},{});return Object.keys(h).sort(function(v,b){return h[v]-h[b]})}function Qq(e){if(Qr(e)===zb)return[];var t=Ef(e);return[ww(e),t,ww(t)]}function Zq(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,b=n.allowedAutoPlacements,x=t.options.placement,y=Qr(x),g=y===x,S=c||(g||!v?[Ef(x)]:Qq(x)),w=[x].concat(S).reduce(function(Q,ue){return Q.concat(Qr(ue)===zb?Yq(t,{placement:ue,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ue)},[]),k=t.rects.reference,P=t.rects.popper,_=new Map,j=!0,z=w[0],$=0;$=0,L=I?"width":"height",N=cu(t,{placement:W,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),R=I?ee?fr:zn:ee?dr:$n;k[L]>P[L]&&(R=Ef(R));var F=Ef(R),M=[];if(o&&M.push(N[Y]<=0),l&&M.push(N[R]<=0,N[F]<=0),M.every(function(Q){return Q})){z=W,j=!1;break}_.set(W,M)}if(j)for(var G=v?3:1,Z=function(ue){var ce=w.find(function(Be){var Ze=_.get(Be);if(Ze)return Ze.slice(0,ue).every(function(te){return te})});if(ce)return z=ce,"break"},ae=G;ae>0;ae--){var oe=Z(ae);if(oe==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Jq={name:"flip",enabled:!0,phase:"main",fn:Zq,requiresIfExists:["offset"],data:{_skip:!1}};function Cw(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 jw(e){return[$n,fr,dr,zn].some(function(t){return e[t]>=0})}function eX(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=cu(t,{elementContext:"reference"}),l=cu(t,{altBoundary:!0}),c=Cw(a,r),u=Cw(l,i,o),d=jw(c),f=jw(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const tX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eX};function nX(e,t,n){var r=Qr(e),i=[zn,$n].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[zn,fr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function rX(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=G_.reduce(function(d,f){return d[f]=nX(f,t.rects,o),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const iX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rX};function oX(e){var t=e.state,n=e.name;t.modifiersData[n]=J_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const aX={name:"popperOffsets",enabled:!0,phase:"read",fn:oX,data:{}};function sX(e){return e==="x"?"y":"x"}function lX(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,x=cu(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),y=Qr(t.placement),g=il(t.placement),S=!g,w=Mb(y),k=sX(w),P=t.modifiersData.popperOffsets,_=t.rects.reference,j=t.rects.popper,z=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,$=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(P){if(o){var ee,I=w==="y"?$n:zn,L=w==="y"?dr:fr,N=w==="y"?"height":"width",R=P[w],F=R+x[I],M=R-x[L],G=h?-j[N]/2:0,Z=g===tl?_[N]:j[N],ae=g===tl?-j[N]:-_[N],oe=t.elements.arrow,Q=h&&oe?Ib(oe):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:X_(),ce=ue[I],Be=ue[L],Ze=kc(0,_[N],Q[N]),te=S?_[N]/2-G-Ze-ce-$.mainAxis:Z-Ze-ce-$.mainAxis,re=S?-_[N]/2+G+Ze+Be+$.mainAxis:ae+Ze+Be+$.mainAxis,ze=t.elements.arrow&&Nu(t.elements.arrow),ye=ze?w==="y"?ze.clientTop||0:ze.clientLeft||0:0,ot=(ee=W==null?void 0:W[w])!=null?ee:0,ve=R+te-ot-ye,ut=R+re-ot,Ve=kc(h?Pp(F,ve):F,R,h?pa(M,ut):M);P[w]=Ve,Y[w]=Ve-R}if(l){var $t,Se=w==="x"?$n:zn,kn=w==="x"?dr:fr,Ot=P[k],mr=k==="y"?"height":"width",ei=Ot+x[Se],se=Ot-x[kn],ti=[$n,zn].indexOf(y)!==-1,Ro=($t=W==null?void 0:W[k])!=null?$t:0,Xu=ti?ei:Ot-_[mr]-j[mr]-Ro+$.altAxis,Yu=ti?Ot+_[mr]+j[mr]-Ro-$.altAxis:se,Io=h&&ti?zq(Xu,Ot,Yu):kc(h?Xu:ei,Ot,h?Yu:se);P[k]=Io,Y[k]=Io-Ot}t.modifiersData[r]=Y}}const cX={name:"preventOverflow",enabled:!0,phase:"main",fn:lX,requiresIfExists:["offset"]};function uX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dX(e){return e===Hn(e)||!lr(e)?Lb(e):uX(e)}function fX(e){var t=e.getBoundingClientRect(),n=nl(t.width)/e.offsetWidth||1,r=nl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pX(e,t,n){n===void 0&&(n=!1);var r=lr(t),i=lr(t)&&fX(t),o=To(t),a=rl(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Zr(t)!=="body"||Db(o))&&(l=dX(t)),lr(t)?(c=rl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Nb(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function mX(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function hX(e){var t=mX(e);return Pq.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function gX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vX(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Pw={placement:"bottom",modifiers:[],strategy:"absolute"};function _w(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Qt={arrowShadowColor:Ba("--popper-arrow-shadow-color"),arrowSize:Ba("--popper-arrow-size","8px"),arrowSizeHalf:Ba("--popper-arrow-size-half"),arrowBg:Ba("--popper-arrow-bg"),transformOrigin:Ba("--popper-transform-origin"),arrowOffset:Ba("--popper-arrow-offset")};function SX(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 wX={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"},kX=e=>wX[e],Tw={scroll:!0,resize:!0};function CX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Tw,...e}}:t={enabled:e,options:Tw},t}const jX={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`}},PX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ew(e)},effect:({state:e})=>()=>{Ew(e)}},Ew=e=>{e.elements.popper.style.setProperty(Qt.transformOrigin.var,kX(e.placement))},_X={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{TX(e)}},TX=e=>{var n;if(!e.placement)return;const t=EX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Qt.arrowSize.varRef,height:Qt.arrowSize.varRef,zIndex:-1});const r={[Qt.arrowSizeHalf.var]:`calc(${Qt.arrowSize.varRef} / 2 - 1px)`,[Qt.arrowOffset.var]:`calc(${Qt.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},EX=e=>{if(e.startsWith("top"))return{property:"bottom",value:Qt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Qt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Qt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Qt.arrowOffset.varRef}},AX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Aw(e)},effect:({state:e})=>()=>{Aw(e)}},Aw=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=SX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Qt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},$X={"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"}},zX={"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 RX(e,t="ltr"){var r;const n=((r=$X[e])==null?void 0:r[t])||e;return t==="ltr"?n:zX[e]??n}function IX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,v=m.useRef(null),b=m.useRef(null),x=m.useRef(null),y=RX(r,h),g=m.useRef(()=>{}),S=m.useCallback(()=>{var $;!t||!v.current||!b.current||(($=g.current)==null||$.call(g),x.current=xX(v.current,b.current,{placement:y,modifiers:[AX,_X,PX,{...jX,enabled:!!p},{name:"eventListeners",...CX(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:l??[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:i}),x.current.forceUpdate(),g.current=x.current.destroy)},[y,t,n,p,a,o,l,c,u,f,d,i]);m.useEffect(()=>()=>{var $;!v.current&&!b.current&&(($=x.current)==null||$.destroy(),x.current=null)},[]);const w=m.useCallback($=>{v.current=$,S()},[S]),k=m.useCallback(($={},W=null)=>({...$,ref:Mt(w,W)}),[w]),P=m.useCallback($=>{b.current=$,S()},[S]),_=m.useCallback(($={},W=null)=>({...$,ref:Mt(P,W),style:{...$.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,P,p]),j=m.useCallback(($={},W=null)=>{const{size:Y,shadowColor:ee,bg:I,style:L,...N}=$;return{...N,ref:W,"data-popper-arrow":"",style:MX($)}},[]),z=m.useCallback(($={},W=null)=>({...$,ref:W,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=x.current)==null||$.update()},forceUpdate(){var $;($=x.current)==null||$.forceUpdate()},transformOrigin:Qt.transformOrigin.varRef,referenceRef:w,popperRef:P,getPopperProps:_,getArrowProps:j,getArrowInnerProps:z,getReferenceProps:k}}function MX(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}const[bue,xue,Sue,wue]=eG(),[kue,LX]=_e({strict:!1,name:"MenuContext"});var NX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wa=new WeakMap,Id=new WeakMap,Md={},x0=0,eT=function(e){return e&&(e.host||eT(e.parentNode))},DX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=eT(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})},OX=function(e,t,n,r){var i=DX(t,Array.isArray(e)?e:[e]);Md[n]||(Md[n]=new WeakMap);var o=Md[n],a=[],l=new Set,c=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var h=p.getAttribute(r),v=h!==null&&h!=="false",b=(Wa.get(p)||0)+1,x=(o.get(p)||0)+1;Wa.set(p,b),o.set(p,x),a.push(p),b===1&&v&&Id.set(p,!0),x===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),l.clear(),x0++,function(){a.forEach(function(f){var p=Wa.get(f)-1,h=o.get(f)-1;Wa.set(f,p),o.set(f,h),p||(Id.has(f)||f.removeAttribute(r),Id.delete(f)),h||f.removeAttribute(n)}),x0--,x0||(Wa=new WeakMap,Wa=new WeakMap,Id=new WeakMap,Md={})}},FX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=NX(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),OX(r,i,n,"aria-hidden")):function(){return null}},BX=Object.defineProperty,WX=(e,t,n)=>t in e?BX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VX=(e,t,n)=>(WX(e,t+"",n),n);class UX{constructor(){VX(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 Tv=new UX;function tT(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const i=e.current;if(i){if(t){const o=Tv.add(i);r(o)}return()=>{Tv.remove(i),r(0)}}},[t,e]),n}function HX(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:l,onEsc:c}=e,u=m.useRef(null),d=m.useRef(null),[f,p,h]=KX(r,"chakra-modal","chakra-modal--header","chakra-modal--body");GX(u,t&&a);const v=tT(u,t),b=m.useRef(null),x=m.useCallback(z=>{b.current=z.target},[]),y=m.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&(n==null||n()),c==null||c())},[o,n,c]),[g,S]=m.useState(!1),[w,k]=m.useState(!1),P=m.useCallback((z={},$=null)=>({role:"dialog",...z,ref:Mt($,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":g?p:void 0,"aria-describedby":w?h:void 0,onClick:he(z.onClick,W=>W.stopPropagation())}),[h,w,f,p,g]),_=m.useCallback(z=>{z.stopPropagation(),b.current===z.target&&Tv.isTopModal(u.current)&&(i&&(n==null||n()),l==null||l())},[n,i,l]),j=m.useCallback((z={},$=null)=>({...z,ref:Mt($,d),onClick:he(z.onClick,_),onKeyDown:he(z.onKeyDown,y),onMouseDown:he(z.onMouseDown,x)}),[y,x,_]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:u,overlayRef:d,getDialogProps:P,getDialogContainerProps:j,index:v}}function GX(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return FX(e.current)},[t,e,n])}function KX(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}const[qX,Ra]=_e({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[XX,yo]=_e({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Du=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:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:v,onCloseComplete:b}=t,x=Qe("Modal",t),g={...HX(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return s.jsx(XX,{value:g,children:s.jsx(qX,{value:x,children:s.jsx($i,{...v,onExitComplete:b,children:g.isOpen&&s.jsx(hl,{...n,children:r})})})})};Du.displayName="Modal";var Af="right-scroll-bar-position",$f="width-before-scroll-bar",YX="with-scroll-bars-hidden",QX="--removed-body-scroll-bar-size",nT=f_(),S0=function(){},$m=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:S0,onWheelCapture:S0,onTouchMoveCapture:S0}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,b=e.inert,x=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,S=e.gapMode,w=c_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,P=l_([n,t]),_=Wr(Wr({},w),i);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:nT,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:b,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(l),Wr(Wr({},_),{ref:P})):m.createElement(g,Wr({},_,{className:c,ref:P}),l))});$m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$m.classNames={fullWidth:$f,zeroRight:Af};var ZX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZX();return t&&e.setAttribute("nonce",t),e}function eY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nY=function(){var e=0,t=null;return{add:function(n){e==0&&(t=JX())&&(eY(t,n),tY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rY=function(){var e=nY();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rT=function(){var e=rY(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},iY={left:0,top:0,right:0,gap:0},w0=function(e){return parseInt(e||"",10)||0},oY=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[w0(n),w0(r),w0(i)]},aY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iY;var t=oY(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])}},sY=rT(),Ds="data-scroll-locked",lY=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` - .`.concat(YX,` { + `;return`!${o?a:l}`.trim()}function TG(e={}){const{nonce:t}=e;return s.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:_G(e)}})}const fn=B(function(t,n){const{className:r,centerContent:i,...o}=$e(t),a=Yn("Container",t);return s.jsx(D.div,{ref:n,className:V("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});fn.displayName="Container";const da=B(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:l,borderStyle:c,borderColor:u,...d}=Yn("Divider",t),{className:f,orientation:p="horizontal",__css:h,...v}=$e(t),b={vertical:{borderLeftWidth:r||a||l||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||l||"1px",width:"100%"}};return s.jsx(D.hr,{ref:n,"aria-orientation":p,...v,__css:{...d,border:"0",borderColor:u,borderStyle:c,...b[p],...h},className:V("chakra-divider",f)})});da.displayName="Divider";const[EG,e_]=_e({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[AG,pb]=_e({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function lw(e,t){return e?e===t||e.contains(t):!1}function $G(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:i,value:o,isDisabled:a,defaultValue:l,startWithEditView:c,isPreviewFocusable:u=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:v,...b}=e,x=_r(h),y=!!(c&&!a),[g,S]=m.useState(y),[w,k]=r6({defaultValue:l||"",value:o,onChange:t}),[P,_]=m.useState(w),j=m.useRef(null),z=m.useRef(null),$=m.useRef(null),W=m.useRef(null),Y=m.useRef(null);tz({ref:j,enabled:g,elements:[W,Y]});const ee=!g&&!a;vi(()=>{var te,re;g&&((te=j.current)==null||te.focus(),f&&((re=j.current)==null||re.select()))},[]),dp(()=>{var te,re,ze,ye;if(!g){v?(te=v.current)==null||te.focus():(re=$.current)==null||re.focus();return}(ze=j.current)==null||ze.focus(),f&&((ye=j.current)==null||ye.select()),x==null||x()},[g,x,f]);const I=m.useCallback(()=>{ee&&S(!0)},[ee]),L=m.useCallback(()=>{_(w)},[w]),N=m.useCallback(()=>{S(!1),k(P),n==null||n(P),i==null||i(P)},[n,i,k,P]),R=m.useCallback(()=>{S(!1),_(w),r==null||r(w),i==null||i(P)},[w,r,i,P]);m.useEffect(()=>{if(g)return;const te=j.current;(te==null?void 0:te.ownerDocument.activeElement)===te&&(te==null||te.blur())},[g]);const F=m.useCallback(te=>{k(te.currentTarget.value)},[k]),M=m.useCallback(te=>{const re=te.key,ye={Escape:N,Enter:ot=>{!ot.shiftKey&&!ot.metaKey&&R()}}[re];ye&&(te.preventDefault(),ye(te))},[N,R]),G=m.useCallback(te=>{const re=te.key,ye={Escape:N}[re];ye&&(te.preventDefault(),ye(te))},[N]),Z=w.length===0,ae=m.useCallback(te=>{if(!g)return;const re=te.currentTarget.ownerDocument,ze=te.relatedTarget??re.activeElement,ye=lw(W.current,ze),ot=lw(Y.current,ze);!ye&&!ot&&(d?R():N())},[d,R,N,g]),oe=m.useCallback((te={},re=null)=>{const ze=ee&&u?0:void 0;return{...te,ref:Mt(re,z),children:Z?p:w,hidden:g,"aria-disabled":gi(a),tabIndex:ze,onFocus:he(te.onFocus,I,L)}},[a,g,ee,u,Z,I,L,p,w]),Q=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:Mt(re,j),disabled:a,"aria-disabled":gi(a),value:w,onBlur:he(te.onBlur,ae),onChange:he(te.onChange,F),onKeyDown:he(te.onKeyDown,M),onFocus:he(te.onFocus,L)}),[a,g,ae,F,M,L,p,w]),ue=m.useCallback((te={},re=null)=>({...te,hidden:!g,placeholder:p,ref:Mt(re,j),disabled:a,"aria-disabled":gi(a),value:w,onBlur:he(te.onBlur,ae),onChange:he(te.onChange,F),onKeyDown:he(te.onKeyDown,G),onFocus:he(te.onFocus,L)}),[a,g,ae,F,G,L,p,w]),ce=m.useCallback((te={},re=null)=>({"aria-label":"Edit",...te,type:"button",onClick:he(te.onClick,I),ref:Mt(re,$),disabled:a}),[I,a]),Be=m.useCallback((te={},re=null)=>({...te,"aria-label":"Submit",ref:Mt(Y,re),type:"button",onClick:he(te.onClick,R),disabled:a}),[R,a]),Ze=m.useCallback((te={},re=null)=>({"aria-label":"Cancel",id:"cancel",...te,ref:Mt(W,re),type:"button",onClick:he(te.onClick,N),disabled:a}),[N,a]);return{isEditing:g,isDisabled:a,isValueEmpty:Z,value:w,onEdit:I,onCancel:N,onSubmit:R,getPreviewProps:oe,getInputProps:Q,getTextareaProps:ue,getEditButtonProps:ce,getSubmitButtonProps:Be,getCancelButtonProps:Ze,htmlProps:b}}const Pf=B(function(t,n){const r=Qe("Editable",t),i=$e(t),{htmlProps:o,...a}=$G(i),{isEditing:l,onSubmit:c,onCancel:u,onEdit:d}=a,f=V("chakra-editable",t.className),p=cn(t.children,{isEditing:l,onSubmit:c,onCancel:u,onEdit:d});return s.jsx(AG,{value:a,children:s.jsx(EG,{value:r,children:s.jsx(D.div,{ref:n,...o,className:f,children:p})})})});Pf.displayName="Editable";const t_={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},_f=B(function(t,n){const{getInputProps:r}=pb(),i=e_(),o=r(t,n),a=V("chakra-editable__input",t.className);return s.jsx(D.input,{...o,__css:{outline:0,...t_,...i.input},className:a})});_f.displayName="EditableInput";const Tf=B(function(t,n){const{getPreviewProps:r}=pb(),i=e_(),o=r(t,n),a=V("chakra-editable__preview",t.className);return s.jsx(D.span,{...o,__css:{cursor:"text",display:"inline-block",...t_,...i.preview},className:a})});Tf.displayName="EditablePreview";function zG(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=pb();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function tc(e){return typeof e=="function"}function RG(...e){return t=>e.reduce((n,r)=>r(n),t)}const IG=e=>function(...n){let r=[...n],i=n[n.length-1];return lO(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,RG(...r.map(o=>a=>tc(o)?o(a):MG(a,o)))(i)},mb=IG(Jo);function MG(...e){return ar({},...e,n_)}function n_(e,t,n,r){if((tc(e)||tc(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=tc(e)?e(...i):e,a=tc(t)?t(...i):t;return ar({},o,a,n_)};if(Nt(e)&&Dg(t)||Dg(e)&&Nt(t))return t}const St=B(function(t,n){const{direction:r,align:i,justify:o,wrap:a,basis:l,grow:c,shrink:u,...d}=t,f={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:l,flexGrow:c,flexShrink:u};return s.jsx(D.div,{ref:n,__css:f,...d})});St.displayName="Flex";function LG(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 bv="data-focus-lock",r_="data-focus-lock-disabled",NG="data-no-focus-lock",DG="data-autofocus-inside",OG="data-no-autofocus";function h0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FG(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var BG=typeof window<"u"?m.useLayoutEffect:m.useEffect,cw=new WeakMap;function i_(e,t){var n=FG(null,function(r){return e.forEach(function(i){return h0(i,r)})});return BG(function(){var r=cw.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||h0(l,null)}),o.forEach(function(l){i.has(l)||h0(l,a)})}cw.set(n,e)},[e]),n}var g0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Wr=function(){return Wr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(sK)},cK=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],bb=cK.join(","),uK="".concat(bb,", [data-focus-guard]"),x_=function(e,t){return Jr((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?uK:bb)?[r]:[],x_(r))},[])},dK=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?el([e.contentDocument.body],t):[e]},el=function(e,t){return e.reduce(function(n,r){var i,o=x_(r,t),a=(i=[]).concat.apply(i,o.map(function(l){return dK(l,t)}));return n.concat(a,r.parentNode?Jr(r.parentNode.querySelectorAll(bb)).filter(function(l){return l===r}):[])},[])},fK=function(e){var t=e.querySelectorAll("[".concat(DG,"]"));return Jr(t).map(function(n){return el([n])}).reduce(function(n,r){return n.concat(r)},[])},xb=function(e,t){return Jr(e).filter(function(n){return h_(t,n)}).filter(function(n){return iK(n)})},uw=function(e,t){return t===void 0&&(t=new Map),Jr(e).filter(function(n){return g_(t,n)})},Sb=function(e,t,n){return yb(xb(el(e,n),t),!0,n)},ou=function(e,t){return yb(xb(el(e),t),!1)},pK=function(e,t){return xb(fK(e),t)},fa=function(e,t){return e.shadowRoot?fa(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Jr(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?fa(i,t):!1}return fa(n,t)})},mK=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,l){return!t.has(l)})},S_=function(e){return e.parentNode?S_(e.parentNode):e},wb=function(e){var t=Ca(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(bv);return n.push.apply(n,i?mK(Jr(S_(r).querySelectorAll("[".concat(bv,'="').concat(i,'"]:not([').concat(r_,'="disabled"])')))):[r]),n},[])},hK=function(e){try{return e()}catch{return}},au=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?au(t.shadowRoot):t instanceof HTMLIFrameElement&&hK(function(){return t.contentWindow.document})?au(t.contentWindow.document):t}},gK=function(e,t){return e===t},vK=function(e,t){return!!Jr(e.querySelectorAll("iframe")).some(function(n){return gK(n,t)})},w_=function(e,t){return t===void 0&&(t=au(f_(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:wb(e).some(function(n){return fa(n,t)||vK(n,t)})},yK=function(e){e===void 0&&(e=document);var t=au(e);return t?Jr(e.querySelectorAll("[".concat(NG,"]"))).some(function(n){return fa(n,t)}):!1},bK=function(e,t){return t.filter(b_).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},kb=function(e,t){return b_(e)&&e.name?bK(e,t):e},xK=function(e){var t=new Set;return e.forEach(function(n){return t.add(kb(n,e))}),e.filter(function(n){return t.has(n)})},dw=function(e){return e[0]&&e.length>1?kb(e[0],e):e[0]},fw=function(e,t){return e.indexOf(kb(t,e))},wv="NEW_FOCUS",SK=function(e,t,n,r,i){var o=e.length,a=e[0],l=e[o-1],c=vb(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,d=i?n.indexOf(i):u,f=i?e.indexOf(i):-1;if(u===-1)return f!==-1?f:wv;if(f===-1)return wv;var p=u-d,h=n.indexOf(a),v=n.indexOf(l),b=xK(n),x=r!==void 0?b.indexOf(r):-1,y=i?b.indexOf(i):x,g=b.filter(function(j){return j.tabIndex>=0}),S=r!==void 0?g.indexOf(r):-1,w=i?g.indexOf(i):S,k=S>=0&&w>=0?w-S:y-x;if(!p&&f>=0||t.length===0)return f;var P=fw(e,t[0]),_=fw(e,t[t.length-1]);if(u<=h&&c&&Math.abs(p)>1)return _;if(u>=v&&c&&Math.abs(p)>1)return P;if(p&&Math.abs(k)>1)return f;if(u<=h)return _;if(u>v)return P;if(p)return Math.abs(p)>1?f:(o+f+p)%o}},wK=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}},pw=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=uw(r.filter(wK(n)));return i&&i.length?dw(i):dw(uw(t))},kv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&kv(e.parentNode.host||e.parentNode,t),t},v0=function(e,t){for(var n=kv(e),r=kv(t),i=0;i=0)return o}return!1},k_=function(e,t,n){var r=Ca(e),i=Ca(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(l){a=v0(a||l,l)||a,n.filter(Boolean).forEach(function(c){var u=v0(o,c);u&&(!a||fa(u,a)?a=u:a=v0(u,a))})}),a},mw=function(e,t){return e.reduce(function(n,r){return n.concat(pK(r,t))},[])},kK=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(aK)},CK=function(e,t){var n=au(Ca(e).length>0?document:f_(e).ownerDocument),r=wb(e).filter(Sv),i=k_(n||e,e,r),o=new Map,a=ou(r,o),l=a.filter(function(v){var b=v.node;return Sv(b)});if(l[0]){var c=ou([i],o).map(function(v){var b=v.node;return b}),u=kK(c,l),d=u.map(function(v){var b=v.node;return b}),f=u.filter(function(v){var b=v.tabIndex;return b>=0}).map(function(v){var b=v.node;return b}),p=SK(d,f,c,n,t);if(p===wv){var h=pw(a,f,mw(r,o))||pw(a,d,mw(r,o));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:u[p]}},jK=function(e){var t=wb(e).filter(Sv),n=k_(e,e,t),r=yb(el([n],!0),!0,!0),i=el(t,!1);return r.map(function(o){var a=o.node,l=o.index;return{node:a,index:l,lockItem:i.indexOf(a)>=0,guard:vb(a)}})},Cb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},y0=0,b0=!1,C_=function(e,t,n){n===void 0&&(n={});var r=CK(e,t);if(!b0&&r){if(y0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),b0=!0,setTimeout(function(){b0=!1},1);return}y0++,Cb(r.node,n.focusOptions),y0--}};function Ol(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 PK=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ol(n),parent:Ol(n.parentElement),left:Ol(n.previousElementSibling),right:Ol(n.nextElementSibling)}),n=n.parentElement;return{element:Ol(e),stack:t,ownerDocument:e.ownerDocument}},_K=function(e){var t,n,r,i,o;if(e)for(var a=e.stack,l=e.ownerDocument,c=new Map,u=0,d=a;u-1&&(x.filter(function(g){var S=g.guard,w=g.node;return S&&w.dataset.focusAutoGuard}).forEach(function(g){var S=g.node;return S.removeAttribute("tabIndex")}),gw(y,x.length,1,x),gw(y,-1,-1,x))}}}return t},A_=function(t){Cp()&&t&&(t.stopPropagation(),t.preventDefault())},_b=function(){return jb(Cp)},HK=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||OK(r,n)},GK=function(){return null},$_=function(){Pb=!0},z_=function(){Pb=!1,su="just",jb(function(){su="meanwhile"})},KK=function(){document.addEventListener("focusin",A_),document.addEventListener("focusout",_b),window.addEventListener("focus",$_),window.addEventListener("blur",z_)},qK=function(){document.removeEventListener("focusin",A_),document.removeEventListener("focusout",_b),window.removeEventListener("focus",$_),window.removeEventListener("blur",z_)};function XK(e){return e.filter(function(t){var n=t.disabled;return!n})}var R_={moveFocusInside:C_,focusInside:w_,focusNextElement:$K,focusPrevElement:zK,focusFirstElement:RK,focusLastElement:IK,captureFocusRestore:j_};function YK(e){var t=e.slice(-1)[0];t&&!Ls&&KK();var n=Ls,r=n&&t&&t.id===n.id;Ls=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(Cn=null,(!r||n.observed!==t.observed)&&t.onActivation(R_),Cp(),jb(Cp)):(qK(),Cn=null)}u_.assignSyncMedium(HK);d_.assignMedium(_b);UG.assignMedium(function(e){return e(R_)});const QK=ZG(XK,YK)(GK);var Cv=m.forwardRef(function(t,n){return Xt.createElement(gb,wa({sideCar:QK,ref:n},t))}),I_=gb.propTypes||{};I_.sideCar;LG(I_,["sideCar"]);Cv.propTypes={};const ZK=Cv.default??Cv,M_=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:u}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&O$(r.current).length===0&&requestAnimationFrame(()=>{var v;(v=r.current)==null||v.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=i&&!n;return s.jsx(ZK,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};M_.displayName="FocusLock";const Ce=B(function(t,n){const r=Yn("FormLabel",t),i=$e(t),{className:o,children:a,requiredIndicator:l=s.jsx(L_,{}),optionalIndicator:c=null,...u}=i,d=Iu(),f=(d==null?void 0:d.getLabelProps(u,n))??{ref:n,...u};return s.jsxs(D.label,{...f,className:V("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?l:c]})});Ce.displayName="FormLabel";const L_=B(function(t,n){const r=Iu(),i=YP();if(!(r!=null&&r.isRequired))return null;const o=V("chakra-form__required-indicator",t.className);return s.jsx(D.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});L_.displayName="RequiredIndicator";const N_=B(function(t,n){const{templateAreas:r,gap:i,rowGap:o,columnGap:a,column:l,row:c,autoFlow:u,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...v}=t,b={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:l,gridRow:c,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return s.jsx(D.div,{ref:n,__css:b,...v})});N_.displayName="Grid";const bn=B(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:l,...c}=t,u=zi(),d=l?eq(l,u):tq(r);return s.jsx(N_,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:d,...c})});bn.displayName="SimpleGrid";function JK(e){return typeof e=="number"?`${e}px`:e}function eq(e,t){return ny(e,n=>{const r=wH("sizes",n,JK(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function tq(e){return ny(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function _m(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=m.Children.toArray(e.path),a=B((l,c)=>s.jsx(At,{ref:c,viewBox:t,...i,...l,children:o.length?o:s.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const jv=B(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...a}=t;return s.jsx("img",{width:r,height:i,ref:n,alt:o,...a})});jv.displayName="NativeImage";const D_=B(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:a,align:l,fit:c,loading:u,ignoreFallback:d,crossOrigin:f,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:h,...v}=t,b=r!==void 0||i!==void 0,x=u!=null||d||!b,y=HP({...t,crossOrigin:f,ignoreFallback:x}),g=tG(y,p),S={ref:n,objectFit:c,objectPosition:l,...x?v:tm(v,["onError","onLoad"])};return g?i||s.jsx(D.img,{as:jv,className:"chakra-image__placeholder",src:r,...S}):s.jsx(D.img,{as:jv,src:o,srcSet:a,crossOrigin:f,loading:u,referrerPolicy:h,className:"chakra-image",...S})});D_.displayName="Image";const bt=B(function(t,n){const{htmlSize:r,...i}=t,o=Qe("Input",i),a=$e(i),l=QP(a),c=V("chakra-input",t.className);return s.jsx(D.input,{size:r,...l,__css:o.field,ref:n,className:c})});bt.displayName="Input";bt.id="Input";const[nq,rq]=_e({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Tb=B(function(t,n){const r=Qe("Input",t),{children:i,className:o,...a}=$e(t),l=V("chakra-input__group",o),c={},u=ey(i),d=r.field;u.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(c.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(c.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(c.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const f=u.map(p=>{var v,b;const h=ty({size:((v=p.props)==null?void 0:v.size)||t.size,variant:((b=p.props)==null?void 0:b.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,c,p.props))});return s.jsx(D.div,{className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:s.jsx(nq,{value:r,children:f})})});Tb.displayName="InputGroup";const iq=D("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Tm=B(function(t,n){const{placement:r="left",...i}=t,o=rq(),a=o.field,c={[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,...o.element};return s.jsx(iq,{ref:n,__css:c,...i})});Tm.id="InputElement";Tm.displayName="InputElement";const Eb=B(function(t,n){const{className:r,...i}=t,o=V("chakra-input__left-element",r);return s.jsx(Tm,{ref:n,placement:"left",className:o,...i})});Eb.id="InputLeftElement";Eb.displayName="InputLeftElement";const Em=B(function(t,n){const{className:r,...i}=t,o=V("chakra-input__right-element",r);return s.jsx(Tm,{ref:n,placement:"right",className:o,...i})});Em.id="InputRightElement";Em.displayName="InputRightElement";const _o=B(function(t,n){const r=Yn("Link",t),{className:i,isExternal:o,...a}=$e(t);return s.jsx(D.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:n,className:V("chakra-link",i),...a,__css:r})});_o.displayName="Link";const[oq,O_]=_e({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Mu=B(function(t,n){const r=Qe("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:l,...c}=$e(t),u=ey(i),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return s.jsx(oq,{value:r,children:s.jsx(D.ul,{ref:n,listStyleType:o,listStylePosition:a,role:"list",__css:{...r.container,...f},...c,children:u})})});Mu.displayName="List";const aq=B((e,t)=>{const{as:n,...r}=e;return s.jsx(Mu,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});aq.displayName="OrderedList";const sq=B(function(t,n){const{as:r,...i}=t;return s.jsx(Mu,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});sq.displayName="UnorderedList";const Ab=B(function(t,n){const r=O_();return s.jsx(D.li,{ref:n,...t,__css:r.item})});Ab.displayName="ListItem";const F_=B(function(t,n){const r=O_();return s.jsx(At,{ref:n,role:"presentation",...t,__css:r.icon})});F_.displayName="ListIcon";function lq(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=wF(),o=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(u=>u!=null);const[l,c]=m.useState(()=>o.map((u,d)=>({media:u,matches:n?!!a[d]:i().matchMedia(u).matches})));return m.useEffect(()=>{const u=i();c(o.map(p=>({media:p,matches:u.matchMedia(p).matches})));const d=o.map(p=>u.matchMedia(p)),f=p=>{c(h=>h.slice().map(v=>v.media===p.media?{...v,matches:p.matches}:v))};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)})}},[i]),l.map(u=>u.matches)}function cq(e){var l;const t=Nt(e)?e:{fallback:e??"base"},r=zi().__breakpoints.details.map(({minMaxQuery:c,breakpoint:u})=>({breakpoint:u,query:c.replace("@media screen and ","")})),i=r.map(c=>c.breakpoint===t.fallback),a=lq(r.map(c=>c.query),{fallback:i,ssr:t.ssr}).findIndex(c=>c==!0);return((l=r[a])==null?void 0:l.breakpoint)??t.fallback}function uq(e,t,n=e6){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const o=n[i];if(e.hasOwnProperty(o)){r=i;break}i-=1}if(r!==-1){const o=n[r];return e[o]}}function jp(e,t){var l;const n=Nt(t)?t:{fallback:t??"base"},r=cq(n),i=zi();if(!r)return;const o=Array.from(((l=i.__breakpoints)==null?void 0:l.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(V$(e,o)).map(([c,u])=>[c,u])):e;return uq(a,r,o)}var $n="top",dr="bottom",fr="right",zn="left",$b="auto",Lu=[$n,dr,fr,zn],tl="start",lu="end",dq="clippingParents",B_="viewport",Fl="popper",fq="reference",vw=Lu.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+lu])},[]),W_=[].concat(Lu,[$b]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+lu])},[]),pq="beforeRead",mq="read",hq="afterRead",gq="beforeMain",vq="main",yq="afterMain",bq="beforeWrite",xq="write",Sq="afterWrite",wq=[pq,mq,hq,gq,vq,yq,bq,xq,Sq];function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function Hn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ja(e){var t=Hn(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Hn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zb(e){if(typeof ShadowRoot>"u")return!1;var t=Hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kq(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!lr(o)||!Zr(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function Cq(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 i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!lr(i)||!Zr(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const jq={name:"applyStyles",enabled:!0,phase:"write",fn:kq,effect:Cq,requires:["computeStyles"]};function Qr(e){return e.split("-")[0]}var pa=Math.max,Pp=Math.min,nl=Math.round;function Pv(){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(Pv())}function rl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&lr(e)&&(i=e.offsetWidth>0&&nl(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&nl(r.height)/e.offsetHeight||1);var a=ja(e)?Hn(e):window,l=a.visualViewport,c=!V_()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Rb(e){var t=rl(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 U_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _i(e){return Hn(e).getComputedStyle(e)}function Pq(e){return["table","td","th"].indexOf(Zr(e))>=0}function To(e){return((ja(e)?e.ownerDocument:e.document)||window.document).documentElement}function Am(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||(zb(e)?e.host:null)||To(e)}function yw(e){return!lr(e)||_i(e).position==="fixed"?null:e.offsetParent}function _q(e){var t=/firefox/i.test(Pv()),n=/Trident/i.test(Pv());if(n&&lr(e)){var r=_i(e);if(r.position==="fixed")return null}var i=Am(e);for(zb(i)&&(i=i.host);lr(i)&&["html","body"].indexOf(Zr(i))<0;){var o=_i(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Nu(e){for(var t=Hn(e),n=yw(e);n&&Pq(n)&&_i(n).position==="static";)n=yw(n);return n&&(Zr(n)==="html"||Zr(n)==="body"&&_i(n).position==="static")?t:n||_q(e)||t}function Ib(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kc(e,t,n){return pa(e,Pp(t,n))}function Tq(e,t,n){var r=kc(e,t,n);return r>n?n:r}function H_(){return{top:0,right:0,bottom:0,left:0}}function G_(e){return Object.assign({},H_(),e)}function K_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Eq=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,G_(typeof t!="number"?t:K_(t,Lu))};function Aq(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Qr(n.placement),c=Ib(l),u=[zn,fr].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=Eq(i.padding,n),p=Rb(o),h=c==="y"?$n:zn,v=c==="y"?dr:fr,b=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],y=Nu(o),g=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-x/2,w=f[h],k=g-p[d]-f[v],P=g/2-p[d]/2+S,_=kc(w,P,k),j=c;n.modifiersData[r]=(t={},t[j]=_,t.centerOffset=_-P,t)}}function $q(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||U_(t.elements.popper,i)&&(t.elements.arrow=i))}const zq={name:"arrow",enabled:!0,phase:"main",fn:Aq,effect:$q,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(e){return e.split("-")[1]}var Rq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Iq(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:nl(n*i)/i||0,y:nl(r*i)/i||0}}function bw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,v=a.y,b=v===void 0?0:v,x=typeof d=="function"?d({x:h,y:b}):{x:h,y:b};h=x.x,b=x.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),S=zn,w=$n,k=window;if(u){var P=Nu(n),_="clientHeight",j="clientWidth";if(P===Hn(n)&&(P=To(n),_i(P).position!=="static"&&l==="absolute"&&(_="scrollHeight",j="scrollWidth")),P=P,i===$n||(i===zn||i===fr)&&o===lu){w=dr;var z=f&&P===k&&k.visualViewport?k.visualViewport.height:P[_];b-=z-r.height,b*=c?1:-1}if(i===zn||(i===$n||i===dr)&&o===lu){S=fr;var $=f&&P===k&&k.visualViewport?k.visualViewport.width:P[j];h-=$-r.width,h*=c?1:-1}}var W=Object.assign({position:l},u&&Rq),Y=d===!0?Iq({x:h,y:b},Hn(n)):{x:h,y:b};if(h=Y.x,b=Y.y,c){var ee;return Object.assign({},W,(ee={},ee[w]=g?"0":"",ee[S]=y?"0":"",ee.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",ee))}return Object.assign({},W,(t={},t[w]=g?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function Mq(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Qr(t.placement),variation:il(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,bw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,bw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Lq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mq,data:{}};var Rd={passive:!0};function Nq(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=Hn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Rd)}),l&&c.addEventListener("resize",n.update,Rd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Rd)}),l&&c.removeEventListener("resize",n.update,Rd)}}const Dq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nq,data:{}};var Oq={left:"right",right:"left",bottom:"top",top:"bottom"};function Ef(e){return e.replace(/left|right|bottom|top/g,function(t){return Oq[t]})}var Fq={start:"end",end:"start"};function xw(e){return e.replace(/start|end/g,function(t){return Fq[t]})}function Mb(e){var t=Hn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lb(e){return rl(To(e)).left+Mb(e).scrollLeft}function Bq(e,t){var n=Hn(e),r=To(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=V_();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+Lb(e),y:c}}function Wq(e){var t,n=To(e),r=Mb(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=pa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Lb(e),c=-r.scrollTop;return _i(i||n).direction==="rtl"&&(l+=pa(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Nb(e){var t=_i(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function q_(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:lr(e)&&Nb(e)?e:q_(Am(e))}function Cc(e,t){var n;t===void 0&&(t=[]);var r=q_(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Hn(r),a=i?[o].concat(o.visualViewport||[],Nb(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(Cc(Am(a)))}function _v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vq(e,t){var n=rl(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 Sw(e,t,n){return t===B_?_v(Bq(e,n)):ja(t)?Vq(t,n):_v(Wq(To(e)))}function Uq(e){var t=Cc(Am(e)),n=["absolute","fixed"].indexOf(_i(e).position)>=0,r=n&&lr(e)?Nu(e):e;return ja(r)?t.filter(function(i){return ja(i)&&U_(i,r)&&Zr(i)!=="body"}):[]}function Hq(e,t,n,r){var i=t==="clippingParents"?Uq(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var d=Sw(e,u,r);return c.top=pa(d.top,c.top),c.right=Pp(d.right,c.right),c.bottom=Pp(d.bottom,c.bottom),c.left=pa(d.left,c.left),c},Sw(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function X_(e){var t=e.reference,n=e.element,r=e.placement,i=r?Qr(r):null,o=r?il(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case $n:c={x:a,y:t.y-n.height};break;case dr:c={x:a,y:t.y+t.height};break;case fr:c={x:t.x+t.width,y:l};break;case zn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Ib(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case tl:c[u]=c[u]-(t[d]/2-n[d]/2);break;case lu:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function cu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?dq:l,u=n.rootBoundary,d=u===void 0?B_:u,f=n.elementContext,p=f===void 0?Fl:f,h=n.altBoundary,v=h===void 0?!1:h,b=n.padding,x=b===void 0?0:b,y=G_(typeof x!="number"?x:K_(x,Lu)),g=p===Fl?fq:Fl,S=e.rects.popper,w=e.elements[v?g:p],k=Hq(ja(w)?w:w.contextElement||To(e.elements.popper),c,d,a),P=rl(e.elements.reference),_=X_({reference:P,element:S,placement:i}),j=_v(Object.assign({},S,_)),z=p===Fl?j:P,$={top:k.top-z.top+y.top,bottom:z.bottom-k.bottom+y.bottom,left:k.left-z.left+y.left,right:z.right-k.right+y.right},W=e.modifiersData.offset;if(p===Fl&&W){var Y=W[i];Object.keys($).forEach(function(ee){var I=[fr,dr].indexOf(ee)>=0?1:-1,L=[$n,dr].indexOf(ee)>=0?"y":"x";$[ee]+=Y[L]*I})}return $}function Gq(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?W_:c,d=il(r),f=d?l?vw:vw.filter(function(v){return il(v)===d}):Lu,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,b){return v[b]=cu(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[Qr(b)],v},{});return Object.keys(h).sort(function(v,b){return h[v]-h[b]})}function Kq(e){if(Qr(e)===$b)return[];var t=Ef(e);return[xw(e),t,xw(t)]}function qq(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,b=n.allowedAutoPlacements,x=t.options.placement,y=Qr(x),g=y===x,S=c||(g||!v?[Ef(x)]:Kq(x)),w=[x].concat(S).reduce(function(Q,ue){return Q.concat(Qr(ue)===$b?Gq(t,{placement:ue,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ue)},[]),k=t.rects.reference,P=t.rects.popper,_=new Map,j=!0,z=w[0],$=0;$=0,L=I?"width":"height",N=cu(t,{placement:W,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),R=I?ee?fr:zn:ee?dr:$n;k[L]>P[L]&&(R=Ef(R));var F=Ef(R),M=[];if(o&&M.push(N[Y]<=0),l&&M.push(N[R]<=0,N[F]<=0),M.every(function(Q){return Q})){z=W,j=!1;break}_.set(W,M)}if(j)for(var G=v?3:1,Z=function(ue){var ce=w.find(function(Be){var Ze=_.get(Be);if(Ze)return Ze.slice(0,ue).every(function(te){return te})});if(ce)return z=ce,"break"},ae=G;ae>0;ae--){var oe=Z(ae);if(oe==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Xq={name:"flip",enabled:!0,phase:"main",fn:qq,requiresIfExists:["offset"],data:{_skip:!1}};function ww(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 kw(e){return[$n,fr,dr,zn].some(function(t){return e[t]>=0})}function Yq(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=cu(t,{elementContext:"reference"}),l=cu(t,{altBoundary:!0}),c=ww(a,r),u=ww(l,i,o),d=kw(c),f=kw(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Qq={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yq};function Zq(e,t,n){var r=Qr(e),i=[zn,$n].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[zn,fr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Jq(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=W_.reduce(function(d,f){return d[f]=Zq(f,t.rects,o),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const eX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jq};function tX(e){var t=e.state,n=e.name;t.modifiersData[n]=X_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const nX={name:"popperOffsets",enabled:!0,phase:"read",fn:tX,data:{}};function rX(e){return e==="x"?"y":"x"}function iX(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,x=cu(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),y=Qr(t.placement),g=il(t.placement),S=!g,w=Ib(y),k=rX(w),P=t.modifiersData.popperOffsets,_=t.rects.reference,j=t.rects.popper,z=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,$=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(P){if(o){var ee,I=w==="y"?$n:zn,L=w==="y"?dr:fr,N=w==="y"?"height":"width",R=P[w],F=R+x[I],M=R-x[L],G=h?-j[N]/2:0,Z=g===tl?_[N]:j[N],ae=g===tl?-j[N]:-_[N],oe=t.elements.arrow,Q=h&&oe?Rb(oe):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:H_(),ce=ue[I],Be=ue[L],Ze=kc(0,_[N],Q[N]),te=S?_[N]/2-G-Ze-ce-$.mainAxis:Z-Ze-ce-$.mainAxis,re=S?-_[N]/2+G+Ze+Be+$.mainAxis:ae+Ze+Be+$.mainAxis,ze=t.elements.arrow&&Nu(t.elements.arrow),ye=ze?w==="y"?ze.clientTop||0:ze.clientLeft||0:0,ot=(ee=W==null?void 0:W[w])!=null?ee:0,ve=R+te-ot-ye,ut=R+re-ot,Ve=kc(h?Pp(F,ve):F,R,h?pa(M,ut):M);P[w]=Ve,Y[w]=Ve-R}if(l){var $t,Se=w==="x"?$n:zn,kn=w==="x"?dr:fr,Ot=P[k],mr=k==="y"?"height":"width",ei=Ot+x[Se],se=Ot-x[kn],ti=[$n,zn].indexOf(y)!==-1,Ro=($t=W==null?void 0:W[k])!=null?$t:0,Xu=ti?ei:Ot-_[mr]-j[mr]-Ro+$.altAxis,Yu=ti?Ot+_[mr]+j[mr]-Ro-$.altAxis:se,Io=h&&ti?Tq(Xu,Ot,Yu):kc(h?Xu:ei,Ot,h?Yu:se);P[k]=Io,Y[k]=Io-Ot}t.modifiersData[r]=Y}}const oX={name:"preventOverflow",enabled:!0,phase:"main",fn:iX,requiresIfExists:["offset"]};function aX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sX(e){return e===Hn(e)||!lr(e)?Mb(e):aX(e)}function lX(e){var t=e.getBoundingClientRect(),n=nl(t.width)/e.offsetWidth||1,r=nl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function cX(e,t,n){n===void 0&&(n=!1);var r=lr(t),i=lr(t)&&lX(t),o=To(t),a=rl(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Zr(t)!=="body"||Nb(o))&&(l=sX(t)),lr(t)?(c=rl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Lb(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function uX(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function dX(e){var t=uX(e);return wq.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function fX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pX(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Cw={placement:"bottom",modifiers:[],strategy:"absolute"};function jw(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Qt={arrowShadowColor:Ba("--popper-arrow-shadow-color"),arrowSize:Ba("--popper-arrow-size","8px"),arrowSizeHalf:Ba("--popper-arrow-size-half"),arrowBg:Ba("--popper-arrow-bg"),transformOrigin:Ba("--popper-transform-origin"),arrowOffset:Ba("--popper-arrow-offset")};function vX(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 yX={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"},bX=e=>yX[e],Pw={scroll:!0,resize:!0};function xX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Pw,...e}}:t={enabled:e,options:Pw},t}const SX={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`}},wX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{_w(e)},effect:({state:e})=>()=>{_w(e)}},_w=e=>{e.elements.popper.style.setProperty(Qt.transformOrigin.var,bX(e.placement))},kX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{CX(e)}},CX=e=>{var n;if(!e.placement)return;const t=jX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Qt.arrowSize.varRef,height:Qt.arrowSize.varRef,zIndex:-1});const r={[Qt.arrowSizeHalf.var]:`calc(${Qt.arrowSize.varRef} / 2 - 1px)`,[Qt.arrowOffset.var]:`calc(${Qt.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},jX=e=>{if(e.startsWith("top"))return{property:"bottom",value:Qt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Qt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Qt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Qt.arrowOffset.varRef}},PX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Tw(e)},effect:({state:e})=>()=>{Tw(e)}},Tw=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=vX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Qt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},_X={"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"}},TX={"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 EX(e,t="ltr"){var r;const n=((r=_X[e])==null?void 0:r[t])||e;return t==="ltr"?n:TX[e]??n}function AX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,v=m.useRef(null),b=m.useRef(null),x=m.useRef(null),y=EX(r,h),g=m.useRef(()=>{}),S=m.useCallback(()=>{var $;!t||!v.current||!b.current||(($=g.current)==null||$.call(g),x.current=gX(v.current,b.current,{placement:y,modifiers:[PX,kX,wX,{...SX,enabled:!!p},{name:"eventListeners",...xX(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:l??[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:i}),x.current.forceUpdate(),g.current=x.current.destroy)},[y,t,n,p,a,o,l,c,u,f,d,i]);m.useEffect(()=>()=>{var $;!v.current&&!b.current&&(($=x.current)==null||$.destroy(),x.current=null)},[]);const w=m.useCallback($=>{v.current=$,S()},[S]),k=m.useCallback(($={},W=null)=>({...$,ref:Mt(w,W)}),[w]),P=m.useCallback($=>{b.current=$,S()},[S]),_=m.useCallback(($={},W=null)=>({...$,ref:Mt(P,W),style:{...$.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,P,p]),j=m.useCallback(($={},W=null)=>{const{size:Y,shadowColor:ee,bg:I,style:L,...N}=$;return{...N,ref:W,"data-popper-arrow":"",style:$X($)}},[]),z=m.useCallback(($={},W=null)=>({...$,ref:W,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=x.current)==null||$.update()},forceUpdate(){var $;($=x.current)==null||$.forceUpdate()},transformOrigin:Qt.transformOrigin.varRef,referenceRef:w,popperRef:P,getPopperProps:_,getArrowProps:j,getArrowInnerProps:z,getReferenceProps:k}}function $X(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}const[hue,gue,vue,yue]=YH(),[bue,zX]=_e({strict:!1,name:"MenuContext"});var RX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wa=new WeakMap,Id=new WeakMap,Md={},x0=0,Y_=function(e){return e&&(e.host||Y_(e.parentNode))},IX=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})},MX=function(e,t,n,r){var i=IX(t,Array.isArray(e)?e:[e]);Md[n]||(Md[n]=new WeakMap);var o=Md[n],a=[],l=new Set,c=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var h=p.getAttribute(r),v=h!==null&&h!=="false",b=(Wa.get(p)||0)+1,x=(o.get(p)||0)+1;Wa.set(p,b),o.set(p,x),a.push(p),b===1&&v&&Id.set(p,!0),x===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),l.clear(),x0++,function(){a.forEach(function(f){var p=Wa.get(f)-1,h=o.get(f)-1;Wa.set(f,p),o.set(f,h),p||(Id.has(f)||f.removeAttribute(r),Id.delete(f)),h||f.removeAttribute(n)}),x0--,x0||(Wa=new WeakMap,Wa=new WeakMap,Id=new WeakMap,Md={})}},LX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=RX(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),MX(r,i,n,"aria-hidden")):function(){return null}},NX=Object.defineProperty,DX=(e,t,n)=>t in e?NX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OX=(e,t,n)=>(DX(e,t+"",n),n);class FX{constructor(){OX(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 Tv=new FX;function Q_(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const i=e.current;if(i){if(t){const o=Tv.add(i);r(o)}return()=>{Tv.remove(i),r(0)}}},[t,e]),n}function BX(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:l,onEsc:c}=e,u=m.useRef(null),d=m.useRef(null),[f,p,h]=VX(r,"chakra-modal","chakra-modal--header","chakra-modal--body");WX(u,t&&a);const v=Q_(u,t),b=m.useRef(null),x=m.useCallback(z=>{b.current=z.target},[]),y=m.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&(n==null||n()),c==null||c())},[o,n,c]),[g,S]=m.useState(!1),[w,k]=m.useState(!1),P=m.useCallback((z={},$=null)=>({role:"dialog",...z,ref:Mt($,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":g?p:void 0,"aria-describedby":w?h:void 0,onClick:he(z.onClick,W=>W.stopPropagation())}),[h,w,f,p,g]),_=m.useCallback(z=>{z.stopPropagation(),b.current===z.target&&Tv.isTopModal(u.current)&&(i&&(n==null||n()),l==null||l())},[n,i,l]),j=m.useCallback((z={},$=null)=>({...z,ref:Mt($,d),onClick:he(z.onClick,_),onKeyDown:he(z.onKeyDown,y),onMouseDown:he(z.onMouseDown,x)}),[y,x,_]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:u,overlayRef:d,getDialogProps:P,getDialogContainerProps:j,index:v}}function WX(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return LX(e.current)},[t,e,n])}function VX(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}const[UX,Ra]=_e({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[HX,yo]=_e({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Du=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:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:v,onCloseComplete:b}=t,x=Qe("Modal",t),g={...BX(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return s.jsx(HX,{value:g,children:s.jsx(UX,{value:x,children:s.jsx($i,{...v,onExitComplete:b,children:g.isOpen&&s.jsx(hl,{...n,children:r})})})})};Du.displayName="Modal";var Af="right-scroll-bar-position",$f="width-before-scroll-bar",GX="with-scroll-bars-hidden",KX="--removed-body-scroll-bar-size",Z_=l_(),S0=function(){},$m=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:S0,onWheelCapture:S0,onTouchMoveCapture:S0}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,b=e.inert,x=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,S=e.gapMode,w=o_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,P=i_([n,t]),_=Wr(Wr({},w),i);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:Z_,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:b,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(l),Wr(Wr({},_),{ref:P})):m.createElement(g,Wr({},_,{className:c,ref:P}),l))});$m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$m.classNames={fullWidth:$f,zeroRight:Af};var qX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qX();return t&&e.setAttribute("nonce",t),e}function YX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ZX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=XX())&&(YX(t,n),QX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},JX=function(){var e=ZX();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},J_=function(){var e=JX(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},eY={left:0,top:0,right:0,gap:0},w0=function(e){return parseInt(e||"",10)||0},tY=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[w0(n),w0(r),w0(i)]},nY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eY;var t=tY(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])}},rY=J_(),Ds="data-scroll-locked",iY=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` + .`.concat(GX,` { overflow: hidden `).concat(r,`; padding-right: `).concat(l,"px ").concat(r,`; } @@ -382,18 +382,18 @@ Error generating stack: `+o.message+` } body[`).concat(Ds,`] { - `).concat(QX,": ").concat(l,`px; + `).concat(KX,": ").concat(l,`px; } -`)},$w=function(){var e=parseInt(document.body.getAttribute(Ds)||"0",10);return isFinite(e)?e:0},cY=function(){m.useEffect(function(){return document.body.setAttribute(Ds,($w()+1).toString()),function(){var e=$w()-1;e<=0?document.body.removeAttribute(Ds):document.body.setAttribute(Ds,e.toString())}},[])},uY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;cY();var o=m.useMemo(function(){return aY(i)},[i]);return m.createElement(sY,{styles:lY(o,!t,i,n?"":"!important")})},Ev=!1;if(typeof window<"u")try{var Ld=Object.defineProperty({},"passive",{get:function(){return Ev=!0,!0}});window.addEventListener("test",Ld,Ld),window.removeEventListener("test",Ld,Ld)}catch{Ev=!1}var Va=Ev?{passive:!1}:!1,dY=function(e){return e.tagName==="TEXTAREA"},iT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dY(e)&&n[t]==="visible")},fY=function(e){return iT(e,"overflowY")},pY=function(e){return iT(e,"overflowX")},zw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=oT(e,r);if(i){var o=aT(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},oT=function(e,t){return e==="v"?fY(t):pY(t)},aT=function(e,t){return e==="v"?mY(t):hY(t)},gY=function(e,t){return e==="h"&&t==="rtl"?-1:1},vY=function(e,t,n,r,i){var o=gY(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,p=0;do{if(!l)break;var h=aT(e,l),v=h[0],b=h[1],x=h[2],y=b-x-o*v;(v||y)&&oT(e,l)&&(f+=y,p+=v);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},Nd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rw=function(e){return[e.deltaX,e.deltaY]},Iw=function(e){return e&&"current"in e?e.current:e},yY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bY=function(e){return` +`)},Ew=function(){var e=parseInt(document.body.getAttribute(Ds)||"0",10);return isFinite(e)?e:0},oY=function(){m.useEffect(function(){return document.body.setAttribute(Ds,(Ew()+1).toString()),function(){var e=Ew()-1;e<=0?document.body.removeAttribute(Ds):document.body.setAttribute(Ds,e.toString())}},[])},aY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;oY();var o=m.useMemo(function(){return nY(i)},[i]);return m.createElement(rY,{styles:iY(o,!t,i,n?"":"!important")})},Ev=!1;if(typeof window<"u")try{var Ld=Object.defineProperty({},"passive",{get:function(){return Ev=!0,!0}});window.addEventListener("test",Ld,Ld),window.removeEventListener("test",Ld,Ld)}catch{Ev=!1}var Va=Ev?{passive:!1}:!1,sY=function(e){return e.tagName==="TEXTAREA"},eT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sY(e)&&n[t]==="visible")},lY=function(e){return eT(e,"overflowY")},cY=function(e){return eT(e,"overflowX")},Aw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=tT(e,r);if(i){var o=nT(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},uY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tT=function(e,t){return e==="v"?lY(t):cY(t)},nT=function(e,t){return e==="v"?uY(t):dY(t)},fY=function(e,t){return e==="h"&&t==="rtl"?-1:1},pY=function(e,t,n,r,i){var o=fY(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,p=0;do{if(!l)break;var h=nT(e,l),v=h[0],b=h[1],x=h[2],y=b-x-o*v;(v||y)&&tT(e,l)&&(f+=y,p+=v);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},Nd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$w=function(e){return[e.deltaX,e.deltaY]},zw=function(e){return e&&"current"in e?e.current:e},mY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hY=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},xY=0,Ua=[];function SY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(xY++)[0],o=m.useState(rT)[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(i));var b=GG([e.lockRef.current],(e.shards||[]).map(Iw),!0).filter(Boolean);return b.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(b,x){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var y=Nd(b),g=n.current,S="deltaX"in b?b.deltaX:g[0]-y[0],w="deltaY"in b?b.deltaY:g[1]-y[1],k,P=b.target,_=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in b&&_==="h"&&P.type==="range")return!1;var j=window.getSelection(),z=j&&j.anchorNode,$=z?z===P||z.contains(P):!1;if($)return!1;var W=zw(_,P);if(!W)return!0;if(W?k=_:(k=_==="v"?"h":"v",W=zw(_,P)),!W)return!1;if(!r.current&&"changedTouches"in b&&(S||w)&&(r.current=k),!k)return!0;var Y=r.current||k;return vY(Y,x,b,Y==="h"?S:w)},[]),c=m.useCallback(function(b){var x=b;if(!(!Ua.length||Ua[Ua.length-1]!==o)){var y="deltaY"in x?Rw(x):Nd(x),g=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&yY(k.delta,y)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var S=(a.current.shards||[]).map(Iw).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?l(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(b,x,y,g){var S={name:b,delta:x,target:y,should:g,shadowParent:wY(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(b){n.current=Nd(b),r.current=void 0},[]),f=m.useCallback(function(b){u(b.type,Rw(b),b.target,l(b,e.lockRef.current))},[]),p=m.useCallback(function(b){u(b.type,Nd(b),b.target,l(b,e.lockRef.current))},[]);m.useEffect(function(){return Ua.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Va),document.addEventListener("touchmove",c,Va),document.addEventListener("touchstart",d,Va),function(){Ua=Ua.filter(function(b){return b!==o}),document.removeEventListener("wheel",c,Va),document.removeEventListener("touchmove",c,Va),document.removeEventListener("touchstart",d,Va)}},[]);var h=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(o,{styles:bY(i)}):null,h?m.createElement(uY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kY=KG(nT,SY);var sT=m.forwardRef(function(e,t){return m.createElement($m,Wr({},e,{ref:t,sideCar:kY}))});sT.classNames=$m.classNames;function lT(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=yo(),[p,h]=Ey();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const v=tT(r,f);return s.jsx(O_,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d,children:s.jsx(sT,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&o,forwardProps:!0,children:e.children})})}const CY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??Tr.exit(ua.exit,i),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)??Tr.enter(ua.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??Tr.exit(ua.exit,o),...i?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Zi={initial:"initial",animate:"enter",exit:"exit",variants:CY},jY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:a,offsetX:l=0,offsetY:c=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,v=r?i&&r:!0,b=i||r?"enter":"exit",x={offsetX:l,offsetY:c,reverse:o,transition:u,transitionEnd:d,delay:f};return s.jsx($i,{...p,custom:x,children:v&&s.jsx(Xn.div,{ref:n,className:V("chakra-offset-slide",a),custom:x,...Zi,animate:b,...h})})});jY.displayName="SlideFade";const PY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>({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)??Tr.exit(ua.exit,i)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Tr.enter(ua.enter,n),transitionEnd:e==null?void 0:e.enter})},Ob={initial:"exit",animate:"enter",exit:"exit",variants:PY},_Y=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:a=.95,className:l,transition:c,transitionEnd:u,delay:d,animatePresenceProps:f,...p}=t,h=r?i&&r:!0,v=i||r?"enter":"exit",b={initialScale:a,reverse:o,transition:c,transitionEnd:u,delay:d};return s.jsx($i,{...f,custom:b,children:h&&s.jsx(Xn.div,{ref:n,className:V("chakra-offset-slide",l),...Ob,animate:v,custom:b,...p})})});_Y.displayName="ScaleFade";const TY={slideInBottom:{...Zi,custom:{offsetY:16,reverse:!0}},slideInRight:{...Zi,custom:{offsetX:16,reverse:!0}},slideInTop:{...Zi,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Zi,custom:{offsetX:-16,reverse:!0}},scale:{...Ob,custom:{initialScale:.95,reverse:!0}},none:{}},EY=D(Xn.section),AY=e=>TY[e||"none"],cT=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=AY(n),...i}=e;return s.jsx(EY,{ref:t,...r,...i})});cT.displayName="ModalTransition";const zm=B((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c}=yo(),u=l(a,t),d=c(i),f=V("chakra-modal__content",n),p=Ra(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},v={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:b}=yo();return s.jsx(lT,{children:s.jsx(D.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:s.jsx(cT,{preset:b,motionProps:o,className:f,...u,__css:h,children:r})})})});zm.displayName="ModalContent";const gl=B((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=yo();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=V("chakra-modal__body",n),l=Ra();return s.jsx(D.div,{ref:t,className:a,id:i,...r,__css:l.body})});gl.displayName="ModalBody";const Ou=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=yo(),a=V("chakra-modal__close-btn",r),l=Ra();return s.jsx(jm,{ref:t,__css:l.closeButton,className:a,onClick:he(n,c=>{c.stopPropagation(),o()}),...i})});Ou.displayName="ModalCloseButton";const Rm=B((e,t)=>{const{className:n,...r}=e,i=V("chakra-modal__footer",n),o=Ra(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...o.footer};return s.jsx(D.footer,{ref:t,...r,__css:a,className:i})});Rm.displayName="ModalFooter";const vl=B((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=yo();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=V("chakra-modal__header",n),l=Ra(),c={flex:0,...l.header};return s.jsx(D.header,{ref:t,className:a,id:i,...r,__css:c})});vl.displayName="ModalHeader";const $Y={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Tr.enter(ua.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)??Tr.exit(ua.exit,n),transitionEnd:t==null?void 0:t.exit})},uT={initial:"exit",animate:"enter",exit:"exit",variants:$Y},zY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:l,delay:c,animatePresenceProps:u,...d}=t,f=i||r?"enter":"exit",p=r?i&&r:!0,h={transition:a,transitionEnd:l,delay:c};return s.jsx($i,{...u,custom:h,children:p&&s.jsx(Xn.div,{ref:n,className:V("chakra-fade",o),custom:h,...uT,animate:f,...d})})});zY.displayName="Fade";const RY=D(Xn.div),yl=B((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,a=V("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ra().overlay},{motionPreset:u}=yo(),f=i||(u==="none"?{}:uT);return s.jsx(RY,{...f,__css:c,ref:t,className:a,...o})});yl.displayName="ModalOverlay";function IY(e){const{leastDestructiveRef:t,...n}=e;return s.jsx(Du,{...n,initialFocusRef:t})}const MY=B((e,t)=>s.jsx(zm,{ref:t,role:"alertdialog",...e})),[LY,NY]=_e(),DY={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function OY(e,t){var n;if(e)return((n=DY[e])==null?void 0:n[t])??e}function dT(e){var u;const{isOpen:t,onClose:n,placement:r="right",children:i,...o}=e,a=zi(),l=(u=a.components)==null?void 0:u.Drawer,c=OY(r,a.direction);return s.jsx(LY,{value:{placement:c},children:s.jsx(Du,{isOpen:t,onClose:n,styleConfig:l,...o,children:i})})}const Mw={exit:{duration:.15,ease:pi.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},FY={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:i}=hv({direction:e});return{...i,transition:(t==null?void 0:t.exit)??Tr.exit(Mw.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:i}=hv({direction:e});return{...i,transition:(n==null?void 0:n.enter)??Tr.enter(Mw.enter,r),transitionEnd:t==null?void 0:t.enter}}},fT=m.forwardRef(function(t,n){const{direction:r="right",style:i,unmountOnExit:o,in:a,className:l,transition:c,transitionEnd:u,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,v=hv({direction:r}),b=Object.assign({position:"fixed"},v.position,i),x=o?a&&o:!0,y=a||o?"enter":"exit",g={transitionEnd:u,transition:c,direction:r,delay:d};return s.jsx($i,{...p,custom:g,children:x&&s.jsx(Xn.div,{...h,ref:n,initial:"exit",className:V("chakra-slide",l),animate:y,exit:"exit",custom:g,variants:FY,style:b,...f})})});fT.displayName="Slide";const BY=D(fT),Fb=B((e,t)=>{const{className:n,children:r,motionProps:i,containerProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c,isOpen:u}=yo(),d=l(a,t),f=c(o),p=V("chakra-modal__content",n),h=Ra(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=NY();return s.jsx(lT,{children:s.jsx(D.div,{...f,className:"chakra-modal__content-container",__css:b,children:s.jsx(BY,{motionProps:i,direction:x,in:u,className:p,...d,__css:v,children:r})})})});Fb.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 VY(e,t,n){return(e-t)*100/(n-t)}ju({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});ju({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const UY=ju({"0%":{left:"-40%"},"100%":{left:"100%"}}),HY=ju({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function GY(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:l="progressbar"}=e,c=VY(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 o=="function"?o(t,c):i})(),role:l},percent:c,value:t}}const[KY,qY]=_e({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),XY=B((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:o,role:a,...l}=e,c=GY({value:i,min:n,max:r,isIndeterminate:o,role:a}),d={height:"100%",...qY().filledTrack};return s.jsx(D.div,{ref:t,style:{width:`${c.percent}%`,...l.style},...c.bind,...l,__css:d})}),_p=B((e,t)=>{var _;const{value:n,min:r=0,max:i=100,hasStripe:o,isAnimated:a,children:l,borderRadius:c,isIndeterminate:u,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:v,...b}=$e(e),x=Qe("Progress",e),y=c??((_=x.track)==null?void 0:_.borderRadius),g={animation:`${HY} 1s linear infinite`},k={...!u&&o&&a&&g,...u&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${UY} 1s ease infinite normal none running`}},P={overflow:"hidden",position:"relative",...x.track};return s.jsx(D.div,{ref:t,borderRadius:y,__css:P,...b,children:s.jsxs(KY,{value:x,children:[s.jsx(XY,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:i,value:n,isIndeterminate:u,css:k,borderRadius:y,title:h,role:v}),l]})})});_p.displayName="Progress";function YY(e){return e&&Nt(e)&&Nt(e.target)}function QY(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:a,isNative:l,...c}=e,[u,d]=m.useState(r||""),f=typeof n<"u",p=f?n:u,h=m.useRef(null),v=m.useCallback(()=>{const k=h.current;if(!k)return;let P="input:not(:disabled):checked";const _=k.querySelector(P);if(_){_.focus();return}P="input:not(:disabled)";const j=k.querySelector(P);j==null||j.focus()},[]),x=`radio-${m.useId()}`,y=i||x,g=m.useCallback(k=>{const P=YY(k)?k.target.value:k;f||d(P),t==null||t(String(P))},[t,f]),S=m.useCallback((k={},P=null)=>({...k,ref:Mt(P,h),role:"radiogroup"}),[]),w=m.useCallback((k={},P=null)=>({...k,ref:P,name:y,[l?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(j){g(j)},"data-radiogroup":!0}),[l,y,g,p]);return{getRootProps:S,getRadioProps:w,name:y,ref:h,focus:v,setValue:d,value:p,onChange:g,isDisabled:o,isFocusable:a,htmlProps:c}}const[ZY,pT]=_e({name:"RadioGroupContext",strict:!1}),mT=B((e,t)=>{const{colorScheme:n,size:r,variant:i,children:o,className:a,isDisabled:l,isFocusable:c,...u}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:v}=QY(u),b=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:i,isDisabled:l,isFocusable:c}),[h,r,f,n,d,i,l,c]);return s.jsx(ZY,{value:b,children:s.jsx(D.div,{...p(v,t),className:V("chakra-radio-group",a),children:o})})});mT.displayName="RadioGroup";function JY(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:l,isInvalid:c,name:u,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...v}=e,b=`radio-${m.useId()}`,x=Iu(),g=!!pT()||!!p;let w=!!x&&!g?x.id:b;w=f??w;const k=i??(x==null?void 0:x.isDisabled),P=o??(x==null?void 0:x.isReadOnly),_=a??(x==null?void 0:x.isRequired),j=c??(x==null?void 0:x.isInvalid),[z,$]=m.useState(!1),[W,Y]=m.useState(!1),[ee,I]=m.useState(!1),[L,N]=m.useState(!!t),R=typeof n<"u",F=R?n:L,M=m.useRef(!1);m.useEffect(()=>JP(re=>{M.current=re}),[]);const G=m.useCallback(re=>{if(P||k){re.preventDefault();return}R||N(re.currentTarget.checked),l==null||l(re)},[R,k,P,l]),Z=m.useCallback(re=>{re.key===" "&&I(!0)},[I]),ae=m.useCallback(re=>{re.key===" "&&I(!1)},[I]),oe=m.useCallback((re={},ze=null)=>({...re,ref:ze,"data-active":de(ee),"data-hover":de(W),"data-disabled":de(k),"data-invalid":de(j),"data-checked":de(F),"data-focus":de(z),"data-focus-visible":de(z&&M.current),"data-readonly":de(P),"aria-hidden":!0,onMouseDown:he(re.onMouseDown,()=>I(!0)),onMouseUp:he(re.onMouseUp,()=>I(!1)),onMouseEnter:he(re.onMouseEnter,()=>Y(!0)),onMouseLeave:he(re.onMouseLeave,()=>Y(!1))}),[ee,W,k,j,F,z,P]),{onFocus:Q,onBlur:ue}=x??{},ce=m.useCallback((re={},ze=null)=>{const ye=k&&!r;return{...re,id:w,ref:ze,type:"radio",name:u,value:d,onChange:he(re.onChange,G),onBlur:he(ue,re.onBlur,()=>$(!1)),onFocus:he(Q,re.onFocus,()=>$(!0)),onKeyDown:he(re.onKeyDown,Z),onKeyUp:he(re.onKeyUp,ae),checked:F,disabled:ye,readOnly:P,required:_,"aria-invalid":gi(j),"aria-disabled":gi(ye),"aria-required":gi(_),"data-readonly":de(P),"aria-describedby":h,style:r_}},[k,r,w,u,d,G,ue,Q,Z,ae,F,P,_,j,h]);return{state:{isInvalid:j,isFocused:z,isChecked:F,isActive:ee,isHovered:W,isDisabled:k,isReadOnly:P,isRequired:_},getRadioProps:oe,getInputProps:ce,getLabelProps:(re={},ze=null)=>({...re,ref:ze,onMouseDown:he(re.onMouseDown,eQ),"data-disabled":de(k),"data-checked":de(F),"data-invalid":de(j)}),getRootProps:(re,ze=null)=>({htmlFor:w,...re,ref:ze,"data-disabled":de(k),"data-checked":de(F),"data-invalid":de(j)}),htmlProps:v}}function eQ(e){e.preventDefault(),e.stopPropagation()}const Av=B((e,t)=>{const n=pT(),{onChange:r,value:i}=e,o=Qe("Radio",{...n,...e}),a=$e(e),{spacing:l="0.5rem",children:c,isDisabled:u=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&&i!=null&&(h=n.value===i);let v=r;n!=null&&n.onChange&&i!=null&&(v=L$(n.onChange,r));const b=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:y,getLabelProps:g,getRootProps:S,htmlProps:w}=JY({...p,isChecked:h,isFocusable:d,isDisabled:u,onChange:v,name:b}),[k,P]=a6(w,p6),_=y(P),j=x(f,t),z=g(),$=Object.assign({},k,S()),W={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...o.container},Y={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...o.control},ee={userSelect:"none",marginStart:l,...o.label};return s.jsxs(D.label,{className:"chakra-radio",...$,__css:W,children:[s.jsx("input",{className:"chakra-radio__input",...j}),s.jsx(D.span,{className:"chakra-radio__control",..._,__css:Y}),c&&s.jsx(D.span,{className:"chakra-radio__label",...z,__css:ee,children:c})]})});Av.displayName="Radio";const hT=B(function(t,n){const{children:r,placeholder:i,className:o,...a}=t;return s.jsxs(D.select,{...a,ref:n,className:V("chakra-select",o),children:[i&&s.jsx("option",{value:"",children:i}),r]})});hT.displayName="SelectField";const gT=B((e,t)=>{var S;const n=Qe("Select",e),{rootProps:r,placeholder:i,icon:o,color:a,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:p,...h}=$e(e),[v,b]=a6(h,p6),x=t_(b),y={width:"100%",height:"fit-content",position:"relative",color:a},g={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return s.jsxs(D.div,{className:"chakra-select__wrapper",__css:y,...v,...r,children:[s.jsx(hT,{ref:t,height:c??l,minH:u??d,placeholder:i,...x,__css:g,children:e.children}),s.jsx(vT,{"data-disabled":de(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:o})]})});gT.displayName="Select";const tQ=e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),nQ=D("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),vT=e=>{const{children:t=s.jsx(tQ,{}),...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 s.jsx(nQ,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};vT.displayName="SelectIcon";const Eo=D("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Eo.displayName="Spacer";const yT=e=>s.jsx(D.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});yT.displayName="StackItem";function rQ(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{"&":ry(n,i=>r[i])}}const we=B((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:a="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",v=m.useMemo(()=>rQ({spacing:a,direction:h}),[a,h]),b=!!u,x=!f&&!b,y=m.useMemo(()=>{const S=ty(c);return x?S:S.map((w,k)=>{const P=typeof w.key<"u"?w.key:k,_=k+1===S.length,z=f?s.jsx(yT,{children:w},P):w;if(!b)return z;const $=m.cloneElement(u,{__css:v}),W=_?null:$;return s.jsxs(m.Fragment,{children:[z,W]},P)})},[u,v,b,x,f,c]),g=V("chakra-stack",d);return s.jsx(D.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:h,flexWrap:l,gap:b?void 0:a,className:g,...p,children:y})});we.displayName="Stack";const ge=B((e,t)=>s.jsx(we,{align:"center",...e,direction:"row",ref:t}));ge.displayName="HStack";const Fu=B((e,t)=>s.jsx(we,{align:"center",...e,direction:"column",ref:t}));Fu.displayName="VStack";const[iQ,bT]=_e({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Go=B(function(t,n){const r=Qe("Stat",t),i={position:"relative",flex:"1 1 0%",...r.container},{className:o,children:a,...l}=$e(t);return s.jsx(iQ,{value:r,children:s.jsx(D.div,{ref:n,...l,className:V("chakra-stat",o),__css:i,children:s.jsx("dl",{children:a})})})});Go.displayName="Stat";const Ko=B(function(t,n){const r=bT();return s.jsx(D.dt,{ref:n,...t,className:V("chakra-stat__label",t.className),__css:r.label})});Ko.displayName="StatLabel";const Bi=B(function(t,n){const r=bT();return s.jsx(D.dd,{ref:n,...t,className:V("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});Bi.displayName="StatNumber";const[oQ,Ao]=_e({name:"StepContext"}),[aQ,Ia]=$r("Stepper"),sQ=B(function(t,n){const{orientation:r,status:i,showLastSeparator:o}=Ao(),a=Ia();return s.jsx(D.div,{ref:n,"data-status":i,"data-orientation":r,"data-stretch":de(o),__css:a.step,...t,className:V("chakra-step",t.className)})}),lQ=B(function(t,n){const{status:r}=Ao(),i=Ia();return s.jsx(D.p,{ref:n,"data-status":r,...t,className:V("chakra-step__description",t.className),__css:i.description})});function cQ(e){return s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:s.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 uQ(e){const{status:t}=Ao(),n=Ia(),r=t==="complete"?cQ:void 0;return s.jsx(At,{as:r,__css:n.icon,...e,className:V("chakra-step__icon",e.className)})}const Lw=B(function(t,n){const{children:r,...i}=t,{status:o,index:a}=Ao(),l=Ia();return s.jsx(D.div,{ref:n,"data-status":o,__css:l.number,...i,className:V("chakra-step__number",t.className),children:r||a+1})});function dQ(e){const{complete:t,incomplete:n,active:r}=e,i=Ao();let o=null;switch(i.status){case"complete":o=cn(t,i);break;case"incomplete":o=cn(n,i);break;case"active":o=cn(r,i);break}return o?s.jsx(s.Fragment,{children:o}):null}const fQ=B(function(t,n){const{status:r}=Ao(),i=Ia();return s.jsx(D.div,{ref:n,"data-status":r,...t,__css:i.indicator,className:V("chakra-step__indicator",t.className)})}),xT=B(function(t,n){const{orientation:r,status:i,isLast:o,showLastSeparator:a}=Ao(),l=Ia();return o&&!a?null:s.jsx(D.div,{ref:n,role:"separator","data-orientation":r,"data-status":i,__css:l.separator,...t,className:V("chakra-step__separator",t.className)})}),pQ=B(function(t,n){const{status:r}=Ao(),i=Ia();return s.jsx(D.h3,{ref:n,"data-status":r,...t,__css:i.title,className:V("chakra-step__title",t.className)})}),mQ=B(function(t,n){const r=Qe("Stepper",t),{children:i,index:o,orientation:a="horizontal",showLastSeparator:l=!1,...c}=$e(t),u=m.Children.toArray(i),d=u.length;function f(p){return po?"incomplete":"active"}return s.jsx(D.div,{ref:n,"aria-label":"Progress","data-orientation":a,...c,__css:r.stepper,className:V("chakra-stepper",t.className),children:s.jsx(aQ,{value:r,children:u.map((p,h)=>s.jsx(oQ,{value:{index:h,status:f(h),orientation:a,showLastSeparator:l,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),nc=B(function(t,n){const r=Qe("Switch",t),{spacing:i="0.5rem",children:o,...a}=$e(t),{getIndicatorProps:l,getInputProps:c,getCheckboxProps:u,getRootProps:d,getLabelProps:f}=_G(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]),v=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return s.jsxs(D.label,{...d(),className:V("chakra-switch",t.className),__css:p,children:[s.jsx("input",{className:"chakra-switch__input",...c({},n)}),s.jsx(D.span,{...u(),className:"chakra-switch__track",__css:h,children:s.jsx(D.span,{__css:r.thumb,className:"chakra-switch__thumb",...l()})}),o&&s.jsx(D.span,{className:"chakra-switch__label",...f(),__css:v,children:o})]})});nc.displayName="Switch";const[hQ,Bu]=_e({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),uu=B((e,t)=>{const n=Qe("Table",e),{className:r,layout:i,...o}=$e(e);return s.jsx(hQ,{value:n,children:s.jsx(D.table,{ref:t,__css:{tableLayout:i,...n.table},className:V("chakra-table",r),...o})})});uu.displayName="Table";const Tp=B((e,t)=>{const{overflow:n,overflowX:r,className:i,...o}=e;return s.jsx(D.div,{ref:t,className:V("chakra-table__container",i),...o,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Ep=B((e,t)=>{const n=Bu();return s.jsx(D.tbody,{...e,ref:t,__css:n.tbody})}),xt=B(({isNumeric:e,...t},n)=>{const r=Bu();return s.jsx(D.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),_t=B(({isNumeric:e,...t},n)=>{const r=Bu();return s.jsx(D.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),Ap=B((e,t)=>{const n=Bu();return s.jsx(D.thead,{...e,ref:t,__css:n.thead})}),Vr=B((e,t)=>{const n=Bu();return s.jsx(D.tr,{...e,ref:t,__css:n.tr})});function gQ(e,t){const n=e??"bottom",i={"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(i==null?void 0:i[t])??n}function vQ(e,t){const n=i=>({...t,...i,position:gQ((i==null?void 0:i.position)??(t==null?void 0:t.position),e)}),r=i=>{const o=n(i),a=UP(o);return Br.notify(a,o)};return r.update=(i,o)=>{Br.update(i,n(o))},r.promise=(i,o)=>{const a=r({...o.loading,status:"loading",duration:null});i.then(l=>r.update(a,{status:"success",duration:5e3,...cn(o.success,l)})).catch(l=>r.update(a,{status:"error",duration:5e3,...cn(o.error,l)}))},r.closeAll=Br.closeAll,r.close=Br.close,r.isActive=Br.isActive,r}function pr(e){const{theme:t}=NP(),n=GH();return m.useMemo(()=>vQ(t.direction,{...n,...e}),[e,t.direction,n])}const yQ={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]}}}},$v=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},zf=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function bQ(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:l=!0,onOpen:c,onClose:u,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:v=10,arrowShadowColor:b,arrowPadding:x,modifiers:y,isDisabled:g,gutter:S,offset:w,direction:k,...P}=e,{isOpen:_,onOpen:j,onClose:z}=wu({isOpen:p,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:$,getPopperProps:W,getArrowInnerProps:Y,getArrowProps:ee}=IX({enabled:_,placement:d,arrowPadding:x,modifiers:y,gutter:S,offset:w,direction:k}),I=m.useId(),N=`tooltip-${f??I}`,R=m.useRef(null),F=m.useRef(void 0),M=m.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=void 0)},[]),G=m.useRef(void 0),Z=m.useCallback(()=>{G.current&&(clearTimeout(G.current),G.current=void 0)},[]),ae=m.useCallback(()=>{Z(),z()},[z,Z]),oe=xQ(R,ae),Q=m.useCallback(()=>{if(!g&&!F.current){_&&oe();const ye=zf(R);F.current=ye.setTimeout(j,t)}},[oe,g,_,j,t]),ue=m.useCallback(()=>{M();const ye=zf(R);G.current=ye.setTimeout(ae,n)},[n,ae,M]),ce=m.useCallback(()=>{_&&r&&ue()},[r,ue,_]),Be=m.useCallback(()=>{_&&a&&ue()},[a,ue,_]),Ze=m.useCallback(ye=>{_&&ye.key==="Escape"&&ue()},[_,ue]);cf(()=>$v(R),"keydown",l?Ze:void 0),cf(()=>{if(!o)return null;const ye=R.current;if(!ye)return null;const ot=o6(ye);return ot.localName==="body"?zf(R):ot},"scroll",()=>{_&&o&&ae()},{passive:!0,capture:!0}),m.useEffect(()=>{g&&(M(),_&&z())},[g,_,z,M]),m.useEffect(()=>()=>{M(),Z()},[M,Z]),cf(()=>R.current,"pointerleave",ue);const te=m.useCallback((ye={},ot=null)=>({...ye,ref:Mt(R,ot,$),onPointerEnter:he(ye.onPointerEnter,ut=>{ut.pointerType!=="touch"&&Q()}),onClick:he(ye.onClick,ce),onPointerDown:he(ye.onPointerDown,Be),onFocus:he(ye.onFocus,Q),onBlur:he(ye.onBlur,ue),"aria-describedby":_?N:void 0}),[Q,ue,Be,_,N,ce,$]),re=m.useCallback((ye={},ot=null)=>W({...ye,style:{...ye.style,[Qt.arrowSize.var]:v?`${v}px`:void 0,[Qt.arrowShadowColor.var]:b}},ot),[W,v,b]),ze=m.useCallback((ye={},ot=null)=>{const ve={...ye.style,position:"relative",transformOrigin:Qt.transformOrigin.varRef};return{ref:ot,...P,...ye,id:N,role:"tooltip",style:ve}},[P,N]);return{isOpen:_,show:Q,hide:ue,getTriggerProps:te,getTooltipProps:ze,getTooltipPositionerProps:re,getArrowProps:ee,getArrowInnerProps:Y}}const k0="chakra-ui:close-tooltip";function xQ(e,t){return m.useEffect(()=>{const n=$v(e);return n.addEventListener(k0,t),()=>n.removeEventListener(k0,t)},[t,e]),()=>{const n=$v(e),r=zf(e);n.dispatchEvent(new r.CustomEvent(k0))}}const SQ=D(Xn.div),Bb=B((e,t)=>{const n=Yn("Tooltip",e),r=$e(e),i=zi(),{children:o,label:a,shouldWrapChildren:l,"aria-label":c,hasArrow:u,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:v,motionProps:b,animatePresenceProps:x,...y}=r,g=p??h??d??v;if(g){n.bg=g;const $=Yz(i,"colors",g);n[Qt.arrowBg.var]=$}const S=bQ({...y,direction:i.direction}),w=!m.isValidElement(o)||l;let k;if(w)k=s.jsx(D.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:o});else{const $=m.Children.only(o);k=m.cloneElement($,S.getTriggerProps($.props,WY($)))}const P=!!c,_=S.getTooltipProps({},t),j=P?tm(_,["role","id"]):_,z=r6(_,["role","id"]);return a?s.jsxs(s.Fragment,{children:[k,s.jsx($i,{...x,children:S.isOpen&&s.jsx(hl,{...f,children:s.jsx(D.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:s.jsxs(SQ,{variants:yQ,initial:"exit",animate:"enter",exit:"exit",...b,...j,__css:n,children:[a,P&&s.jsx(D.span,{srOnly:!0,...z,children:c}),u&&s.jsx(D.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:s.jsx(D.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):s.jsx(s.Fragment,{children:o})});Bb.displayName="Tooltip";const ct=B(function(t,n){const r=Yn("Heading",t),{className:i,...o}=$e(t);return s.jsx(D.h2,{ref:n,className:V("chakra-heading",t.className),...o,__css:r})});ct.displayName="Heading";const K=B(function(t,n){const r=Yn("Text",t),{className:i,align:o,decoration:a,casing:l,...c}=$e(t),u=ny({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return s.jsx(D.p,{ref:n,className:V("chakra-text",t.className),...u,...c,__css:r})});K.displayName="Text";const ST=B(function(t,n){const{spacing:r="0.5rem",spacingX:i,spacingY:o,children:a,justify:l,direction:c,align:u,className:d,shouldWrapChildren:f,...p}=t,h=m.useMemo(()=>f?m.Children.map(a,(v,b)=>s.jsx(Wb,{children:v},b)):a,[a,f]);return s.jsx(D.div,{ref:n,className:V("chakra-wrap",d),...p,children:s.jsx(D.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:l,alignItems:u,flexDirection:c,listStyleType:"none",gap:r,columnGap:i,rowGap:o,padding:"0"},children:h})})});ST.displayName="Wrap";const Wb=B(function(t,n){const{className:r,...i}=t;return s.jsx(D.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:V("chakra-wrap__listitem",r),...i})});Wb.displayName="WrapItem";var In=e=>_m({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});In({displayName:"ChevronUpIcon",path:s.jsx("polyline",{points:"18 15 12 9 6 15"})});In({displayName:"ChevronDownIcon",path:s.jsx("polyline",{points:"6 9 12 15 18 9"})});In({displayName:"ChevronLeftIcon",path:s.jsx("polyline",{points:"15 18 9 12 15 6"})});In({displayName:"ChevronRightIcon",path:s.jsx("polyline",{points:"9 18 15 12 9 6"})});In({displayName:"ChevronDownIcon",path:s.jsxs("g",{fill:"none",children:[s.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var wQ=In({displayName:"CloseIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});In({displayName:"FilterIcon",path:s.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});In({displayName:"CalendarIcon",path:s.jsxs("g",{children:[s.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),s.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),s.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),s.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});In({displayName:"PlusIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});In({displayName:"MinusIcon",path:s.jsx("g",{children:s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});In({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.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"}),s.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});In({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var kQ=In({displayName:"SearchIcon",path:s.jsxs("g",{children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});In({displayName:"CheckIcon",path:s.jsx("g",{children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})});function Ht(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 i(...d){r();for(const f of d)t[f]=c(f);return Ht(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Ht(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var CQ=Ht("app-shell").parts("container","inner","main"),wT=Ht("emptystate").parts("container","body","icon","title","descripton","actions","footer"),jQ=Ht("banner").parts("container","icon","content","title","description","actions","close"),PQ=Ht("hotkeys").parts("container","group","groupTitle","item","command","then"),_Q=Ht("loading-overlay").parts("overlay","text"),TQ=Ht("nav-group").parts("container","title","icon","content"),EQ=Ht("nav-item").parts("item","link","inner","icon","label"),AQ=Ht("nprogress").parts("container","bar"),$Q=Ht("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),zQ=Ht("search-input").parts("input","reset"),RQ=Ht("sidebar").parts("container","overlay","section","toggleWrapper","toggle");Ht("stepper").parts("container","steps","icon","content","title","separator");var IQ=Ht("structured-list").parts("list","item","button","header","cell","icon"),kT=Ht("property").parts("property","label","value"),MQ=Ht("select").parts("addon","field","element"),LQ=Ht("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:CT,defineMultiStyleConfig:NQ}=fe(v6.keys),DQ=CT(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"}}}}),OQ=CT({container:{borderRadius:"md"}}),FQ=NQ({defaultProps:{size:"sm"},baseStyle:OQ,variants:{snackbar:DQ}}),ci=g6("badge",["bg","color","shadow","border"]),Nw=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.200`,.8)(n);return{[ci.color.variable]:`colors.${t}.500`,_dark:{[ci.color.variable]:r},[ci.shadow.variable]:`inset 0 0 0px 1px ${ci.color.reference}`}},BQ={variants:{outline:e=>{const t=Nw(e);return{...t,_dark:{...t==null?void 0:t._dark,[ci.shadow.variable]:`inset 0 0 0px 1px ${ci.border.reference}`,[ci.color.variable]:`colors.${e.colorScheme}.200`,[ci.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Nw(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[ci.color.variable]:`colors.${e.colorScheme}.200`}}}}},jT=e=>{const{colorScheme:t}=e;return t==="gray"?{base:J("gray.100","whiteAlpha.300")(e),hover:J("gray.200","whiteAlpha.400")(e),active:J("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:J(`${t}.500`,`${t}.500`)(e),hover:J(`${t}.600`,`${t}.600`)(e),active:J(`${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:i,hover:o,active:a}=jT(e),{color:l=n==="gray"?J("black","white")(e):"white",bg:c=i,hoverBg:u=o,activeBg:d=a}=(t=WQ[n])!=null?t:{};return{bg:c,color:l,_hover:{bg:u,_disabled:{bg:c}},_active:{bg:d}}},VQ=e=>({shadow:"md",...Im(e)}),PT=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:i}=jT(e);return{..._T(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?i:r}}},_T=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=Ut(`${t}.200`,.12)(n),i=Ut(`${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:i}}}},UQ=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":J(`${t}.500`,`${t}.200`)(e),i=Ut(r,.1)(n),o=Ut(r,.16)(n),a=Ut(r,.24)(n);return{color:t==="white"?"white":J(`${t}.600`,`${t}.200`)(e),bg:i,_hover:{bg:o},_active:{bg:a}}},HQ=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":J(`${t}.700`,`${t}.500`)(e)}}},GQ=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),Im({...e,variant:"solid",colorScheme:t})},KQ=e=>Im({...e,variant:"solid"}),qQ=e=>PT({...e,variant:"outline"}),XQ={defaultProps:{size:"sm"},variants:{solid:Im,ghost:_T,outline:PT,subtle:UQ,elevated:VQ,link:HQ,primary:GQ,secondary:KQ,tertiary:qQ}},{definePartsStyle:ma,defineMultiStyleConfig:YQ}=fe(P6.keys),ta=X("card-bg"),C0=X("card-padding"),Vb=X("card-shadow"),j0=X("card-radius"),Ub=X("card-border-width","0"),Ji=X("card-border-color"),QQ=ma(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),ZQ=ma(e=>({container:{[ta.variable]:"colors.white",[Ji.variable]:"colors.blackAlpha.200",[Ub.variable]:"1px",[Vb.variable]:"shadows.sm",_dark:{[ta.variable]:"colors.whiteAlpha.200",[Ji.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Ji.variable]:"colors.blackAlpha.300",_dark:{[Ji.variable]:"colors.whiteAlpha.300"}}}})),JQ=ma(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[Ub.variable]:"0",[Vb.variable]:"none",[ta.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[ta.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[ta.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[ta.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),eZ=ma(e=>{const{colorScheme:t}=e;return{container:{[Ub.variable]:"1px",[Vb.variable]:"none",[Ji.variable]:t?`${t}.500`:"colors.blackAlpha.200",[ta.variable]:"transparent","&.chakra-linkbox:hover":{[Ji.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Ji.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Ji.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),tZ={sm:ma({container:{[j0.variable]:"radii.base",[C0.variable]:"space.3"}}),md:ma({container:{[j0.variable]:"radii.md",[C0.variable]:"space.4"}}),lg:ma({container:{[j0.variable]:"radii.xl",[C0.variable]:"space.6"}})},nZ=YQ({defaultProps:{variant:"elevated"},baseStyle:QQ,variants:{elevated:ZQ,outline:eZ,filled:JQ},sizes:tZ}),{definePartsStyle:rZ,defineMultiStyleConfig:iZ}=fe(y6.keys),oZ=rZ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),aZ=iZ({baseStyle:oZ,defaultProps:{colorScheme:"primary"}}),sZ={defaultProps:{size:"sm"}},{definePartsStyle:Rf,defineMultiStyleConfig:lZ}=fe(sy.keys),Dd=X("input-height"),Od=X("input-padding"),Dw=X("input-border-radius"),TT={sm:Rf({field:{[Dw.variable]:"radii.md"},group:{[Dw.variable]:"radii.md"}}),md:Rf({field:{[Od.variable]:"space.3",[Dd.variable]:"sizes.9"},group:{[Od.variable]:"space.3",[Dd.variable]:"sizes.9"}}),lg:Rf({field:{[Od.variable]:"space.3",[Dd.variable]:"sizes.10"},group:{[Od.variable]:"space.3",[Dd.variable]:"sizes.10"}})},ET=Rf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),Hb=lZ({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:ET},sizes:TT}),cZ={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},jc=Hb,uZ=Hb,dZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:ET},sizes:TT},fZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=jc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},pZ=Hb,{definePartsStyle:mi,defineMultiStyleConfig:mZ}=fe(sy.keys),ys=X("input-height"),bs=X("input-font-size"),xs=X("input-padding"),Ss=X("input-border-radius"),hZ=mi({addon:{height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference},field:{width:"100%",height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Oi={lg:{[bs.variable]:"fontSizes.lg",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.12"},md:{[bs.variable]:"fontSizes.md",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.10"},sm:{[bs.variable]:"fontSizes.sm",[xs.variable]:"space.3",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.8"},xs:{[bs.variable]:"fontSizes.xs",[xs.variable]:"space.2",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.6"}},gZ={lg:mi({field:Oi.lg,group:Oi.lg}),md:mi({field:Oi.md,group:Oi.md}),sm:mi({field:Oi.sm,group:Oi.sm}),xs:mi({field:Oi.xs,group:Oi.xs})};function Gb(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}var vZ=mi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Gb(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0 0 0 1px ${nt(t,r)}`},_focusVisible:{zIndex:1,borderColor:nt(t,n),boxShadow:`0 0 0 1px ${nt(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),yZ=mi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Gb(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r)},_focusVisible:{bg:"transparent",borderColor:nt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),bZ=mi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Gb(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0px 1px 0px 0px ${nt(t,r)}`},_focusVisible:{borderColor:nt(t,n),boxShadow:`0px 1px 0px 0px ${nt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),xZ=mi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),SZ={outline:vZ,filled:yZ,flushed:bZ,unstyled:xZ},eo=mZ({baseStyle:hZ,sizes:gZ,variants:SZ,defaultProps:{size:"md",variant:"outline"}}),Ow,Fw,wZ={...eo,defaultProps:jc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=jc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=eo.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=eo.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(Fw=(Ow=eo.variants)==null?void 0:Ow.unstyled)!=null?Fw:{}},sizes:jc.sizes},kZ={defaultProps:{size:"lg"}},CZ=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}}),jZ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:CZ}},{definePartsStyle:AT,defineMultiStyleConfig:PZ}=fe(x6.keys),_Z=AT(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}})),TZ=AT(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),EZ=PZ({baseStyle:_Z,variants:{dialog:TZ}}),{definePartsStyle:AZ,defineMultiStyleConfig:$Z}=fe(S6.keys),zZ=AZ(e=>({closeButton:{top:4,insetEnd:4}})),RZ=$Z({baseStyle:zZ}),{definePartsStyle:IZ,defineMultiStyleConfig:MZ}=fe(w6.keys),LZ=MZ({defaultProps:{colorScheme:"primary"},baseStyle:IZ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:NZ,defineMultiStyleConfig:DZ}=fe(k6.keys),OZ=DZ({defaultProps:{colorScheme:"primary"},baseStyle:NZ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:FZ,defineMultiStyleConfig:BZ}=fe(C6.keys),WZ=BZ({defaultProps:{colorScheme:"primary"},baseStyle:FZ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:VZ,defineMultiStyleConfig:UZ}=fe(j6.keys),HZ=UZ({defaultProps:{colorScheme:"primary"},baseStyle:VZ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),Fd=wt("tooltip-bg"),Bw=wt("tooltip-fg"),GZ=wt("popper-arrow-bg"),KZ=e=>({display:"flex",[Fd.variable]:"colors.white",[Bw.variable]:"colors.blackAlpha.900",_dark:{[Fd.variable]:"colors.gray.700",[Bw.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Fd.reference],[GZ.variable]:[Fd.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),qZ={baseStyle:KZ},Bd=X("stepper-indicator-size"),ha=X("stepper-accent-color"),na=X("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:XZ,definePartsStyle:to}=fe(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),YZ=to(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:na.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[na.variable]:"10px",[ha.variable]:`colors.${e}.500`,_dark:{[ha.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:na.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),QZ=to(e=>({})),ZZ=to(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:ha.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:ha.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),JZ=to(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[ha.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:ha.reference,color:`${n}.500`,_dark:{bg:Ut(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:ha.reference,color:`${n}.500`,_dark:{bg:Ut(`${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"}}}}}),eJ=XZ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:YZ,variants:{outline:QZ,solid:ZZ,subtle:JZ},sizes:{xs:to({stepper:{[Bd.variable]:"sizes.4",[na.variable]:"7px"}}),sm:to({stepper:{[Bd.variable]:"sizes.6",[na.variable]:"11px"}}),md:to({stepper:{[Bd.variable]:"sizes.7",[na.variable]:"14px"}}),lg:to({stepper:{[Bd.variable]:"sizes.8",[na.variable]:"16px"}})}}),{definePartsStyle:tJ,defineMultiStyleConfig:nJ}=fe(wT.keys),rJ=tJ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),iJ=nJ({baseStyle:rJ}),{definePartsStyle:$T,defineMultiStyleConfig:zT}=fe(AQ.keys),oJ=$T(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),aJ=zT({defaultProps:{colorScheme:"teal"},baseStyle:oJ}),sJ=$T(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),lJ=zT({defaultProps:{colorScheme:"primary"},baseStyle:sJ}),{defineMultiStyleConfig:cJ}=fe(kT.keys),uJ=cJ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),dJ={Alert:FQ,Badge:BQ,Button:XQ,Card:nZ,Checkbox:aZ,CloseButton:sZ,Heading:kZ,Kbd:jZ,Menu:EZ,Modal:RZ,Progress:LZ,Radio:OZ,Slider:WZ,Switch:HZ,Stepper:eJ,Tooltip:qZ,Input:jc,PinInput:dZ,FormLabel:cZ,NumberInput:uZ,Select:pZ,Textarea:fZ,SuiEmptyState:iJ,SuiNProgress:lJ,SuiProperty:uJ,SuiSelect:wZ},{definePartsStyle:fJ,defineMultiStyleConfig:pJ}=fe(CQ.keys),mJ=fJ({container:{},inner:{},main:{}}),hJ=pJ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:mJ}),{definePartsStyle:Kb,defineMultiStyleConfig:gJ}=fe(jQ.keys),vJ=Kb({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}}),yJ=Kb(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Ut(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),bJ=Kb(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),xJ=gJ({baseStyle:vJ,variants:{subtle:yJ,solid:bJ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),SJ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:RT,defineMultiStyleConfig:wJ}=fe(wT.keys),kJ=RT(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}}}),CJ=RT(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),jJ=wJ({baseStyle:kJ,variants:{centered:CJ}}),{definePartsStyle:PJ,defineMultiStyleConfig:_J}=fe(b6.keys),TJ=PJ({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),EJ=_J({variants:{horizontal:TJ}}),AJ={defaultProps:{spacing:4}},$J={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:zJ}=fe(PQ.keys),RJ=zJ({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:IJ,definePartsStyle:Mm}=fe(_Q.keys),MJ=Mm({overlay:{p:4}}),LJ=Mm(()=>({overlay:{flex:1,height:"100%"}})),NJ=Mm(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),DJ=Mm(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),OJ=IJ({defaultProps:{variant:"fill"},baseStyle:MJ,variants:{fill:LJ,fullscreen:NJ,overlay:DJ}}),{definePartsStyle:FJ,defineMultiStyleConfig:BJ}=fe(TQ.keys),WJ=FJ(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:{}})),VJ=BJ({baseStyle:WJ}),{definePartsStyle:Wu,defineMultiStyleConfig:UJ}=fe(EQ.keys),HJ=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"}})),GJ=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}}}}),KJ=Wu(e=>{const{colorScheme:t,theme:n}=e,r={bg:Ut(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Ut(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),qJ=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:{}}}),XJ=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:{}}}),Ww,Vw,Uw,Hw,YJ=UJ({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:HJ,sizes:{xs:{link:(Ww=Jo.components.Button.sizes)==null?void 0:Ww.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(Vw=Jo.components.Button.sizes)==null?void 0:Vw.sm,icon:{me:2,fontSize:"sm"}},md:{link:(Uw=Jo.components.Button.sizes)==null?void 0:Uw.md,icon:{me:2,fontSize:"md"}},lg:{link:(Hw=Jo.components.Button.sizes)==null?void 0:Hw.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:GJ,subtle:KJ,solid:qJ,"left-accent":XJ}}),{definePartsStyle:Wi,defineMultiStyleConfig:QJ}=fe($Q.keys),Gw=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),ZJ=Wi(e=>({details:{minW:0},secondaryLabel:Gw(e),tertiaryLabel:Gw(e)})),JJ={"2xs":Wi({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:Wi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:Wi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:Wi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:Wi({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:Wi({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":Wi({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},eee=QJ({defaultProps:{size:"md"},baseStyle:ZJ,sizes:JJ}),{defineMultiStyleConfig:tee}=fe(kT.keys),nee=tee({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:ree}=fe(zQ.keys),iee=ree({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:qb,defineMultiStyleConfig:oee}=fe(RQ.keys),aee=qb(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"}}}),see=qb(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"}}})),lee=qb(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),cee=oee({defaultProps:{variant:"default"},baseStyle:aee,variants:{default:see,compact:lee}}),{defineMultiStyleConfig:uee}=fe(MQ.keys),dee=uee({defaultProps:eo.defaultProps,baseStyle:eo.baseStyle,sizes:eo.sizes,variants:eo.variants}),{definePartsStyle:fee,defineMultiStyleConfig:pee}=fe(IQ.keys),mee=fee(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}})),hee=pee({defaultProps:{size:"md"},baseStyle:mee,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:Xb,defineMultiStyleConfig:gee}=fe(LQ.keys),Kw=X("timeline-row-start","minmax(0,1fr)"),vee=X("timeline-row-end","minmax(0,1fr)"),qw=X("timeline-col-start","minmax(0,1fr)"),Xw=X("timeline-col-end","minmax(0,1fr)"),yee=Xb(e=>({container:{display:"flex",[Kw.variable]:"minmax(0,1fr)",[vee.variable]:"minmax(0,1fr)",[qw.variable]:"auto",[Xw.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${Kw.reference}`,gridTemplateColumns:`${qw.reference} ${Xw.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"}}})),bee=Xb(e=>({icon:{}})),xee=Xb(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),See=gee({defaultProps:{variant:"solid",size:"sm"},baseStyle:yee,variants:{solid:bee,outline:xee},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),wee={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"}},kee=Me("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:Cee,definePartsStyle:jee}=fe(kee.keys),Yw=X("navbar-bg"),Qw=X("navbar-text-color","currentColor"),P0=X("navbar-link-bg","transparent"),Pee=["yellow","cyan"],_ee=Cee({baseStyle:jee(({colorScheme:e})=>{let t="currentColor";return e&&(t=Pee.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[Yw.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[Qw.variable]:t,bg:Yw.reference,color:Qw.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:P0.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:{[P0.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[P0.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),Tee={Form:EJ,SuiAppShell:hJ,SuiBanner:xJ,SuiCommand:SJ,SuiEmptyState:jJ,SuiFormLayout:AJ,SuiFormLegend:$J,SuiHotkeys:RJ,SuiStructuredList:hee,SuiLoadingOverlay:OJ,SuiNavGroup:VJ,SuiNavItem:YJ,SuiPersona:eee,SuiProperty:nee,SuiNProgress:aJ,SuiSearchInput:iee,SuiSelect:dee,SuiSidebar:cee,SuiTimeline:See,SuiIconBadge:wee,SuiNavbar:_ee},Eee=hb({colors:{primary:Jo.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:Tee}),Aee={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},_0={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"}},zv={primary:_0.purple,secondary:_0.cyan,..._0},$ee={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},zee={"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"},Ree={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"}},Iee={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},Mee=Iee,Lee={outline:`0 0 0 2px ${Ut(zv.primary[500],.6)({colors:zv})}`},Nee=Lee,Dee={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"}}},Oee={colors:zv,fonts:$ee,fontSizes:zee,textStyles:Ree,sizes:Mee,shadows:Nee,semanticTokens:Dee},IT=hb({...Oee,styles:Aee,components:dJ},Eee);function MT(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Fee(e,t){return e.find(n=>n.id===t)}function LT(e,t){const n=Fee(e,t);return n?e.indexOf(n):-1}function Bee(e,t,n=!0){let r=LT(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Wee(e,t,n=!0){let r=LT(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 no=e=>(e==null?void 0:e.ownerDocument)??document,bo=e=>e&&"window"in e&&e.window===e?e:no(e).defaultView||window;function Vee(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Uee(e){return Vee(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const Hee=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Gee(e){const t=bo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=bo(e);let{display:a,visibility:l}=o(e);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function Kee(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 NT(e,t){return Hee?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Gee(e)&&Kee(e,t)&&(!e.parentElement||NT(e.parentElement,e))}const DT=["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"],qee=DT.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";DT.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Xee(e,t){return e.matches(qee)&&!Yee(e)&&((t==null?void 0:t.skipVisibilityCheck)||NT(e))}function Yee(e){let t=e;for(;t!=null;){if(t instanceof bo(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function OT(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Yb=typeof document<"u"?Xt.useLayoutEffect:()=>{};let Rv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Rv.delete(e)});function Qee(e,t){if(e===t)return e;let n=Rv.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Rv.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Zee(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const o=Zw(i,t);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Zw(e[o],null)})}}}function Zw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function FT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=OT(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=Jee(o,a):i==="id"&&o&&a?t.id=Qee(o,a):i==="ref"&&o&&a?t.ref=Zee(o,a):t[i]=a!==void 0?a:o}}return t}function du(e){if(ete())e.focus({preventScroll:!0});else{let t=tte(e);e.focus(),nte(t)}}let Wd=null;function ete(){if(Wd==null){Wd=!1;try{document.createElement("div").focus({get preventScroll(){return Wd=!0,!0}})}catch{}}return Wd}function tte(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 ote(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ate(e){for(;e&&!Xee(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=bo(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,i=d=>{(Bt(d)===n||r)&&d.stopImmediatePropagation()},o=d=>{(Bt(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,du(n),c()))},a=d=>{(Bt(d)===e||r)&&d.stopImmediatePropagation()},l=d=>{(Bt(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,du(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let c=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),r=!1},u=requestAnimationFrame(c);return c}function Lm(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 Zb(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 $o(e){let t=null;return()=>(t==null&&(t=e()),t)}const $p=$o(function(){return Zb(/^Mac/i)}),ste=$o(function(){return Zb(/^iPhone/i)}),WT=$o(function(){return Zb(/^iPad/i)||$p()&&navigator.maxTouchPoints>1}),VT=$o(function(){return ste()||WT()}),lte=$o(function(){return Lm(/AppleWebKit/i)&&!cte()}),cte=$o(function(){return Lm(/Chrome/i)}),UT=$o(function(){return Lm(/Android/i)}),ute=$o(function(){return Lm(/Firefox/i)});let Xi=new Map,Iv=new Set;function Jw(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=Bt(r);if(!e(r)||!i)return;let o=Xi.get(i);o||(o=new Set,Xi.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=Bt(r);if(!e(r)||!i)return;let o=Xi.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Xi.delete(i)),Xi.size===0)){for(let a of Iv)a();Iv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Jw():document.addEventListener("DOMContentLoaded",Jw));function dte(){for(const[e]of Xi)"isConnected"in e&&!e.isConnected&&Xi.delete(e)}function fte(e){requestAnimationFrame(()=>{dte(),Xi.size===0?e():Iv.add(e)})}let ws="default",Mv="",If=new WeakMap;function pte(e){if(VT()){if(ws==="default"){const t=no(e);Mv=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ws="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";If.set(e,e.style[t]),e.style[t]="none"}}function e3(e){if(VT()){if(ws!=="disabled")return;ws="restoring",setTimeout(()=>{fte(()=>{if(ws==="restoring"){const t=no(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Mv||""),Mv="",ws="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&If.has(e)){let t=If.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),If.delete(e)}}function t3(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let T0=new WeakMap;function mte(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return t3(t);if(T0.has(t))return T0.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof bo(n).HTMLMetaElement&&(n.nonce||n.content)||t3(t)||void 0;return r!==void 0&&T0.set(t,r),r}function hte(e){return e.pointerType===""&&e.isTrusted?!0:UT()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function gte(e){return!UT()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fu(e,t,n=!0){var c,u;let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}=t;ute()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&e.target==="_blank"&&($p()?r=!0:i=!0);let l=lte()&&$p()&&!WT()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});fu.isOpening=n,du(e),e.dispatchEvent(l),fu.isOpening=!1}fu.isOpening=!1;const HT=Xt.createContext({register:()=>{}});HT.displayName="PressResponderContext";const vte=Xt.useInsertionEffect??Yb;function Mf(e){const t=m.useRef(null);return vte(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function GT(){let e=m.useRef(new Map),t=m.useCallback((i,o,a,l)=>{let c=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:l}),i.addEventListener(o,c,l)},[]),n=m.useCallback((i,o,a,l)=>{var u;let c=((u=e.current.get(a))==null?void 0:u.fn)||a;i.removeEventListener(o,c,l),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function yte(e,t){Yb(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function bte(e){let t=m.useContext(HT);if(t){let{register:n,ref:r,...i}=t;e=Qb(i,e),n()}return yte(t,e.ref),e}var Fs;class Vd{constructor(t,n,r,i){qx(this,Fs);ch(this,Fs,!0);let o=(i==null?void 0:i.target)??r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,c=0,u,d=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,d=r.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=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=l,this.y=c,this.key=r.key}continuePropagation(){ch(this,Fs,!1)}get shouldStopPropagation(){return Kx(this,Fs)}}Fs=new WeakMap;const n3=Symbol("linkClicked"),r3="react-aria-pressable-style",i3="data-react-aria-pressable";function xte(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=bte(e),[v,b]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:g}=GT(),S=m.useCallback((I,L)=>{let N=x.current;if(l||N.didFirePressStart)return!1;let R=!0;if(N.isTriggeringEvent=!0,r){let F=new Vd("pressstart",L,I);r(F),R=F.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,b(!0),R},[l,r,n]),w=m.useCallback((I,L,N=!0)=>{let R=x.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let F=!0;if(i){let M=new Vd("pressend",L,I);i(M),F=M.shouldStopPropagation}if(n&&n(!1),b(!1),t&&N&&!l){let M=new Vd("press",L,I);t(M),F&&(F=M.shouldStopPropagation)}return R.isTriggeringEvent=!1,F},[l,i,n,t]),k=Mf(w),P=m.useCallback((I,L)=>{let N=x.current;if(l)return!1;if(o){N.isTriggeringEvent=!0;let R=new Vd("pressup",L,I);return o(R),N.isTriggeringEvent=!1,R.shouldStopPropagation}return!0},[l,o]),_=Mf(P),j=m.useCallback(I=>{let L=x.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&w(Oo(L.target,I),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,g(),f||e3(L.target);for(let N of L.disposables)N();L.disposables=[]}},[f,g,w]),z=Mf(j);m.useEffect(()=>{l&&x.current.isPressed&&z({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let $=m.useCallback(I=>{d&&j(I)},[d,j]),W=m.useCallback(I=>{l||a==null||a(I)},[l,a]),Y=m.useCallback((I,L)=>{if(!l&&a){let N=new MouseEvent("click",I);ote(N,L),a(ite(N))}},[l,a]),ee=m.useMemo(()=>{let I=x.current,L={onKeyDown(R){var F;if(E0(R.nativeEvent,R.currentTarget)&&Mr(R.currentTarget,Bt(R))){o3(Bt(R),R.key)&&R.preventDefault();let M=!0;!I.isPressed&&!R.repeat&&(I.target=R.currentTarget,I.isPressed=!0,I.pointerType="keyboard",M=S(R,"keyboard"));let G=R.currentTarget,Z=ae=>{E0(ae,G)&&!ae.repeat&&Mr(G,Bt(ae))&&I.target&&_(Oo(I.target,ae),"keyboard")};y(no(R.currentTarget),"keyup",OT(Z,N),!0),M&&R.stopPropagation(),R.metaKey&&$p()&&((F=I.metaKeyEvents)==null||F.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(R){if(!(R&&!Mr(R.currentTarget,Bt(R)))&&R&&R.button===0&&!I.isTriggeringEvent&&!fu.isOpening){let F=!0;if(l&&R.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||hte(R.nativeEvent))){let M=S(R,"virtual"),G=_(R,"virtual"),Z=k(R,"virtual");W(R),F=M&&G&&Z}else if(I.isPressed&&I.pointerType!=="keyboard"){let M=I.pointerType||R.nativeEvent.pointerType||"virtual",G=_(Oo(R.currentTarget,R),M),Z=k(Oo(R.currentTarget,R),M,!0);F=G&&Z,I.isOverTarget=!1,W(R),z(R)}I.ignoreEmulatedMouseEvents=!1,F&&R.stopPropagation()}}},N=R=>{var F,M,G;if(I.isPressed&&I.target&&E0(R,I.target)){o3(Bt(R),R.key)&&R.preventDefault();let Z=Bt(R),ae=Mr(I.target,Z);k(Oo(I.target,R),"keyboard",ae),ae&&Y(R,I.target),g(),R.key!=="Enter"&&Jb(I.target)&&Mr(I.target,Z)&&!R[n3]&&(R[n3]=!0,fu(I.target,R,!1)),I.isPressed=!1,(F=I.metaKeyEvents)==null||F.delete(R.key)}else if(R.key==="Meta"&&((M=I.metaKeyEvents)!=null&&M.size)){let Z=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let ae of Z.values())(G=I.target)==null||G.dispatchEvent(new KeyboardEvent("keyup",ae))}};if(typeof PointerEvent<"u"){L.onPointerDown=M=>{if(M.button!==0||!Mr(M.currentTarget,Bt(M)))return;if(gte(M.nativeEvent)){I.pointerType="virtual";return}I.pointerType=M.pointerType;let G=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=M.pointerId,I.target=M.currentTarget,f||pte(I.target),G=S(M,I.pointerType);let Z=Bt(M);"releasePointerCapture"in Z&&("hasPointerCapture"in Z?Z.hasPointerCapture(M.pointerId)&&Z.releasePointerCapture(M.pointerId):Z.releasePointerCapture(M.pointerId)),y(no(M.currentTarget),"pointerup",R,!1),y(no(M.currentTarget),"pointercancel",F,!1)}G&&M.stopPropagation()},L.onMouseDown=M=>{if(Mr(M.currentTarget,Bt(M))&&M.button===0){if(u){let G=ate(M.target);G&&I.disposables.push(G)}M.stopPropagation()}},L.onPointerUp=M=>{!Mr(M.currentTarget,Bt(M))||I.pointerType==="virtual"||M.button===0&&!I.isPressed&&_(M,I.pointerType||M.pointerType)},L.onPointerEnter=M=>{M.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,S(Oo(I.target,M),I.pointerType))},L.onPointerLeave=M=>{M.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(Oo(I.target,M),I.pointerType,!1),$(M))};let R=M=>{if(M.pointerId===I.activePointerId&&I.isPressed&&M.button===0&&I.target){if(Mr(I.target,Bt(M))&&I.pointerType!=null){let G=!1,Z=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(G?z(M):(du(I.target),I.target.click()))},80);y(M.currentTarget,"click",()=>G=!0,!0),I.disposables.push(()=>clearTimeout(Z))}else z(M);I.isOverTarget=!1}},F=M=>{z(M)};L.onDragStart=M=>{Mr(M.currentTarget,Bt(M))&&z(M)}}return L},[y,l,u,g,f,$,S,W,Y]);return m.useEffect(()=>{if(!p)return;const I=no(p.current);if(!I||!I.head||I.getElementById(r3))return;const L=I.createElement("style");L.id=r3;let N=mte(I);N&&(L.nonce=N),L.textContent=` +`)},gY=0,Ua=[];function vY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(gY++)[0],o=m.useState(J_)[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(i));var b=WG([e.lockRef.current],(e.shards||[]).map(zw),!0).filter(Boolean);return b.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(b,x){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var y=Nd(b),g=n.current,S="deltaX"in b?b.deltaX:g[0]-y[0],w="deltaY"in b?b.deltaY:g[1]-y[1],k,P=b.target,_=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in b&&_==="h"&&P.type==="range")return!1;var j=window.getSelection(),z=j&&j.anchorNode,$=z?z===P||z.contains(P):!1;if($)return!1;var W=Aw(_,P);if(!W)return!0;if(W?k=_:(k=_==="v"?"h":"v",W=Aw(_,P)),!W)return!1;if(!r.current&&"changedTouches"in b&&(S||w)&&(r.current=k),!k)return!0;var Y=r.current||k;return pY(Y,x,b,Y==="h"?S:w)},[]),c=m.useCallback(function(b){var x=b;if(!(!Ua.length||Ua[Ua.length-1]!==o)){var y="deltaY"in x?$w(x):Nd(x),g=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&mY(k.delta,y)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var S=(a.current.shards||[]).map(zw).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?l(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(b,x,y,g){var S={name:b,delta:x,target:y,should:g,shadowParent:yY(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(b){n.current=Nd(b),r.current=void 0},[]),f=m.useCallback(function(b){u(b.type,$w(b),b.target,l(b,e.lockRef.current))},[]),p=m.useCallback(function(b){u(b.type,Nd(b),b.target,l(b,e.lockRef.current))},[]);m.useEffect(function(){return Ua.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Va),document.addEventListener("touchmove",c,Va),document.addEventListener("touchstart",d,Va),function(){Ua=Ua.filter(function(b){return b!==o}),document.removeEventListener("wheel",c,Va),document.removeEventListener("touchmove",c,Va),document.removeEventListener("touchstart",d,Va)}},[]);var h=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(o,{styles:hY(i)}):null,h?m.createElement(aY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bY=VG(Z_,vY);var rT=m.forwardRef(function(e,t){return m.createElement($m,Wr({},e,{ref:t,sideCar:bY}))});rT.classNames=$m.classNames;function iT(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=yo(),[p,h]=Ty();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const v=Q_(r,f);return s.jsx(M_,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d,children:s.jsx(rT,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&o,forwardProps:!0,children:e.children})})}const xY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??Tr.exit(ua.exit,i),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)??Tr.enter(ua.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??Tr.exit(ua.exit,o),...i?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},Zi={initial:"initial",animate:"enter",exit:"exit",variants:xY},SY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:a,offsetX:l=0,offsetY:c=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,v=r?i&&r:!0,b=i||r?"enter":"exit",x={offsetX:l,offsetY:c,reverse:o,transition:u,transitionEnd:d,delay:f};return s.jsx($i,{...p,custom:x,children:v&&s.jsx(Xn.div,{ref:n,className:V("chakra-offset-slide",a),custom:x,...Zi,animate:b,...h})})});SY.displayName="SlideFade";const wY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>({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)??Tr.exit(ua.exit,i)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Tr.enter(ua.enter,n),transitionEnd:e==null?void 0:e.enter})},Db={initial:"exit",animate:"enter",exit:"exit",variants:wY},kY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:a=.95,className:l,transition:c,transitionEnd:u,delay:d,animatePresenceProps:f,...p}=t,h=r?i&&r:!0,v=i||r?"enter":"exit",b={initialScale:a,reverse:o,transition:c,transitionEnd:u,delay:d};return s.jsx($i,{...f,custom:b,children:h&&s.jsx(Xn.div,{ref:n,className:V("chakra-offset-slide",l),...Db,animate:v,custom:b,...p})})});kY.displayName="ScaleFade";const CY={slideInBottom:{...Zi,custom:{offsetY:16,reverse:!0}},slideInRight:{...Zi,custom:{offsetX:16,reverse:!0}},slideInTop:{...Zi,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Zi,custom:{offsetX:-16,reverse:!0}},scale:{...Db,custom:{initialScale:.95,reverse:!0}},none:{}},jY=D(Xn.section),PY=e=>CY[e||"none"],oT=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=PY(n),...i}=e;return s.jsx(jY,{ref:t,...r,...i})});oT.displayName="ModalTransition";const zm=B((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c}=yo(),u=l(a,t),d=c(i),f=V("chakra-modal__content",n),p=Ra(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},v={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:b}=yo();return s.jsx(iT,{children:s.jsx(D.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:s.jsx(oT,{preset:b,motionProps:o,className:f,...u,__css:h,children:r})})})});zm.displayName="ModalContent";const gl=B((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=yo();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=V("chakra-modal__body",n),l=Ra();return s.jsx(D.div,{ref:t,className:a,id:i,...r,__css:l.body})});gl.displayName="ModalBody";const Ou=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=yo(),a=V("chakra-modal__close-btn",r),l=Ra();return s.jsx(jm,{ref:t,__css:l.closeButton,className:a,onClick:he(n,c=>{c.stopPropagation(),o()}),...i})});Ou.displayName="ModalCloseButton";const Rm=B((e,t)=>{const{className:n,...r}=e,i=V("chakra-modal__footer",n),o=Ra(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...o.footer};return s.jsx(D.footer,{ref:t,...r,__css:a,className:i})});Rm.displayName="ModalFooter";const vl=B((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=yo();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=V("chakra-modal__header",n),l=Ra(),c={flex:0,...l.header};return s.jsx(D.header,{ref:t,className:a,id:i,...r,__css:c})});vl.displayName="ModalHeader";const _Y={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Tr.enter(ua.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)??Tr.exit(ua.exit,n),transitionEnd:t==null?void 0:t.exit})},aT={initial:"exit",animate:"enter",exit:"exit",variants:_Y},TY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:l,delay:c,animatePresenceProps:u,...d}=t,f=i||r?"enter":"exit",p=r?i&&r:!0,h={transition:a,transitionEnd:l,delay:c};return s.jsx($i,{...u,custom:h,children:p&&s.jsx(Xn.div,{ref:n,className:V("chakra-fade",o),custom:h,...aT,animate:f,...d})})});TY.displayName="Fade";const EY=D(Xn.div),yl=B((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,a=V("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Ra().overlay},{motionPreset:u}=yo(),f=i||(u==="none"?{}:aT);return s.jsx(EY,{...f,__css:c,ref:t,className:a,...o})});yl.displayName="ModalOverlay";function AY(e){const{leastDestructiveRef:t,...n}=e;return s.jsx(Du,{...n,initialFocusRef:t})}const $Y=B((e,t)=>s.jsx(zm,{ref:t,role:"alertdialog",...e})),[zY,RY]=_e(),IY={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function MY(e,t){var n;if(e)return((n=IY[e])==null?void 0:n[t])??e}function sT(e){var u;const{isOpen:t,onClose:n,placement:r="right",children:i,...o}=e,a=zi(),l=(u=a.components)==null?void 0:u.Drawer,c=MY(r,a.direction);return s.jsx(zY,{value:{placement:c},children:s.jsx(Du,{isOpen:t,onClose:n,styleConfig:l,...o,children:i})})}const Rw={exit:{duration:.15,ease:pi.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},LY={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:i}=hv({direction:e});return{...i,transition:(t==null?void 0:t.exit)??Tr.exit(Rw.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:i}=hv({direction:e});return{...i,transition:(n==null?void 0:n.enter)??Tr.enter(Rw.enter,r),transitionEnd:t==null?void 0:t.enter}}},lT=m.forwardRef(function(t,n){const{direction:r="right",style:i,unmountOnExit:o,in:a,className:l,transition:c,transitionEnd:u,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,v=hv({direction:r}),b=Object.assign({position:"fixed"},v.position,i),x=o?a&&o:!0,y=a||o?"enter":"exit",g={transitionEnd:u,transition:c,direction:r,delay:d};return s.jsx($i,{...p,custom:g,children:x&&s.jsx(Xn.div,{...h,ref:n,initial:"exit",className:V("chakra-slide",l),animate:y,exit:"exit",custom:g,variants:LY,style:b,...f})})});lT.displayName="Slide";const NY=D(lT),Ob=B((e,t)=>{const{className:n,children:r,motionProps:i,containerProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c,isOpen:u}=yo(),d=l(a,t),f=c(o),p=V("chakra-modal__content",n),h=Ra(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=RY();return s.jsx(iT,{children:s.jsx(D.div,{...f,className:"chakra-modal__content-container",__css:b,children:s.jsx(NY,{motionProps:i,direction:x,in:u,className:p,...d,__css:v,children:r})})})});Ob.displayName="DrawerContent";function DY(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 OY(e,t,n){return(e-t)*100/(n-t)}ju({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});ju({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const FY=ju({"0%":{left:"-40%"},"100%":{left:"100%"}}),BY=ju({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function WY(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:l="progressbar"}=e,c=OY(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 o=="function"?o(t,c):i})(),role:l},percent:c,value:t}}const[VY,UY]=_e({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),HY=B((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:o,role:a,...l}=e,c=WY({value:i,min:n,max:r,isIndeterminate:o,role:a}),d={height:"100%",...UY().filledTrack};return s.jsx(D.div,{ref:t,style:{width:`${c.percent}%`,...l.style},...c.bind,...l,__css:d})}),_p=B((e,t)=>{var _;const{value:n,min:r=0,max:i=100,hasStripe:o,isAnimated:a,children:l,borderRadius:c,isIndeterminate:u,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:v,...b}=$e(e),x=Qe("Progress",e),y=c??((_=x.track)==null?void 0:_.borderRadius),g={animation:`${BY} 1s linear infinite`},k={...!u&&o&&a&&g,...u&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${FY} 1s ease infinite normal none running`}},P={overflow:"hidden",position:"relative",...x.track};return s.jsx(D.div,{ref:t,borderRadius:y,__css:P,...b,children:s.jsxs(VY,{value:x,children:[s.jsx(HY,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:i,value:n,isIndeterminate:u,css:k,borderRadius:y,title:h,role:v}),l]})})});_p.displayName="Progress";function GY(e){return e&&Nt(e)&&Nt(e.target)}function KY(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:a,isNative:l,...c}=e,[u,d]=m.useState(r||""),f=typeof n<"u",p=f?n:u,h=m.useRef(null),v=m.useCallback(()=>{const k=h.current;if(!k)return;let P="input:not(:disabled):checked";const _=k.querySelector(P);if(_){_.focus();return}P="input:not(:disabled)";const j=k.querySelector(P);j==null||j.focus()},[]),x=`radio-${m.useId()}`,y=i||x,g=m.useCallback(k=>{const P=GY(k)?k.target.value:k;f||d(P),t==null||t(String(P))},[t,f]),S=m.useCallback((k={},P=null)=>({...k,ref:Mt(P,h),role:"radiogroup"}),[]),w=m.useCallback((k={},P=null)=>({...k,ref:P,name:y,[l?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(j){g(j)},"data-radiogroup":!0}),[l,y,g,p]);return{getRootProps:S,getRadioProps:w,name:y,ref:h,focus:v,setValue:d,value:p,onChange:g,isDisabled:o,isFocusable:a,htmlProps:c}}const[qY,cT]=_e({name:"RadioGroupContext",strict:!1}),uT=B((e,t)=>{const{colorScheme:n,size:r,variant:i,children:o,className:a,isDisabled:l,isFocusable:c,...u}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:v}=KY(u),b=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:i,isDisabled:l,isFocusable:c}),[h,r,f,n,d,i,l,c]);return s.jsx(qY,{value:b,children:s.jsx(D.div,{...p(v,t),className:V("chakra-radio-group",a),children:o})})});uT.displayName="RadioGroup";function XY(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:l,isInvalid:c,name:u,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...v}=e,b=`radio-${m.useId()}`,x=Iu(),g=!!cT()||!!p;let w=!!x&&!g?x.id:b;w=f??w;const k=i??(x==null?void 0:x.isDisabled),P=o??(x==null?void 0:x.isReadOnly),_=a??(x==null?void 0:x.isRequired),j=c??(x==null?void 0:x.isInvalid),[z,$]=m.useState(!1),[W,Y]=m.useState(!1),[ee,I]=m.useState(!1),[L,N]=m.useState(!!t),R=typeof n<"u",F=R?n:L,M=m.useRef(!1);m.useEffect(()=>XP(re=>{M.current=re}),[]);const G=m.useCallback(re=>{if(P||k){re.preventDefault();return}R||N(re.currentTarget.checked),l==null||l(re)},[R,k,P,l]),Z=m.useCallback(re=>{re.key===" "&&I(!0)},[I]),ae=m.useCallback(re=>{re.key===" "&&I(!1)},[I]),oe=m.useCallback((re={},ze=null)=>({...re,ref:ze,"data-active":de(ee),"data-hover":de(W),"data-disabled":de(k),"data-invalid":de(j),"data-checked":de(F),"data-focus":de(z),"data-focus-visible":de(z&&M.current),"data-readonly":de(P),"aria-hidden":!0,onMouseDown:he(re.onMouseDown,()=>I(!0)),onMouseUp:he(re.onMouseUp,()=>I(!1)),onMouseEnter:he(re.onMouseEnter,()=>Y(!0)),onMouseLeave:he(re.onMouseLeave,()=>Y(!1))}),[ee,W,k,j,F,z,P]),{onFocus:Q,onBlur:ue}=x??{},ce=m.useCallback((re={},ze=null)=>{const ye=k&&!r;return{...re,id:w,ref:ze,type:"radio",name:u,value:d,onChange:he(re.onChange,G),onBlur:he(ue,re.onBlur,()=>$(!1)),onFocus:he(Q,re.onFocus,()=>$(!0)),onKeyDown:he(re.onKeyDown,Z),onKeyUp:he(re.onKeyUp,ae),checked:F,disabled:ye,readOnly:P,required:_,"aria-invalid":gi(j),"aria-disabled":gi(ye),"aria-required":gi(_),"data-readonly":de(P),"aria-describedby":h,style:JP}},[k,r,w,u,d,G,ue,Q,Z,ae,F,P,_,j,h]);return{state:{isInvalid:j,isFocused:z,isChecked:F,isActive:ee,isHovered:W,isDisabled:k,isReadOnly:P,isRequired:_},getRadioProps:oe,getInputProps:ce,getLabelProps:(re={},ze=null)=>({...re,ref:ze,onMouseDown:he(re.onMouseDown,YY),"data-disabled":de(k),"data-checked":de(F),"data-invalid":de(j)}),getRootProps:(re,ze=null)=>({htmlFor:w,...re,ref:ze,"data-disabled":de(k),"data-checked":de(F),"data-invalid":de(j)}),htmlProps:v}}function YY(e){e.preventDefault(),e.stopPropagation()}const Av=B((e,t)=>{const n=cT(),{onChange:r,value:i}=e,o=Qe("Radio",{...n,...e}),a=$e(e),{spacing:l="0.5rem",children:c,isDisabled:u=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&&i!=null&&(h=n.value===i);let v=r;n!=null&&n.onChange&&i!=null&&(v=z$(n.onChange,r));const b=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:y,getLabelProps:g,getRootProps:S,htmlProps:w}=XY({...p,isChecked:h,isFocusable:d,isDisabled:u,onChange:v,name:b}),[k,P]=n6(w,c6),_=y(P),j=x(f,t),z=g(),$=Object.assign({},k,S()),W={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...o.container},Y={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...o.control},ee={userSelect:"none",marginStart:l,...o.label};return s.jsxs(D.label,{className:"chakra-radio",...$,__css:W,children:[s.jsx("input",{className:"chakra-radio__input",...j}),s.jsx(D.span,{className:"chakra-radio__control",..._,__css:Y}),c&&s.jsx(D.span,{className:"chakra-radio__label",...z,__css:ee,children:c})]})});Av.displayName="Radio";const dT=B(function(t,n){const{children:r,placeholder:i,className:o,...a}=t;return s.jsxs(D.select,{...a,ref:n,className:V("chakra-select",o),children:[i&&s.jsx("option",{value:"",children:i}),r]})});dT.displayName="SelectField";const fT=B((e,t)=>{var S;const n=Qe("Select",e),{rootProps:r,placeholder:i,icon:o,color:a,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:p,...h}=$e(e),[v,b]=n6(h,c6),x=QP(b),y={width:"100%",height:"fit-content",position:"relative",color:a},g={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return s.jsxs(D.div,{className:"chakra-select__wrapper",__css:y,...v,...r,children:[s.jsx(dT,{ref:t,height:c??l,minH:u??d,placeholder:i,...x,__css:g,children:e.children}),s.jsx(pT,{"data-disabled":de(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:o})]})});fT.displayName="Select";const QY=e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),ZY=D("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),pT=e=>{const{children:t=s.jsx(QY,{}),...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 s.jsx(ZY,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};pT.displayName="SelectIcon";const Eo=D("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Eo.displayName="Spacer";const mT=e=>s.jsx(D.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});mT.displayName="StackItem";function JY(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{"&":ny(n,i=>r[i])}}const we=B((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:a="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",v=m.useMemo(()=>JY({spacing:a,direction:h}),[a,h]),b=!!u,x=!f&&!b,y=m.useMemo(()=>{const S=ey(c);return x?S:S.map((w,k)=>{const P=typeof w.key<"u"?w.key:k,_=k+1===S.length,z=f?s.jsx(mT,{children:w},P):w;if(!b)return z;const $=m.cloneElement(u,{__css:v}),W=_?null:$;return s.jsxs(m.Fragment,{children:[z,W]},P)})},[u,v,b,x,f,c]),g=V("chakra-stack",d);return s.jsx(D.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:h,flexWrap:l,gap:b?void 0:a,className:g,...p,children:y})});we.displayName="Stack";const ge=B((e,t)=>s.jsx(we,{align:"center",...e,direction:"row",ref:t}));ge.displayName="HStack";const Fu=B((e,t)=>s.jsx(we,{align:"center",...e,direction:"column",ref:t}));Fu.displayName="VStack";const[eQ,hT]=_e({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Go=B(function(t,n){const r=Qe("Stat",t),i={position:"relative",flex:"1 1 0%",...r.container},{className:o,children:a,...l}=$e(t);return s.jsx(eQ,{value:r,children:s.jsx(D.div,{ref:n,...l,className:V("chakra-stat",o),__css:i,children:s.jsx("dl",{children:a})})})});Go.displayName="Stat";const Ko=B(function(t,n){const r=hT();return s.jsx(D.dt,{ref:n,...t,className:V("chakra-stat__label",t.className),__css:r.label})});Ko.displayName="StatLabel";const Bi=B(function(t,n){const r=hT();return s.jsx(D.dd,{ref:n,...t,className:V("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});Bi.displayName="StatNumber";const[tQ,Ao]=_e({name:"StepContext"}),[nQ,Ia]=$r("Stepper"),rQ=B(function(t,n){const{orientation:r,status:i,showLastSeparator:o}=Ao(),a=Ia();return s.jsx(D.div,{ref:n,"data-status":i,"data-orientation":r,"data-stretch":de(o),__css:a.step,...t,className:V("chakra-step",t.className)})}),iQ=B(function(t,n){const{status:r}=Ao(),i=Ia();return s.jsx(D.p,{ref:n,"data-status":r,...t,className:V("chakra-step__description",t.className),__css:i.description})});function oQ(e){return s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:s.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 aQ(e){const{status:t}=Ao(),n=Ia(),r=t==="complete"?oQ:void 0;return s.jsx(At,{as:r,__css:n.icon,...e,className:V("chakra-step__icon",e.className)})}const Iw=B(function(t,n){const{children:r,...i}=t,{status:o,index:a}=Ao(),l=Ia();return s.jsx(D.div,{ref:n,"data-status":o,__css:l.number,...i,className:V("chakra-step__number",t.className),children:r||a+1})});function sQ(e){const{complete:t,incomplete:n,active:r}=e,i=Ao();let o=null;switch(i.status){case"complete":o=cn(t,i);break;case"incomplete":o=cn(n,i);break;case"active":o=cn(r,i);break}return o?s.jsx(s.Fragment,{children:o}):null}const lQ=B(function(t,n){const{status:r}=Ao(),i=Ia();return s.jsx(D.div,{ref:n,"data-status":r,...t,__css:i.indicator,className:V("chakra-step__indicator",t.className)})}),gT=B(function(t,n){const{orientation:r,status:i,isLast:o,showLastSeparator:a}=Ao(),l=Ia();return o&&!a?null:s.jsx(D.div,{ref:n,role:"separator","data-orientation":r,"data-status":i,__css:l.separator,...t,className:V("chakra-step__separator",t.className)})}),cQ=B(function(t,n){const{status:r}=Ao(),i=Ia();return s.jsx(D.h3,{ref:n,"data-status":r,...t,__css:i.title,className:V("chakra-step__title",t.className)})}),uQ=B(function(t,n){const r=Qe("Stepper",t),{children:i,index:o,orientation:a="horizontal",showLastSeparator:l=!1,...c}=$e(t),u=m.Children.toArray(i),d=u.length;function f(p){return po?"incomplete":"active"}return s.jsx(D.div,{ref:n,"aria-label":"Progress","data-orientation":a,...c,__css:r.stepper,className:V("chakra-stepper",t.className),children:s.jsx(nQ,{value:r,children:u.map((p,h)=>s.jsx(tQ,{value:{index:h,status:f(h),orientation:a,showLastSeparator:l,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),nc=B(function(t,n){const r=Qe("Switch",t),{spacing:i="0.5rem",children:o,...a}=$e(t),{getIndicatorProps:l,getInputProps:c,getCheckboxProps:u,getRootProps:d,getLabelProps:f}=kG(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]),v=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return s.jsxs(D.label,{...d(),className:V("chakra-switch",t.className),__css:p,children:[s.jsx("input",{className:"chakra-switch__input",...c({},n)}),s.jsx(D.span,{...u(),className:"chakra-switch__track",__css:h,children:s.jsx(D.span,{__css:r.thumb,className:"chakra-switch__thumb",...l()})}),o&&s.jsx(D.span,{className:"chakra-switch__label",...f(),__css:v,children:o})]})});nc.displayName="Switch";const[dQ,Bu]=_e({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),uu=B((e,t)=>{const n=Qe("Table",e),{className:r,layout:i,...o}=$e(e);return s.jsx(dQ,{value:n,children:s.jsx(D.table,{ref:t,__css:{tableLayout:i,...n.table},className:V("chakra-table",r),...o})})});uu.displayName="Table";const Tp=B((e,t)=>{const{overflow:n,overflowX:r,className:i,...o}=e;return s.jsx(D.div,{ref:t,className:V("chakra-table__container",i),...o,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Ep=B((e,t)=>{const n=Bu();return s.jsx(D.tbody,{...e,ref:t,__css:n.tbody})}),xt=B(({isNumeric:e,...t},n)=>{const r=Bu();return s.jsx(D.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),_t=B(({isNumeric:e,...t},n)=>{const r=Bu();return s.jsx(D.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),Ap=B((e,t)=>{const n=Bu();return s.jsx(D.thead,{...e,ref:t,__css:n.thead})}),Vr=B((e,t)=>{const n=Bu();return s.jsx(D.tr,{...e,ref:t,__css:n.tr})});function fQ(e,t){const n=e??"bottom",i={"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(i==null?void 0:i[t])??n}function pQ(e,t){const n=i=>({...t,...i,position:fQ((i==null?void 0:i.position)??(t==null?void 0:t.position),e)}),r=i=>{const o=n(i),a=FP(o);return Br.notify(a,o)};return r.update=(i,o)=>{Br.update(i,n(o))},r.promise=(i,o)=>{const a=r({...o.loading,status:"loading",duration:null});i.then(l=>r.update(a,{status:"success",duration:5e3,...cn(o.success,l)})).catch(l=>r.update(a,{status:"error",duration:5e3,...cn(o.error,l)}))},r.closeAll=Br.closeAll,r.close=Br.close,r.isActive=Br.isActive,r}function pr(e){const{theme:t}=RP(),n=WH();return m.useMemo(()=>pQ(t.direction,{...n,...e}),[e,t.direction,n])}const mQ={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]}}}},$v=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},zf=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function hQ(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:l=!0,onOpen:c,onClose:u,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:v=10,arrowShadowColor:b,arrowPadding:x,modifiers:y,isDisabled:g,gutter:S,offset:w,direction:k,...P}=e,{isOpen:_,onOpen:j,onClose:z}=wu({isOpen:p,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:$,getPopperProps:W,getArrowInnerProps:Y,getArrowProps:ee}=AX({enabled:_,placement:d,arrowPadding:x,modifiers:y,gutter:S,offset:w,direction:k}),I=m.useId(),N=`tooltip-${f??I}`,R=m.useRef(null),F=m.useRef(void 0),M=m.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=void 0)},[]),G=m.useRef(void 0),Z=m.useCallback(()=>{G.current&&(clearTimeout(G.current),G.current=void 0)},[]),ae=m.useCallback(()=>{Z(),z()},[z,Z]),oe=gQ(R,ae),Q=m.useCallback(()=>{if(!g&&!F.current){_&&oe();const ye=zf(R);F.current=ye.setTimeout(j,t)}},[oe,g,_,j,t]),ue=m.useCallback(()=>{M();const ye=zf(R);G.current=ye.setTimeout(ae,n)},[n,ae,M]),ce=m.useCallback(()=>{_&&r&&ue()},[r,ue,_]),Be=m.useCallback(()=>{_&&a&&ue()},[a,ue,_]),Ze=m.useCallback(ye=>{_&&ye.key==="Escape"&&ue()},[_,ue]);cf(()=>$v(R),"keydown",l?Ze:void 0),cf(()=>{if(!o)return null;const ye=R.current;if(!ye)return null;const ot=t6(ye);return ot.localName==="body"?zf(R):ot},"scroll",()=>{_&&o&&ae()},{passive:!0,capture:!0}),m.useEffect(()=>{g&&(M(),_&&z())},[g,_,z,M]),m.useEffect(()=>()=>{M(),Z()},[M,Z]),cf(()=>R.current,"pointerleave",ue);const te=m.useCallback((ye={},ot=null)=>({...ye,ref:Mt(R,ot,$),onPointerEnter:he(ye.onPointerEnter,ut=>{ut.pointerType!=="touch"&&Q()}),onClick:he(ye.onClick,ce),onPointerDown:he(ye.onPointerDown,Be),onFocus:he(ye.onFocus,Q),onBlur:he(ye.onBlur,ue),"aria-describedby":_?N:void 0}),[Q,ue,Be,_,N,ce,$]),re=m.useCallback((ye={},ot=null)=>W({...ye,style:{...ye.style,[Qt.arrowSize.var]:v?`${v}px`:void 0,[Qt.arrowShadowColor.var]:b}},ot),[W,v,b]),ze=m.useCallback((ye={},ot=null)=>{const ve={...ye.style,position:"relative",transformOrigin:Qt.transformOrigin.varRef};return{ref:ot,...P,...ye,id:N,role:"tooltip",style:ve}},[P,N]);return{isOpen:_,show:Q,hide:ue,getTriggerProps:te,getTooltipProps:ze,getTooltipPositionerProps:re,getArrowProps:ee,getArrowInnerProps:Y}}const k0="chakra-ui:close-tooltip";function gQ(e,t){return m.useEffect(()=>{const n=$v(e);return n.addEventListener(k0,t),()=>n.removeEventListener(k0,t)},[t,e]),()=>{const n=$v(e),r=zf(e);n.dispatchEvent(new r.CustomEvent(k0))}}const vQ=D(Xn.div),Fb=B((e,t)=>{const n=Yn("Tooltip",e),r=$e(e),i=zi(),{children:o,label:a,shouldWrapChildren:l,"aria-label":c,hasArrow:u,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:v,motionProps:b,animatePresenceProps:x,...y}=r,g=p??h??d??v;if(g){n.bg=g;const $=Gz(i,"colors",g);n[Qt.arrowBg.var]=$}const S=hQ({...y,direction:i.direction}),w=!m.isValidElement(o)||l;let k;if(w)k=s.jsx(D.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:o});else{const $=m.Children.only(o);k=m.cloneElement($,S.getTriggerProps($.props,DY($)))}const P=!!c,_=S.getTooltipProps({},t),j=P?tm(_,["role","id"]):_,z=JC(_,["role","id"]);return a?s.jsxs(s.Fragment,{children:[k,s.jsx($i,{...x,children:S.isOpen&&s.jsx(hl,{...f,children:s.jsx(D.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:s.jsxs(vQ,{variants:mQ,initial:"exit",animate:"enter",exit:"exit",...b,...j,__css:n,children:[a,P&&s.jsx(D.span,{srOnly:!0,...z,children:c}),u&&s.jsx(D.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:s.jsx(D.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):s.jsx(s.Fragment,{children:o})});Fb.displayName="Tooltip";const ct=B(function(t,n){const r=Yn("Heading",t),{className:i,...o}=$e(t);return s.jsx(D.h2,{ref:n,className:V("chakra-heading",t.className),...o,__css:r})});ct.displayName="Heading";const K=B(function(t,n){const r=Yn("Text",t),{className:i,align:o,decoration:a,casing:l,...c}=$e(t),u=ty({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return s.jsx(D.p,{ref:n,className:V("chakra-text",t.className),...u,...c,__css:r})});K.displayName="Text";const vT=B(function(t,n){const{spacing:r="0.5rem",spacingX:i,spacingY:o,children:a,justify:l,direction:c,align:u,className:d,shouldWrapChildren:f,...p}=t,h=m.useMemo(()=>f?m.Children.map(a,(v,b)=>s.jsx(Bb,{children:v},b)):a,[a,f]);return s.jsx(D.div,{ref:n,className:V("chakra-wrap",d),...p,children:s.jsx(D.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:l,alignItems:u,flexDirection:c,listStyleType:"none",gap:r,columnGap:i,rowGap:o,padding:"0"},children:h})})});vT.displayName="Wrap";const Bb=B(function(t,n){const{className:r,...i}=t;return s.jsx(D.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:V("chakra-wrap__listitem",r),...i})});Bb.displayName="WrapItem";var In=e=>_m({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});In({displayName:"ChevronUpIcon",path:s.jsx("polyline",{points:"18 15 12 9 6 15"})});In({displayName:"ChevronDownIcon",path:s.jsx("polyline",{points:"6 9 12 15 18 9"})});In({displayName:"ChevronLeftIcon",path:s.jsx("polyline",{points:"15 18 9 12 15 6"})});In({displayName:"ChevronRightIcon",path:s.jsx("polyline",{points:"9 18 15 12 9 6"})});In({displayName:"ChevronDownIcon",path:s.jsxs("g",{fill:"none",children:[s.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var yQ=In({displayName:"CloseIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});In({displayName:"FilterIcon",path:s.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});In({displayName:"CalendarIcon",path:s.jsxs("g",{children:[s.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),s.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),s.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),s.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});In({displayName:"PlusIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});In({displayName:"MinusIcon",path:s.jsx("g",{children:s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});In({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.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"}),s.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});In({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var bQ=In({displayName:"SearchIcon",path:s.jsxs("g",{children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});In({displayName:"CheckIcon",path:s.jsx("g",{children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})});function Ht(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 i(...d){r();for(const f of d)t[f]=c(f);return Ht(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Ht(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var xQ=Ht("app-shell").parts("container","inner","main"),yT=Ht("emptystate").parts("container","body","icon","title","descripton","actions","footer"),SQ=Ht("banner").parts("container","icon","content","title","description","actions","close"),wQ=Ht("hotkeys").parts("container","group","groupTitle","item","command","then"),kQ=Ht("loading-overlay").parts("overlay","text"),CQ=Ht("nav-group").parts("container","title","icon","content"),jQ=Ht("nav-item").parts("item","link","inner","icon","label"),PQ=Ht("nprogress").parts("container","bar"),_Q=Ht("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),TQ=Ht("search-input").parts("input","reset"),EQ=Ht("sidebar").parts("container","overlay","section","toggleWrapper","toggle");Ht("stepper").parts("container","steps","icon","content","title","separator");var AQ=Ht("structured-list").parts("list","item","button","header","cell","icon"),bT=Ht("property").parts("property","label","value"),$Q=Ht("select").parts("addon","field","element"),zQ=Ht("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:xT,defineMultiStyleConfig:RQ}=fe(p6.keys),IQ=xT(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"}}}}),MQ=xT({container:{borderRadius:"md"}}),LQ=RQ({defaultProps:{size:"sm"},baseStyle:MQ,variants:{snackbar:IQ}}),ci=f6("badge",["bg","color","shadow","border"]),Mw=e=>{const{colorScheme:t,theme:n}=e,r=Ut(`${t}.200`,.8)(n);return{[ci.color.variable]:`colors.${t}.500`,_dark:{[ci.color.variable]:r},[ci.shadow.variable]:`inset 0 0 0px 1px ${ci.color.reference}`}},NQ={variants:{outline:e=>{const t=Mw(e);return{...t,_dark:{...t==null?void 0:t._dark,[ci.shadow.variable]:`inset 0 0 0px 1px ${ci.border.reference}`,[ci.color.variable]:`colors.${e.colorScheme}.200`,[ci.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Mw(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[ci.color.variable]:`colors.${e.colorScheme}.200`}}}}},ST=e=>{const{colorScheme:t}=e;return t==="gray"?{base:J("gray.100","whiteAlpha.300")(e),hover:J("gray.200","whiteAlpha.400")(e),active:J("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:J(`${t}.500`,`${t}.500`)(e),hover:J(`${t}.600`,`${t}.600`)(e),active:J(`${t}.700`,`${t}.700`)(e)}},DQ={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:i,hover:o,active:a}=ST(e),{color:l=n==="gray"?J("black","white")(e):"white",bg:c=i,hoverBg:u=o,activeBg:d=a}=(t=DQ[n])!=null?t:{};return{bg:c,color:l,_hover:{bg:u,_disabled:{bg:c}},_active:{bg:d}}},OQ=e=>({shadow:"md",...Im(e)}),wT=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:i}=ST(e);return{...kT(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?i:r}}},kT=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=Ut(`${t}.200`,.12)(n),i=Ut(`${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:i}}}},FQ=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":J(`${t}.500`,`${t}.200`)(e),i=Ut(r,.1)(n),o=Ut(r,.16)(n),a=Ut(r,.24)(n);return{color:t==="white"?"white":J(`${t}.600`,`${t}.200`)(e),bg:i,_hover:{bg:o},_active:{bg:a}}},BQ=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":J(`${t}.700`,`${t}.500`)(e)}}},WQ=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),Im({...e,variant:"solid",colorScheme:t})},VQ=e=>Im({...e,variant:"solid"}),UQ=e=>wT({...e,variant:"outline"}),HQ={defaultProps:{size:"sm"},variants:{solid:Im,ghost:kT,outline:wT,subtle:FQ,elevated:OQ,link:BQ,primary:WQ,secondary:VQ,tertiary:UQ}},{definePartsStyle:ma,defineMultiStyleConfig:GQ}=fe(w6.keys),ta=X("card-bg"),C0=X("card-padding"),Wb=X("card-shadow"),j0=X("card-radius"),Vb=X("card-border-width","0"),Ji=X("card-border-color"),KQ=ma(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),qQ=ma(e=>({container:{[ta.variable]:"colors.white",[Ji.variable]:"colors.blackAlpha.200",[Vb.variable]:"1px",[Wb.variable]:"shadows.sm",_dark:{[ta.variable]:"colors.whiteAlpha.200",[Ji.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[Ji.variable]:"colors.blackAlpha.300",_dark:{[Ji.variable]:"colors.whiteAlpha.300"}}}})),XQ=ma(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[Vb.variable]:"0",[Wb.variable]:"none",[ta.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[ta.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[ta.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[ta.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),YQ=ma(e=>{const{colorScheme:t}=e;return{container:{[Vb.variable]:"1px",[Wb.variable]:"none",[Ji.variable]:t?`${t}.500`:"colors.blackAlpha.200",[ta.variable]:"transparent","&.chakra-linkbox:hover":{[Ji.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[Ji.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[Ji.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),QQ={sm:ma({container:{[j0.variable]:"radii.base",[C0.variable]:"space.3"}}),md:ma({container:{[j0.variable]:"radii.md",[C0.variable]:"space.4"}}),lg:ma({container:{[j0.variable]:"radii.xl",[C0.variable]:"space.6"}})},ZQ=GQ({defaultProps:{variant:"elevated"},baseStyle:KQ,variants:{elevated:qQ,outline:YQ,filled:XQ},sizes:QQ}),{definePartsStyle:JQ,defineMultiStyleConfig:eZ}=fe(m6.keys),tZ=JQ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),nZ=eZ({baseStyle:tZ,defaultProps:{colorScheme:"primary"}}),rZ={defaultProps:{size:"sm"}},{definePartsStyle:Rf,defineMultiStyleConfig:iZ}=fe(ay.keys),Dd=X("input-height"),Od=X("input-padding"),Lw=X("input-border-radius"),CT={sm:Rf({field:{[Lw.variable]:"radii.md"},group:{[Lw.variable]:"radii.md"}}),md:Rf({field:{[Od.variable]:"space.3",[Dd.variable]:"sizes.9"},group:{[Od.variable]:"space.3",[Dd.variable]:"sizes.9"}}),lg:Rf({field:{[Od.variable]:"space.3",[Dd.variable]:"sizes.10"},group:{[Od.variable]:"space.3",[Dd.variable]:"sizes.10"}})},jT=Rf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),Ub=iZ({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:jT},sizes:CT}),oZ={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},jc=Ub,aZ=Ub,sZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:jT},sizes:CT},lZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=jc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},cZ=Ub,{definePartsStyle:mi,defineMultiStyleConfig:uZ}=fe(ay.keys),ys=X("input-height"),bs=X("input-font-size"),xs=X("input-padding"),Ss=X("input-border-radius"),dZ=mi({addon:{height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference},field:{width:"100%",height:ys.reference,fontSize:bs.reference,px:xs.reference,borderRadius:Ss.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Oi={lg:{[bs.variable]:"fontSizes.lg",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.12"},md:{[bs.variable]:"fontSizes.md",[xs.variable]:"space.4",[Ss.variable]:"radii.md",[ys.variable]:"sizes.10"},sm:{[bs.variable]:"fontSizes.sm",[xs.variable]:"space.3",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.8"},xs:{[bs.variable]:"fontSizes.xs",[xs.variable]:"space.2",[Ss.variable]:"radii.sm",[ys.variable]:"sizes.6"}},fZ={lg:mi({field:Oi.lg,group:Oi.lg}),md:mi({field:Oi.md,group:Oi.md}),sm:mi({field:Oi.sm,group:Oi.sm}),xs:mi({field:Oi.xs,group:Oi.xs})};function Hb(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}var pZ=mi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Hb(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0 0 0 1px ${nt(t,r)}`},_focusVisible:{zIndex:1,borderColor:nt(t,n),boxShadow:`0 0 0 1px ${nt(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),mZ=mi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Hb(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r)},_focusVisible:{bg:"transparent",borderColor:nt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),hZ=mi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Hb(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:nt(t,r),boxShadow:`0px 1px 0px 0px ${nt(t,r)}`},_focusVisible:{borderColor:nt(t,n),boxShadow:`0px 1px 0px 0px ${nt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),gZ=mi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),vZ={outline:pZ,filled:mZ,flushed:hZ,unstyled:gZ},eo=uZ({baseStyle:dZ,sizes:fZ,variants:vZ,defaultProps:{size:"md",variant:"outline"}}),Nw,Dw,yZ={...eo,defaultProps:jc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=jc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=eo.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=eo.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(Dw=(Nw=eo.variants)==null?void 0:Nw.unstyled)!=null?Dw:{}},sizes:jc.sizes},bZ={defaultProps:{size:"lg"}},xZ=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}}),SZ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:xZ}},{definePartsStyle:PT,defineMultiStyleConfig:wZ}=fe(g6.keys),kZ=PT(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}})),CZ=PT(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),jZ=wZ({baseStyle:kZ,variants:{dialog:CZ}}),{definePartsStyle:PZ,defineMultiStyleConfig:_Z}=fe(v6.keys),TZ=PZ(e=>({closeButton:{top:4,insetEnd:4}})),EZ=_Z({baseStyle:TZ}),{definePartsStyle:AZ,defineMultiStyleConfig:$Z}=fe(y6.keys),zZ=$Z({defaultProps:{colorScheme:"primary"},baseStyle:AZ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:RZ,defineMultiStyleConfig:IZ}=fe(b6.keys),MZ=IZ({defaultProps:{colorScheme:"primary"},baseStyle:RZ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:LZ,defineMultiStyleConfig:NZ}=fe(x6.keys),DZ=NZ({defaultProps:{colorScheme:"primary"},baseStyle:LZ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:OZ,defineMultiStyleConfig:FZ}=fe(S6.keys),BZ=FZ({defaultProps:{colorScheme:"primary"},baseStyle:OZ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),Fd=wt("tooltip-bg"),Ow=wt("tooltip-fg"),WZ=wt("popper-arrow-bg"),VZ=e=>({display:"flex",[Fd.variable]:"colors.white",[Ow.variable]:"colors.blackAlpha.900",_dark:{[Fd.variable]:"colors.gray.700",[Ow.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[Fd.reference],[WZ.variable]:[Fd.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),UZ={baseStyle:VZ},Bd=X("stepper-indicator-size"),ha=X("stepper-accent-color"),na=X("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:HZ,definePartsStyle:to}=fe(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),GZ=to(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:na.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[na.variable]:"10px",[ha.variable]:`colors.${e}.500`,_dark:{[ha.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:na.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),KZ=to(e=>({})),qZ=to(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:ha.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:ha.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),XZ=to(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[ha.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:ha.reference,color:`${n}.500`,_dark:{bg:Ut(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:ha.reference,color:`${n}.500`,_dark:{bg:Ut(`${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"}}}}}),YZ=HZ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:GZ,variants:{outline:KZ,solid:qZ,subtle:XZ},sizes:{xs:to({stepper:{[Bd.variable]:"sizes.4",[na.variable]:"7px"}}),sm:to({stepper:{[Bd.variable]:"sizes.6",[na.variable]:"11px"}}),md:to({stepper:{[Bd.variable]:"sizes.7",[na.variable]:"14px"}}),lg:to({stepper:{[Bd.variable]:"sizes.8",[na.variable]:"16px"}})}}),{definePartsStyle:QZ,defineMultiStyleConfig:ZZ}=fe(yT.keys),JZ=QZ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),eJ=ZZ({baseStyle:JZ}),{definePartsStyle:_T,defineMultiStyleConfig:TT}=fe(PQ.keys),tJ=_T(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),nJ=TT({defaultProps:{colorScheme:"teal"},baseStyle:tJ}),rJ=_T(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),iJ=TT({defaultProps:{colorScheme:"primary"},baseStyle:rJ}),{defineMultiStyleConfig:oJ}=fe(bT.keys),aJ=oJ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),sJ={Alert:LQ,Badge:NQ,Button:HQ,Card:ZQ,Checkbox:nZ,CloseButton:rZ,Heading:bZ,Kbd:SZ,Menu:jZ,Modal:EZ,Progress:zZ,Radio:MZ,Slider:DZ,Switch:BZ,Stepper:YZ,Tooltip:UZ,Input:jc,PinInput:sZ,FormLabel:oZ,NumberInput:aZ,Select:cZ,Textarea:lZ,SuiEmptyState:eJ,SuiNProgress:iJ,SuiProperty:aJ,SuiSelect:yZ},{definePartsStyle:lJ,defineMultiStyleConfig:cJ}=fe(xQ.keys),uJ=lJ({container:{},inner:{},main:{}}),dJ=cJ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:uJ}),{definePartsStyle:Gb,defineMultiStyleConfig:fJ}=fe(SQ.keys),pJ=Gb({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}}),mJ=Gb(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Ut(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),hJ=Gb(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),gJ=fJ({baseStyle:pJ,variants:{subtle:mJ,solid:hJ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),vJ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:ET,defineMultiStyleConfig:yJ}=fe(yT.keys),bJ=ET(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}}}),xJ=ET(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),SJ=yJ({baseStyle:bJ,variants:{centered:xJ}}),{definePartsStyle:wJ,defineMultiStyleConfig:kJ}=fe(h6.keys),CJ=wJ({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),jJ=kJ({variants:{horizontal:CJ}}),PJ={defaultProps:{spacing:4}},_J={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:TJ}=fe(wQ.keys),EJ=TJ({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:AJ,definePartsStyle:Mm}=fe(kQ.keys),$J=Mm({overlay:{p:4}}),zJ=Mm(()=>({overlay:{flex:1,height:"100%"}})),RJ=Mm(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),IJ=Mm(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),MJ=AJ({defaultProps:{variant:"fill"},baseStyle:$J,variants:{fill:zJ,fullscreen:RJ,overlay:IJ}}),{definePartsStyle:LJ,defineMultiStyleConfig:NJ}=fe(CQ.keys),DJ=LJ(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:{}})),OJ=NJ({baseStyle:DJ}),{definePartsStyle:Wu,defineMultiStyleConfig:FJ}=fe(jQ.keys),BJ=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"}})),WJ=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}}}}),VJ=Wu(e=>{const{colorScheme:t,theme:n}=e,r={bg:Ut(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Ut(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),UJ=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:{}}}),HJ=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:{}}}),Fw,Bw,Ww,Vw,GJ=FJ({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:BJ,sizes:{xs:{link:(Fw=Jo.components.Button.sizes)==null?void 0:Fw.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(Bw=Jo.components.Button.sizes)==null?void 0:Bw.sm,icon:{me:2,fontSize:"sm"}},md:{link:(Ww=Jo.components.Button.sizes)==null?void 0:Ww.md,icon:{me:2,fontSize:"md"}},lg:{link:(Vw=Jo.components.Button.sizes)==null?void 0:Vw.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:WJ,subtle:VJ,solid:UJ,"left-accent":HJ}}),{definePartsStyle:Wi,defineMultiStyleConfig:KJ}=fe(_Q.keys),Uw=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),qJ=Wi(e=>({details:{minW:0},secondaryLabel:Uw(e),tertiaryLabel:Uw(e)})),XJ={"2xs":Wi({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:Wi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:Wi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:Wi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:Wi({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:Wi({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":Wi({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},YJ=KJ({defaultProps:{size:"md"},baseStyle:qJ,sizes:XJ}),{defineMultiStyleConfig:QJ}=fe(bT.keys),ZJ=QJ({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:JJ}=fe(TQ.keys),eee=JJ({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:Kb,defineMultiStyleConfig:tee}=fe(EQ.keys),nee=Kb(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"}}}),ree=Kb(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"}}})),iee=Kb(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),oee=tee({defaultProps:{variant:"default"},baseStyle:nee,variants:{default:ree,compact:iee}}),{defineMultiStyleConfig:aee}=fe($Q.keys),see=aee({defaultProps:eo.defaultProps,baseStyle:eo.baseStyle,sizes:eo.sizes,variants:eo.variants}),{definePartsStyle:lee,defineMultiStyleConfig:cee}=fe(AQ.keys),uee=lee(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}})),dee=cee({defaultProps:{size:"md"},baseStyle:uee,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:qb,defineMultiStyleConfig:fee}=fe(zQ.keys),Hw=X("timeline-row-start","minmax(0,1fr)"),pee=X("timeline-row-end","minmax(0,1fr)"),Gw=X("timeline-col-start","minmax(0,1fr)"),Kw=X("timeline-col-end","minmax(0,1fr)"),mee=qb(e=>({container:{display:"flex",[Hw.variable]:"minmax(0,1fr)",[pee.variable]:"minmax(0,1fr)",[Gw.variable]:"auto",[Kw.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${Hw.reference}`,gridTemplateColumns:`${Gw.reference} ${Kw.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"}}})),hee=qb(e=>({icon:{}})),gee=qb(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),vee=fee({defaultProps:{variant:"solid",size:"sm"},baseStyle:mee,variants:{solid:hee,outline:gee},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),yee={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"}},bee=Me("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:xee,definePartsStyle:See}=fe(bee.keys),qw=X("navbar-bg"),Xw=X("navbar-text-color","currentColor"),P0=X("navbar-link-bg","transparent"),wee=["yellow","cyan"],kee=xee({baseStyle:See(({colorScheme:e})=>{let t="currentColor";return e&&(t=wee.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[qw.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[Xw.variable]:t,bg:qw.reference,color:Xw.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:P0.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:{[P0.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[P0.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),Cee={Form:jJ,SuiAppShell:dJ,SuiBanner:gJ,SuiCommand:vJ,SuiEmptyState:SJ,SuiFormLayout:PJ,SuiFormLegend:_J,SuiHotkeys:EJ,SuiStructuredList:dee,SuiLoadingOverlay:MJ,SuiNavGroup:OJ,SuiNavItem:GJ,SuiPersona:YJ,SuiProperty:ZJ,SuiNProgress:nJ,SuiSearchInput:eee,SuiSelect:see,SuiSidebar:oee,SuiTimeline:vee,SuiIconBadge:yee,SuiNavbar:kee},jee=mb({colors:{primary:Jo.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:Cee}),Pee={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},_0={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"}},zv={primary:_0.purple,secondary:_0.cyan,..._0},_ee={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},Tee={"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"},Eee={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"}},Aee={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},$ee=Aee,zee={outline:`0 0 0 2px ${Ut(zv.primary[500],.6)({colors:zv})}`},Ree=zee,Iee={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"}}},Mee={colors:zv,fonts:_ee,fontSizes:Tee,textStyles:Eee,sizes:$ee,shadows:Ree,semanticTokens:Iee},AT=mb({...Mee,styles:Pee,components:sJ},jee);function $T(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Lee(e,t){return e.find(n=>n.id===t)}function zT(e,t){const n=Lee(e,t);return n?e.indexOf(n):-1}function Nee(e,t,n=!0){let r=zT(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Dee(e,t,n=!0){let r=zT(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 no=e=>(e==null?void 0:e.ownerDocument)??document,bo=e=>e&&"window"in e&&e.window===e?e:no(e).defaultView||window;function Oee(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Fee(e){return Oee(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const Bee=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Wee(e){const t=bo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=bo(e);let{display:a,visibility:l}=o(e);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function Vee(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 RT(e,t){return Bee?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Wee(e)&&Vee(e,t)&&(!e.parentElement||RT(e.parentElement,e))}const IT=["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"],Uee=IT.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";IT.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Hee(e,t){return e.matches(Uee)&&!Gee(e)&&((t==null?void 0:t.skipVisibilityCheck)||RT(e))}function Gee(e){let t=e;for(;t!=null;){if(t instanceof bo(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function MT(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xb=typeof document<"u"?Xt.useLayoutEffect:()=>{};let Rv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Rv.delete(e)});function Kee(e,t){if(e===t)return e;let n=Rv.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Rv.get(t);return r?(r.forEach(i=>i.current=e),e):t}function qee(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const o=Yw(i,t);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Yw(e[o],null)})}}}function Yw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function LT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=MT(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=Xee(o,a):i==="id"&&o&&a?t.id=Kee(o,a):i==="ref"&&o&&a?t.ref=qee(o,a):t[i]=a!==void 0?a:o}}return t}function du(e){if(Yee())e.focus({preventScroll:!0});else{let t=Qee(e);e.focus(),Zee(t)}}let Wd=null;function Yee(){if(Wd==null){Wd=!1;try{document.createElement("div").focus({get preventScroll(){return Wd=!0,!0}})}catch{}}return Wd}function Qee(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 tte(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function nte(e){for(;e&&!Hee(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=bo(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,i=d=>{(Bt(d)===n||r)&&d.stopImmediatePropagation()},o=d=>{(Bt(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,du(n),c()))},a=d=>{(Bt(d)===e||r)&&d.stopImmediatePropagation()},l=d=>{(Bt(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,du(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let c=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),r=!1},u=requestAnimationFrame(c);return c}function Lm(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 Qb(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 $o(e){let t=null;return()=>(t==null&&(t=e()),t)}const $p=$o(function(){return Qb(/^Mac/i)}),rte=$o(function(){return Qb(/^iPhone/i)}),DT=$o(function(){return Qb(/^iPad/i)||$p()&&navigator.maxTouchPoints>1}),OT=$o(function(){return rte()||DT()}),ite=$o(function(){return Lm(/AppleWebKit/i)&&!ote()}),ote=$o(function(){return Lm(/Chrome/i)}),FT=$o(function(){return Lm(/Android/i)}),ate=$o(function(){return Lm(/Firefox/i)});let Xi=new Map,Iv=new Set;function Qw(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=Bt(r);if(!e(r)||!i)return;let o=Xi.get(i);o||(o=new Set,Xi.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=Bt(r);if(!e(r)||!i)return;let o=Xi.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Xi.delete(i)),Xi.size===0)){for(let a of Iv)a();Iv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Qw():document.addEventListener("DOMContentLoaded",Qw));function ste(){for(const[e]of Xi)"isConnected"in e&&!e.isConnected&&Xi.delete(e)}function lte(e){requestAnimationFrame(()=>{ste(),Xi.size===0?e():Iv.add(e)})}let ws="default",Mv="",If=new WeakMap;function cte(e){if(OT()){if(ws==="default"){const t=no(e);Mv=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ws="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";If.set(e,e.style[t]),e.style[t]="none"}}function Zw(e){if(OT()){if(ws!=="disabled")return;ws="restoring",setTimeout(()=>{lte(()=>{if(ws==="restoring"){const t=no(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Mv||""),Mv="",ws="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&If.has(e)){let t=If.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),If.delete(e)}}function Jw(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let T0=new WeakMap;function ute(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return Jw(t);if(T0.has(t))return T0.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof bo(n).HTMLMetaElement&&(n.nonce||n.content)||Jw(t)||void 0;return r!==void 0&&T0.set(t,r),r}function dte(e){return e.pointerType===""&&e.isTrusted?!0:FT()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function fte(e){return!FT()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fu(e,t,n=!0){var c,u;let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}=t;ate()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&e.target==="_blank"&&($p()?r=!0:i=!0);let l=ite()&&$p()&&!DT()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});fu.isOpening=n,du(e),e.dispatchEvent(l),fu.isOpening=!1}fu.isOpening=!1;const BT=Xt.createContext({register:()=>{}});BT.displayName="PressResponderContext";const pte=Xt.useInsertionEffect??Xb;function Mf(e){const t=m.useRef(null);return pte(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function WT(){let e=m.useRef(new Map),t=m.useCallback((i,o,a,l)=>{let c=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:l}),i.addEventListener(o,c,l)},[]),n=m.useCallback((i,o,a,l)=>{var u;let c=((u=e.current.get(a))==null?void 0:u.fn)||a;i.removeEventListener(o,c,l),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function mte(e,t){Xb(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function hte(e){let t=m.useContext(BT);if(t){let{register:n,ref:r,...i}=t;e=Yb(i,e),n()}return mte(t,e.ref),e}var Fs;class Vd{constructor(t,n,r,i){Gx(this,Fs);ch(this,Fs,!0);let o=(i==null?void 0:i.target)??r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,c=0,u,d=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,d=r.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=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=l,this.y=c,this.key=r.key}continuePropagation(){ch(this,Fs,!1)}get shouldStopPropagation(){return Hx(this,Fs)}}Fs=new WeakMap;const e3=Symbol("linkClicked"),t3="react-aria-pressable-style",n3="data-react-aria-pressable";function gte(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=hte(e),[v,b]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:g}=WT(),S=m.useCallback((I,L)=>{let N=x.current;if(l||N.didFirePressStart)return!1;let R=!0;if(N.isTriggeringEvent=!0,r){let F=new Vd("pressstart",L,I);r(F),R=F.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,b(!0),R},[l,r,n]),w=m.useCallback((I,L,N=!0)=>{let R=x.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let F=!0;if(i){let M=new Vd("pressend",L,I);i(M),F=M.shouldStopPropagation}if(n&&n(!1),b(!1),t&&N&&!l){let M=new Vd("press",L,I);t(M),F&&(F=M.shouldStopPropagation)}return R.isTriggeringEvent=!1,F},[l,i,n,t]),k=Mf(w),P=m.useCallback((I,L)=>{let N=x.current;if(l)return!1;if(o){N.isTriggeringEvent=!0;let R=new Vd("pressup",L,I);return o(R),N.isTriggeringEvent=!1,R.shouldStopPropagation}return!0},[l,o]),_=Mf(P),j=m.useCallback(I=>{let L=x.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&w(Oo(L.target,I),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,g(),f||Zw(L.target);for(let N of L.disposables)N();L.disposables=[]}},[f,g,w]),z=Mf(j);m.useEffect(()=>{l&&x.current.isPressed&&z({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let $=m.useCallback(I=>{d&&j(I)},[d,j]),W=m.useCallback(I=>{l||a==null||a(I)},[l,a]),Y=m.useCallback((I,L)=>{if(!l&&a){let N=new MouseEvent("click",I);tte(N,L),a(ete(N))}},[l,a]),ee=m.useMemo(()=>{let I=x.current,L={onKeyDown(R){var F;if(E0(R.nativeEvent,R.currentTarget)&&Mr(R.currentTarget,Bt(R))){r3(Bt(R),R.key)&&R.preventDefault();let M=!0;!I.isPressed&&!R.repeat&&(I.target=R.currentTarget,I.isPressed=!0,I.pointerType="keyboard",M=S(R,"keyboard"));let G=R.currentTarget,Z=ae=>{E0(ae,G)&&!ae.repeat&&Mr(G,Bt(ae))&&I.target&&_(Oo(I.target,ae),"keyboard")};y(no(R.currentTarget),"keyup",MT(Z,N),!0),M&&R.stopPropagation(),R.metaKey&&$p()&&((F=I.metaKeyEvents)==null||F.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(R){if(!(R&&!Mr(R.currentTarget,Bt(R)))&&R&&R.button===0&&!I.isTriggeringEvent&&!fu.isOpening){let F=!0;if(l&&R.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||dte(R.nativeEvent))){let M=S(R,"virtual"),G=_(R,"virtual"),Z=k(R,"virtual");W(R),F=M&&G&&Z}else if(I.isPressed&&I.pointerType!=="keyboard"){let M=I.pointerType||R.nativeEvent.pointerType||"virtual",G=_(Oo(R.currentTarget,R),M),Z=k(Oo(R.currentTarget,R),M,!0);F=G&&Z,I.isOverTarget=!1,W(R),z(R)}I.ignoreEmulatedMouseEvents=!1,F&&R.stopPropagation()}}},N=R=>{var F,M,G;if(I.isPressed&&I.target&&E0(R,I.target)){r3(Bt(R),R.key)&&R.preventDefault();let Z=Bt(R),ae=Mr(I.target,Z);k(Oo(I.target,R),"keyboard",ae),ae&&Y(R,I.target),g(),R.key!=="Enter"&&Zb(I.target)&&Mr(I.target,Z)&&!R[e3]&&(R[e3]=!0,fu(I.target,R,!1)),I.isPressed=!1,(F=I.metaKeyEvents)==null||F.delete(R.key)}else if(R.key==="Meta"&&((M=I.metaKeyEvents)!=null&&M.size)){let Z=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let ae of Z.values())(G=I.target)==null||G.dispatchEvent(new KeyboardEvent("keyup",ae))}};if(typeof PointerEvent<"u"){L.onPointerDown=M=>{if(M.button!==0||!Mr(M.currentTarget,Bt(M)))return;if(fte(M.nativeEvent)){I.pointerType="virtual";return}I.pointerType=M.pointerType;let G=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=M.pointerId,I.target=M.currentTarget,f||cte(I.target),G=S(M,I.pointerType);let Z=Bt(M);"releasePointerCapture"in Z&&("hasPointerCapture"in Z?Z.hasPointerCapture(M.pointerId)&&Z.releasePointerCapture(M.pointerId):Z.releasePointerCapture(M.pointerId)),y(no(M.currentTarget),"pointerup",R,!1),y(no(M.currentTarget),"pointercancel",F,!1)}G&&M.stopPropagation()},L.onMouseDown=M=>{if(Mr(M.currentTarget,Bt(M))&&M.button===0){if(u){let G=nte(M.target);G&&I.disposables.push(G)}M.stopPropagation()}},L.onPointerUp=M=>{!Mr(M.currentTarget,Bt(M))||I.pointerType==="virtual"||M.button===0&&!I.isPressed&&_(M,I.pointerType||M.pointerType)},L.onPointerEnter=M=>{M.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,S(Oo(I.target,M),I.pointerType))},L.onPointerLeave=M=>{M.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(Oo(I.target,M),I.pointerType,!1),$(M))};let R=M=>{if(M.pointerId===I.activePointerId&&I.isPressed&&M.button===0&&I.target){if(Mr(I.target,Bt(M))&&I.pointerType!=null){let G=!1,Z=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(G?z(M):(du(I.target),I.target.click()))},80);y(M.currentTarget,"click",()=>G=!0,!0),I.disposables.push(()=>clearTimeout(Z))}else z(M);I.isOverTarget=!1}},F=M=>{z(M)};L.onDragStart=M=>{Mr(M.currentTarget,Bt(M))&&z(M)}}return L},[y,l,u,g,f,$,S,W,Y]);return m.useEffect(()=>{if(!p)return;const I=no(p.current);if(!I||!I.head||I.getElementById(t3))return;const L=I.createElement("style");L.id=t3;let N=ute(I);N&&(L.nonce=N),L.textContent=` @layer { - [${i3}] { + [${n3}] { touch-action: pan-x pan-y pinch-zoom; } } - `.trim(),I.head.prepend(L)},[p]),m.useEffect(()=>{let I=x.current;return()=>{f||e3(I.target??void 0);for(let L of I.disposables)L();I.disposables=[]}},[f]),{isPressed:c||v,pressProps:Qb(h,ee,{[i3]:!0})}}function Jb(e){return e.tagName==="A"&&e.hasAttribute("href")}function E0(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof bo(i).HTMLInputElement&&!KT(i,n)||i instanceof bo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Jb(i))&&n!=="Enter")}function Oo(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 Ste(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Jb(e)}function o3(e,t){return e instanceof HTMLInputElement?!KT(e,t):Ste(e)}const wte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function KT(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":wte.has(e.type)}let kte=0;const A0=new Map;function Cte(e){let[t,n]=m.useState();return Yb(()=>{if(!e)return;let r=A0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${kte++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},A0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),A0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const jte=500;function Pte(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=jte,accessibilityDescription:a}=e;const l=m.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=GT(),{pressProps:d}=xte({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),no(p.target).activeElement!==p.target&&du(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let h=b=>{b.preventDefault()},v=bo(p.target);c(p.target,"contextmenu",h,{once:!0}),c(v,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Cte(i&&!t?a:void 0);return{longPressProps:Qb(d,f)}}function _te(){return typeof window.ResizeObserver<"u"}function Tte(e){const{ref:t,box:n,onResize:r}=e;let i=Mf(r);m.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(_te()){const a=new window.ResizeObserver(l=>{l.length&&i()});return a.observe(o,{box:n}),()=>{o&&a.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}function Ete(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function Ate(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var $te=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],a3=(e,t)=>{var n;const r=zi(),i=$te(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return jp(i,t)},[Cue,zte]=$r("SuiEmptyState"),Rte=B((e,t)=>{var n;const r=zte();return s.jsx(At,{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)})});Rte.displayName="EmptyStateIcon";var ex=m.createContext({});function Ite(e){const{theme:t,linkComponent:n,onError:r,children:i,...o}=e,a={linkComponent:n,onError:r};return s.jsx(ex.Provider,{value:a,children:s.jsx(XH,{...o,theme:t||IT,children:i})})}var Mte=()=>m.useContext(ex),Lte=e=>s.jsx(D.a,{...e});function tx(){const e=Mte();return e!=null&&e.linkComponent?e.linkComponent:Lte}var Nte=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,i,o,a;(i=(r=this.props).onError)==null||i.call(r,t,n),(a=(o=this.context).onError)==null||a.call(o,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||s.jsx("h1",{children:"Something went wrong."}):this.props.children}};Nte.contextType=ex;var qT=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[Dte,Ote]=_e({strict:!1,errorMessage:"AppShell context not available."}),Fte=e=>{const t=wu(),n=qT(e.toggleBreakpoint),r=jp(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[Bte]=$r("SuiAppShell"),Wte=B((e,t)=>{const n=Qe("SuiAppShell",e),{navbar:r,sidebar:i,aside:o,footer:a,children:l,mainRef:c,...u}=$e(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(i)&&i.type.id==="Sidebar",v=Fte({toggleBreakpoint:h?i==null?void 0:i.props.toggleBreakpoint:void 0});return s.jsx(Dte,{value:v,children:s.jsx(Bte,{value:n,children:s.jsxs(St,{ref:t,...u,sx:d,className:V("sui-app-shell",e.className),children:[r,s.jsxs(St,{sx:f,className:"saas-app-shell__inner",children:[i,s.jsx(St,{ref:c,sx:p,className:"saas-app-shell__main",children:l}),o]}),a]})})})});Wte.displayName="AppShell";function Vte(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 Ute(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 s3(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 Ud={enter:{duration:.2,ease:pi.easeOut},exit:{duration:.2,ease:pi.easeIn}},Hte={slideOutTop:{...Zi,custom:{offsetY:"-100%",reverse:!0,transition:Ud},initial:"enter"},slideOutBottom:{...Zi,custom:{offsetY:"100%",reverse:!0,transition:Ud},initial:"enter"},fade:{...Zi,custom:{transition:Ud},initial:"enter"},scale:{...Ob,custom:{initialScale:.1,reverse:!0,transition:Ud},initial:"enter"},none:{custom:{}}},Gte=D(Xn.div),Kte=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,o={...Hte[n]};return s.jsx(Gte,{ref:t,...o,...r})}),[qte,Vu]=$r("SuiBanner"),Xte={info:{icon:Ute,colorScheme:"blue"},warning:{icon:s3,colorScheme:"orange"},success:{icon:Vte,colorScheme:"green"},error:{icon:s3,colorScheme:"red"}},[Yte,Qte]=_e({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in ``"}),Zte=B((e,t)=>{var n;const{id:r,status:i="info",isOpen:o=!0,onClose:a,motionPreset:l="slideOutTop",...c}=$e(e),u=(n=e.colorScheme)!=null?n:Xte[i].colorScheme,d=Qe("SuiBanner",{...e,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:i,onClose:a,isOpen:o},h=["warning","error"].includes(i)?"alert":"status",v=o?"enter":"exit";return s.jsx(Yte,{value:p,children:s.jsx(qte,{value:d,children:s.jsx($i,{children:o&&s.jsx(Kte,{id:p.id,role:h,ref:t,motionPreset:l,animate:v,...c,className:V("sui-banner",e.className),__css:f})})})})});Zte.displayName="Banner";var Jte=B((e,t)=>{const n=Vu();return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__content",e.className),__css:n.content})});Jte.displayName="BannerContent";var ene=B((e,t)=>{const n=Vu();return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__title",e.className),__css:n.title})});ene.displayName="BannerTitle";var tne=B((e,t)=>{const r={display:"inline",...Vu().description};return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__desc",e.className),__css:r})});tne.displayName="BannerDescription";var nne=B((e,t)=>{const{children:n,variant:r}=e,i=Vu();return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__actions",e.className),__css:i.actions,children:s.jsx(Pm,{variant:r,children:n})})});nne.displayName="BannerActions";var rne=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o,isOpen:a,id:l}=Qte(),c=V("sui-banner__close-btn",r),u=Vu();return s.jsx(jm,{ref:t,__css:u.closeButton,className:c,onClick:he(n,d=>{d.stopPropagation(),o==null||o()}),"aria-controls":l,"aria-expanded":a!=null&&a.toString()?"true":"false",...i})});rne.displayName="BannerCloseButton";_e({name:"UseCollapseReturn"});var[ine,nx]=$r("SuiStructuredList"),[one,ane]=_e({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in ``"});function sne(e){return MT(e,"[role='button']:not([disabled])")}var lne=e=>{var t;const n=m.useId(),r=m.useRef(null),[i,o]=m.useState(null),a={onBlur:he(e.onBlur,l=>{l.relatedTarget&&(sne(r.current).includes(l.relatedTarget)||o(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:i,setFocusId:o,listProps:a}},cne=B((e,t)=>{const{items:n,children:r,...i}=e,o=Qe("SuiStructuredList",i),a=$e(i);let l;n?l=n.map((f,p)=>m.createElement(XT,{...f,key:f.id||p})):l=r;const c={py:2,position:"relative",...o.list},{listProps:u,...d}=lne(e);return s.jsx(one,{value:d,children:s.jsx(ine,{value:o,children:s.jsx(D.ul,{ref:iy(t,d.containerRef),__css:c,...a,...u,className:V("sui-list",e.className),children:l})})})});cne.displayName="StructuredList";var une=B((e,t)=>{const{children:n,onClick:r,action:i,role:o="heading",level:a=1,...l}=e,c=nx();return s.jsxs(D.li,{ref:t,__css:c.header,onClick:r,...l,className:V("sui-list__header",e.className),children:[s.jsx(D.span,{flex:"1",userSelect:"none",role:o,"aria-level":a,children:n}),i]})});une.displayName="StructuredListHeader";var XT=B((e,t)=>{const{onClick:n,href:r,as:i,children:o,isDisabled:a,...l}=e,c=nx(),u=!!(n||r),d=u?YT:m.Fragment,f=!!u,p={...c.item,...f?{py:0,px:0}:{}},h=u?{onClick:n,href:r,as:i,isDisabled:a}:{},v=u?s.jsx(d,{...h,children:o}):o;return s.jsx(D.li,{ref:t,__css:p,...l,className:V("sui-list__item",e.className),children:v})});XT.displayName="StructuredListItem";var dne=e=>{var t;const{id:n,containerRef:r,focusId:i,setFocusId:o}=ane(),a=`${n}-${m.useId()}`,l=(t=e.id)!=null?t:a,c=i===l;function u(){return MT(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:l,"data-focus":de(c),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:he(e.onFocus,()=>{o(l)}),onKeyDown:he(e.onKeyDown,m.useCallback(f=>{const p=u(),h={ArrowUp:()=>{var v;(v=Wee(p,l))==null||v.focus()},ArrowDown:()=>{var v;(v=Bee(p,l))==null||v.focus()},Home:()=>{var v;(v=p[0])==null||v.focus()},End:()=>{var v;(v=p[p.length-1])==null||v.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[l])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},YT=B((e,t)=>{const{children:n,isDisabled:r,...i}=e,{buttonProps:o}=dne(e),a=nx();return s.jsx(D.div,{ref:t,__css:a.button,role:"button",...i,...o,className:V("sui-list__item-button",e.className),children:n})});YT.displayName="StructuredListButton";var fne=B((e,t)=>{const n=tx(),{href:r,...i}=e;return s.jsx(_o,{as:n,ref:t,href:r,...i})});fne.displayName="Link";$r("SuiLoadingOverlay");D(Xn.div);var pne=typeof window<"u";function l3(e){return pne?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var mne=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:i}=e,o=m.useRef(i?l3(t==null?void 0:t.current):{x:0,y:0});let a=null;const l=()=>{const c=l3(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:o.current,currPos:c}),o.current=c,a=null};return m.useEffect(()=>{if(!i)return;const c=()=>{n?a===null&&(a=setTimeout(l,n)):l()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)},[t==null?void 0:t.current,n,i]),o.current},[jue,hne]=_e({name:"UseContextMenuContext",strict:!1}),c3=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),gne=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,vne=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:i,anchor:o}=hne(),a=LX(),{popper:l,openAndFocusFirstItem:c}=a,{longPressProps:u}=Pte({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{i()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),c())}}),d=m.useRef({getBoundingClientRect:c3(o.x,o.y)});return m.useEffect(()=>{l.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=c3(o.x,o.y),a.popper.update()},[o]),{triggerProps:{...u,onPointerDown:h=>{var v;h.pointerType!=="mouse"&&((v=u.onPointerDown)==null||v.call(u,h))},onMouseDown:h=>{var v;gne()&&((v=u.onMouseDown)==null||v.call(u,h))},onContextMenu:he(h=>{h.preventDefault(),r(h),c()},e.onContextMenu),ref:Mt(n,t)}}},yne=B((e,t)=>{const{children:n,longPressDisabled:r,...i}=e,{triggerProps:o}=vne(e,t);return s.jsx(D.span,{...i,sx:{WebkitTouchCallout:"none"},...o,children:n})});yne.displayName="ContextMenuTrigger";var[bne,Nm]=$r("SuiPersona"),u3={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"}},xne={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},Sne=B((e,t)=>{const{children:n,...r}=e,i=Qe("SuiPersona",e),o=$e(r),l={...{display:"flex",flexDirection:"row",alignItems:"center"},...i.container};return s.jsx(bne,{value:i,children:s.jsx(D.div,{ref:t,__css:l,...o,className:V("sui-persona",e.className),children:n})})});Sne.displayName="PersonaContainer";var wne=B((e,t)=>{var n,r,i,o,a;const{name:l,presence:c,presenceLabel:u,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:v,icon:b,iconLabel:x,ignoreFallback:y,loading:g,onError:S,src:w,srcSet:k,...P}=e,_={};let j;const z=zi(),$=((n=z.colors)==null?void 0:n.presence)||xne,W=!!((i=(r=z.semanticTokens)==null?void 0:r.colors)!=null&&i["presence.online"]);if(c){const Y=u||((o=u3[c])==null?void 0:o.label),ee=W?((a=u3[c])==null?void 0:a.color)||`presence.${c}`:$[c];f?(_.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:ee,borderRadius:"50%",boxSizing:"border-box"}},_.borderWidth="0.15em",_.bg=gp("white","gray.800")):_.bg=ee,j=s.jsx(QP,{boxSize:p,..._,children:d}),Y&&(j=s.jsx(Bb,{label:Y,children:j}))}return s.jsx(ub,{ref:t,name:l,size:h,getInitials:v,icon:b,iconLabel:x,ignoreFallback:y,loading:g,onError:S,src:w,srcSet:k,...P,children:j})});wne.displayName="PersonaAvatar";var kne=B((e,t)=>{const{children:n,className:r,...i}=e,o=Nm(),l={...{display:"flex",flexDirection:"column"},...o.details};return s.jsx(D.div,{ref:t,...i,__css:l,className:V("sui-persona__details",r),children:n})});kne.displayName="PersonaDetails";var Cne=B((e,t)=>{const n=Nm();return s.jsx(D.span,{ref:t,...e,__css:n.label,className:V("sui-persona__label",e.className)})});Cne.displayName="PersonaLabel";var jne=B((e,t)=>{const n=Nm();return s.jsx(D.span,{ref:t,...e,__css:n.secondaryLabel,className:V("sui-persona__secondary-label",e.className)})});jne.displayName="PersonaSecondaryLabel";var Pne=B((e,t)=>{const n=Nm();return s.jsx(D.span,{ref:t,...e,__css:n.tertiaryLabel,className:V("sui-persona__tertiary-label",e.className)})});Pne.displayName="PersonaTertiaryLabel";var[_ne,QT]=$r("SuiProperty"),Tne=B((e,t)=>{const n=Qe("SuiProperty",e),{children:r,label:i,value:o,labelWidth:a,spacing:l,...c}=$e(e),u={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return s.jsx(_ne,{value:n,children:s.jsxs(D.dl,{ref:t,__css:u,...c,className:V("sui-property",e.className),children:[i&&s.jsx(ZT,{width:a,minWidth:a,marginEnd:l,children:i}),o&&s.jsx(JT,{children:o}),r]})})});Tne.displayName="Property";var ZT=B((e,t)=>{const n=QT(),{children:r,noOfLines:i=1,width:o,minWidth:a,...l}=e,c={display:"flex",flexDirection:"row",...n.label};return o&&(c.minWidth=a||"auto",c.width=o),s.jsx(D.dt,{ref:t,__css:c,...l,className:V("sui-property__label",e.className),children:s.jsx(D.span,{flex:"1",noOfLines:i,children:r})})});ZT.displayName="PropertyLabel";var JT=B((e,t)=>{const n=QT(),{children:r,...i}=e,o={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return s.jsx(D.dd,{ref:t,__css:o,...i,className:V("sui-property__value",e.className),children:r})});JT.displayName="PropertyValue";function Ene(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:i=!1,disableScrollHandler:o=!1,onScrollPositionChange:a,motionProps:l,...c}=e,u=m.useRef(null);m.useImperativeHandle(t,()=>u.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),v=()=>{if(u.current){const x=u.current.offsetWidth;x!==d.current&&(d.current=x)}};return Tte({ref:u,onResize:()=>{var x;((x=u.current)==null?void 0:x.offsetWidth)!==d.current&&v()}}),m.useEffect(()=>{var x;v(),f.current=((x=u.current)==null?void 0:x.offsetHeight)||0},[]),mne({elementRef:n,isEnabled:i||!o,callback:({prevPos:x,currPos:y})=>{a==null||a(y.y),i&&h(g=>{const S=y.y>x.y&&y.y>f.current;return S!==g?S:g})}}),{containerRef:u,height:r,isHidden:p,shouldHideOnScroll:i,motionProps:l,getContainerProps:(x={})=>({...c,...l,"data-hidden":de(p),ref:u,style:{"--navbar-height":r,...c.style,...x==null?void 0:x.style}})}}var[Ane]=_e({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),[$ne,Dm]=_e({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:""}),zne=D(Xn.nav),Rne=B((e,t)=>{const{children:n,...r}=e,i=Ene({...r,ref:t}),o=Qe("SuiNavbar",e),a=s.jsx(D.header,{__css:o.inner,className:"sui-navbar__inner",children:n}),l={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...o.container};return s.jsx($ne,{value:o,children:s.jsx(Ane,{value:i,children:s.jsx(zne,{__css:l,animate:i.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:V("sui-navbar",e.className),...i.getContainerProps(e),children:a})})})});Rne.displayName="Navbar";var Ine=B((e,t)=>{const{className:n,children:r,...i}=e,o=Dm();return s.jsx(D.div,{ref:t,__css:o.brand,className:V("sui-navbar__brand"),...i,children:r})});Ine.displayName="NavbarBrand";var Mne=B((e,t)=>{const{className:n,children:r,spacing:i=0,...o}=e,l={...Dm().content,"& > *:not(style) ~ *:not(style)":{marginStart:i}};return s.jsx(D.ul,{ref:t,__css:l,className:V("sui-navbar__content",n),...o,children:r})});Mne.displayName="NavbarContent";var Lne=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=Dm();return s.jsx(D.li,{ref:t,__css:a.item,className:V("sui-navbar__item",n),"data-active":de(i),...o,children:r})});Lne.displayName="NavbarItem";var Nne=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=tx(),l=Dm();return s.jsx(D.a,{as:a,ref:t,__css:l.link,"data-active":de(i),className:V("sui-navbar__link",n),...o,children:r})});Nne.displayName="NavbarLink";var[Dne,One]=_e({name:"SidebarContext",strict:!1}),[Fne]=_e({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:""}),Bne=D(Xn.nav),Wne={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},e8=B((e,t)=>{var n,r,i;const o=Qe("SuiSidebar",e),l=(n=zi().components.SuiSidebar)==null?void 0:n.defaultProps,c=a3((r=e.variant)!=null?r:l==null?void 0:l.variant,{fallback:"base"}),u=a3((i=e.size)!=null?i:l==null?void 0:l.size,{fallback:"base"}),d=c==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:v,motionPreset:b="slideInOut",isOpen:x,onOpen:y,onClose:g,...S}=$e(e),w=Ote(),k=qT(h),P=jp(k,{fallback:void 0}),_=jp(k),j=typeof P>"u",z=typeof x<"u",$=(P||z)&&!d,W=wu({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:y||(w==null?void 0:w.openSidebar),onClose:g||(w==null?void 0:w.closeSidebar)}),{isOpen:Y,onClose:ee,onOpen:I}=W;m.useEffect(()=>{j&&_||d||z||(_?ee():I())},[j,d,_]);const L={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",...P&&$?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},N={...W,breakpoints:k,isMobile:P,variant:c,size:u},R=Wne[d?"none":b||"none"];return s.jsx(Dne,{value:N,children:s.jsx(Fne,{value:o,children:s.jsx(Bne,{ref:t,initial:!1,animate:!j&&(!$||Y?"enter":"exit"),variants:R,__css:{...L,...o.container},...S,id:W.getDisclosureProps().id,className:V("sui-sidebar",v),"data-compact":de(d),"data-collapsible":de(P&&$),children:p})})})});e8.displayName="Sidebar";e8.id="Sidebar";_e({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:""});var[Vne,t8]=_e({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:""}),n8=B(({children:e,...t},n)=>{const r=t8();return s.jsx(D.span,{ref:n,__css:r.label,...t,className:V("sui-nav-item__label",t.className),children:e})});n8.displayName="NavItemLabel";var r8=e=>{const t=t8(),{className:n,children:r,...i}=e,o=m.Children.only(r),a=m.isValidElement(o)?m.cloneElement(o,{focusable:"false","aria-hidden":!0}):null;return s.jsx(D.span,{...i,className:V("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};r8.displayName="NavItemIcon";var Une=B((e,t)=>{const{as:n,href:r,icon:i,inset:o,className:a,tooltipProps:l,isActive:c,children:u,...d}=$e(e),f=tx(),{onClose:p,variant:h}=One()||{},v=h==="compact",b=Qe("SuiNavItem",e);let x=u,y=l==null?void 0:l.label;typeof x=="string"&&(!y&&v&&(y=x),x=s.jsx(n8,{children:x}));let g=n;r&&!n&&(g=f);const S=s.jsx(D.a,{as:g,"aria-current":c?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":de(c),__css:b.link,children:s.jsxs(D.span,{__css:{...b.inner,pl:o},className:"sui-nav-item__inner",children:[i&&s.jsx(r8,{children:i}),x]})});return s.jsx(Vne,{value:b,children:s.jsx(Bb,{label:y,placement:"right",openDelay:400,...l,children:s.jsx(D.div,{__css:b.item,onClick:p,"data-compact":de(v),className:V("sui-nav-item",a),children:S})})})});Une.displayName="NavItem";var Hne=B((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:i,size:o,variant:a,width:l,icon:c,resetIcon:u,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...v}=e,b=Qe("SuiSearchInput",e),x=m.useRef(null),[y,g]=s6({value:r,defaultValue:i}),S=m.useCallback(j=>{g(j.target.value)},[g]),w=m.useCallback(j=>{j.key==="Escape"&&(g(""),k())},[p,g]),k=()=>{var j;g(""),p==null||p(),(j=x.current)==null||j.focus()},P=o==="lg"?"sm":"xs",_=y&&!e.isDisabled;return s.jsxs(Eb,{size:o,width:l,children:[s.jsx(Ab,{children:c||s.jsx(kQ,{})}),s.jsx(bt,{type:"text",placeholder:n,variant:a,size:o,value:y,ref:iy(t,x),sx:b.input,onChange:he(S,f),onKeyDown:he(w,h),...v}),s.jsx(Em,{children:_?s.jsx(vn,{onClick:k,size:P,variant:"ghost","aria-label":"Reset search",icon:u||s.jsx(wQ,{}),sx:b.reset}):d})]})});Hne.displayName="SearchInput";var[Gne,Kne]=_e({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in ``"});function qne(e){const{step:t,onChange:n}=e,[r,i]=m.useState(0),o=m.useRef([]),[,a]=m.useState(Date.now()),l=m.useCallback(h=>{const v=[...o.current];v.indexOf(h)===-1&&v.push(h),o.current=v,a(Date.now())},[o,a]),c=h=>{o.current=o.current.slice(o.current.indexOf(h),1)},u=h=>{const v=o.current.indexOf(h);v!==-1&&i(v)},d=()=>{i(r+1)},f=()=>{i(r-1)};return m.useEffect(()=>{typeof t=="string"?u(t):typeof t=="number"?i(t):r===-1&&i(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:o,activeStep:o.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===o.current.length-1,isCompleted:r>=o.current.length,setIndex:i,setStep:u,nextStep:d,prevStep:f,registerStep:l,unregisterStep:c}}function Xne(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:i,unregisterStep:o,activeStep:a}=Kne();return m.useEffect(()=>{if(t)return i(t),()=>{o(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[Yne,Qne]=$r("Stepper"),Zne=B((e,t)=>{var n,r,i,o;const{children:a,orientation:l="horizontal",index:c,step:u,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:v,...b}=e,x=Qe("Stepper",e),y=qne({step:u??c,onChange:d}),{activeIndex:g}=y,S=l==="vertical",w=Ate(a,i8),k={position:"relative",...x.item},P=w.reduce(($,W,Y,ee)=>{const I=m.cloneElement(W,{key:Y,...W.props,isActive:g===Y,isCompleted:W.props.isCompleted||g>Y});return S?$.push(s.jsxs(D.div,{className:"sui-steps__item",__css:k,children:[I,s.jsx(Lv,{isOpen:g===Y,orientation:l,children:W.props.children}),Y=w.length?_:!S&&j?s.jsx(Lv,{orientation:l,children:(o=(i=w[g])==null?void 0:i.props)==null?void 0:o.children}):null;return s.jsx(Yne,{value:x,children:s.jsx(Gne,{value:y,children:s.jsxs(D.div,{ref:t,__css:x.container,...b,className:V("sui-steps",e.className),children:[s.jsx(mQ,{index:g,orientation:l,variant:f,colorScheme:p,size:h,...v,children:P}),z]})})})});Zne.displayName="Steps";var i8=e=>{const{render:t,icon:n,title:r,description:i,...o}=e,a=Xne(o);return t?t({...a,...e}):s.jsxs(sQ,{children:[s.jsx(fQ,{children:s.jsx(dQ,{complete:s.jsx(uQ,{}),incomplete:s.jsx(Lw,{children:n}),active:s.jsx(Lw,{})})}),s.jsxs(ne,{flexShrink:"0",children:[s.jsx(pQ,{children:r}),i&&s.jsx(lQ,{children:i})]}),s.jsx(xT,{})]})};i8.displayName="StepsItem";var Lv=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...i}=e,o=Qne();return s.jsx(D.div,{...i,__css:o.content,className:V("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?s.jsx(zu,{in:n,style:{overflow:n?"visible":"hidden"},children:s.jsx(D.div,{p:"2px",children:n?t:null})}):t})};Lv.displayName="StepsContent";var o8=e=>{const t={};return s.jsx(D.div,{__css:t,...e,className:V("sui-steps__completed",e.className)})};o8.displayName="StepsCompleted";var[Pue,Jne]=$r("SuiTimeline"),ere=B((e,t)=>{const{children:n,...r}=e,i=Jne();return s.jsx(D.li,{...r,ref:t,__css:i.item,className:V("sui-timeline__item",e.className),children:n})});ere.displayName="TimelineItem";B((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=Yn("SuiIconBadge",e),c=$e(a),u=n||r,d=m.isValidElement(u)?m.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...l};return s.jsx(D.div,{ref:t,__css:f,borderRadius:i?"full":void 0,"aria-label":o,...c,className:V("sui-icon-badge",e.className),children:d})});/** + `.trim(),I.head.prepend(L)},[p]),m.useEffect(()=>{let I=x.current;return()=>{f||Zw(I.target??void 0);for(let L of I.disposables)L();I.disposables=[]}},[f]),{isPressed:c||v,pressProps:Yb(h,ee,{[n3]:!0})}}function Zb(e){return e.tagName==="A"&&e.hasAttribute("href")}function E0(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof bo(i).HTMLInputElement&&!VT(i,n)||i instanceof bo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Zb(i))&&n!=="Enter")}function Oo(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 vte(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Zb(e)}function r3(e,t){return e instanceof HTMLInputElement?!VT(e,t):vte(e)}const yte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function VT(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":yte.has(e.type)}let bte=0;const A0=new Map;function xte(e){let[t,n]=m.useState();return Xb(()=>{if(!e)return;let r=A0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${bte++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},A0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),A0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const Ste=500;function wte(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Ste,accessibilityDescription:a}=e;const l=m.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=WT(),{pressProps:d}=gte({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),no(p.target).activeElement!==p.target&&du(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let h=b=>{b.preventDefault()},v=bo(p.target);c(p.target,"contextmenu",h,{once:!0}),c(v,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=xte(i&&!t?a:void 0);return{longPressProps:Yb(d,f)}}function kte(){return typeof window.ResizeObserver<"u"}function Cte(e){const{ref:t,box:n,onResize:r}=e;let i=Mf(r);m.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(kte()){const a=new window.ResizeObserver(l=>{l.length&&i()});return a.observe(o,{box:n}),()=>{o&&a.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}function jte(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function Pte(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var _te=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],i3=(e,t)=>{var n;const r=zi(),i=_te(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return jp(i,t)},[xue,Tte]=$r("SuiEmptyState"),Ete=B((e,t)=>{var n;const r=Tte();return s.jsx(At,{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)})});Ete.displayName="EmptyStateIcon";var Jb=m.createContext({});function Ate(e){const{theme:t,linkComponent:n,onError:r,children:i,...o}=e,a={linkComponent:n,onError:r};return s.jsx(Jb.Provider,{value:a,children:s.jsx(HH,{...o,theme:t||AT,children:i})})}var $te=()=>m.useContext(Jb),zte=e=>s.jsx(D.a,{...e});function ex(){const e=$te();return e!=null&&e.linkComponent?e.linkComponent:zte}var Rte=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,i,o,a;(i=(r=this.props).onError)==null||i.call(r,t,n),(a=(o=this.context).onError)==null||a.call(o,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||s.jsx("h1",{children:"Something went wrong."}):this.props.children}};Rte.contextType=Jb;var UT=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[Ite,Mte]=_e({strict:!1,errorMessage:"AppShell context not available."}),Lte=e=>{const t=wu(),n=UT(e.toggleBreakpoint),r=jp(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[Nte]=$r("SuiAppShell"),Dte=B((e,t)=>{const n=Qe("SuiAppShell",e),{navbar:r,sidebar:i,aside:o,footer:a,children:l,mainRef:c,...u}=$e(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(i)&&i.type.id==="Sidebar",v=Lte({toggleBreakpoint:h?i==null?void 0:i.props.toggleBreakpoint:void 0});return s.jsx(Ite,{value:v,children:s.jsx(Nte,{value:n,children:s.jsxs(St,{ref:t,...u,sx:d,className:V("sui-app-shell",e.className),children:[r,s.jsxs(St,{sx:f,className:"saas-app-shell__inner",children:[i,s.jsx(St,{ref:c,sx:p,className:"saas-app-shell__main",children:l}),o]}),a]})})})});Dte.displayName="AppShell";function Ote(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 Fte(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 o3(e){return s.jsx(At,{viewBox:"0 0 24 24",...e,children:s.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 Ud={enter:{duration:.2,ease:pi.easeOut},exit:{duration:.2,ease:pi.easeIn}},Bte={slideOutTop:{...Zi,custom:{offsetY:"-100%",reverse:!0,transition:Ud},initial:"enter"},slideOutBottom:{...Zi,custom:{offsetY:"100%",reverse:!0,transition:Ud},initial:"enter"},fade:{...Zi,custom:{transition:Ud},initial:"enter"},scale:{...Db,custom:{initialScale:.1,reverse:!0,transition:Ud},initial:"enter"},none:{custom:{}}},Wte=D(Xn.div),Vte=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,o={...Bte[n]};return s.jsx(Wte,{ref:t,...o,...r})}),[Ute,Vu]=$r("SuiBanner"),Hte={info:{icon:Fte,colorScheme:"blue"},warning:{icon:o3,colorScheme:"orange"},success:{icon:Ote,colorScheme:"green"},error:{icon:o3,colorScheme:"red"}},[Gte,Kte]=_e({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in ``"}),qte=B((e,t)=>{var n;const{id:r,status:i="info",isOpen:o=!0,onClose:a,motionPreset:l="slideOutTop",...c}=$e(e),u=(n=e.colorScheme)!=null?n:Hte[i].colorScheme,d=Qe("SuiBanner",{...e,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:i,onClose:a,isOpen:o},h=["warning","error"].includes(i)?"alert":"status",v=o?"enter":"exit";return s.jsx(Gte,{value:p,children:s.jsx(Ute,{value:d,children:s.jsx($i,{children:o&&s.jsx(Vte,{id:p.id,role:h,ref:t,motionPreset:l,animate:v,...c,className:V("sui-banner",e.className),__css:f})})})})});qte.displayName="Banner";var Xte=B((e,t)=>{const n=Vu();return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__content",e.className),__css:n.content})});Xte.displayName="BannerContent";var Yte=B((e,t)=>{const n=Vu();return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__title",e.className),__css:n.title})});Yte.displayName="BannerTitle";var Qte=B((e,t)=>{const r={display:"inline",...Vu().description};return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__desc",e.className),__css:r})});Qte.displayName="BannerDescription";var Zte=B((e,t)=>{const{children:n,variant:r}=e,i=Vu();return s.jsx(D.div,{ref:t,...e,className:V("sui-banner__actions",e.className),__css:i.actions,children:s.jsx(Pm,{variant:r,children:n})})});Zte.displayName="BannerActions";var Jte=B((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o,isOpen:a,id:l}=Kte(),c=V("sui-banner__close-btn",r),u=Vu();return s.jsx(jm,{ref:t,__css:u.closeButton,className:c,onClick:he(n,d=>{d.stopPropagation(),o==null||o()}),"aria-controls":l,"aria-expanded":a!=null&&a.toString()?"true":"false",...i})});Jte.displayName="BannerCloseButton";_e({name:"UseCollapseReturn"});var[ene,tx]=$r("SuiStructuredList"),[tne,nne]=_e({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in ``"});function rne(e){return $T(e,"[role='button']:not([disabled])")}var ine=e=>{var t;const n=m.useId(),r=m.useRef(null),[i,o]=m.useState(null),a={onBlur:he(e.onBlur,l=>{l.relatedTarget&&(rne(r.current).includes(l.relatedTarget)||o(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:i,setFocusId:o,listProps:a}},one=B((e,t)=>{const{items:n,children:r,...i}=e,o=Qe("SuiStructuredList",i),a=$e(i);let l;n?l=n.map((f,p)=>m.createElement(HT,{...f,key:f.id||p})):l=r;const c={py:2,position:"relative",...o.list},{listProps:u,...d}=ine(e);return s.jsx(tne,{value:d,children:s.jsx(ene,{value:o,children:s.jsx(D.ul,{ref:ry(t,d.containerRef),__css:c,...a,...u,className:V("sui-list",e.className),children:l})})})});one.displayName="StructuredList";var ane=B((e,t)=>{const{children:n,onClick:r,action:i,role:o="heading",level:a=1,...l}=e,c=tx();return s.jsxs(D.li,{ref:t,__css:c.header,onClick:r,...l,className:V("sui-list__header",e.className),children:[s.jsx(D.span,{flex:"1",userSelect:"none",role:o,"aria-level":a,children:n}),i]})});ane.displayName="StructuredListHeader";var HT=B((e,t)=>{const{onClick:n,href:r,as:i,children:o,isDisabled:a,...l}=e,c=tx(),u=!!(n||r),d=u?GT:m.Fragment,f=!!u,p={...c.item,...f?{py:0,px:0}:{}},h=u?{onClick:n,href:r,as:i,isDisabled:a}:{},v=u?s.jsx(d,{...h,children:o}):o;return s.jsx(D.li,{ref:t,__css:p,...l,className:V("sui-list__item",e.className),children:v})});HT.displayName="StructuredListItem";var sne=e=>{var t;const{id:n,containerRef:r,focusId:i,setFocusId:o}=nne(),a=`${n}-${m.useId()}`,l=(t=e.id)!=null?t:a,c=i===l;function u(){return $T(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:l,"data-focus":de(c),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:he(e.onFocus,()=>{o(l)}),onKeyDown:he(e.onKeyDown,m.useCallback(f=>{const p=u(),h={ArrowUp:()=>{var v;(v=Dee(p,l))==null||v.focus()},ArrowDown:()=>{var v;(v=Nee(p,l))==null||v.focus()},Home:()=>{var v;(v=p[0])==null||v.focus()},End:()=>{var v;(v=p[p.length-1])==null||v.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[l])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},GT=B((e,t)=>{const{children:n,isDisabled:r,...i}=e,{buttonProps:o}=sne(e),a=tx();return s.jsx(D.div,{ref:t,__css:a.button,role:"button",...i,...o,className:V("sui-list__item-button",e.className),children:n})});GT.displayName="StructuredListButton";var lne=B((e,t)=>{const n=ex(),{href:r,...i}=e;return s.jsx(_o,{as:n,ref:t,href:r,...i})});lne.displayName="Link";$r("SuiLoadingOverlay");D(Xn.div);var cne=typeof window<"u";function a3(e){return cne?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var une=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:i}=e,o=m.useRef(i?a3(t==null?void 0:t.current):{x:0,y:0});let a=null;const l=()=>{const c=a3(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:o.current,currPos:c}),o.current=c,a=null};return m.useEffect(()=>{if(!i)return;const c=()=>{n?a===null&&(a=setTimeout(l,n)):l()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)},[t==null?void 0:t.current,n,i]),o.current},[Sue,dne]=_e({name:"UseContextMenuContext",strict:!1}),s3=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),fne=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,pne=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:i,anchor:o}=dne(),a=zX(),{popper:l,openAndFocusFirstItem:c}=a,{longPressProps:u}=wte({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{i()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),c())}}),d=m.useRef({getBoundingClientRect:s3(o.x,o.y)});return m.useEffect(()=>{l.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=s3(o.x,o.y),a.popper.update()},[o]),{triggerProps:{...u,onPointerDown:h=>{var v;h.pointerType!=="mouse"&&((v=u.onPointerDown)==null||v.call(u,h))},onMouseDown:h=>{var v;fne()&&((v=u.onMouseDown)==null||v.call(u,h))},onContextMenu:he(h=>{h.preventDefault(),r(h),c()},e.onContextMenu),ref:Mt(n,t)}}},mne=B((e,t)=>{const{children:n,longPressDisabled:r,...i}=e,{triggerProps:o}=pne(e,t);return s.jsx(D.span,{...i,sx:{WebkitTouchCallout:"none"},...o,children:n})});mne.displayName="ContextMenuTrigger";var[hne,Nm]=$r("SuiPersona"),l3={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"}},gne={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},vne=B((e,t)=>{const{children:n,...r}=e,i=Qe("SuiPersona",e),o=$e(r),l={...{display:"flex",flexDirection:"row",alignItems:"center"},...i.container};return s.jsx(hne,{value:i,children:s.jsx(D.div,{ref:t,__css:l,...o,className:V("sui-persona",e.className),children:n})})});vne.displayName="PersonaContainer";var yne=B((e,t)=>{var n,r,i,o,a;const{name:l,presence:c,presenceLabel:u,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:v,icon:b,iconLabel:x,ignoreFallback:y,loading:g,onError:S,src:w,srcSet:k,...P}=e,_={};let j;const z=zi(),$=((n=z.colors)==null?void 0:n.presence)||gne,W=!!((i=(r=z.semanticTokens)==null?void 0:r.colors)!=null&&i["presence.online"]);if(c){const Y=u||((o=l3[c])==null?void 0:o.label),ee=W?((a=l3[c])==null?void 0:a.color)||`presence.${c}`:$[c];f?(_.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:ee,borderRadius:"50%",boxSizing:"border-box"}},_.borderWidth="0.15em",_.bg=gp("white","gray.800")):_.bg=ee,j=s.jsx(KP,{boxSize:p,..._,children:d}),Y&&(j=s.jsx(Fb,{label:Y,children:j}))}return s.jsx(cb,{ref:t,name:l,size:h,getInitials:v,icon:b,iconLabel:x,ignoreFallback:y,loading:g,onError:S,src:w,srcSet:k,...P,children:j})});yne.displayName="PersonaAvatar";var bne=B((e,t)=>{const{children:n,className:r,...i}=e,o=Nm(),l={...{display:"flex",flexDirection:"column"},...o.details};return s.jsx(D.div,{ref:t,...i,__css:l,className:V("sui-persona__details",r),children:n})});bne.displayName="PersonaDetails";var xne=B((e,t)=>{const n=Nm();return s.jsx(D.span,{ref:t,...e,__css:n.label,className:V("sui-persona__label",e.className)})});xne.displayName="PersonaLabel";var Sne=B((e,t)=>{const n=Nm();return s.jsx(D.span,{ref:t,...e,__css:n.secondaryLabel,className:V("sui-persona__secondary-label",e.className)})});Sne.displayName="PersonaSecondaryLabel";var wne=B((e,t)=>{const n=Nm();return s.jsx(D.span,{ref:t,...e,__css:n.tertiaryLabel,className:V("sui-persona__tertiary-label",e.className)})});wne.displayName="PersonaTertiaryLabel";var[kne,KT]=$r("SuiProperty"),Cne=B((e,t)=>{const n=Qe("SuiProperty",e),{children:r,label:i,value:o,labelWidth:a,spacing:l,...c}=$e(e),u={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return s.jsx(kne,{value:n,children:s.jsxs(D.dl,{ref:t,__css:u,...c,className:V("sui-property",e.className),children:[i&&s.jsx(qT,{width:a,minWidth:a,marginEnd:l,children:i}),o&&s.jsx(XT,{children:o}),r]})})});Cne.displayName="Property";var qT=B((e,t)=>{const n=KT(),{children:r,noOfLines:i=1,width:o,minWidth:a,...l}=e,c={display:"flex",flexDirection:"row",...n.label};return o&&(c.minWidth=a||"auto",c.width=o),s.jsx(D.dt,{ref:t,__css:c,...l,className:V("sui-property__label",e.className),children:s.jsx(D.span,{flex:"1",noOfLines:i,children:r})})});qT.displayName="PropertyLabel";var XT=B((e,t)=>{const n=KT(),{children:r,...i}=e,o={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return s.jsx(D.dd,{ref:t,__css:o,...i,className:V("sui-property__value",e.className),children:r})});XT.displayName="PropertyValue";function jne(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:i=!1,disableScrollHandler:o=!1,onScrollPositionChange:a,motionProps:l,...c}=e,u=m.useRef(null);m.useImperativeHandle(t,()=>u.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),v=()=>{if(u.current){const x=u.current.offsetWidth;x!==d.current&&(d.current=x)}};return Cte({ref:u,onResize:()=>{var x;((x=u.current)==null?void 0:x.offsetWidth)!==d.current&&v()}}),m.useEffect(()=>{var x;v(),f.current=((x=u.current)==null?void 0:x.offsetHeight)||0},[]),une({elementRef:n,isEnabled:i||!o,callback:({prevPos:x,currPos:y})=>{a==null||a(y.y),i&&h(g=>{const S=y.y>x.y&&y.y>f.current;return S!==g?S:g})}}),{containerRef:u,height:r,isHidden:p,shouldHideOnScroll:i,motionProps:l,getContainerProps:(x={})=>({...c,...l,"data-hidden":de(p),ref:u,style:{"--navbar-height":r,...c.style,...x==null?void 0:x.style}})}}var[Pne]=_e({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),[_ne,Dm]=_e({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:""}),Tne=D(Xn.nav),Ene=B((e,t)=>{const{children:n,...r}=e,i=jne({...r,ref:t}),o=Qe("SuiNavbar",e),a=s.jsx(D.header,{__css:o.inner,className:"sui-navbar__inner",children:n}),l={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...o.container};return s.jsx(_ne,{value:o,children:s.jsx(Pne,{value:i,children:s.jsx(Tne,{__css:l,animate:i.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:V("sui-navbar",e.className),...i.getContainerProps(e),children:a})})})});Ene.displayName="Navbar";var Ane=B((e,t)=>{const{className:n,children:r,...i}=e,o=Dm();return s.jsx(D.div,{ref:t,__css:o.brand,className:V("sui-navbar__brand"),...i,children:r})});Ane.displayName="NavbarBrand";var $ne=B((e,t)=>{const{className:n,children:r,spacing:i=0,...o}=e,l={...Dm().content,"& > *:not(style) ~ *:not(style)":{marginStart:i}};return s.jsx(D.ul,{ref:t,__css:l,className:V("sui-navbar__content",n),...o,children:r})});$ne.displayName="NavbarContent";var zne=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=Dm();return s.jsx(D.li,{ref:t,__css:a.item,className:V("sui-navbar__item",n),"data-active":de(i),...o,children:r})});zne.displayName="NavbarItem";var Rne=B((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=ex(),l=Dm();return s.jsx(D.a,{as:a,ref:t,__css:l.link,"data-active":de(i),className:V("sui-navbar__link",n),...o,children:r})});Rne.displayName="NavbarLink";var[Ine,Mne]=_e({name:"SidebarContext",strict:!1}),[Lne]=_e({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:""}),Nne=D(Xn.nav),Dne={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},YT=B((e,t)=>{var n,r,i;const o=Qe("SuiSidebar",e),l=(n=zi().components.SuiSidebar)==null?void 0:n.defaultProps,c=i3((r=e.variant)!=null?r:l==null?void 0:l.variant,{fallback:"base"}),u=i3((i=e.size)!=null?i:l==null?void 0:l.size,{fallback:"base"}),d=c==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:v,motionPreset:b="slideInOut",isOpen:x,onOpen:y,onClose:g,...S}=$e(e),w=Mte(),k=UT(h),P=jp(k,{fallback:void 0}),_=jp(k),j=typeof P>"u",z=typeof x<"u",$=(P||z)&&!d,W=wu({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:y||(w==null?void 0:w.openSidebar),onClose:g||(w==null?void 0:w.closeSidebar)}),{isOpen:Y,onClose:ee,onOpen:I}=W;m.useEffect(()=>{j&&_||d||z||(_?ee():I())},[j,d,_]);const L={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",...P&&$?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},N={...W,breakpoints:k,isMobile:P,variant:c,size:u},R=Dne[d?"none":b||"none"];return s.jsx(Ine,{value:N,children:s.jsx(Lne,{value:o,children:s.jsx(Nne,{ref:t,initial:!1,animate:!j&&(!$||Y?"enter":"exit"),variants:R,__css:{...L,...o.container},...S,id:W.getDisclosureProps().id,className:V("sui-sidebar",v),"data-compact":de(d),"data-collapsible":de(P&&$),children:p})})})});YT.displayName="Sidebar";YT.id="Sidebar";_e({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:""});var[One,QT]=_e({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:""}),ZT=B(({children:e,...t},n)=>{const r=QT();return s.jsx(D.span,{ref:n,__css:r.label,...t,className:V("sui-nav-item__label",t.className),children:e})});ZT.displayName="NavItemLabel";var JT=e=>{const t=QT(),{className:n,children:r,...i}=e,o=m.Children.only(r),a=m.isValidElement(o)?m.cloneElement(o,{focusable:"false","aria-hidden":!0}):null;return s.jsx(D.span,{...i,className:V("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};JT.displayName="NavItemIcon";var Fne=B((e,t)=>{const{as:n,href:r,icon:i,inset:o,className:a,tooltipProps:l,isActive:c,children:u,...d}=$e(e),f=ex(),{onClose:p,variant:h}=Mne()||{},v=h==="compact",b=Qe("SuiNavItem",e);let x=u,y=l==null?void 0:l.label;typeof x=="string"&&(!y&&v&&(y=x),x=s.jsx(ZT,{children:x}));let g=n;r&&!n&&(g=f);const S=s.jsx(D.a,{as:g,"aria-current":c?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":de(c),__css:b.link,children:s.jsxs(D.span,{__css:{...b.inner,pl:o},className:"sui-nav-item__inner",children:[i&&s.jsx(JT,{children:i}),x]})});return s.jsx(One,{value:b,children:s.jsx(Fb,{label:y,placement:"right",openDelay:400,...l,children:s.jsx(D.div,{__css:b.item,onClick:p,"data-compact":de(v),className:V("sui-nav-item",a),children:S})})})});Fne.displayName="NavItem";var Bne=B((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:i,size:o,variant:a,width:l,icon:c,resetIcon:u,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...v}=e,b=Qe("SuiSearchInput",e),x=m.useRef(null),[y,g]=r6({value:r,defaultValue:i}),S=m.useCallback(j=>{g(j.target.value)},[g]),w=m.useCallback(j=>{j.key==="Escape"&&(g(""),k())},[p,g]),k=()=>{var j;g(""),p==null||p(),(j=x.current)==null||j.focus()},P=o==="lg"?"sm":"xs",_=y&&!e.isDisabled;return s.jsxs(Tb,{size:o,width:l,children:[s.jsx(Eb,{children:c||s.jsx(bQ,{})}),s.jsx(bt,{type:"text",placeholder:n,variant:a,size:o,value:y,ref:ry(t,x),sx:b.input,onChange:he(S,f),onKeyDown:he(w,h),...v}),s.jsx(Em,{children:_?s.jsx(vn,{onClick:k,size:P,variant:"ghost","aria-label":"Reset search",icon:u||s.jsx(yQ,{}),sx:b.reset}):d})]})});Bne.displayName="SearchInput";var[Wne,Vne]=_e({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in ``"});function Une(e){const{step:t,onChange:n}=e,[r,i]=m.useState(0),o=m.useRef([]),[,a]=m.useState(Date.now()),l=m.useCallback(h=>{const v=[...o.current];v.indexOf(h)===-1&&v.push(h),o.current=v,a(Date.now())},[o,a]),c=h=>{o.current=o.current.slice(o.current.indexOf(h),1)},u=h=>{const v=o.current.indexOf(h);v!==-1&&i(v)},d=()=>{i(r+1)},f=()=>{i(r-1)};return m.useEffect(()=>{typeof t=="string"?u(t):typeof t=="number"?i(t):r===-1&&i(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:o,activeStep:o.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===o.current.length-1,isCompleted:r>=o.current.length,setIndex:i,setStep:u,nextStep:d,prevStep:f,registerStep:l,unregisterStep:c}}function Hne(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:i,unregisterStep:o,activeStep:a}=Vne();return m.useEffect(()=>{if(t)return i(t),()=>{o(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[Gne,Kne]=$r("Stepper"),qne=B((e,t)=>{var n,r,i,o;const{children:a,orientation:l="horizontal",index:c,step:u,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:v,...b}=e,x=Qe("Stepper",e),y=Une({step:u??c,onChange:d}),{activeIndex:g}=y,S=l==="vertical",w=Pte(a,e8),k={position:"relative",...x.item},P=w.reduce(($,W,Y,ee)=>{const I=m.cloneElement(W,{key:Y,...W.props,isActive:g===Y,isCompleted:W.props.isCompleted||g>Y});return S?$.push(s.jsxs(D.div,{className:"sui-steps__item",__css:k,children:[I,s.jsx(Lv,{isOpen:g===Y,orientation:l,children:W.props.children}),Y=w.length?_:!S&&j?s.jsx(Lv,{orientation:l,children:(o=(i=w[g])==null?void 0:i.props)==null?void 0:o.children}):null;return s.jsx(Gne,{value:x,children:s.jsx(Wne,{value:y,children:s.jsxs(D.div,{ref:t,__css:x.container,...b,className:V("sui-steps",e.className),children:[s.jsx(uQ,{index:g,orientation:l,variant:f,colorScheme:p,size:h,...v,children:P}),z]})})})});qne.displayName="Steps";var e8=e=>{const{render:t,icon:n,title:r,description:i,...o}=e,a=Hne(o);return t?t({...a,...e}):s.jsxs(rQ,{children:[s.jsx(lQ,{children:s.jsx(sQ,{complete:s.jsx(aQ,{}),incomplete:s.jsx(Iw,{children:n}),active:s.jsx(Iw,{})})}),s.jsxs(ne,{flexShrink:"0",children:[s.jsx(cQ,{children:r}),i&&s.jsx(iQ,{children:i})]}),s.jsx(gT,{})]})};e8.displayName="StepsItem";var Lv=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...i}=e,o=Kne();return s.jsx(D.div,{...i,__css:o.content,className:V("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?s.jsx(zu,{in:n,style:{overflow:n?"visible":"hidden"},children:s.jsx(D.div,{p:"2px",children:n?t:null})}):t})};Lv.displayName="StepsContent";var t8=e=>{const t={};return s.jsx(D.div,{__css:t,...e,className:V("sui-steps__completed",e.className)})};t8.displayName="StepsCompleted";var[wue,Xne]=$r("SuiTimeline"),Yne=B((e,t)=>{const{children:n,...r}=e,i=Xne();return s.jsx(D.li,{...r,ref:t,__css:i.item,className:V("sui-timeline__item",e.className),children:n})});Yne.displayName="TimelineItem";B((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=Yn("SuiIconBadge",e),c=$e(a),u=n||r,d=m.isValidElement(u)?m.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...l};return s.jsx(D.div,{ref:t,__css:f,borderRadius:i?"full":void 0,"aria-label":o,...c,className:V("sui-icon-badge",e.className),children:d})});/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. @@ -402,7 +402,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function rx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nre(){return Math.random().toString(36).substr(2,8)}function f3(e,t){return{usr:e.state,key:e.key,idx:t}}function Nv(e,t,n,r){return n===void 0&&(n=null),pu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?bl(t):t,{state:n,key:t&&t.key||r||nre()})}function zp(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 bl(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 rre(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=ro.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(pu({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=ro.Pop;let x=d(),y=x==null?null:x-u;u=x,c&&c({action:l,location:b.location,delta:y})}function p(x,y){l=ro.Push;let g=Nv(b.location,x,y);u=d()+1;let S=f3(g,u),w=b.createHref(g);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}o&&c&&c({action:l,location:b.location,delta:1})}function h(x,y){l=ro.Replace;let g=Nv(b.location,x,y);u=d();let S=f3(g,u),w=b.createHref(g);a.replaceState(S,"",w),o&&c&&c({action:l,location:b.location,delta:0})}function v(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="string"?x:zp(x);return g=g.replace(/ $/,"%20"),mt(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let b={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(d3,f),c=x,()=>{i.removeEventListener(d3,f),c=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let y=v(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(x){return a.go(x)}};return b}var p3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(p3||(p3={}));function ire(e,t,n){return n===void 0&&(n="/"),ore(e,t,n)}function ore(e,t,n,r){let i=typeof t=="string"?bl(t):t,o=ol(i.pathname||"/",n);if(o==null)return null;let a=a8(e);are(a);let l=null,c=vre(o);for(let u=0;l==null&&u{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(mt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=po([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(mt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),a8(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:pre(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of s8(o.path))i(o,a,c)}),t}function s8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=s8(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function are(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const sre=/^:[\w-]+$/,lre=3,cre=2,ure=1,dre=10,fre=-2,m3=e=>e==="*";function pre(e,t){let n=e.split("/"),r=n.length;return n.some(m3)&&(r+=fre),t&&(r+=cre),n.filter(i=>!m3(i)).reduce((i,o)=>i+(sre.test(o)?lre:o===""?ure:dre),r)}function mre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function hre(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l{let{paramName:p,isOptional:h}=d;if(p==="*"){let b=l[f]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const v=l[f];return h&&!v?u[p]=void 0:u[p]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function gre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),rx(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function vre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rx(!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 ol(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 yre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bre=e=>yre.test(e);function xre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bl(e):e,o;if(n)if(bre(n))o=n;else{if(n.includes("//")){let a=n;n=l8(n),rx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=h3(n.substring(1),"/"):o=h3(n,t)}else o=t;return{pathname:o,search:kre(r),hash:Cre(i)}}function h3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function $0(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 Sre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ix(e,t){let n=Sre(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ox(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=bl(e):(i=pu({},e),mt(!i.pathname||!i.pathname.includes("?"),$0("?","pathname","search",i)),mt(!i.pathname||!i.pathname.includes("#"),$0("#","pathname","hash",i)),mt(!i.search||!i.search.includes("#"),$0("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let c=xre(i,l),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const l8=e=>e.replace(/\/\/+/g,"/"),po=e=>l8(e.join("/")),wre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Cre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function jre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const c8=["post","put","patch","delete"];new Set(c8);const Pre=["get",...c8];new Set(Pre);/** + */function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function nx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zne(){return Math.random().toString(36).substr(2,8)}function u3(e,t){return{usr:e.state,key:e.key,idx:t}}function Nv(e,t,n,r){return n===void 0&&(n=null),pu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?bl(t):t,{state:n,key:t&&t.key||r||Zne()})}function zp(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 bl(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 Jne(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=ro.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(pu({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=ro.Pop;let x=d(),y=x==null?null:x-u;u=x,c&&c({action:l,location:b.location,delta:y})}function p(x,y){l=ro.Push;let g=Nv(b.location,x,y);u=d()+1;let S=u3(g,u),w=b.createHref(g);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}o&&c&&c({action:l,location:b.location,delta:1})}function h(x,y){l=ro.Replace;let g=Nv(b.location,x,y);u=d();let S=u3(g,u),w=b.createHref(g);a.replaceState(S,"",w),o&&c&&c({action:l,location:b.location,delta:0})}function v(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="string"?x:zp(x);return g=g.replace(/ $/,"%20"),mt(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let b={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(c3,f),c=x,()=>{i.removeEventListener(c3,f),c=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let y=v(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(x){return a.go(x)}};return b}var d3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(d3||(d3={}));function ere(e,t,n){return n===void 0&&(n="/"),tre(e,t,n)}function tre(e,t,n,r){let i=typeof t=="string"?bl(t):t,o=ol(i.pathname||"/",n);if(o==null)return null;let a=n8(e);nre(a);let l=null,c=pre(o);for(let u=0;l==null&&u{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(mt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=po([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(mt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),n8(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:cre(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of r8(o.path))i(o,a,c)}),t}function r8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=r8(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function nre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ure(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rre=/^:[\w-]+$/,ire=3,ore=2,are=1,sre=10,lre=-2,f3=e=>e==="*";function cre(e,t){let n=e.split("/"),r=n.length;return n.some(f3)&&(r+=lre),t&&(r+=ore),n.filter(i=>!f3(i)).reduce((i,o)=>i+(rre.test(o)?ire:o===""?are:sre),r)}function ure(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dre(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l{let{paramName:p,isOptional:h}=d;if(p==="*"){let b=l[f]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const v=l[f];return h&&!v?u[p]=void 0:u[p]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function fre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),nx(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nx(!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 ol(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 mre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hre=e=>mre.test(e);function gre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bl(e):e,o;if(n)if(hre(n))o=n;else{if(n.includes("//")){let a=n;n=i8(n),nx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=p3(n.substring(1),"/"):o=p3(n,t)}else o=t;return{pathname:o,search:bre(r),hash:xre(i)}}function p3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function $0(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 vre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rx(e,t){let n=vre(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ix(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=bl(e):(i=pu({},e),mt(!i.pathname||!i.pathname.includes("?"),$0("?","pathname","search",i)),mt(!i.pathname||!i.pathname.includes("#"),$0("#","pathname","hash",i)),mt(!i.search||!i.search.includes("#"),$0("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let c=gre(i,l),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const i8=e=>e.replace(/\/\/+/g,"/"),po=e=>i8(e.join("/")),yre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Sre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o8=["post","put","patch","delete"];new Set(o8);const wre=["get",...o8];new Set(wre);/** * React Router v6.30.4 * * Copyright (c) Remix Software Inc. @@ -411,7 +411,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=ox(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:po([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const Ere=m.createContext(null);function Are(e){let t=m.useContext(Ii).outlet;return t&&m.createElement(Ere.Provider,{value:e},t)}function Bm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Ri),{matches:i}=m.useContext(Ii),{pathname:o}=Ma(),a=JSON.stringify(ix(i,r.v7_relativeSplatPath));return m.useMemo(()=>ox(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function $re(e,t){return zre(e,t)}function zre(e,t,n,r){xl()||mt(!1);let{navigator:i}=m.useContext(Ri),{matches:o}=m.useContext(Ii),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Ma(),d;if(t){var f;let x=typeof t=="string"?bl(t):t;c==="/"||(f=x.pathname)!=null&&f.startsWith(c)||mt(!1),d=x}else d=u;let p=d.pathname||"/",h=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=ire(e,{pathname:h}),b=Nre(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:po([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:po([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&b?m.createElement(Fm.Provider,{value:{location:mu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ro.Pop}},b):b}function Rre(){let e=Bre(),t=jre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={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:i},n):null,null)}const Ire=m.createElement(Rre,null);class Mre 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(Ii.Provider,{value:this.props.routeContext},m.createElement(d8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lre(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(Om);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Ii.Provider,{value:t},r)}function Nre(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||mt(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,v=!1,b=null,x=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||Ire,c&&(u<0&&p===0?(Vre("route-fallback"),v=!0,x=null):u===p&&(v=!0,x=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),g=()=>{let S;return h?S=b:v?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(Lre,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(Mre,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var p8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(p8||{}),m8=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}(m8||{});function Dre(e){let t=m.useContext(Om);return t||mt(!1),t}function Ore(e){let t=m.useContext(u8);return t||mt(!1),t}function Fre(e){let t=m.useContext(Ii);return t||mt(!1),t}function h8(e){let t=Fre(),n=t.matches[t.matches.length-1];return n.route.id||mt(!1),n.route.id}function Bre(){var e;let t=m.useContext(d8),n=Ore(),r=h8();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Wre(){let{router:e}=Dre(p8.UseNavigateStable),t=h8(m8.UseNavigateStable),n=m.useRef(!1);return f8(()=>{n.current=!0}),m.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mu({fromRouteId:t},o)))},[e,t])}const g3={};function Vre(e,t,n){g3[e]||(g3[e]=!0)}function Ure(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function hu(e){let{to:t,replace:n,state:r,relative:i}=e;xl()||mt(!1);let{future:o,static:a}=m.useContext(Ri),{matches:l}=m.useContext(Ii),{pathname:c}=Ma(),u=Qn(),d=ox(t,ix(l,o.v7_relativeSplatPath),c,i==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function g8(e){return Are(e.context)}function Rt(e){mt(!1)}function Hre(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ro.Pop,navigator:o,static:a=!1,future:l}=e;xl()&&mt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:o,static:a,future:mu({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=bl(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:v="default"}=r,b=m.useMemo(()=>{let x=ol(d,c);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:v},navigationType:i}},[c,d,f,p,h,v,i]);return b==null?null:m.createElement(Ri.Provider,{value:u},m.createElement(Fm.Provider,{children:n,value:b}))}function Gre(e){let{children:t,location:n}=e;return $re(Ov(t),n)}new Promise(()=>{});function Ov(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let o=[...t,i];if(r.type===m.Fragment){n.push.apply(n,Ov(r.props.children,o));return}r.type!==Rt&&mt(!1),!r.props.index||!r.props.children||mt(!1);let a={id:r.props.id||o.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=Ov(r.props.children,o)),n.push(a)}),n}/** + */function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=ix(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:po([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const jre=m.createContext(null);function Pre(e){let t=m.useContext(Ii).outlet;return t&&m.createElement(jre.Provider,{value:e},t)}function Bm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Ri),{matches:i}=m.useContext(Ii),{pathname:o}=Ma(),a=JSON.stringify(rx(i,r.v7_relativeSplatPath));return m.useMemo(()=>ix(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function _re(e,t){return Tre(e,t)}function Tre(e,t,n,r){xl()||mt(!1);let{navigator:i}=m.useContext(Ri),{matches:o}=m.useContext(Ii),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Ma(),d;if(t){var f;let x=typeof t=="string"?bl(t):t;c==="/"||(f=x.pathname)!=null&&f.startsWith(c)||mt(!1),d=x}else d=u;let p=d.pathname||"/",h=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=ere(e,{pathname:h}),b=Rre(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:po([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:po([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&b?m.createElement(Fm.Provider,{value:{location:mu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ro.Pop}},b):b}function Ere(){let e=Nre(),t=Sre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={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:i},n):null,null)}const Are=m.createElement(Ere,null);class $re 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(Ii.Provider,{value:this.props.routeContext},m.createElement(s8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zre(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(Om);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Ii.Provider,{value:t},r)}function Rre(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||mt(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,v=!1,b=null,x=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||Are,c&&(u<0&&p===0?(Ore("route-fallback"),v=!0,x=null):u===p&&(v=!0,x=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),g=()=>{let S;return h?S=b:v?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(zre,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement($re,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var c8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(c8||{}),u8=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}(u8||{});function Ire(e){let t=m.useContext(Om);return t||mt(!1),t}function Mre(e){let t=m.useContext(a8);return t||mt(!1),t}function Lre(e){let t=m.useContext(Ii);return t||mt(!1),t}function d8(e){let t=Lre(),n=t.matches[t.matches.length-1];return n.route.id||mt(!1),n.route.id}function Nre(){var e;let t=m.useContext(s8),n=Mre(),r=d8();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Dre(){let{router:e}=Ire(c8.UseNavigateStable),t=d8(u8.UseNavigateStable),n=m.useRef(!1);return l8(()=>{n.current=!0}),m.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mu({fromRouteId:t},o)))},[e,t])}const m3={};function Ore(e,t,n){m3[e]||(m3[e]=!0)}function Fre(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function hu(e){let{to:t,replace:n,state:r,relative:i}=e;xl()||mt(!1);let{future:o,static:a}=m.useContext(Ri),{matches:l}=m.useContext(Ii),{pathname:c}=Ma(),u=Qn(),d=ix(t,rx(l,o.v7_relativeSplatPath),c,i==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function f8(e){return Pre(e.context)}function Rt(e){mt(!1)}function Bre(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ro.Pop,navigator:o,static:a=!1,future:l}=e;xl()&&mt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:o,static:a,future:mu({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=bl(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:v="default"}=r,b=m.useMemo(()=>{let x=ol(d,c);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:v},navigationType:i}},[c,d,f,p,h,v,i]);return b==null?null:m.createElement(Ri.Provider,{value:u},m.createElement(Fm.Provider,{children:n,value:b}))}function Wre(e){let{children:t,location:n}=e;return _re(Ov(t),n)}new Promise(()=>{});function Ov(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let o=[...t,i];if(r.type===m.Fragment){n.push.apply(n,Ov(r.props.children,o));return}r.type!==Rt&&mt(!1),!r.props.index||!r.props.children||mt(!1);let a={id:r.props.id||o.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=Ov(r.props.children,o)),n.push(a)}),n}/** * React Router DOM v6.30.4 * * Copyright (c) Remix Software Inc. @@ -420,14 +420,14 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u&&v3?v3(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>Ure(r),[r]),m.createElement(Hre,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const tie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zt=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,p=v8(t,Xre),{basename:h}=m.useContext(Ri),v,b=!1;if(typeof u=="string"&&nie.test(u)&&(v=u,tie))try{let S=new URL(window.location.href),w=u.startsWith("//")?new URL(S.protocol+u):new URL(u),k=ol(w.pathname,h);w.origin===S.origin&&k!=null?u=k+w.search+w.hash:b=!0}catch{}let x=_re(u,{relative:i}),y=iie(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:f});function g(S){r&&r(S),S.defaultPrevented||y(S)}return m.createElement("a",Rp({},p,{href:v||x,onClick:b||o?r:g,ref:n,target:c}))}),y8=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:l,to:c,viewTransition:u,children:d}=t,f=v8(t,Yre),p=Bm(c,{relative:f.relative}),h=Ma(),v=m.useContext(u8),{navigator:b,basename:x}=m.useContext(Ri),y=v!=null&&oie(p)&&u===!0,g=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(S=S.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&x&&(w=ol(w,x)||w);const k=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let P=S===g||!a&&S.startsWith(g)&&S.charAt(k)==="/",_=w!=null&&(w===g||!a&&w.startsWith(g)&&w.charAt(g.length)==="/"),j={isActive:P,isPending:_,isTransitioning:y},z=P?r:void 0,$;typeof o=="function"?$=o(j):$=[o,P?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let W=typeof l=="function"?l(j):l;return m.createElement(Zt,Rp({},f,{"aria-current":z,className:$,ref:n,style:W,to:c,viewTransition:u}),typeof d=="function"?d(j):d)});var Fv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Fv||(Fv={}));var y3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(y3||(y3={}));function rie(e){let t=m.useContext(Om);return t||mt(!1),t}function iie(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=Qn(),u=Ma(),d=Bm(e,{relative:a});return m.useCallback(f=>{if(qre(f,n)){f.preventDefault();let p=r!==void 0?r:zp(u)===zp(d);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[u,c,d,r,i,n,e,o,a,l])}function oie(e,t){t===void 0&&(t={});let n=m.useContext(Zre);n==null&&mt(!1);let{basename:r}=rie(Fv.useViewTransitionState),i=Bm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ol(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ol(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Dv(i.pathname,a)!=null||Dv(i.pathname,o)!=null}const aie=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"Sécurité maximale avec RBAC, TLSv3, WAF et isolation de chaque plateforme."}];function sie(){return s.jsxs(ne,{children:[s.jsx(ne,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(fn,{maxW:"container.lg",children:s.jsxs(we,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(ct,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),s.jsx(K,{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."}),s.jsxs(we,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),s.jsx(xe,{as:Zt,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),s.jsx(fn,{maxW:"container.lg",py:16,children:s.jsx(bn,{columns:{base:1,md:2},spacing:8,children:aie.map(e=>s.jsxs(ne,{p:6,borderWidth:"1px",borderRadius:"lg",children:[s.jsx(ct,{size:"md",mb:2,children:e.title}),s.jsx(K,{color:"gray.600",children:e.desc})]},e.title))})})]})}const b8="https://t.me/OMNEX_CORP",lie=[{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é","Disponible 30 jours","Accompagnement commercial"],cta:"Créer un compte",ctaHref:"/register"},{name:"Premium",price:"Sur devis",period:"",description:"Passez en production : stockage persistant, votre démo n'expire plus.",features:["Tout ce qui est inclus dans Démo","Support prioritaire"],cta:"Nous contacter",ctaHref:b8,ctaExternal:!0,highlighted:!0}];function cie(){return s.jsxs(fn,{maxW:"container.lg",py:{base:12,md:20},children:[s.jsxs(we,{spacing:4,textAlign:"center",mb:12,align:"center",children:[s.jsx(ct,{size:"2xl",children:"Tarifs"}),s.jsx(K,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt."})]}),s.jsx(bn,{columns:{base:1,md:2},spacing:8,alignItems:"stretch",maxW:"2xl",mx:"auto",children:lie.map(e=>s.jsx(uie,{plan:e},e.name))}),s.jsxs(K,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ?"," ",s.jsx(die,{href:b8,children:"Contactez-nous"})," — un commercial vous recontacte."]})]})}function uie({plan:e}){return s.jsxs(we,{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&&s.jsx(dn,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),s.jsxs(ne,{children:[s.jsx(ct,{size:"md",children:e.name}),s.jsx(K,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),s.jsxs(ge,{align:"baseline",spacing:2,children:[s.jsx(K,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&s.jsxs(K,{color:"gray.500",children:["/ ",e.period]})]}),s.jsx(Mu,{spacing:3,flex:"1",children:e.features.map(t=>s.jsxs($b,{display:"flex",alignItems:"flex-start",children:[s.jsx(At,{as:fie,color:"primary.500",mt:1,mr:2}),s.jsx(K,{fontSize:"sm",children:t})]},t))}),e.ctaExternal?s.jsx(xe,{as:"a",href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta}):s.jsx(xe,{as:Zt,to:e.ctaHref,colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function die({href:e,children:t}){return s.jsx(ne,{as:"a",href:e,target:"_blank",rel:"noopener noreferrer",color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function fie(e){return s.jsx(At,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:s.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"})})}/*! + */function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u&&h3?h3(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>Fre(r),[r]),m.createElement(Bre,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Qre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zt=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,p=p8(t,Hre),{basename:h}=m.useContext(Ri),v,b=!1;if(typeof u=="string"&&Zre.test(u)&&(v=u,Qre))try{let S=new URL(window.location.href),w=u.startsWith("//")?new URL(S.protocol+u):new URL(u),k=ol(w.pathname,h);w.origin===S.origin&&k!=null?u=k+w.search+w.hash:b=!0}catch{}let x=kre(u,{relative:i}),y=eie(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:f});function g(S){r&&r(S),S.defaultPrevented||y(S)}return m.createElement("a",Rp({},p,{href:v||x,onClick:b||o?r:g,ref:n,target:c}))}),m8=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:l,to:c,viewTransition:u,children:d}=t,f=p8(t,Gre),p=Bm(c,{relative:f.relative}),h=Ma(),v=m.useContext(a8),{navigator:b,basename:x}=m.useContext(Ri),y=v!=null&&tie(p)&&u===!0,g=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(S=S.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&x&&(w=ol(w,x)||w);const k=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let P=S===g||!a&&S.startsWith(g)&&S.charAt(k)==="/",_=w!=null&&(w===g||!a&&w.startsWith(g)&&w.charAt(g.length)==="/"),j={isActive:P,isPending:_,isTransitioning:y},z=P?r:void 0,$;typeof o=="function"?$=o(j):$=[o,P?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let W=typeof l=="function"?l(j):l;return m.createElement(Zt,Rp({},f,{"aria-current":z,className:$,ref:n,style:W,to:c,viewTransition:u}),typeof d=="function"?d(j):d)});var Fv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Fv||(Fv={}));var g3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(g3||(g3={}));function Jre(e){let t=m.useContext(Om);return t||mt(!1),t}function eie(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=Qn(),u=Ma(),d=Bm(e,{relative:a});return m.useCallback(f=>{if(Ure(f,n)){f.preventDefault();let p=r!==void 0?r:zp(u)===zp(d);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[u,c,d,r,i,n,e,o,a,l])}function tie(e,t){t===void 0&&(t={});let n=m.useContext(qre);n==null&&mt(!1);let{basename:r}=Jre(Fv.useViewTransitionState),i=Bm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ol(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ol(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Dv(i.pathname,a)!=null||Dv(i.pathname,o)!=null}const nie=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"Sécurité maximale avec RBAC, TLSv3, WAF et isolation de chaque plateforme."}];function rie(){return s.jsxs(ne,{children:[s.jsx(ne,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(fn,{maxW:"container.lg",children:s.jsxs(we,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(ct,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),s.jsx(K,{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."}),s.jsxs(we,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),s.jsx(xe,{as:Zt,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),s.jsx(fn,{maxW:"container.lg",py:16,children:s.jsx(bn,{columns:{base:1,md:2},spacing:8,children:nie.map(e=>s.jsxs(ne,{p:6,borderWidth:"1px",borderRadius:"lg",children:[s.jsx(ct,{size:"md",mb:2,children:e.title}),s.jsx(K,{color:"gray.600",children:e.desc})]},e.title))})})]})}const h8="https://t.me/OMNEX_CORP",iie=[{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é","Accompagnement commercial"],cta:"Créer un compte",ctaHref:"/register"},{name:"Premium",price:"Sur devis",period:"",description:"Passez en production : votre démo n'expire plus.",features:["Tout ce qui est inclus dans Démo","Support prioritaire","Domaine personnalisable à la demande","Sauvegarde constante et sécurisée","Haute disponibilité"],cta:"Nous contacter",ctaHref:h8,ctaExternal:!0,highlighted:!0}];function oie(){return s.jsxs(fn,{maxW:"container.lg",py:{base:12,md:20},children:[s.jsxs(we,{spacing:4,textAlign:"center",mb:12,align:"center",children:[s.jsx(ct,{size:"2xl",children:"Tarifs"}),s.jsx(K,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt."})]}),s.jsx(bn,{columns:{base:1,md:2},spacing:8,alignItems:"stretch",maxW:"2xl",mx:"auto",children:iie.map(e=>s.jsx(aie,{plan:e},e.name))}),s.jsxs(K,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ?"," ",s.jsx(sie,{href:h8,children:"Contactez-nous"})," — un commercial vous recontacte."]})]})}function aie({plan:e}){return s.jsxs(we,{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&&s.jsx(dn,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),s.jsxs(ne,{children:[s.jsx(ct,{size:"md",children:e.name}),s.jsx(K,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),s.jsxs(ge,{align:"baseline",spacing:2,children:[s.jsx(K,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&s.jsxs(K,{color:"gray.500",children:["/ ",e.period]})]}),s.jsx(Mu,{spacing:3,flex:"1",children:e.features.map(t=>s.jsxs(Ab,{display:"flex",alignItems:"flex-start",children:[s.jsx(At,{as:lie,color:"primary.500",mt:1,mr:2}),s.jsx(K,{fontSize:"sm",children:t})]},t))}),e.ctaExternal?s.jsx(xe,{as:"a",href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta}):s.jsx(xe,{as:Zt,to:e.ctaHref,colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function sie({href:e,children:t}){return s.jsx(ne,{as:"a",href:e,target:"_blank",rel:"noopener noreferrer",color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function lie(e){return s.jsx(At,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:s.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"})})}/*! * 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 Bv(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(c){throw c},f:i}}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 o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw o}}}}function me(e,t,n){return(t=x8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function xie(){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 Sie(){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 b3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return rt.head.insertBefore(t,r),e}}var Aae="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function T3(){for(var e=12,t="";e-- >0;)t+=Aae[Math.random()*62|0];return t}function Sl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function dx(e){return e.classList?Sl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function a7(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function $ae(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(a7(e[n]),'" ')},"").trim()}function Vm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function fx(e){return e.size!==Ur.size||e.x!==Ur.x||e.y!==Ur.y||e.rotate!==Ur.rotate||e.flipX||e.flipY}function zae(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="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),") "),l="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(a," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:u}}function Rae(e){var t=e.transform,n=e.width,r=n===void 0?Vv:n,i=e.height,o=i===void 0?Vv:i,a="";return C8?a+="translate(".concat(t.x/Ha-r/2,"em, ").concat(t.y/Ha-o/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/Ha,"em), calc(-50% + ").concat(t.y/Ha,"em)) "),a+="scale(".concat(t.size/Ha*(t.flipX?-1:1),", ").concat(t.size/Ha*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var Iae=`:root, :host { + */function Bv(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(c){throw c},f:i}}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 o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw o}}}}function me(e,t,n){return(t=g8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function gie(){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 vie(){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 v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return rt.head.insertBefore(t,r),e}}var Pae="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function P3(){for(var e=12,t="";e-- >0;)t+=Pae[Math.random()*62|0];return t}function Sl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ux(e){return e.classList?Sl(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function n7(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _ae(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(n7(e[n]),'" ')},"").trim()}function Vm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function dx(e){return e.size!==Ur.size||e.x!==Ur.x||e.y!==Ur.y||e.rotate!==Ur.rotate||e.flipX||e.flipY}function Tae(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="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),") "),l="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(a," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:u}}function Eae(e){var t=e.transform,n=e.width,r=n===void 0?Vv:n,i=e.height,o=i===void 0?Vv:i,a="";return x8?a+="translate(".concat(t.x/Ha-r/2,"em, ").concat(t.y/Ha-o/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/Ha,"em), calc(-50% + ").concat(t.y/Ha,"em)) "),a+="scale(".concat(t.size/Ha*(t.flipX?-1:1),", ").concat(t.size/Ha*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var Aae=`: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'; @@ -1500,11 +1500,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin: auto; position: absolute; z-index: var(--fa-stack-z-index, auto); -}`;function s7(){var e=J8,t=e7,n=pe.cssPrefix,r=pe.replacementClass,i=Iae;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(l,".".concat(r))}return i}var E3=!1;function R0(){pe.autoAddCss&&!E3&&(Eae(s7()),E3=!0)}var Mae={mixout:function(){return{dom:{css:s7,insertCss:R0}}},hooks:function(){return{beforeDOMElementCreation:function(){R0()},beforeI2svg:function(){R0()}}}},Ei=xo||{};Ei[Ti]||(Ei[Ti]={});Ei[Ti].styles||(Ei[Ti].styles={});Ei[Ti].hooks||(Ei[Ti].hooks={});Ei[Ti].shims||(Ei[Ti].shims=[]);var Cr=Ei[Ti],l7=[],c7=function(){rt.removeEventListener("DOMContentLoaded",c7),Mp=1,l7.map(function(t){return t()})},Mp=!1;Mi&&(Mp=(rt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(rt.readyState),Mp||rt.addEventListener("DOMContentLoaded",c7));function Lae(e){Mi&&(Mp?setTimeout(e,0):l7.push(e))}function Gu(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?a7(e):"<".concat(t," ").concat($ae(r),">").concat(o.map(Gu).join(""),"")}function A3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var I0=function(t,n,r,i){var o=Object.keys(t),a=o.length,l=n,c,u,d;for(r===void 0?(c=1,d=t[o[0]]):(c=0,d=r);c2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=$3(t);typeof Cr.hooks.addPack=="function"&&!i?Cr.hooks.addPack(e,$3(t)):Cr.styles[e]=H(H({},Cr.styles[e]||{}),o),e==="fas"&&qv("fa",t)}var gu=Cr.styles,Nae=Cr.shims,d7=Object.keys(ux),Dae=d7.reduce(function(e,t){return e[t]=Object.keys(ux[t]),e},{}),px=null,f7={},p7={},m7={},h7={},g7={};function Oae(e){return~Cae.indexOf(e)}function Fae(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Oae(i)?i:null}var v7=function(){var t=function(o){return I0(gu,function(a,l,c){return a[c]=I0(l,o,{}),a},{})};f7=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var l=o[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){i[c.toString(16)]=a})}return i}),p7=t(function(i,o,a){if(i[a]=a,o[2]){var l=o[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){i[c]=a})}return i}),g7=t(function(i,o,a){var l=o[2];return i[a]=a,l.forEach(function(c){i[c]=a}),i});var n="far"in gu||pe.autoFetchSvg,r=I0(Nae,function(i,o){var a=o[0],l=o[1],c=o[2];return l==="far"&&!n&&(l="fas"),typeof a=="string"&&(i.names[a]={prefix:l,iconName:c}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:l,iconName:c}),i},{names:{},unicodes:{}});m7=r.names,h7=r.unicodes,px=Um(pe.styleDefault,{family:pe.familyDefault})};Tae(function(e){px=Um(e.styleDefault,{family:pe.familyDefault})});v7();function mx(e,t){return(f7[e]||{})[t]}function Bae(e,t){return(p7[e]||{})[t]}function ra(e,t){return(g7[e]||{})[t]}function y7(e){return m7[e]||{prefix:null,iconName:null}}function Wae(e){var t=h7[e],n=mx("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function So(){return px}var b7=function(){return{prefix:null,iconName:null,rest:[]}};function Vae(e){var t=tn,n=d7.reduce(function(r,i){return r[i]="".concat(pe.cssPrefix,"-").concat(i),r},{});return X8.forEach(function(r){(e.includes(n[r])||e.some(function(i){return Dae[r].includes(i)}))&&(t=r)}),t}function Um(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?tn:n,i=bae[r][e];if(r===Uu&&!e)return"fad";var o=_3[r][e]||_3[r][i],a=e in Cr.styles?e:null,l=o||a||null;return l}function Uae(e){var t=[],n=null;return e.forEach(function(r){var i=Fae(pe.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function z3(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var R3=Q8.concat(Y8);function Hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=z3(e.filter(function(h){return R3.includes(h)})),a=z3(e.filter(function(h){return!R3.includes(h)})),l=o.filter(function(h){return i=h,!P8.includes(h)}),c=Wm(l,1),u=c[0],d=u===void 0?null:u,f=Vae(o),p=H(H({},Uae(a)),{},{prefix:Um(d,{family:f})});return H(H(H({},p),qae({values:e,family:f,styles:gu,config:pe,canonical:p,givenPrefix:i})),Hae(r,i,p))}function Hae(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?y7(i):{},a=ra(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!gu.far&&gu.fas&&!pe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Gae=X8.filter(function(e){return e!==tn||e!==Uu}),Kae=Object.keys(Wv).filter(function(e){return e!==tn}).map(function(e){return Object.keys(Wv[e])}).flat();function qae(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,o=i===void 0?"":i,a=e.styles,l=a===void 0?{}:a,c=e.config,u=c===void 0?{}:c,d=n===Uu,f=t.includes("fa-duotone")||t.includes("fad"),p=u.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&&Gae.includes(n)){var v=Object.keys(l).find(function(x){return Kae.includes(x)});if(v||u.autoFetchSvg){var b=Jie.get(n).defaultShortPrefixId;r.prefix=b,r.iconName=ra(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=So()||"fas"),r}var Xae=function(){function e(){hie(this,e),this.definitions={}}return vie(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}])}(),I3=[],ks={},Os={},Yae=Object.keys(Os);function Qae(e,t){var n=t.mixoutsTo;return I3=e,ks={},Object.keys(Os).forEach(function(r){Yae.indexOf(r)===-1&&delete Os[r]}),I3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Ip(i[a])==="object"&&Object.keys(i[a]).forEach(function(l){n[a]||(n[a]={}),n[a][l]=i[a][l]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){ks[a]||(ks[a]=[]),ks[a].push(o[a])})}r.provides&&r.provides(Os)}),n}function Xv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Mi?(_a("beforeI2svg",t),wo("pseudoElements2svg",t),wo("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;pe.autoReplaceSvg===!1&&(pe.autoReplaceSvg=!0),pe.observeMutations=!0,Lae(function(){tse({autoReplaceSvgRoot:n}),_a("watch",t)})}},ese={icon:function(t){if(t===null)return null;if(Ip(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ra(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=Um(t[0]);return{prefix:r,iconName:ra(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(pe.cssPrefix,"-"))>-1||t.match(xae))){var i=Hm(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||So(),iconName:ra(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=So();return{prefix:o,iconName:ra(o,t)||t}}}},Zn={noAuto:Zae,config:pe,dom:Jae,parse:ese,library:x7,findIconDefinition:Yv,toHtml:Gu},tse=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?rt:n;(Object.keys(Cr.styles).length>0||pe.autoFetchSvg)&&Mi&&pe.autoReplaceSvg&&Zn.dom.i2svg({node:r})};function Gm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Gu(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Mi){var r=rt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function nse(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(fx(a)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};i.style=Vm(H(H({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function rse(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(pe.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},i),{},{id:a}),children:r}]}]}function ise(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function hx(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,l=e.symbol,c=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,v=p.height,b=[pe.replacementClass,o?"".concat(pe.cssPrefix,"-").concat(o):""].filter(function(k){return u.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(u.classes).join(" "),x={children:[],attributes:H(H({},u.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(v)})};!ise(u.attributes)&&!u.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[Pa]="");var y=H(H({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:l,styles:H({},u.styles)}),g=r.found&&n.found?wo("generateAbstractMask",y)||{children:[],attributes:{}}:wo("generateAbstractIcon",y)||{children:[],attributes:{}},S=g.children,w=g.attributes;return y.children=S,y.attributes=w,l?rse(y):nse(y)}function M3(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.extra,a=e.watchable,l=a===void 0?!1:a,c=H(H({},o.attributes),{},{class:o.classes.join(" ")});l&&(c[Pa]="");var u=H({},o.styles);fx(i)&&(u.transform=Rae({transform:i,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=Vm(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function ose(e){var t=e.content,n=e.extra,r=H(H({},n.attributes),{},{class:n.classes.join(" ")}),i=Vm(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var M0=Cr.styles;function Qv(e){var t=e[0],n=e[1],r=e.slice(4),i=Wm(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(pe.cssPrefix,"-").concat(z0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(pe.cssPrefix,"-").concat(z0.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(pe.cssPrefix,"-").concat(z0.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var ase={found:!1,width:512,height:512};function sse(e,t){!n7&&!pe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Zv(e,t){var n=t;return t==="fa"&&pe.styleDefault!==null&&(t=So()),new Promise(function(r,i){if(n==="fa"){var o=y7(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&M0[t]&&M0[t][e]){var a=M0[t][e];return r(Qv(a))}sse(e,t),r(H(H({},ase),{},{icon:pe.showMissingIcons&&e?wo("missingIconAbstract")||{}:{}}))})}var L3=function(){},Jv=pe.measurePerformance&&Hd&&Hd.mark&&Hd.measure?Hd:{mark:L3,measure:L3},rc='FA "7.3.1"',lse=function(t){return Jv.mark("".concat(rc," ").concat(t," begins")),function(){return S7(t)}},S7=function(t){Jv.mark("".concat(rc," ").concat(t," ends")),Jv.measure("".concat(rc," ").concat(t),"".concat(rc," ").concat(t," begins"),"".concat(rc," ").concat(t," ends"))},gx={begin:lse,end:S7},Nf=function(){};function N3(e){var t=e.getAttribute?e.getAttribute(Pa):null;return typeof t=="string"}function cse(e){var t=e.getAttribute?e.getAttribute(lx):null,n=e.getAttribute?e.getAttribute(cx):null;return t&&n}function use(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(pe.replacementClass)}function dse(){if(pe.autoReplaceSvg===!0)return Df.replace;var e=Df[pe.autoReplaceSvg];return e||Df.replace}function fse(e){return rt.createElementNS("http://www.w3.org/2000/svg",e)}function pse(e){return rt.createElement(e)}function w7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?fse:pse:n;if(typeof e=="string")return rt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(w7(a,{ceFn:r}))}),i}function mse(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Df={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(w7(i),n)}),n.getAttribute(Pa)===null&&pe.keepOriginalSource){var r=rt.createComment(mse(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~dx(n).indexOf(pe.replacementClass))return Df.replace(t);var i=new RegExp("".concat(pe.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(l,c){return c===pe.replacementClass||c.match(i)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(l){return Gu(l)}).join(` -`);n.setAttribute(Pa,""),n.innerHTML=a}};function D3(e){e()}function k7(e,t){var n=typeof t=="function"?t:Nf;if(e.length===0)n();else{var r=D3;pe.mutateApproach===vae&&(r=xo.requestAnimationFrame||D3),r(function(){var i=dse(),o=gx.begin("mutate");e.map(i),o(),n()})}}var vx=!1;function C7(){vx=!0}function e1(){vx=!1}var Lp=null;function O3(e){if(k3&&pe.observeMutations){var t=e.treeCallback,n=t===void 0?Nf:t,r=e.nodeCallback,i=r===void 0?Nf:r,o=e.pseudoElementsCallback,a=o===void 0?Nf:o,l=e.observeMutationsRoot,c=l===void 0?rt:l;Lp=new k3(function(u){if(!vx){var d=So();Sl(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!N3(f.addedNodes[0])&&(pe.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&pe.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&N3(f.target)&&~kae.indexOf(f.attributeName))if(f.attributeName==="class"&&cse(f.target)){var p=Hm(dx(f.target)),h=p.prefix,v=p.iconName;f.target.setAttribute(lx,h||d),v&&f.target.setAttribute(cx,v)}else use(f.target)&&i(f.target)})}}),Mi&&Lp.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function hse(){Lp&&Lp.disconnect()}function gse(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],l=o.slice(1);return a&&l.length>0&&(r[a]=l.join(":").trim()),r},{})),n}function vse(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Hm(dx(e));return i.prefix||(i.prefix=So()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Bae(i.prefix,e.innerText)||mx(i.prefix,u7(e.innerText))),!i.iconName&&pe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function yse(e){var t=Sl(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function bse(){return{iconName:null,prefix:null,transform:Ur,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function F3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=vse(e),r=n.iconName,i=n.prefix,o=n.rest,a=yse(e),l=Xv("parseNodeAttributes",{},e),c=t.styleParser?gse(e):[];return H({iconName:r,prefix:i,transform:Ur,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:a}},l)}var xse=Cr.styles;function j7(e){var t=pe.autoReplaceSvg==="nest"?F3(e,{styleParser:!1}):F3(e);return~t.extra.classes.indexOf(i7)?wo("generateLayersText",e,t):wo("generateSvgReplacementMutation",e,t)}function Sse(){return[].concat(Ar(Y8),Ar(Q8))}function B3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Mi)return Promise.resolve();var n=rt.documentElement.classList,r=function(f){return n.add("".concat(P3,"-").concat(f))},i=function(f){return n.remove("".concat(P3,"-").concat(f))},o=pe.autoFetchSvg?Sse():P8.concat(Object.keys(xse));o.includes("fa")||o.push("fa");var a=[".".concat(i7,":not([").concat(Pa,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(Pa,"])")})).join(", ");if(a.length===0)return Promise.resolve();var l=[];try{l=Sl(e.querySelectorAll(a))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var c=gx.begin("onTree"),u=l.reduce(function(d,f){try{var p=j7(f);p&&d.push(p)}catch(h){n7||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){k7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function wse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;j7(e).then(function(n){n&&k7([n],t)})}function kse(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Yv(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Yv(i||{})),e(r,H(H({},n),{},{mask:i}))}}var Cse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Ur:r,o=n.symbol,a=o===void 0?!1:o,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,h=n.attributes,v=h===void 0?{}:h,b=n.styles,x=b===void 0?{}:b;if(t){var y=t.prefix,g=t.iconName,S=t.icon;return Gm(H({type:"icon"},t),function(){return _a("beforeDOMElementCreation",{iconDefinition:t,params:n}),hx({icons:{main:Qv(S),mask:c?Qv(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:g,transform:H(H({},Ur),i),symbol:a,maskId:d,extra:{attributes:v,styles:x,classes:p}})})}},jse={mixout:function(){return{icon:kse(Cse)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=B3,n.nodeCallback=wse,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?rt:r,o=n.callback,a=o===void 0?function(){}:o;return B3(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.prefix,a=r.transform,l=r.symbol,c=r.mask,u=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([Zv(i,o),c.iconName?Zv(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var v=Wm(h,2),b=v[0],x=v[1];f([n,hx({icons:{main:b,mask:x},prefix:o,iconName:i,transform:a,symbol:l,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,l=n.styles,c=Vm(l);c.length>0&&(i.style=c);var u;return fx(a)&&(u=wo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},Pse={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return Gm({type:"layer"},function(){_a("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(l){Array.isArray(l)?l.map(function(c){a=a.concat(c.abstract)}):a=a.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(pe.cssPrefix,"-layers")].concat(Ar(o)).join(" ")},children:a}]})}}}},_se={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,o=i===void 0?[]:i,a=r.attributes,l=a===void 0?{}:a,c=r.styles,u=c===void 0?{}:c;return Gm({type:"counter",content:n},function(){return _a("beforeDOMElementCreation",{content:n,params:r}),ose({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(pe.cssPrefix,"-layers-counter")].concat(Ar(o))}})})}}}},Tse={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Ur:i,a=r.classes,l=a===void 0?[]:a,c=r.attributes,u=c===void 0?{}:c,d=r.styles,f=d===void 0?{}:d;return Gm({type:"text",content:n},function(){return _a("beforeDOMElementCreation",{content:n,params:r}),M3({content:n,transform:H(H({},Ur),o),extra:{attributes:u,styles:f,classes:["".concat(pe.cssPrefix,"-layers-text")].concat(Ar(l))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,a=null,l=null;if(C8){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/c,l=u.height/c}return Promise.resolve([n,M3({content:n.innerHTML,width:a,height:l,transform:i,extra:o,watchable:!0})])}}},P7=new RegExp('"',"ug"),W3=[1105920,1112319],V3=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),Zie),hae),soe),t1=Object.keys(V3).reduce(function(e,t){return e[t.toLowerCase()]=V3[t],e},{}),Ese=Object.keys(t1).reduce(function(e,t){var n=t1[t];return e[t]=n[900]||Ar(Object.entries(n))[0][1],e},{});function Ase(e){var t=e.replace(P7,"");return u7(Ar(t)[0]||"")}function $se(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(P7,""),i=r.codePointAt(0),o=i>=W3[0]&&i<=W3[1],a=r.length===2?r[0]===r[1]:!1;return o||a||t}function zse(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(t1[n]||{})[i]||Ese[n]}function U3(e,t){var n="".concat(gae).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Sl(e.children),a=o.filter(function(P){return P.getAttribute(Uv)===t})[0],l=xo.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(Sae),d=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){var p=l.getPropertyValue("content"),h=zse(c,d),v=Ase(p),b=u[0].startsWith("FontAwesome"),x=$se(l),y=mx(h,v),g=y;if(b){var S=Wae(v);S.iconName&&S.prefix&&(y=S.iconName,h=S.prefix)}if(y&&!x&&(!a||a.getAttribute(lx)!==h||a.getAttribute(cx)!==g)){e.setAttribute(n,g),a&&e.removeChild(a);var w=bse(),k=w.extra;k.attributes[Uv]=t,Zv(y,h).then(function(P){var _=hx(H(H({},w),{},{icons:{main:P,mask:b7()},prefix:h,iconName:g,extra:k,watchable:!0})),j=rt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=_.map(function(z){return Gu(z)}).join(` -`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Rse(e){return Promise.all([U3(e,"::before"),U3(e,"::after")])}function Ise(e){return e.parentNode!==document.head&&!~yae.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Uv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var Mse=function(t){return!!t&&t7.some(function(n){return t.includes(n)})},Lse=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(c){return c.trim()});r=r.flatMap(function(c){return c.includes("(")?c:c.split(",").map(function(u){return u.trim()})});var i=Lf(r),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;if(Mse(a)){var l=t7.reduce(function(c,u){return c.replace(u,"")},a);l!==""&&l!=="*"&&n.add(l)}}}catch(c){i.e(c)}finally{i.f()}return n};function H3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Mi){var n;if(t)n=e;else if(pe.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Lf(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var l=Lf(a.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=Lse(u.selectorText),f=Lf(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(b){f.e(b)}finally{f.f()}}}catch(b){l.e(b)}finally{l.f()}}catch(b){pe.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(b.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(b){i.e(b)}finally{i.f()}if(!r.size)return;var v=Array.from(r).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(b,x){var y=Sl(n).filter(Ise).map(Rse),g=gx.begin("searchPseudoElements");C7(),Promise.all(y).then(function(){g(),e1(),b()}).catch(function(){g(),e1(),x()})})}}var Nse={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=H3,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?rt:r;pe.searchPseudoElements&&H3(i)}}},G3=!1,Dse={mixout:function(){return{dom:{unwatch:function(){C7(),G3=!0}}}},hooks:function(){return{bootstrap:function(){O3(Xv("mutationObserverCallbacks",{}))},noAuto:function(){hse()},watch:function(n){var r=n.observeMutationsRoot;G3?e1():O3(Xv("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},K3=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],l=o.slice(1).join("-");if(a&&l==="h")return r.flipX=!0,r;if(a&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(a){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},Ose={mixout:function(){return{parse:{transform:function(n){return K3(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=K3(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,l={transform:"translate(".concat(o/2," 256)")},c="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:l,inner:f,path:p};return{tag:"g",attributes:H({},h.outer),children:[{tag:"g",attributes:H({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:H(H({},r.icon.attributes),h.path)}]}]}}}},L0={x:0,y:0,width:"100%",height:"100%"};function q3(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 Fse(e){return e.tag==="g"?e.children:[e]}var Bse={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Hm(i.split(" ").map(function(a){return a.trim()})):b7();return o.prefix||(o.prefix=So()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,l=n.maskId,c=n.transform,u=o.width,d=o.icon,f=a.width,p=a.icon,h=zae({transform:c,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:H(H({},L0),{},{fill:"white"})},b=d.children?{children:d.children.map(q3)}:{},x={tag:"g",attributes:H({},h.inner),children:[q3(H({tag:d.tag,attributes:H(H({},d.attributes),h.path)},b))]},y={tag:"g",attributes:H({},h.outer),children:[x]},g="mask-".concat(l||T3()),S="clip-".concat(l||T3()),w={tag:"mask",attributes:H(H({},L0),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:Fse(p)},w]};return r.push(k,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(g,")")},L0)}),{children:r,attributes:i}}}},Wse={provides:function(t){var n=!1;xo.matchMedia&&(n=xo.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:H(H({},i),{},{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=H(H({},o),{},{attributeName:"opacity"}),l={tag:"circle",attributes:H(H({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:H(H({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:H(H({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:H(H({},i),{},{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:H(H({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:H(H({},i),{},{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:H(H({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Vse={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},Use=[Mae,jse,Pse,_se,Tse,Nse,Dse,Ose,Bse,Wse,Vse];Qae(Use,{mixoutsTo:Zn});Zn.noAuto;var sl=Zn.config;Zn.library;Zn.dom;var _7=Zn.parse;Zn.findIconDefinition;Zn.toHtml;var Hse=Zn.icon;Zn.layer;Zn.text;Zn.counter;function Gse(e){return e=e-0,e===e}function T7(e){return Gse(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Kse=(e,t)=>Xt.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function qse(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ga=new Map,Xse=1e3;function Yse(e){if(Ga.has(e))return Ga.get(e);const t={};let n=0;const r=e.length;for(;n0){const c=a.slice(0,l).trim(),u=a.slice(l+1).trim();if(c&&u){const d=T7(c);t[d.startsWith("webkit")?qse(d):d]=u}}}n=o+1}if(Ga.size===Xse){const i=Ga.keys().next().value;i&&Ga.delete(i)}return Ga.set(e,t),t}function E7(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}}),E7(e,p)}),i=t.attributes||{},o={};for(const[f,p]of Object.entries(i))switch(!0){case f==="class":{o.className=p;break}case f==="style":{o.style=Yse(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=p;break}default:o[T7(f)]=p}const{style:a,role:l,"aria-label":c,gradientFill:u,...d}=n;if(a&&(o.style=o.style?{...o.style,...a}:a),l&&(o.role=l),c&&(o["aria-label"]=c,o["aria-hidden"]="false"),u){o.fill=`url(#${u.id})`;const{type:f,stops:p=[],...h}=u;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},p.map(Kse)))}return e(t.tag,{...o,...d},...r)}var Qse=E7.bind(null,Xt.createElement),X3=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},Zse=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)}},Jse="searchPseudoElementsFullScan"in sl&&typeof sl.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",ele=Number.parseInt(Jse)>=7,tle=()=>ele,Tc="fa",Ft={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"},nle={left:"fa-pull-left",right:"fa-pull-right"},rle={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},ile={"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"},yr={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 ole(e){const t=sl.cssPrefix||sl.familyPrefix||Tc;return t===Tc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Tc}-`,"g"),`${t}-`)}function ale(e){const{beat:t,fade:n,beatFade:r,bounce:i,shake:o,spin:a,spinPulse:l,spinReverse:c,pulse:u,fixedWidth:d,inverse:f,border:p,flip:h,size:v,rotation:b,pull:x,swapOpacity:y,rotateBy:g,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:P,buzz:_,float:j,jello:z,spinSnap:$,spinSnap4:W,spinSnap8:Y,swing:ee,wag:I,className:L}=e,N=[];return L&&N.push(...L.split(" ")),t&&N.push(Ft.beat),n&&N.push(Ft.fade),r&&N.push(Ft.beatFade),i&&N.push(Ft.bounce),o&&N.push(Ft.shake),a&&N.push(Ft.spin),c&&N.push(Ft.spinReverse),l&&N.push(Ft.spinPulse),u&&N.push(Ft.pulse),d&&N.push(yr.fixedWidth),f&&N.push(yr.inverse),p&&N.push(yr.border),h===!0&&N.push(yr.flip),(h==="horizontal"||h==="both")&&N.push(yr.flipHorizontal),(h==="vertical"||h==="both")&&N.push(yr.flipVertical),v!=null&&N.push(ile[v]),b!=null&&b!==0&&N.push(rle[b]),x!=null&&N.push(nle[x]),y&&N.push(yr.swapOpacity),tle()?(g&&N.push(yr.rotateBy),S&&N.push(yr.widthAuto),w&&N.push(yr.canvasSquare),k&&N.push(yr.canvasRoomy),P&&N.push(Ft.flip360),_&&N.push(Ft.buzz),j&&N.push(Ft.float),z&&N.push(Ft.jello),$&&N.push(Ft.spinSnap),W&&N.push(Ft.spinSnap4),Y&&N.push(Ft.spinSnap8),ee&&N.push(Ft.swing),I&&N.push(Ft.wag),(sl.cssPrefix||sl.familyPrefix||Tc)===Tc?N:N.map(ole)):N}var sle=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function Y3(e){if(e)return sle(e)?e:_7.icon(e)}function lle(e){return Object.keys(e)}var Q3=new Zse("FontAwesomeIcon"),A7={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},cle=new Set(Object.keys(A7)),We=Xt.forwardRef((e,t)=>{const n={...A7,...e},{icon:r,mask:i,symbol:o,title:a,titleId:l,maskId:c,transform:u}=n,d=X3(c,!!i),f=X3(l,!!a),p=Y3(r);if(!p)return Q3.error("Icon lookup is undefined",r),null;const h=ale(n),v=typeof u=="string"?_7.transform(u):u,b=Y3(i),x=Hse(p,{...h.length>0&&{classes:h},...v&&{transform:v},...b&&{mask:b},symbol:o,title:a,titleId:f,maskId:d});if(!x)return Q3.error("Could not find icon",p),null;const{abstract:y}=x,g={ref:t};for(const S of lle(n))cle.has(S)||(g[S]=n[S]);return Qse(y[0],g)});We.displayName="FontAwesomeIcon";/*! +}`;function r7(){var e=X8,t=Y8,n=pe.cssPrefix,r=pe.replacementClass,i=Aae;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(l,".".concat(r))}return i}var _3=!1;function R0(){pe.autoAddCss&&!_3&&(jae(r7()),_3=!0)}var $ae={mixout:function(){return{dom:{css:r7,insertCss:R0}}},hooks:function(){return{beforeDOMElementCreation:function(){R0()},beforeI2svg:function(){R0()}}}},Ei=xo||{};Ei[Ti]||(Ei[Ti]={});Ei[Ti].styles||(Ei[Ti].styles={});Ei[Ti].hooks||(Ei[Ti].hooks={});Ei[Ti].shims||(Ei[Ti].shims=[]);var Cr=Ei[Ti],i7=[],o7=function(){rt.removeEventListener("DOMContentLoaded",o7),Mp=1,i7.map(function(t){return t()})},Mp=!1;Mi&&(Mp=(rt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(rt.readyState),Mp||rt.addEventListener("DOMContentLoaded",o7));function zae(e){Mi&&(Mp?setTimeout(e,0):i7.push(e))}function Gu(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?n7(e):"<".concat(t," ").concat(_ae(r),">").concat(o.map(Gu).join(""),"")}function T3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var I0=function(t,n,r,i){var o=Object.keys(t),a=o.length,l=n,c,u,d;for(r===void 0?(c=1,d=t[o[0]]):(c=0,d=r);c2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=E3(t);typeof Cr.hooks.addPack=="function"&&!i?Cr.hooks.addPack(e,E3(t)):Cr.styles[e]=H(H({},Cr.styles[e]||{}),o),e==="fas"&&qv("fa",t)}var gu=Cr.styles,Rae=Cr.shims,s7=Object.keys(cx),Iae=s7.reduce(function(e,t){return e[t]=Object.keys(cx[t]),e},{}),fx=null,l7={},c7={},u7={},d7={},f7={};function Mae(e){return~xae.indexOf(e)}function Lae(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Mae(i)?i:null}var p7=function(){var t=function(o){return I0(gu,function(a,l,c){return a[c]=I0(l,o,{}),a},{})};l7=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var l=o[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){i[c.toString(16)]=a})}return i}),c7=t(function(i,o,a){if(i[a]=a,o[2]){var l=o[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){i[c]=a})}return i}),f7=t(function(i,o,a){var l=o[2];return i[a]=a,l.forEach(function(c){i[c]=a}),i});var n="far"in gu||pe.autoFetchSvg,r=I0(Rae,function(i,o){var a=o[0],l=o[1],c=o[2];return l==="far"&&!n&&(l="fas"),typeof a=="string"&&(i.names[a]={prefix:l,iconName:c}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:l,iconName:c}),i},{names:{},unicodes:{}});u7=r.names,d7=r.unicodes,fx=Um(pe.styleDefault,{family:pe.familyDefault})};Cae(function(e){fx=Um(e.styleDefault,{family:pe.familyDefault})});p7();function px(e,t){return(l7[e]||{})[t]}function Nae(e,t){return(c7[e]||{})[t]}function ra(e,t){return(f7[e]||{})[t]}function m7(e){return u7[e]||{prefix:null,iconName:null}}function Dae(e){var t=d7[e],n=px("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function So(){return fx}var h7=function(){return{prefix:null,iconName:null,rest:[]}};function Oae(e){var t=tn,n=s7.reduce(function(r,i){return r[i]="".concat(pe.cssPrefix,"-").concat(i),r},{});return H8.forEach(function(r){(e.includes(n[r])||e.some(function(i){return Iae[r].includes(i)}))&&(t=r)}),t}function Um(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?tn:n,i=hae[r][e];if(r===Uu&&!e)return"fad";var o=j3[r][e]||j3[r][i],a=e in Cr.styles?e:null,l=o||a||null;return l}function Fae(e){var t=[],n=null;return e.forEach(function(r){var i=Lae(pe.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function A3(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var $3=K8.concat(G8);function Hm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=A3(e.filter(function(h){return $3.includes(h)})),a=A3(e.filter(function(h){return!$3.includes(h)})),l=o.filter(function(h){return i=h,!w8.includes(h)}),c=Wm(l,1),u=c[0],d=u===void 0?null:u,f=Oae(o),p=H(H({},Fae(a)),{},{prefix:Um(d,{family:f})});return H(H(H({},p),Uae({values:e,family:f,styles:gu,config:pe,canonical:p,givenPrefix:i})),Bae(r,i,p))}function Bae(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?m7(i):{},a=ra(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!gu.far&&gu.fas&&!pe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Wae=H8.filter(function(e){return e!==tn||e!==Uu}),Vae=Object.keys(Wv).filter(function(e){return e!==tn}).map(function(e){return Object.keys(Wv[e])}).flat();function Uae(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,o=i===void 0?"":i,a=e.styles,l=a===void 0?{}:a,c=e.config,u=c===void 0?{}:c,d=n===Uu,f=t.includes("fa-duotone")||t.includes("fad"),p=u.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&&Wae.includes(n)){var v=Object.keys(l).find(function(x){return Vae.includes(x)});if(v||u.autoFetchSvg){var b=Xie.get(n).defaultShortPrefixId;r.prefix=b,r.iconName=ra(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=So()||"fas"),r}var Hae=function(){function e(){die(this,e),this.definitions={}}return pie(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}])}(),z3=[],ks={},Os={},Gae=Object.keys(Os);function Kae(e,t){var n=t.mixoutsTo;return z3=e,ks={},Object.keys(Os).forEach(function(r){Gae.indexOf(r)===-1&&delete Os[r]}),z3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Ip(i[a])==="object"&&Object.keys(i[a]).forEach(function(l){n[a]||(n[a]={}),n[a][l]=i[a][l]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){ks[a]||(ks[a]=[]),ks[a].push(o[a])})}r.provides&&r.provides(Os)}),n}function Xv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Mi?(_a("beforeI2svg",t),wo("pseudoElements2svg",t),wo("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;pe.autoReplaceSvg===!1&&(pe.autoReplaceSvg=!0),pe.observeMutations=!0,zae(function(){Qae({autoReplaceSvgRoot:n}),_a("watch",t)})}},Yae={icon:function(t){if(t===null)return null;if(Ip(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ra(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=Um(t[0]);return{prefix:r,iconName:ra(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(pe.cssPrefix,"-"))>-1||t.match(gae))){var i=Hm(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||So(),iconName:ra(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=So();return{prefix:o,iconName:ra(o,t)||t}}}},Zn={noAuto:qae,config:pe,dom:Xae,parse:Yae,library:g7,findIconDefinition:Yv,toHtml:Gu},Qae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?rt:n;(Object.keys(Cr.styles).length>0||pe.autoFetchSvg)&&Mi&&pe.autoReplaceSvg&&Zn.dom.i2svg({node:r})};function Gm(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Gu(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Mi){var r=rt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Zae(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(dx(a)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};i.style=Vm(H(H({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function Jae(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(pe.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:H(H({},i),{},{id:a}),children:r}]}]}function ese(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function mx(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,l=e.symbol,c=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,v=p.height,b=[pe.replacementClass,o?"".concat(pe.cssPrefix,"-").concat(o):""].filter(function(k){return u.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(u.classes).join(" "),x={children:[],attributes:H(H({},u.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(v)})};!ese(u.attributes)&&!u.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[Pa]="");var y=H(H({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:l,styles:H({},u.styles)}),g=r.found&&n.found?wo("generateAbstractMask",y)||{children:[],attributes:{}}:wo("generateAbstractIcon",y)||{children:[],attributes:{}},S=g.children,w=g.attributes;return y.children=S,y.attributes=w,l?Jae(y):Zae(y)}function R3(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.extra,a=e.watchable,l=a===void 0?!1:a,c=H(H({},o.attributes),{},{class:o.classes.join(" ")});l&&(c[Pa]="");var u=H({},o.styles);dx(i)&&(u.transform=Eae({transform:i,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=Vm(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function tse(e){var t=e.content,n=e.extra,r=H(H({},n.attributes),{},{class:n.classes.join(" ")}),i=Vm(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var M0=Cr.styles;function Qv(e){var t=e[0],n=e[1],r=e.slice(4),i=Wm(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(pe.cssPrefix,"-").concat(z0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(pe.cssPrefix,"-").concat(z0.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(pe.cssPrefix,"-").concat(z0.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var nse={found:!1,width:512,height:512};function rse(e,t){!Z8&&!pe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Zv(e,t){var n=t;return t==="fa"&&pe.styleDefault!==null&&(t=So()),new Promise(function(r,i){if(n==="fa"){var o=m7(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&M0[t]&&M0[t][e]){var a=M0[t][e];return r(Qv(a))}rse(e,t),r(H(H({},nse),{},{icon:pe.showMissingIcons&&e?wo("missingIconAbstract")||{}:{}}))})}var I3=function(){},Jv=pe.measurePerformance&&Hd&&Hd.mark&&Hd.measure?Hd:{mark:I3,measure:I3},rc='FA "7.3.1"',ise=function(t){return Jv.mark("".concat(rc," ").concat(t," begins")),function(){return v7(t)}},v7=function(t){Jv.mark("".concat(rc," ").concat(t," ends")),Jv.measure("".concat(rc," ").concat(t),"".concat(rc," ").concat(t," begins"),"".concat(rc," ").concat(t," ends"))},hx={begin:ise,end:v7},Nf=function(){};function M3(e){var t=e.getAttribute?e.getAttribute(Pa):null;return typeof t=="string"}function ose(e){var t=e.getAttribute?e.getAttribute(sx):null,n=e.getAttribute?e.getAttribute(lx):null;return t&&n}function ase(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(pe.replacementClass)}function sse(){if(pe.autoReplaceSvg===!0)return Df.replace;var e=Df[pe.autoReplaceSvg];return e||Df.replace}function lse(e){return rt.createElementNS("http://www.w3.org/2000/svg",e)}function cse(e){return rt.createElement(e)}function y7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?lse:cse:n;if(typeof e=="string")return rt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(y7(a,{ceFn:r}))}),i}function use(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Df={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(y7(i),n)}),n.getAttribute(Pa)===null&&pe.keepOriginalSource){var r=rt.createComment(use(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~ux(n).indexOf(pe.replacementClass))return Df.replace(t);var i=new RegExp("".concat(pe.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(l,c){return c===pe.replacementClass||c.match(i)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(l){return Gu(l)}).join(` +`);n.setAttribute(Pa,""),n.innerHTML=a}};function L3(e){e()}function b7(e,t){var n=typeof t=="function"?t:Nf;if(e.length===0)n();else{var r=L3;pe.mutateApproach===pae&&(r=xo.requestAnimationFrame||L3),r(function(){var i=sse(),o=hx.begin("mutate");e.map(i),o(),n()})}}var gx=!1;function x7(){gx=!0}function e1(){gx=!1}var Lp=null;function N3(e){if(S3&&pe.observeMutations){var t=e.treeCallback,n=t===void 0?Nf:t,r=e.nodeCallback,i=r===void 0?Nf:r,o=e.pseudoElementsCallback,a=o===void 0?Nf:o,l=e.observeMutationsRoot,c=l===void 0?rt:l;Lp=new S3(function(u){if(!gx){var d=So();Sl(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!M3(f.addedNodes[0])&&(pe.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&pe.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&M3(f.target)&&~bae.indexOf(f.attributeName))if(f.attributeName==="class"&&ose(f.target)){var p=Hm(ux(f.target)),h=p.prefix,v=p.iconName;f.target.setAttribute(sx,h||d),v&&f.target.setAttribute(lx,v)}else ase(f.target)&&i(f.target)})}}),Mi&&Lp.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function dse(){Lp&&Lp.disconnect()}function fse(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],l=o.slice(1);return a&&l.length>0&&(r[a]=l.join(":").trim()),r},{})),n}function pse(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Hm(ux(e));return i.prefix||(i.prefix=So()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Nae(i.prefix,e.innerText)||px(i.prefix,a7(e.innerText))),!i.iconName&&pe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function mse(e){var t=Sl(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function hse(){return{iconName:null,prefix:null,transform:Ur,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function D3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=pse(e),r=n.iconName,i=n.prefix,o=n.rest,a=mse(e),l=Xv("parseNodeAttributes",{},e),c=t.styleParser?fse(e):[];return H({iconName:r,prefix:i,transform:Ur,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:a}},l)}var gse=Cr.styles;function S7(e){var t=pe.autoReplaceSvg==="nest"?D3(e,{styleParser:!1}):D3(e);return~t.extra.classes.indexOf(e7)?wo("generateLayersText",e,t):wo("generateSvgReplacementMutation",e,t)}function vse(){return[].concat(Ar(G8),Ar(K8))}function O3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Mi)return Promise.resolve();var n=rt.documentElement.classList,r=function(f){return n.add("".concat(C3,"-").concat(f))},i=function(f){return n.remove("".concat(C3,"-").concat(f))},o=pe.autoFetchSvg?vse():w8.concat(Object.keys(gse));o.includes("fa")||o.push("fa");var a=[".".concat(e7,":not([").concat(Pa,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(Pa,"])")})).join(", ");if(a.length===0)return Promise.resolve();var l=[];try{l=Sl(e.querySelectorAll(a))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var c=hx.begin("onTree"),u=l.reduce(function(d,f){try{var p=S7(f);p&&d.push(p)}catch(h){Z8||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){b7(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function yse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;S7(e).then(function(n){n&&b7([n],t)})}function bse(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Yv(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Yv(i||{})),e(r,H(H({},n),{},{mask:i}))}}var xse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Ur:r,o=n.symbol,a=o===void 0?!1:o,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,h=n.attributes,v=h===void 0?{}:h,b=n.styles,x=b===void 0?{}:b;if(t){var y=t.prefix,g=t.iconName,S=t.icon;return Gm(H({type:"icon"},t),function(){return _a("beforeDOMElementCreation",{iconDefinition:t,params:n}),mx({icons:{main:Qv(S),mask:c?Qv(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:g,transform:H(H({},Ur),i),symbol:a,maskId:d,extra:{attributes:v,styles:x,classes:p}})})}},Sse={mixout:function(){return{icon:bse(xse)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=O3,n.nodeCallback=yse,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?rt:r,o=n.callback,a=o===void 0?function(){}:o;return O3(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.prefix,a=r.transform,l=r.symbol,c=r.mask,u=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([Zv(i,o),c.iconName?Zv(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var v=Wm(h,2),b=v[0],x=v[1];f([n,mx({icons:{main:b,mask:x},prefix:o,iconName:i,transform:a,symbol:l,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,l=n.styles,c=Vm(l);c.length>0&&(i.style=c);var u;return dx(a)&&(u=wo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},wse={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return Gm({type:"layer"},function(){_a("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(l){Array.isArray(l)?l.map(function(c){a=a.concat(c.abstract)}):a=a.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(pe.cssPrefix,"-layers")].concat(Ar(o)).join(" ")},children:a}]})}}}},kse={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,o=i===void 0?[]:i,a=r.attributes,l=a===void 0?{}:a,c=r.styles,u=c===void 0?{}:c;return Gm({type:"counter",content:n},function(){return _a("beforeDOMElementCreation",{content:n,params:r}),tse({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(pe.cssPrefix,"-layers-counter")].concat(Ar(o))}})})}}}},Cse={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Ur:i,a=r.classes,l=a===void 0?[]:a,c=r.attributes,u=c===void 0?{}:c,d=r.styles,f=d===void 0?{}:d;return Gm({type:"text",content:n},function(){return _a("beforeDOMElementCreation",{content:n,params:r}),R3({content:n,transform:H(H({},Ur),o),extra:{attributes:u,styles:f,classes:["".concat(pe.cssPrefix,"-layers-text")].concat(Ar(l))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,a=null,l=null;if(x8){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/c,l=u.height/c}return Promise.resolve([n,R3({content:n.innerHTML,width:a,height:l,transform:i,extra:o,watchable:!0})])}}},w7=new RegExp('"',"ug"),F3=[1105920,1112319],B3=H(H(H(H({},{FontAwesome:{normal:"fas",400:"fas"}}),qie),dae),roe),t1=Object.keys(B3).reduce(function(e,t){return e[t.toLowerCase()]=B3[t],e},{}),jse=Object.keys(t1).reduce(function(e,t){var n=t1[t];return e[t]=n[900]||Ar(Object.entries(n))[0][1],e},{});function Pse(e){var t=e.replace(w7,"");return a7(Ar(t)[0]||"")}function _se(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(w7,""),i=r.codePointAt(0),o=i>=F3[0]&&i<=F3[1],a=r.length===2?r[0]===r[1]:!1;return o||a||t}function Tse(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(t1[n]||{})[i]||jse[n]}function W3(e,t){var n="".concat(fae).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Sl(e.children),a=o.filter(function(P){return P.getAttribute(Uv)===t})[0],l=xo.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(vae),d=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){var p=l.getPropertyValue("content"),h=Tse(c,d),v=Pse(p),b=u[0].startsWith("FontAwesome"),x=_se(l),y=px(h,v),g=y;if(b){var S=Dae(v);S.iconName&&S.prefix&&(y=S.iconName,h=S.prefix)}if(y&&!x&&(!a||a.getAttribute(sx)!==h||a.getAttribute(lx)!==g)){e.setAttribute(n,g),a&&e.removeChild(a);var w=hse(),k=w.extra;k.attributes[Uv]=t,Zv(y,h).then(function(P){var _=mx(H(H({},w),{},{icons:{main:P,mask:h7()},prefix:h,iconName:g,extra:k,watchable:!0})),j=rt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=_.map(function(z){return Gu(z)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function Ese(e){return Promise.all([W3(e,"::before"),W3(e,"::after")])}function Ase(e){return e.parentNode!==document.head&&!~mae.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Uv)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var $se=function(t){return!!t&&Q8.some(function(n){return t.includes(n)})},zse=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(c){return c.trim()});r=r.flatMap(function(c){return c.includes("(")?c:c.split(",").map(function(u){return u.trim()})});var i=Lf(r),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;if($se(a)){var l=Q8.reduce(function(c,u){return c.replace(u,"")},a);l!==""&&l!=="*"&&n.add(l)}}}catch(c){i.e(c)}finally{i.f()}return n};function V3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Mi){var n;if(t)n=e;else if(pe.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Lf(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var l=Lf(a.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=zse(u.selectorText),f=Lf(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(b){f.e(b)}finally{f.f()}}}catch(b){l.e(b)}finally{l.f()}}catch(b){pe.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(b.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(b){i.e(b)}finally{i.f()}if(!r.size)return;var v=Array.from(r).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(b,x){var y=Sl(n).filter(Ase).map(Ese),g=hx.begin("searchPseudoElements");x7(),Promise.all(y).then(function(){g(),e1(),b()}).catch(function(){g(),e1(),x()})})}}var Rse={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=V3,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?rt:r;pe.searchPseudoElements&&V3(i)}}},U3=!1,Ise={mixout:function(){return{dom:{unwatch:function(){x7(),U3=!0}}}},hooks:function(){return{bootstrap:function(){N3(Xv("mutationObserverCallbacks",{}))},noAuto:function(){dse()},watch:function(n){var r=n.observeMutationsRoot;U3?e1():N3(Xv("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},H3=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],l=o.slice(1).join("-");if(a&&l==="h")return r.flipX=!0,r;if(a&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(a){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},Mse={mixout:function(){return{parse:{transform:function(n){return H3(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=H3(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,l={transform:"translate(".concat(o/2," 256)")},c="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:l,inner:f,path:p};return{tag:"g",attributes:H({},h.outer),children:[{tag:"g",attributes:H({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:H(H({},r.icon.attributes),h.path)}]}]}}}},L0={x:0,y:0,width:"100%",height:"100%"};function G3(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 Lse(e){return e.tag==="g"?e.children:[e]}var Nse={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Hm(i.split(" ").map(function(a){return a.trim()})):h7();return o.prefix||(o.prefix=So()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,l=n.maskId,c=n.transform,u=o.width,d=o.icon,f=a.width,p=a.icon,h=Tae({transform:c,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:H(H({},L0),{},{fill:"white"})},b=d.children?{children:d.children.map(G3)}:{},x={tag:"g",attributes:H({},h.inner),children:[G3(H({tag:d.tag,attributes:H(H({},d.attributes),h.path)},b))]},y={tag:"g",attributes:H({},h.outer),children:[x]},g="mask-".concat(l||P3()),S="clip-".concat(l||P3()),w={tag:"mask",attributes:H(H({},L0),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:Lse(p)},w]};return r.push(k,{tag:"rect",attributes:H({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(g,")")},L0)}),{children:r,attributes:i}}}},Dse={provides:function(t){var n=!1;xo.matchMedia&&(n=xo.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:H(H({},i),{},{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=H(H({},o),{},{attributeName:"opacity"}),l={tag:"circle",attributes:H(H({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:H(H({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:H(H({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:H(H({},i),{},{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:H(H({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:H(H({},i),{},{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:H(H({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Ose={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},Fse=[$ae,Sse,wse,kse,Cse,Rse,Ise,Mse,Nse,Dse,Ose];Kae(Fse,{mixoutsTo:Zn});Zn.noAuto;var sl=Zn.config;Zn.library;Zn.dom;var k7=Zn.parse;Zn.findIconDefinition;Zn.toHtml;var Bse=Zn.icon;Zn.layer;Zn.text;Zn.counter;function Wse(e){return e=e-0,e===e}function C7(e){return Wse(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Vse=(e,t)=>Xt.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Use(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ga=new Map,Hse=1e3;function Gse(e){if(Ga.has(e))return Ga.get(e);const t={};let n=0;const r=e.length;for(;n0){const c=a.slice(0,l).trim(),u=a.slice(l+1).trim();if(c&&u){const d=C7(c);t[d.startsWith("webkit")?Use(d):d]=u}}}n=o+1}if(Ga.size===Hse){const i=Ga.keys().next().value;i&&Ga.delete(i)}return Ga.set(e,t),t}function j7(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}}),j7(e,p)}),i=t.attributes||{},o={};for(const[f,p]of Object.entries(i))switch(!0){case f==="class":{o.className=p;break}case f==="style":{o.style=Gse(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=p;break}default:o[C7(f)]=p}const{style:a,role:l,"aria-label":c,gradientFill:u,...d}=n;if(a&&(o.style=o.style?{...o.style,...a}:a),l&&(o.role=l),c&&(o["aria-label"]=c,o["aria-hidden"]="false"),u){o.fill=`url(#${u.id})`;const{type:f,stops:p=[],...h}=u;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},p.map(Vse)))}return e(t.tag,{...o,...d},...r)}var Kse=j7.bind(null,Xt.createElement),K3=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},qse=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)}},Xse="searchPseudoElementsFullScan"in sl&&typeof sl.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",Yse=Number.parseInt(Xse)>=7,Qse=()=>Yse,Tc="fa",Ft={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"},Zse={left:"fa-pull-left",right:"fa-pull-right"},Jse={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},ele={"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"},yr={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 tle(e){const t=sl.cssPrefix||sl.familyPrefix||Tc;return t===Tc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Tc}-`,"g"),`${t}-`)}function nle(e){const{beat:t,fade:n,beatFade:r,bounce:i,shake:o,spin:a,spinPulse:l,spinReverse:c,pulse:u,fixedWidth:d,inverse:f,border:p,flip:h,size:v,rotation:b,pull:x,swapOpacity:y,rotateBy:g,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:P,buzz:_,float:j,jello:z,spinSnap:$,spinSnap4:W,spinSnap8:Y,swing:ee,wag:I,className:L}=e,N=[];return L&&N.push(...L.split(" ")),t&&N.push(Ft.beat),n&&N.push(Ft.fade),r&&N.push(Ft.beatFade),i&&N.push(Ft.bounce),o&&N.push(Ft.shake),a&&N.push(Ft.spin),c&&N.push(Ft.spinReverse),l&&N.push(Ft.spinPulse),u&&N.push(Ft.pulse),d&&N.push(yr.fixedWidth),f&&N.push(yr.inverse),p&&N.push(yr.border),h===!0&&N.push(yr.flip),(h==="horizontal"||h==="both")&&N.push(yr.flipHorizontal),(h==="vertical"||h==="both")&&N.push(yr.flipVertical),v!=null&&N.push(ele[v]),b!=null&&b!==0&&N.push(Jse[b]),x!=null&&N.push(Zse[x]),y&&N.push(yr.swapOpacity),Qse()?(g&&N.push(yr.rotateBy),S&&N.push(yr.widthAuto),w&&N.push(yr.canvasSquare),k&&N.push(yr.canvasRoomy),P&&N.push(Ft.flip360),_&&N.push(Ft.buzz),j&&N.push(Ft.float),z&&N.push(Ft.jello),$&&N.push(Ft.spinSnap),W&&N.push(Ft.spinSnap4),Y&&N.push(Ft.spinSnap8),ee&&N.push(Ft.swing),I&&N.push(Ft.wag),(sl.cssPrefix||sl.familyPrefix||Tc)===Tc?N:N.map(tle)):N}var rle=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function q3(e){if(e)return rle(e)?e:k7.icon(e)}function ile(e){return Object.keys(e)}var X3=new qse("FontAwesomeIcon"),P7={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},ole=new Set(Object.keys(P7)),We=Xt.forwardRef((e,t)=>{const n={...P7,...e},{icon:r,mask:i,symbol:o,title:a,titleId:l,maskId:c,transform:u}=n,d=K3(c,!!i),f=K3(l,!!a),p=q3(r);if(!p)return X3.error("Icon lookup is undefined",r),null;const h=nle(n),v=typeof u=="string"?k7.transform(u):u,b=q3(i),x=Bse(p,{...h.length>0&&{classes:h},...v&&{transform:v},...b&&{mask:b},symbol:o,title:a,titleId:f,maskId:d});if(!x)return X3.error("Could not find icon",p),null;const{abstract:y}=x,g={ref:t};for(const S of ile(n))ole.has(S)||(g[S]=n[S]);return Kse(y[0],g)});We.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 n1={prefix:"fas",iconName:"truck",icon:[576,512,[128666,9951],"f0d1","M0 96C0 60.7 28.7 32 64 32l288 0c35.3 0 64 28.7 64 64l0 32 50.7 0c17 0 33.3 6.7 45.3 18.7L557.3 192c12 12 18.7 28.3 18.7 45.3L576 384c0 35.3-28.7 64-64 64l-3.3 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64l-102.6 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64L64 448c-35.3 0-64-28.7-64-64L0 96zM512 288l0-50.7-45.3-45.3-50.7 0 0 96 96 0zM192 424a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm232 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},yx={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},bx={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},Z3={prefix:"fas",iconName:"trophy",icon:[512,512,[127942],"f091","M144.3 0l224 0c26.5 0 48.1 21.8 47.1 48.2-.2 5.3-.4 10.6-.7 15.8l49.6 0c26.1 0 49.1 21.6 47.1 49.8-7.5 103.7-60.5 160.7-118 190.5-15.8 8.2-31.9 14.3-47.2 18.8-20.2 28.6-41.2 43.7-57.9 51.8l0 73.1 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0 0-73.1c-16-7.7-35.9-22-55.3-48.3-18.4-4.8-38.4-12.1-57.9-23.1-54.1-30.3-102.9-87.4-109.9-189.9-1.9-28.1 21-49.7 47.1-49.7l49.6 0c-.3-5.2-.5-10.4-.7-15.8-1-26.5 20.6-48.2 47.1-48.2zM101.5 112l-52.4 0c6.2 84.7 45.1 127.1 85.2 149.6-14.4-37.3-26.3-86-32.8-149.6zM380 256.8c40.5-23.8 77.1-66.1 83.3-144.8L411 112c-6.2 60.9-17.4 108.2-31 144.8z"]},ule={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M321.5 68.8C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40s-17.9 40-40 40l-73.3 0 34.8-59.2zm-131 0l34.8 59.2-73.3 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zm89.6-24.3l-24.1 41-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0c-48.6 0-88 39.4-88 88 0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-32c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40 0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4zM480 272l-200 0 0 208 136 0c35.3 0 64-28.7 64-64l0-144zm-248 0l-200 0 0 144c0 35.3 28.7 64 64 64l136 0 0-208z"]},$7={prefix:"fas",iconName:"power-off",icon:[512,512,[9211],"f011","M288 0c0-17.7-14.3-32-32-32S224-17.7 224 0l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L288 0zM146.3 98.4c14.5-10.1 18-30.1 7.9-44.6s-30.1-18-44.6-7.9C43.4 92.1 0 169 0 256 0 397.4 114.6 512 256 512S512 397.4 512 256c0-87-43.4-163.9-109.7-210.1-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6c49.8 34.8 82.3 92.4 82.3 157.6 0 106-86 192-192 192S64 362 64 256c0-65.2 32.5-122.9 82.3-157.6z"]},dle={prefix:"fas",iconName:"cash-register",icon:[512,512,[],"f788","M96 0C60.7 0 32 28.7 32 64s28.7 64 64 64l48 0 0 32-57 0c-31.6 0-58.5 23.1-63.3 54.4L1.1 364.1C.4 368.8 0 373.6 0 378.4L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-69.6c0-4.8-.4-9.6-1.1-14.4L488.2 214.4C483.5 183.1 456.6 160 425 160l-217 0 0-32 48 0c35.3 0 64-28.7 64-64S291.3 0 256 0L96 0zm0 48l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L96 80c-8.8 0-16-7.2-16-16s7.2-16 16-16zM64 424c0-13.3 10.7-24 24-24l336 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm48-160a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm120-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM160 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM328 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM256 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM424 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM352 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48z"]},fle={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},ple={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},mle={prefix:"fas",iconName:"boxes-stacked",icon:[512,512,[62625,"boxes","boxes-alt"],"f468","M224 0l0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 5.5-.7 10.9-2 16l-252 0c-1.3-5.1-2-10.5-2-16l0-128c0-35.3 28.7-64 64-64l32 0zm96 512c-11.2 0-21.8-2.9-31-8 9.5-16.5 15-35.6 15-56l0-128c0-20.4-5.5-39.5-15-56 9.2-5.1 19.7-8 31-8l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64l-128 0zM0 320c0-35.3 28.7-64 64-64l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 320z"]},z7={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},J3={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},hle={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"]},R7={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},gle={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},I7={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Ku={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},vle={prefix:"fas",iconName:"paper-plane",icon:[576,512,[61913],"f1d8","M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z"]},yle={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},ble={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M160.5-26.4c9.3-7.8 23-7.5 31.9 .9 12.3 11.6 23.3 24.4 33.9 37.4 13.5 16.5 29.7 38.3 45.3 64.2 5.2-6.8 10-12.8 14.2-17.9 1.1-1.3 2.2-2.7 3.3-4.1 7.9-9.8 17.7-22.1 30.8-22.1 13.4 0 22.8 11.9 30.8 22.1 1.3 1.7 2.6 3.3 3.9 4.8 10.3 12.4 24 30.3 37.7 52.4 27.2 43.9 55.6 106.4 55.6 176.6 0 123.7-100.3 224-224 224S0 411.7 0 288c0-91.1 41.1-170 80.5-225 19.9-27.7 39.7-49.9 54.6-65.1 8.2-8.4 16.5-16.7 25.5-24.2zM225.7 416c25.3 0 47.7-7 68.8-21 42.1-29.4 53.4-88.2 28.1-134.4-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5-17.3-22.1-49.1-62.4-65.3-83-5.4-6.9-15.2-8-21.5-1.9-18.3 17.8-51.5 56.8-51.5 104.3 0 68.6 50.6 109.2 113.7 109.2z"]},M7={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},L7={prefix:"fas",iconName:"location-arrow",icon:[512,512,[],"f124","M477.9 75.5c4.5-11.8 1.7-25.2-7.2-34.1s-22.3-11.8-34.1-7.2l-416 160C7.9 199-.3 211.2 0 224.7s9.1 25.4 21.9 29.6l176.8 58.9 58.9 176.8c4.3 12.8 16.1 21.6 29.6 21.9s25.7-7.9 30.6-20.5l160-416z"]},xle={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M96 64c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L96 64zM464 336l73.5 58.8c4.2 3.4 9.4 5.2 14.8 5.2 13.1 0 23.7-10.6 23.7-23.7l0-240.6c0-13.1-10.6-23.7-23.7-23.7-5.4 0-10.6 1.8-14.8 5.2L464 176 464 336z"]},Sle={prefix:"fas",iconName:"utensils",icon:[512,512,[127860,61685,"cutlery"],"f2e7","M63.9 14.4C63.1 6.2 56.2 0 48 0s-15.1 6.2-16 14.3L17.9 149.7c-1.3 6-1.9 12.1-1.9 18.2 0 45.9 35.1 83.6 80 87.7L96 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224.4c44.9-4.1 80-41.8 80-87.7 0-6.1-.6-12.2-1.9-18.2L223.9 14.3C223.1 6.2 216.2 0 208 0s-15.1 6.2-15.9 14.4L178.5 149.9c-.6 5.7-5.4 10.1-11.1 10.1-5.8 0-10.6-4.4-11.2-10.2L143.9 14.6C143.2 6.3 136.3 0 128 0s-15.2 6.3-15.9 14.6L99.8 149.8c-.5 5.8-5.4 10.2-11.2 10.2-5.8 0-10.6-4.4-11.1-10.1L63.9 14.4zM448 0C432 0 320 32 320 176l0 112c0 35.3 28.7 64 64 64l32 0 0 128c0 17.7 14.3 32 32 32s32-14.3 32-32l0-448c0-17.7-14.3-32-32-32z"]},wle={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},xx={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},kle={prefix:"fas",iconName:"image",icon:[448,512,[],"f03e","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 80a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM272 224c8.4 0 16.1 4.4 20.5 11.5l88 144c4.5 7.4 4.7 16.7 .5 24.3S368.7 416 360 416L88 416c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l26.4 37.8 61.4-100.5c4.4-7.1 12.1-11.5 20.5-11.5z"]},Cle={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M285.7 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L77.7 512C61.3 512 48 498.7 48 482.3 48 383.8 127.8 304 226.3 304l59.4 0zM528 80c13.3 0 24 10.7 24 24l0 48 48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0 0 48c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-48-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0 0-48c0-13.3 10.7-24 24-24zM256 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},N7={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},D7={prefix:"fas",iconName:"bicycle",icon:[640,512,[128690],"f206","M331.7 43.3C336 36.3 343.7 32 352 32l104 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-65.6 0 72.2 148.4c10.7-2.9 21.9-4.4 33.4-4.4 70.7 0 128 57.3 128 128s-57.3 128-128 128-128-57.3-128-128c0-42 20.2-79.2 51.4-102.6l-20.4-41.9-73.5 147c-2.3 4.8-6.3 8.8-11.4 11.2-.6 .3-1.2 .5-1.8 .7-2.9 1.1-5.9 1.6-8.9 1.5L271 368c-7.9 63.1-61.7 112-127 112-70.7 0-128-57.3-128-128S73.3 224 144 224c10.8 0 21.2 1.3 31.2 3.8l28.5-56.9-11.5-26.9-40.2 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l56 0c9.6 0 18.3 5.7 22.1 14.5l14.3 33.5 123.7 0-37.7-77.5c-3.6-7.4-3.2-16.2 1.2-23.2zM228.5 228.7l-45.6 91.3 84.8 0-39.1-91.3zM305.7 287l47.5-95-88.2 0 40.7 95zm168.7 75.5l-29.7-61c-12.8 13-20.7 30.8-20.7 50.5 0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72c-2.7 0-5.5 .2-8.1 .5l29.7 61c5.8 11.9 .8 26.3-11.1 32.1s-26.3 .8-32.1-11.1zM149.2 368c-20.2 0-33.4-21.3-24.3-39.4l24.2-48.5c-1.7-.1-3.4-.2-5.1-.2-39.8 0-72 32.2-72 72s32.2 72 72 72c34.3 0 62.9-23.9 70.2-56l-65 0z"]},jle={prefix:"fas",iconName:"bell-concierge",icon:[512,512,[128718,"concierge-bell"],"f562","M216 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l16 0 0 33.3C124.8 156.7 40.2 243.7 32.6 352l446.9 0C471.8 243.7 387.2 156.7 280 145.3l0-33.3 16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zM24 400c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 400z"]},Ta={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},Sx={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"]},Ple={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},_le={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"]},Tle={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"]},Ele={prefix:"fas",iconName:"phone",icon:[512,512,[128222,128379],"f095","M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z"]},O7={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Ale={prefix:"fas",iconName:"hourglass-half",icon:[384,512,["hourglass-2"],"f252","M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z"]},$le={prefix:"fas",iconName:"credit-card",icon:[512,512,[128179,62083,"credit-card-alt"],"f09d","M0 128l0 32 512 0 0-32c0-35.3-28.7-64-64-64L64 64C28.7 64 0 92.7 0 128zm0 80L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-176-512 0zM64 360c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24zm144 0c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24z"]},zle={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Np={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},Km={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},qm={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0zm0 66.8l0 378.1c138-66.8 175.1-214.8 176-303.4l-176-74.6 0 0z"]},Rle={prefix:"fas",iconName:"check-double",icon:[384,512,[],"f560","M249.9 66.8c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-106 145.7-37.5-37.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l128-176zm128 136c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-170 233.7-69.5-69.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l192-264z"]},wx={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},F7={prefix:"fas",iconName:"box",icon:[448,512,[128230],"f466","M335.1 16c20.7 0 40.1 10 52.1 26.8l48.9 68.5c7.7 10.8 11.9 23.9 11.9 37.2L448 416c0 35.3-28.7 64-64 64l-320 0-6.5-.3C25.2 476.4 0 449.1 0 416L0 148.5c0-11.7 3.2-23.1 9.2-33l2.7-4.2 48.9-68.5c10.5-14.7 26.7-24.2 44.4-26.3l7.7-.5 222.1 0zM248 128l121.3 0-34.3-48-87.1 0 0 48zM78.7 128l121.3 0 0-48-87.1 0-34.3 48z"]},B7={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","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-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},Ile={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"]},Mle={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"]},Dp={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},Lle={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},Nle={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},Xm={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z"]},kx={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Dle={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M96.5 0c-35.3 0-64 28.7-64 64l0 384c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-96 78.1 0-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9l-72-72c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-78.1 0 0-133.5c0-17-6.7-33.3-18.7-45.3L291.2 18.7C279.2 6.7 263 0 246 0L96.5 0zM358 176l-93.5 0c-13.3 0-24-10.7-24-24L240.5 58.5 358 176zM224.5 328c0-13.3 10.7-24 24-24l104 0 0 48-104 0c-13.3 0-24-10.7-24-24z"]},Ole={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"]},Fle=Ole;const A={bg:"#0a0a0a",card:"#1e1e1e",border:"#333333",text:"rgba(255,255,255,.87)",text2:"rgba(255,255,255,.6)",text3:"rgba(255,255,255,.4)",accent:"#7c3aed",accentLight:"#8b5cf6",secondary:"#22d3ee",success:"#4ade80",danger:"#ef4444",warning:"#f59e0b",info:"#3b82f6"};function Dt({children:e}){return s.jsx(ne,{bg:A.bg,borderRadius:"24px",p:"14px",maxW:"380px",mx:"auto",boxShadow:"0 30px 60px -20px rgba(60,20,110,.45)",border:"1px solid",borderColor:"whiteAlpha.100",children:s.jsx(ne,{bg:A.bg,borderRadius:"16px",p:"16px 14px 20px",minH:"220px",children:e})})}function wn({title:e,subtitle:t,action:n}){return s.jsxs(St,{justify:"space-between",align:"flex-start",mb:4,children:[s.jsxs(ne,{children:[s.jsx(K,{color:A.text,fontSize:"1rem",fontWeight:"800",mb:0,children:e}),t&&s.jsx(K,{color:A.text3,fontSize:"0.72rem",children:t})]}),n]})}function He({children:e,mb:t=2.5,onClick:n,active:r=!1}){return s.jsx(ne,{bg:A.card,border:"1px solid",borderColor:r?A.accent:A.border,borderRadius:"12px",p:3,mb:t,cursor:n?"pointer":void 0,transition:"border-color .15s, transform .1s",onClick:n,_hover:n?{borderColor:A.accentLight}:void 0,_active:n?{transform:"scale(0.99)"}:void 0,children:e})}function Xe({icon:e,value:t,label:n,color:r=A.accentLight}){return s.jsxs(ne,{bg:A.card,border:"1px solid",borderColor:A.border,borderRadius:"12px",p:2.5,children:[s.jsx(St,{w:"26px",h:"26px",borderRadius:"full",align:"center",justify:"center",bg:`${r}30`,mb:2,children:s.jsx(We,{icon:e,style:{color:r,fontSize:"0.7rem"}})}),s.jsx(K,{color:A.text,fontSize:"1.15rem",fontWeight:"800",lineHeight:"1",children:t}),s.jsx(K,{color:A.text3,fontSize:"0.62rem",mt:1,textTransform:"uppercase",letterSpacing:"0.02em",children:n})]})}function q({children:e,variant:t="primary",mono:n=!1,size:r}){const i={primary:A.text,secondary:A.text2,muted:A.text3,success:A.success,danger:A.danger};return s.jsx(K,{color:i[t],fontSize:r??"0.78rem",fontFamily:n?"mono":void 0,as:"span",children:e})}function Pt({children:e}){return s.jsx(ge,{justify:"space-between",align:"center",children:e})}function Ble({value:e,color:t=A.accent}){return s.jsx(_p,{value:e,size:"xs",borderRadius:"full",mt:1,sx:{"& > div":{background:t,transition:"width .4s ease"},background:"#2a2a2a"}})}function ll({color:e,size:t="9px"}){return s.jsx(ne,{as:"span",display:"inline-block",w:t,h:t,borderRadius:"full",bg:e,mr:1.5,flexShrink:0})}function W7({icon:e,color:t,size:n="0.75rem"}){return s.jsx(We,{icon:e,style:{color:t??A.text2,fontSize:n,marginRight:6}})}function Te({children:e,tone:t="outline",icon:n,onClick:r,isActive:i=!1}){const o={accent:{bg:A.accent,color:"white",border:"none"},outline:{bg:"transparent",color:A.text2,border:`1px solid ${A.border}`},outlineDanger:{bg:"transparent",color:A.danger,border:`1px solid ${A.danger}`},success:{bg:A.success,color:"#0a0a0a",border:"none"}}[t];return s.jsxs(ne,{as:"button",type:"button",display:"inline-flex",alignItems:"center",borderRadius:"8px",px:3,py:1.5,fontSize:"0.68rem",fontWeight:"700",cursor:r?"pointer":"default",transition:"filter .15s, transform .1s",opacity:i?1:.92,_hover:r?{filter:"brightness(1.15)"}:void 0,_active:r?{transform:"scale(0.96)"}:void 0,onClick:r,...o,children:[n&&s.jsx(We,{icon:n,style:{marginRight:6,fontSize:"0.68rem"}}),e]})}function Cx({tabs:e,active:t,onChange:n}){return s.jsx(ge,{spacing:1.5,mb:3,flexWrap:"wrap",children:e.map(r=>{const i=r.key===t;return s.jsx(ne,{as:"button",type:"button",onClick:()=>n(r.key),px:2.5,py:1,borderRadius:"999px",fontSize:"0.66rem",fontWeight:"700",cursor:"pointer",transition:"all .15s",bg:i?A.accent:"transparent",color:i?"white":A.text3,border:"1px solid",borderColor:i?A.accent:A.border,_hover:{borderColor:A.accentLight,color:i?"white":A.text2},children:r.label},r.key)})})}function Wle({value:e,onChange:t,placeholder:n}){return s.jsxs(ne,{position:"relative",my:2,children:[s.jsx(We,{icon:ple,style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",color:A.text3,fontSize:"0.65rem"}}),s.jsx(ne,{as:"input",value:e,onChange:r=>t(r.target.value),placeholder:n,w:"100%",bg:A.bg,border:"1px solid",borderColor:A.border,borderRadius:"8px",color:A.text,fontSize:"0.7rem",py:1.5,pl:"26px",pr:2,outline:"none"})]})}function Ym({children:e}){return s.jsx(ne,{border:"1px dashed",borderColor:A.border,borderRadius:"10px",p:2.5,mt:2,children:s.jsx(K,{color:A.text3,fontSize:"0.64rem",fontStyle:"italic",children:e})})}function Vle({isOn:e,onToggle:t}){return s.jsx(ne,{as:"button",type:"button",onClick:t,w:"34px",h:"20px",borderRadius:"full",bg:e?A.accent:A.border,position:"relative",cursor:"pointer",transition:"background .2s",flexShrink:0,children:s.jsx(ne,{position:"absolute",top:"2px",left:e?"16px":"2px",w:"16px",h:"16px",borderRadius:"full",bg:"white",transition:"left .2s"})})}function Ule(){const[e,t]=m.useState(!0);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Bonjour, Admin",subtitle:"Vue d'ensemble"}),s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:F7,value:312,label:"Total commandes",color:A.accentLight}),s.jsx(Xe,{icon:Ku,value:8,label:"En attente",color:A.warning}),s.jsx(Xe,{icon:L7,value:5,label:"En route",color:A.info}),s.jsx(Xe,{icon:Ta,value:299,label:"Terminées",color:A.success}),s.jsx(Xe,{icon:Sx,value:184,label:"Clients",color:A.accentLight}),s.jsx(Xe,{icon:M7,value:6,label:"Livreurs",color:A.secondary})]}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(W7,{icon:bx,color:A.secondary}),"Notifications Telegram"]}),s.jsx(Te,{tone:e?"outlineDanger":"accent",icon:e?B7:N7,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]}),s.jsx(q,{variant:"muted",size:"0.68rem",children:e?"Compte Telegram lié — alertes actives.":"Aucun compte lié — cliquez pour connecter."})]})]})}const ek=[{id:"#1042",client:"client_marie · 12 rue des Lilas",extra:"il y a 4 min",tone:"warning",label:"En attente",amount:"46,00 €"},{id:"#1041",client:"client_paul · Livreur: lucas_d",extra:"Net après parrainage",tone:"info",label:"En route",amount:"33,00 €"},{id:"#1040",client:"client_lea · 8 avenue Foch",extra:"en attente d’assignation",tone:"accent",label:"Livreur arrivé",amount:"58,50 €"}],tk=[{id:"#1038",client:"client_sam · 3 rue Victor Hugo",extra:"Terminée il y a 1 h",tone:"info",label:"Livrée",amount:"27,00 €"},{id:"#1036",client:"client_ana · 21 bd Voltaire",extra:"Terminée hier",tone:"info",label:"Livrée",amount:"41,00 €"},{id:"#1030",client:"client_marie · 5 rue de Rivoli",extra:"Terminée il y a 3 j",tone:"info",label:"Livrée",amount:"22,00 €"}],nk=[{id:"#1029",client:"client_theo · adresse introuvable",extra:"Annulée par le livreur",tone:"warning",label:"Annulée",amount:"19,00 €"}],rk={warning:A.warning,info:A.info,accent:A.accentLight};function ik({o:e,isOpen:t,onClick:n,children:r}){return s.jsxs(He,{active:t,onClick:n,children:[s.jsxs(Pt,{children:[s.jsx(q,{mono:!0,children:e.id}),s.jsx("span",{style:{background:`${rk[e.tone]}26`,color:rk[e.tone],padding:"2px 9px",borderRadius:999,fontWeight:800,fontSize:"0.62rem"},children:e.label})]}),s.jsx(q,{variant:"secondary",size:"0.7rem",children:e.client}),s.jsxs(Pt,{children:[s.jsx(q,{variant:"muted",size:"0.65rem",children:e.extra}),s.jsx(q,{variant:"primary",size:"0.75rem",children:e.amount})]}),r]})}function Hle(){const[e,t]=m.useState("#1040"),[n,r]=m.useState(null),[i,o]=m.useState(""),a=n==="approuvees"?tk:n==="annulees"?nk:[],l=m.useMemo(()=>a.filter(u=>u.client.toLowerCase().includes(i.toLowerCase())),[a,i]),c=u=>{r(d=>d===u?null:u),o("")};return s.jsxs(Dt,{children:[s.jsxs(Pt,{children:[s.jsx(Te,{tone:"outline",icon:Fle,children:"Actualiser"}),s.jsx(Te,{tone:"outline",icon:Dle,children:"Export CSV"})]}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10,marginBottom:6},children:[s.jsxs("div",{onClick:()=>c("approuvees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="approuvees"?A.success:A.border}`,background:n==="approuvees"?`${A.success}22`:"transparent",color:n==="approuvees"?A.success:A.text3},children:["Approuvées (",tk.length,")"]}),s.jsxs("div",{onClick:()=>c("annulees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="annulees"?A.danger:A.border}`,background:n==="annulees"?`${A.danger}22`:"transparent",color:n==="annulees"?A.danger:A.text3},children:["Annulées (",nk.length,")"]})]}),n&&s.jsxs("div",{style:{marginBottom:10},children:[s.jsx(Wle,{value:i,onChange:o,placeholder:"Rechercher par username..."}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:[l.length," résultat",l.length>1?"s":""]}),l.map(u=>s.jsx(ik,{o:u,isOpen:!1,onClick:()=>{}},u.id)),s.jsx("div",{style:{borderTop:`1px solid ${A.border}`,margin:"10px 0"}})]}),s.jsxs(q,{size:"0.78rem",variant:"primary",children:["Commandes actives (",ek.length,")"]}),s.jsx("div",{style:{marginTop:8},children:ek.map(u=>{const d=e===u.id;return s.jsx(ik,{o:u,isOpen:d,onClick:()=>t(d?null:u.id),children:d&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${A.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"accent",icon:yx,children:"Assigner livreur"}),s.jsx(Te,{tone:"outline",icon:n1,children:"Passer en route"}),s.jsx(Te,{tone:"outline",icon:Ile,children:"Proposer adresse"})]})},u.id)})})]})}const ok=[{name:"lucas_d",status:"busy",queue:1,today:14,total:512,distance:"1,8 km",eta:"6 min"},{name:"emma_l",status:"available",queue:0,today:9,total:340,distance:"0,6 km",eta:"2 min"},{name:"yanis_b",status:"offline",queue:0,today:5,total:128,distance:"—",eta:"—"}],Ka={available:A.success,busy:A.warning,offline:A.text3},Gle={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function Kle(){const[e,t]=m.useState("lucas_d"),n=ok.find(r=>r.name===e);return s.jsxs(Dt,{children:[s.jsxs(bn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:Xm,value:1,label:"Dispo",color:A.success}),s.jsx(Xe,{icon:Ku,value:1,label:"Occupés",color:A.warning}),s.jsx(Xe,{icon:$7,value:1,label:"Hors ligne",color:A.text3})]}),s.jsxs(He,{children:[s.jsx("div",{style:{height:110,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${Ka[n.status]}26`,color:Ka[n.status],fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(ll,{color:Ka[n.status],size:"7px"}),n.name," — ",n.distance," · ",n.eta]})}),s.jsx(q,{variant:"muted",size:"0.62rem",children:"Cliquez un livreur ci-dessous pour suivre son trajet en direct"})]}),ok.map(r=>{const i=r.name===e;return s.jsxs(He,{active:i,onClick:()=>t(r.name),children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(ll,{color:Ka[r.status]}),r.name]}),s.jsx("span",{style:{background:`${Ka[r.status]}26`,color:Ka[r.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:Gle[r.status]})]}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:[r.queue," en attente · ",r.today," aujourd'hui · ",r.total," total"]}),i&&s.jsxs("div",{style:{marginTop:8,display:"flex",gap:6},children:[s.jsx(Te,{tone:"outline",icon:Np,children:"Avis"}),s.jsx(Te,{tone:r.status!=="offline"?"accent":"outline",icon:kx,children:r.status!=="offline"?"Suivre l'itinéraire":"Indisponible"})]})]},r.name)})]})}const qle=[{label:"1u",price:"12€",active:!0},{label:"3u",price:"30€",active:!0},{label:"5u",price:"45€",active:!1}];function Xle(){const[e,t]=m.useState(qle),n=r=>{t(i=>i.map((o,a)=>a===r?{...o,active:!o.active}:o))};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Produits (48)",action:s.jsx(Te,{tone:"accent",icon:wx,children:"Créer"})}),s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"primary",size:"0.82rem",children:"Pack Découverte"}),s.jsx("span",{style:{background:`${A.accentLight}26`,color:A.accentLight,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"Premium"})]}),s.jsxs(q,{variant:"muted",size:"0.65rem",children:[s.jsx(We,{icon:kle,style:{marginRight:4}}),"3 images ·"," ",s.jsx(We,{icon:xle,style:{marginRight:4}}),"1 vidéo · Stock: 24 u"]}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"Cliquez un tarif pour l'activer / le désactiver"}),s.jsx("div",{style:{display:"flex",gap:6,marginTop:6,flexWrap:"wrap"},children:e.map((r,i)=>s.jsxs("div",{onClick:()=>n(i),style:{cursor:"pointer",display:"flex",alignItems:"center",gap:5,padding:"4px 9px",borderRadius:8,border:`1px solid ${A.border}`,opacity:r.active?1:.5,textDecoration:r.active?"none":"line-through"},children:[s.jsx(We,{icon:r.active?_le:wle,style:{color:r.active?A.success:A.danger,fontSize:"0.7rem"}}),s.jsxs("span",{style:{color:A.text,fontSize:"0.72rem"},children:[r.label," = ",r.price]})]},r.label))}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx(Te,{tone:"outline",icon:Tle,children:"Modifier"}),s.jsx(Te,{tone:"outlineDanger",icon:R7,children:"Supprimer"})]})]}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"primary",size:"0.82rem",children:"Édition Limitée"}),s.jsx("span",{style:{background:`${A.warning}26`,color:A.warning,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"À venir"})]}),s.jsx(q,{variant:"muted",size:"0.65rem",children:"Stock: 0 u — masqué du catalogue tant que le stock est vide"})]})]})}const Yle=[{id:"a",name:"Fleurs",color:"#10b981"},{id:"b",name:"Résines",color:"#9333ea"},{id:"c",name:"Comestibles",color:"#3dc2f7",soon:!0}];function Qle(){const[e,t]=m.useState(Yle),n=(r,i)=>{const o=r+i;o<0||o>=e.length||t(a=>{const l=[...a];return[l[r],l[o]]=[l[o],l[r]],l})};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Catégories",action:s.jsx(Te,{tone:"accent",icon:wx,children:"Ajouter"})}),e.map((r,i)=>s.jsx(He,{children:s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(ll,{color:r.color}),r.name,r.soon&&s.jsx("span",{style:{marginLeft:8,background:`${A.warning}26`,color:A.warning,fontSize:"0.58rem",fontWeight:800,padding:"2px 7px",borderRadius:999},children:"Prochainement"})]}),s.jsxs("div",{style:{display:"flex",gap:4},children:[s.jsx("button",{onClick:()=>n(i,-1),disabled:i===0,style:{background:"transparent",border:"none",cursor:i===0?"default":"pointer",color:i===0?A.border:A.text2,padding:4},"aria-label":"Monter",children:s.jsx(We,{icon:I7,style:{fontSize:"0.7rem"}})}),s.jsx("button",{onClick:()=>n(i,1),disabled:i===e.length-1,style:{background:"transparent",border:"none",cursor:i===e.length-1?"default":"pointer",color:i===e.length-1?A.border:A.text2,padding:4},"aria-label":"Descendre",children:s.jsx(We,{icon:O7,style:{fontSize:"0.7rem"}})})]})]})},r.id)),s.jsx(q,{variant:"muted",size:"0.62rem",children:"Essayez les flèches ↑ / ↓ pour réordonner"})]})}function Bl({title:e,onReset:t,since:n,children:r}){return s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:e}),t&&s.jsx(Te,{tone:"outlineDanger",icon:Dp,onClick:t,children:"Réinitialiser"})]}),n&&s.jsxs(q,{variant:"muted",size:"0.58rem",children:["Depuis le ",n]}),s.jsx("div",{style:{marginTop:8},children:r})]})}function Fo({label:e,value:t,pct:n,color:r,highlight:i}){return s.jsxs("div",{style:{marginBottom:6},children:[s.jsxs(Pt,{children:[s.jsxs(q,{variant:i?"primary":"muted",size:"0.64rem",children:[i&&s.jsx(We,{icon:ble,style:{color:A.warning,marginRight:4}}),e]}),s.jsx(q,{variant:i?"primary":"muted",size:"0.64rem",children:t})]}),s.jsx(Ble,{value:n,color:i?A.warning:r})]})}const qa=["Mai 2026","Juin 2026","Juillet 2026","Août 2026"],Zle=[{day:"02/08",orders:14,revenue:"312€",best:!1},{day:"01/08",orders:22,revenue:"498€",best:!0},{day:"31/07",orders:9,revenue:"201€",best:!1}],Jle=[{key:"quantite",label:"Quantité"},{key:"commandes",label:"Commandes"},{key:"revenus",label:"Revenus"}],ece={quantite:[{name:"Pack Découverte",value:210,display:"210"},{name:"Édition Standard",value:140,display:"140"},{name:"Format Duo",value:96,display:"96"}],commandes:[{name:"Pack Découverte",value:86,display:"86"},{name:"Édition Standard",value:54,display:"54"},{name:"Format Duo",value:41,display:"41"}],revenus:[{name:"Pack Découverte",value:1032,display:"1032€"},{name:"Édition Standard",value:648,display:"648€"},{name:"Format Duo",value:492,display:"492€"}]},N0=[{label:"10h",value:4},{label:"12h",value:18},{label:"14h",value:9},{label:"18h",value:22},{label:"20h",value:31},{label:"22h",value:12}],D0=[{label:"Lun",value:32},{label:"Mar",value:28},{label:"Mer",value:35},{label:"Jeu",value:41},{label:"Ven",value:58},{label:"Sam",value:71},{label:"Dim",value:47}],ak=[{label:"1g",value:40},{label:"3.5g",value:86},{label:"5g",value:22},{label:"10g",value:12}];function tce(){const[e,t]=m.useState(qa.length-1),[n,r]=m.useState("revenus"),i=m.useMemo(()=>[...ece[n]].sort((f,p)=>p.value-f.value),[n]),o=i[0].value,a=Math.max(...N0.map(f=>f.value)),l=N0.reduce((f,p)=>p.value>f.value?p:f),c=Math.max(...D0.map(f=>f.value)),u=D0.reduce((f,p)=>p.value>f.value?p:f),d=Math.max(...ak.map(f=>f.value));return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Statistiques",subtitle:"Activité globale & produits"}),s.jsxs("div",{style:{maxHeight:560,overflowY:"auto",paddingRight:2},children:[s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:gle,value:312,label:"Commandes totales",color:A.accentLight}),s.jsx(Xe,{icon:dle,value:"6,4k€",label:"Revenus (terminées)",color:A.success}),s.jsx(Xe,{icon:Ku,value:"10,4",label:"Moy. commandes/jour",color:A.info}),s.jsx(Xe,{icon:Z3,value:"Samedi",label:"Jour de pointe",color:A.warning})]}),s.jsxs(He,{children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:"Activité du jour"}),s.jsxs("div",{style:{display:"flex",gap:10,margin:"6px 0 8px"},children:[s.jsx(q,{variant:"muted",size:"0.6rem",children:"18 commandes"}),s.jsx(q,{variant:"muted",size:"0.6rem",children:"420g vendus"}),s.jsx(q,{variant:"muted",size:"0.6rem",children:"312€"})]}),s.jsx(Fo,{label:"Fleurs — Pack Découverte",value:"86 · 1032€",pct:90,color:A.accent}),s.jsx(Fo,{label:"Résines — Format Duo",value:"41 · 492€",pct:45,color:A.info})]}),s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsx("button",{onClick:()=>t(f=>Math.max(0,f-1)),disabled:e===0,style:{background:"none",border:"none",cursor:e===0?"default":"pointer",color:e===0?A.border:A.text2},children:s.jsx(We,{icon:zle})}),s.jsx(q,{variant:"primary",size:"0.72rem",children:qa[e]}),s.jsx("button",{onClick:()=>t(f=>Math.min(qa.length-1,f+1)),disabled:e===qa.length-1,style:{background:"none",border:"none",cursor:e===qa.length-1?"default":"pointer",color:e===qa.length-1?A.border:A.text2},children:s.jsx(We,{icon:yle})})]}),s.jsx(q,{variant:"muted",size:"0.6rem",children:"Historique mensuel — cliquez les flèches"}),s.jsx("div",{style:{marginTop:8},children:Zle.map(f=>s.jsx(Fo,{label:f.day,value:`${f.orders} cmd · ${f.revenue}`,pct:f.orders/22*100,color:A.accent,highlight:f.best},f.day))})]}),s.jsx(Bl,{title:"30 derniers jours — commandes",onReset:()=>{},since:"15/07/2026",children:s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50},children:[4,8,6,10,7,12,9,14,6,11].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/14*100}%`,background:A.accent,borderRadius:2}},p))})}),s.jsxs(Bl,{title:"Revenus par jour (30j)",onReset:()=>{},since:"15/07/2026",children:[s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50,marginBottom:6},children:[120,240,180,300,210,360,260,410,190,330].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/410*100}%`,background:A.success,borderRadius:2}},p))}),s.jsxs(q,{variant:"muted",size:"0.6rem",children:[s.jsx(We,{icon:Z3,style:{color:A.warning,marginRight:4}}),"Meilleure journée : 01/08 — 498€"]})]}),s.jsxs(Bl,{title:"Heures d'affluence",onReset:()=>{},since:"15/07/2026",children:[N0.map(f=>s.jsx(Fo,{label:f.label,value:String(f.value),pct:f.value/a*100,color:A.info,highlight:f.label===l.label},f.label)),s.jsxs(q,{variant:"muted",size:"0.6rem",children:["Heure de pointe : ",l.label," (",l.value," commandes)"]})]}),s.jsxs(Bl,{title:"Jours d'affluence",onReset:()=>{},since:"15/07/2026",children:[D0.map(f=>s.jsx(Fo,{label:f.label,value:String(f.value),pct:f.value/c*100,color:A.accent,highlight:f.label===u.label},f.label)),s.jsxs(q,{variant:"muted",size:"0.6rem",children:["Pic d'activité : ",u.label]})]}),s.jsx(Bl,{title:"Doses populaires — Pack Découverte",onReset:()=>{},since:"15/07/2026",children:ak.map(f=>s.jsx(Fo,{label:f.label,value:String(f.value),pct:f.value/d*100,color:A.secondary,highlight:f.value===d},f.label))}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:"Top produits"}),s.jsx(Te,{tone:"outlineDanger",icon:Dp,onClick:()=>{},children:"Réinitialiser"})]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Cx,{tabs:Jle,active:n,onChange:r})}),i.map((f,p)=>s.jsx(Fo,{label:f.name,value:f.display,pct:f.value/o*100,color:A.accent,highlight:p===0},f.name)),s.jsxs(q,{variant:"muted",size:"0.6rem",children:["Moins vendu : ",i[i.length-1].name]})]})]})]})}const sk=[{name:"client_marie",role:"clients",icon:Sx,tone:A.info,detail:"Cmd: 12 · Points: 340 · Parrain: +8€"},{name:"lucas_d",role:"livreurs",icon:D7,tone:A.success,detail:"512 livraisons · connecté aujourd’hui"},{name:"admin_yas",role:"admins",icon:qm,tone:A.accentLight,detail:"Accès complet à la plateforme"}],nce=[{key:"tous",label:"Tous",icon:M7,count:3},{key:"clients",label:"Clients",icon:Sx,count:1},{key:"livreurs",label:"Livreurs",icon:D7,count:1},{key:"admins",label:"Admins",icon:qm,count:1}];function rce(){const[e,t]=m.useState("tous"),n=e==="tous"?sk:sk.filter(r=>r.role===e);return s.jsxs(Dt,{children:[s.jsx(bn,{columns:4,spacing:1.5,mb:2.5,children:nce.map(r=>{const i=r.key===e;return s.jsxs("div",{onClick:()=>t(r.key),style:{cursor:"pointer",textAlign:"center",padding:"8px 2px",borderRadius:10,border:`1px solid ${i?A.accent:A.border}`,background:i?`${A.accent}22`:A.card},children:[s.jsx(We,{icon:r.icon,style:{color:i?A.accentLight:A.text3,fontSize:"0.75rem"}}),s.jsx("div",{style:{color:A.text,fontSize:"0.72rem",fontWeight:800,marginTop:4},children:r.count}),s.jsx("div",{style:{color:A.text3,fontSize:"0.55rem"},children:r.label})]},r.key)})}),n.map(r=>s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(We,{icon:r.icon,style:{color:r.tone,marginRight:6,fontSize:"0.72rem"}}),r.name]}),s.jsx("span",{style:{background:`${r.tone}26`,color:r.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999,textTransform:"capitalize"},children:r.role==="clients"?"Client":r.role==="livreurs"?"Livreur":"Admin"})]}),s.jsx(q,{variant:"muted",size:"0.65rem",children:r.detail})]},r.name))]})}const lk=[{id:"perso",icon:J3,title:"Personnalisation",body:"Nom du shop affiché dans l’app · dégradé de couleur du titre (2 couleurs, aperçu en direct)."},{id:"amendes",icon:z7,title:"Amendes",body:"Barème par nombre d’annulations : 0 → 20€, 1 → 50€, 2 → 100€, 3 → 150€. Score affichable au client ou non.",hasSwitch:!0},{id:"parrainage",icon:Cle,title:"Parrainage",body:"Active le solde de parrainage, utilisable directement au moment du paiement par le filleul.",hasSwitch:!0},{id:"points",icon:Np,title:"Système de points",body:"Créez vos propres types de points (nom + couleur), chacun avec son propre barème €→points.",hasSwitch:!0},{id:"attribution",icon:Ple,title:"Attribution catégories → points",body:"Chaque catégorie de produit peut être reliée à un type de points précis, ou à aucun."},{id:"baremes",icon:Np,title:"Barème — Points Fidélité",body:"Paliers Min € / Max € / Points : ex. 0–20€ = 5 pts, 20–50€ = 15 pts, 50€+ = 40 pts."},{id:"recompense",icon:ule,title:"Récompenses par palier",body:"Seuil de points → produit offert ou à -50%. Récapitulatif généré automatiquement.",hasSwitch:!0},{id:"horaires",icon:n1,title:"Horaires de livraison",body:"Lundi → Vendredi : 11h00–22h30 · Samedi : 12h00–23h00 · Dimanche : fermé."},{id:"zones",icon:fle,title:"Zones de livraison",body:"3 zones actives · minimum de commande et liste de codes postaux par zone, ajout en masse."},{id:"crypto",icon:$le,title:"Paiement crypto",body:"BTC, ETH, LTC, USDT acceptés (NowPayments). Clé API et secret IPN masqués.",hasSwitch:!0},{id:"telegram",icon:vle,title:"Notifications Telegram",body:"Bot configuré — @votre_bot · authentification à deux facteurs activée.",hasSwitch:!0},{id:"mode-livraison",icon:n1,title:"Mode de livraison",body:"« Par catégorie » : chaque livreur ne reçoit que les commandes des catégories qui lui sont assignées."},{id:"couleurs",icon:J3,title:"Couleurs de l'interface",body:"Palette séparée pour l’espace admin et pour l’app client — 5 couleurs, restaurables en un clic."}];function ice(){const[e,t]=m.useState("crypto"),[n,r]=m.useState(!0),[i,o]=m.useState(!0);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Paramètres",subtitle:`${lk.length} sections — cliquez pour ouvrir`}),s.jsx("div",{style:{maxHeight:480,overflowY:"auto",paddingRight:2},children:lk.map(a=>{const l=e===a.id,c=a.id==="crypto"?n:a.id==="telegram"?i:!0,u=a.id==="crypto"?r:o;return s.jsxs(He,{onClick:()=>t(l?null:a.id),children:[s.jsxs(Pt,{children:[s.jsxs(q,{size:"0.72rem",children:[s.jsx(We,{icon:a.icon,style:{color:A.accentLight,marginRight:8,fontSize:"0.68rem"}}),a.title]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.hasSwitch&&(a.id==="crypto"||a.id==="telegram")&&s.jsx("span",{onClick:d=>d.stopPropagation(),children:s.jsx(Vle,{isOn:c,onToggle:()=>u(d=>!d)})}),a.hasSwitch&&a.id!=="crypto"&&a.id!=="telegram"&&s.jsx(We,{icon:bx,style:{color:A.success,fontSize:"0.55rem"}}),s.jsx(We,{icon:l?I7:O7,style:{color:A.text3,fontSize:"0.6rem"}})]})]}),l&&s.jsx("div",{style:{marginTop:8,paddingTop:8,borderTop:`1px solid ${A.border}`},children:s.jsx(q,{variant:"muted",size:"0.66rem",children:a.body})})]},a.id)})})]})}const oce=[{id:"1",driver:"lucas_d",message:"Guet-apens",time:"03/08/2026, 14:32",active:!0},{id:"2",driver:"emma_l",message:"Contrôle de police",time:"02/08/2026, 19:05",active:!1}];function ace(){const[e,t]=m.useState(oce),n=r=>{t(i=>i.map(o=>o.id===r?{...o,active:!1}:o))};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Alertes",subtitle:"Cliquez « Résoudre » pour tester"}),e.map(r=>s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsxs(q,{variant:r.active?"danger":"secondary",children:[s.jsx(We,{icon:Km,style:{color:r.active?A.danger:A.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${A.danger}26`:`${A.success}26`,color:r.active?A.danger:A.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(q,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsxs(Pt,{children:[s.jsx(q,{variant:"muted",size:"0.62rem",children:r.time}),r.active&&s.jsx(Te,{tone:"success",icon:Ta,onClick:()=>n(r.id),children:"Résoudre"})]})]},r.id))]})}const sce=[{id:"1",wrong:"10 rue de la paix",right:"10 Rue de la Paix, 75001 Paris"}];function lce(){const[e,t]=m.useState(sce),[n,r]=m.useState(!1),[i,o]=m.useState(""),[a,l]=m.useState(""),c=()=>{!i.trim()||!a.trim()||(t(u=>[...u,{id:String(u.length+1),wrong:i,right:a}]),o(""),l(""),r(!1))};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Corrections d'adresses",action:s.jsx(Te,{tone:"accent",icon:wx,onClick:()=>r(u=>!u),children:n?"Fermer":"Ajouter"})}),n&&s.jsxs(He,{children:[s.jsx("input",{placeholder:"Adresse invalide (ex: 10 rue de la paix)",value:i,onChange:u=>o(u.target.value),style:{width:"100%",background:A.bg,border:`1px solid ${A.border}`,borderRadius:8,color:A.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:6,outline:"none"}}),s.jsx("input",{placeholder:"Adresse correcte (ex: 10 Rue de la Paix, 75001 Paris)",value:a,onChange:u=>l(u.target.value),style:{width:"100%",background:A.bg,border:`1px solid ${A.border}`,borderRadius:8,color:A.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:8,outline:"none"}}),s.jsx(Te,{tone:"accent",onClick:c,children:"Ajouter la correction"})]}),e.map(u=>s.jsxs(He,{children:[s.jsx(q,{variant:"danger",size:"0.72rem",children:u.wrong}),s.jsx("div",{style:{margin:"3px 0"},children:s.jsx(We,{icon:Nle,style:{color:A.text3,fontSize:"0.62rem"}})}),s.jsx(q,{variant:"success",size:"0.72rem",children:u.right})]},u.id))]})}function cce(){const[e,t]=m.useState(!1);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Cabine — Nadia",subtitle:"Suivi des opérations"}),s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:F7,value:11,label:"Commandes actives",color:A.info}),s.jsx(Xe,{icon:L7,value:4,label:"En route",color:A.warning}),s.jsx(Xe,{icon:Ku,value:3,label:"En attente",color:A.accentLight}),s.jsx(Xe,{icon:yx,value:4,label:"Livreurs dispo",color:A.success}),s.jsx(Xe,{icon:xx,value:2,label:"Livreurs occupés",color:A.warning}),s.jsx(Xe,{icon:Rle,value:299,label:"Total terminées",color:A.success})]}),s.jsx(He,{mb:0,children:s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(W7,{icon:bx,color:A.secondary}),"Notifications Telegram"]}),s.jsx(Te,{tone:e?"outlineDanger":"accent",icon:e?B7:N7,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]})})]})}const uce=[{id:"#1042",client:"client_marie",address:"12 rue des Lilas",total:"46,00 €",label:"En attente",tone:A.warning},{id:"#1040",client:"client_lea",address:"8 avenue Foch",total:"58,50 €",label:"Livreur arrivé",tone:A.accentLight}];function dce(){const[e,t]=m.useState("#1042");return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Commandes actives",subtitle:"Cliquez une commande"}),uce.map(n=>{const r=e===n.id;return s.jsxs(He,{active:r,onClick:()=>t(r?null:n.id),children:[s.jsxs(Pt,{children:[s.jsx(q,{mono:!0,children:n.id}),s.jsx("span",{style:{background:`${n.tone}26`,color:n.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:n.label})]}),s.jsxs(q,{variant:"secondary",size:"0.7rem",children:[n.client," · ",n.address]}),s.jsx(q,{variant:"primary",size:"0.75rem",children:n.total}),r&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${A.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"accent",icon:jle,children:"Le livreur est là"}),s.jsx(Te,{tone:"outline",icon:yx,children:"Assigner livreur"}),s.jsx(Te,{tone:"outline",icon:Xm,children:"Proposer adresse"}),s.jsx(Te,{tone:"outlineDanger",icon:R7,children:"Supprimer"})]})]},n.id)}),s.jsx(Ym,{children:"Contrairement à l'espace admin, la cabine ne peut pas modifier le contenu d'une commande — seulement la faire avancer ou la supprimer."})]})}const fce=[{name:"lucas_d",status:"busy",queue:1,total:512},{name:"emma_l",status:"available",queue:0,total:340}],O0={available:A.success,busy:A.warning,offline:A.text3},pce={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function mce(){const[e,t]=m.useState("lucas_d");return s.jsxs(Dt,{children:[s.jsxs(bn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:Xm,value:1,label:"Dispo",color:A.success}),s.jsx(Xe,{icon:xx,value:1,label:"Occupés",color:A.warning}),s.jsx(Xe,{icon:$7,value:0,label:"Offline",color:A.text3})]}),fce.map(n=>{const r=e===n.name;return s.jsxs(He,{active:r,children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(ll,{color:O0[n.status]}),n.name]}),s.jsx("span",{style:{background:`${O0[n.status]}26`,color:O0[n.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:pce[n.status]})]}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:["Queue: ",n.queue," · Total: ",n.total]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Te,{tone:r?"accent":"outline",icon:kx,onClick:()=>t(r?null:n.name),children:r?"Arrêter le suivi":"Suivre"})})]},n.name)}),s.jsx(Ym,{children:"La cabine visualise et suit les livreurs en direct, mais l'assignation d'une commande se fait depuis l'écran Commandes."})]})}const ck=[{id:"1",driver:"lucas_d",message:"Accès bloqué, portail fermé",time:"14:32",active:!0},{id:"2",driver:"emma_l",message:"Client injoignable",time:"hier 19:05",active:!1}];function hce(){const[e,t]=m.useState("toutes"),n=e==="toutes"?ck:ck.filter(r=>r.active);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Alertes livreurs"}),s.jsx(Cx,{tabs:[{key:"toutes",label:"Toutes"},{key:"actives",label:"Actives"}],active:e,onChange:t}),n.map(r=>s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsxs(q,{variant:r.active?"danger":"secondary",children:[s.jsx(We,{icon:Km,style:{color:r.active?A.danger:A.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${A.danger}26`:`${A.success}26`,color:r.active?A.danger:A.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(q,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsx(q,{variant:"muted",size:"0.62rem",children:r.time})]},r.id)),s.jsx(Ym,{children:"La résolution des alertes reste réservée à l'espace admin."})]})}function gce(){const[e,t]=m.useState("35 €"),[n,r]=m.useState(340);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Clients",subtitle:"Réinitialisations rapides"}),s.jsxs(He,{mb:0,children:[s.jsx(q,{variant:"primary",size:"0.82rem",children:"client_marie"}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"Marie D. · 06 12 34 56 78"}),s.jsxs("div",{style:{display:"flex",gap:12,margin:"8px 0"},children:[s.jsx(q,{variant:"danger",size:"0.68rem",children:"Annul.: 2"}),s.jsxs(q,{variant:"secondary",size:"0.68rem",mono:!0,children:["Amende: ",e]}),s.jsxs(q,{variant:"success",size:"0.68rem",mono:!0,children:["Points: ",n]})]}),s.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"outline",icon:Dp,onClick:()=>t("0 €"),children:"Reset pénalités"}),s.jsx(Te,{tone:"outline",icon:Dp,onClick:()=>r(0),children:"Reset points"})]})]}),s.jsx(Ym,{children:"Pas de création, modification ni suppression de compte ici — uniquement des remises à zéro ponctuelles."})]})}const F0=["pending","in_progress","arrived","completed"],B0={pending:{label:"En attente",tone:A.info},in_progress:{label:"En cours",tone:A.warning},arrived:{label:"Arrivé",tone:A.accentLight},completed:{label:"Terminée",tone:A.success}},vce=[{key:"available",label:"Disponible",tone:A.success},{key:"busy",label:"Occupé",tone:A.warning},{key:"offline",label:"Hors ligne",tone:A.text3}];function yce(){const[e,t]=m.useState("available"),[n,r]=m.useState("in_progress"),i=()=>{const o=F0.indexOf(n);o{const a=e===o.key;return s.jsxs("div",{onClick:()=>t(o.key),style:{cursor:"pointer",display:"flex",alignItems:"center",padding:"5px 10px",borderRadius:999,fontSize:"0.65rem",fontWeight:700,border:`1px solid ${a?o.tone:A.border}`,background:a?`${o.tone}22`:"transparent",color:a?o.tone:A.text3},children:[s.jsx(ll,{color:o.tone,size:"7px"}),o.label]},o.key)})}),s.jsx(He,{children:s.jsx("div",{style:{height:96,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${A.success}26`,color:A.success,fontSize:"0.6rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(ll,{color:A.success,size:"7px"}),"GPS actif — 48.85, 2.35"]})})}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"Mes livraisons (1) — cliquez « avancer » pour tester le cycle complet"}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsx(q,{mono:!0,children:"Commande #1041"}),s.jsx("span",{style:{background:`${B0[n].tone}26`,color:B0[n].tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:B0[n].label})]}),s.jsx(q,{variant:"secondary",size:"0.7rem",children:"client_paul · 12 rue des Lilas"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"outline",icon:Xm,children:"Itinéraire"}),s.jsx(Te,{tone:"outline",icon:Ele,children:"Appeler"})]}),s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${A.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[n==="pending"&&s.jsx(Te,{tone:"success",icon:kx,onClick:i,children:"Démarrer la livraison"}),n==="in_progress"&&s.jsx(Te,{tone:"accent",icon:xx,onClick:i,children:"J'arrive"}),n==="arrived"&&s.jsxs(s.Fragment,{children:[s.jsx(Te,{tone:"accent",icon:Ta,onClick:i,children:"Terminer"}),s.jsx(Te,{tone:"outlineDanger",icon:z7,children:"Annuler"})]}),n==="completed"&&s.jsxs(q,{variant:"success",size:"0.7rem",children:[s.jsx(We,{icon:Ta,style:{marginRight:6}}),"Livraison terminée"]})]})]})]})}const Bo={police:{title:"Contrôle de police",icon:qm,hint:"Restez calme, coopérez avec les forces de l’ordre. L’équipe est prévenue."},ambush:{title:"Guet-apens",icon:Km,hint:"Éloignez-vous du danger si possible. L’équipe et les secours sont prévenus."}};function bce(){const[e,t]=m.useState("idle"),[n,r]=m.useState("police");return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Alerte",subtitle:"Bouton d'urgence pour les livreurs"}),e==="idle"&&s.jsx(Te,{tone:"outlineDanger",icon:Km,onClick:()=>t("pick"),children:"Déclencher alerte police"}),e==="pick"&&s.jsxs(He,{mb:0,children:[s.jsx(q,{size:"0.78rem",variant:"primary",children:"Type d'alerte"}),s.jsx(q,{variant:"muted",size:"0.65rem",children:"Sélectionnez la raison de l'alerte."}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginTop:8},children:Object.keys(Bo).map(i=>s.jsxs("div",{onClick:()=>{r(i),t("confirm")},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:8,padding:"8px 10px",borderRadius:8,border:`1px solid ${A.border}`},children:[s.jsx(We,{icon:Bo[i].icon,style:{color:A.danger,fontSize:"0.8rem"}}),s.jsx("span",{style:{color:A.text,fontSize:"0.74rem"},children:Bo[i].title})]},i))}),s.jsx("div",{style:{marginTop:10},children:s.jsx(Te,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"})})]}),e==="confirm"&&s.jsxs(He,{mb:0,children:[s.jsxs(q,{size:"0.78rem",variant:"danger",children:[s.jsx(We,{icon:Bo[n].icon,style:{marginRight:6}}),"Alerte — ",Bo[n].title]}),s.jsx(q,{variant:"muted",size:"0.66rem",children:Bo[n].hint}),s.jsx(q,{variant:"primary",size:"0.74rem",children:"Confirmez-vous le déclenchement ?"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx(Te,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"}),s.jsx(Te,{tone:"outlineDanger",onClick:()=>t("sent"),children:"Déclencher"})]})]}),e==="sent"&&s.jsxs(He,{mb:0,children:[s.jsx(We,{icon:Ta,style:{color:A.success,fontSize:"1.4rem",marginBottom:8}}),s.jsx(q,{size:"0.8rem",variant:"success",children:"Alerte envoyée"}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"L'équipe admin a été notifiée immédiatement."}),s.jsx(q,{variant:"secondary",size:"0.66rem",children:Bo[n].hint}),s.jsx("div",{style:{marginTop:10},children:s.jsx(Te,{tone:"accent",onClick:()=>t("idle"),children:"Compris"})})]})]})}function uk({value:e}){return s.jsx("span",{children:[1,2,3,4,5].map(t=>s.jsx(We,{icon:Np,style:{color:t<=e?A.warning:A.border,fontSize:"0.7rem",marginRight:2}},t))})}const xce=[{client:"client_marie",order:"#1038",rating:5,comment:"Livraison rapide et sympa, merci !"},{client:"client_theo",order:"#1029",rating:4,comment:"Tout est arrivé nickel."}];function Sce(){return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Mes avis"}),s.jsxs(He,{children:[s.jsx(q,{size:"1.5rem",variant:"primary",children:"4.7"}),s.jsx("div",{style:{marginTop:4},children:s.jsx(uk,{value:5})}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"38 avis clients"})]}),xce.map(e=>s.jsxs(He,{children:[s.jsx(q,{size:"0.74rem",variant:"primary",children:e.client}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:["Commande ",e.order]}),s.jsx("div",{style:{margin:"4px 0"},children:s.jsx(uk,{value:e.rating})}),s.jsxs(q,{variant:"secondary",size:"0.68rem",children:["« ",e.comment," »"]})]},e.order))]})}const wce={jour:[2,4,3,6,5,8,4],semaine:[18,24,21,27,15,30,22],mois:[80,92,76,101]},kce={jour:["L","M","M","J","V","S","D"],semaine:["S1","S2","S3","S4","S5","S6","S7"],mois:["Mai","Juin","Juil","Août"]};function Cce(){const[e,t]=m.useState("semaine"),n=wce[e],r=kce[e],i=m.useMemo(()=>Math.max(...n),[n]);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Mes performances"}),s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:mle,value:512,label:"Total livraisons",color:A.accentLight}),s.jsx(Xe,{icon:Ta,value:489,label:"Complétées",color:A.success}),s.jsx(Xe,{icon:Ku,value:14,label:"Livraisons du jour",color:A.accentLight}),s.jsx(Xe,{icon:Ale,value:3,label:"En attente",color:A.info})]}),s.jsxs(He,{mb:0,children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:"Évolution"}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Cx,{tabs:[{key:"jour",label:"Jour"},{key:"semaine",label:"Semaine"},{key:"mois",label:"Mois"}],active:e,onChange:t})}),s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:6,height:90,marginTop:6},children:n.map((o,a)=>s.jsxs("div",{style:{flex:1,textAlign:"center"},children:[s.jsx("div",{style:{height:`${o/i*70}px`,background:A.accent,borderRadius:4,transition:"height .3s ease"}}),s.jsx("div",{style:{color:A.text3,fontSize:"0.55rem",marginTop:4},children:r[a]})]},a))}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:[n.reduce((o,a)=>o+a,0)," livraisons sur la période"]})]})]})}const jce=[{id:"admin-dashboard",kicker:"Vue d'ensemble",title:"Toute votre activité en un coup d’œil",lead:"Dès l'ouverture, vous voyez l'essentiel : commandes en attente ou en route, clients et livreurs actifs — sans avoir à chercher l'information.",points:["Chiffres mis à jour en temps réel","Notifications Telegram liées à votre compte","Accès identique sur mobile et sur ordinateur"],mockup:s.jsx(Ule,{})},{id:"admin-commandes",kicker:"Suivi opérationnel",title:"Suivez chaque commande, de la validation à la livraison",lead:"Chaque commande apparaît avec son statut, son montant et le livreur assigné. Un menu d'actions par commande permet d'assigner un livreur ou de la finaliser en un geste.",points:["Archives des commandes approuvées et annulées, recherche instantanée","Export CSV pour votre comptabilité","Parrainage et fidélité pris en compte automatiquement dans le total"],mockup:s.jsx(Hle,{}),reverse:!0},{id:"admin-livraison",kicker:"Géolocalisation en direct",title:"Localisez vos livreurs en temps réel, sur la carte",lead:"La position de chaque livreur s'affiche en direct, avec la distance et le temps restant estimé. Vue d'ensemble de toute la flotte : disponible, occupée ou hors ligne.",points:["Distance et temps de trajet calculés automatiquement","Avis clients et historique de connexion par livreur",'Notification client en un tap : "le livreur est arrivé"'],mockup:s.jsx(Kle,{})},{id:"admin-produits",kicker:"Catalogue",title:"Un catalogue que vous gérez vous-même",lead:"Ajoutez, modifiez ou retirez un produit en quelques secondes : photos, vidéos, stock, description, et plusieurs tarifs par produit.",points:["Photos et vidéos multiples par produit","Plusieurs paliers de prix, activables indépendamment","Statut « à venir » pour annoncer un produit avant sa mise en vente"],mockup:s.jsx(Xle,{}),reverse:!0},{id:"admin-categories",kicker:"Organisation",title:"Organisez votre catalogue comme vous le souhaitez",lead:"Créez vos propres catégories, attribuez-leur une couleur, réordonnez-les en un clic. Une catégorie peut être marquée « prochainement » avant sa mise en ligne.",points:["Couleur personnalisée par catégorie","Réorganisation manuelle de l'ordre d'affichage","Aperçu immédiat du rendu côté client"],mockup:s.jsx(Qle,{})},{id:"admin-statistiques",kicker:"Pilotage",title:"Des chiffres clairs pour piloter votre activité",lead:"Chiffre d'affaires, produits les plus vendus, heures et jours d'affluence : tout est visualisé simplement, sans éplucher vos commandes une par une.",points:["Historique mensuel navigable, jour par jour","Classement des meilleurs produits (quantité, commandes ou revenus)","Repérage automatique du jour et de l'heure de pointe"],mockup:s.jsx(tce,{}),reverse:!0},{id:"admin-utilisateurs",kicker:"Équipe & clients",title:"Clients, livreurs, équipe : tout au même endroit",lead:"Un seul espace pour gérer tous les comptes. Ajustez les points de fidélité, appliquez une pénalité ou consultez l'historique d'un client.",points:["Filtre par rôle et recherche instantanée","Gestion des points de fidélité et du parrainage","Suivi des annulations et de l'historique de connexion"],mockup:s.jsx(rce,{})},{id:"admin-parametres",kicker:"Personnalisation",title:"Une plateforme qui s'adapte à votre activité",lead:"13 sections de réglages : fidélité, parrainage, pénalités, zones et horaires de livraison, paiement crypto, Telegram, couleurs de l’interface... Tout est configurable vous-même.",points:["Zones de livraison par code postal avec minimum de commande","Paiement crypto (NowPayments) et bot Telegram intégrés","Couleurs de l'espace admin et de l'app client personnalisables"],mockup:s.jsx(ice,{}),reverse:!0},{id:"admin-alertes",kicker:"Réactivité",title:"Réagissez immédiatement en cas de problème",lead:"Si un livreur rencontre un souci sur le terrain, l'alerte remonte instantanément — avec son message et l'horodatage — jusqu'à ce qu'elle soit résolue.",points:["Distinction claire entre alerte active et résolue","Historique complet conservé"],mockup:s.jsx(ace,{})},{id:"admin-adresses",kicker:"Fiabilité livraison",title:"Zéro commande perdue à cause d’une adresse mal saisie",lead:"Quand un client tape une adresse imprécise, corrigez-la une bonne fois pour toutes : les prochaines commandes utiliseront automatiquement la bonne adresse.",points:["Association simple « adresse saisie → adresse correcte »","Moins d’erreurs de livraison, moins d’allers-retours"],mockup:s.jsx(lce,{}),reverse:!0}],Pce=[{id:"cabine-dashboard",kicker:"Opérations du jour",title:"Un espace dédié pour votre équipe en cuisine",lead:"Vos préparateurs voient uniquement ce qui les concerne : commandes en cours, livreurs disponibles — sans chiffre d'affaires ni réglages sensibles.",points:["Aucune donnée financière exposée","Notifications Telegram propres à chaque compte","Rafraîchissement en direct"],mockup:s.jsx(cce,{})},{id:"cabine-commandes",kicker:"Suivi des commandes",title:"Faire avancer une commande, en toute sécurité",lead:"La cabine assigne un livreur, prévient le client, propose une correction d’adresse — mais ne peut ni modifier ni voir les réglages de la commande.",points:["Actions limitées et guidées, pas de menu complexe","Confirmation demandée avant chaque action sensible","Zéro risque de modification accidentelle"],mockup:s.jsx(dce,{}),reverse:!0},{id:"cabine-livraison",kicker:"Suivi livreurs",title:"Suivre les livreurs en direct, sans les gérer",lead:"La cabine voit la carte, la disponibilité et la position de chaque livreur pour coordonner la préparation — la gestion des comptes reste réservée à l’admin.",points:["Carte et statuts en temps réel","Suivi d’itinéraire en un clic","Aucun accès à la création ou modification de compte"],mockup:s.jsx(mce,{})},{id:"cabine-alertes",kicker:"Information",title:"Rester informé, sans pouvoir de décision",lead:"Les alertes remontées par les livreurs sont visibles par la cabine pour garder tout le monde informé — seule l’équipe admin peut les résoudre.",points:['Filtre "Toutes" / "Actives"',"Lecture seule, aucune action destructrice possible"],mockup:s.jsx(hce,{}),reverse:!0},{id:"cabine-utilisateurs",kicker:"Service client",title:"Un geste commercial, sans accès aux comptes",lead:"Besoin d’annuler une pénalité ou d’offrir des points en guise de geste commercial ? La cabine peut le faire en un clic, sans jamais toucher au reste du compte client.",points:["Reset pénalités et points uniquement","Aucune création, édition ou suppression de compte"],mockup:s.jsx(gce,{})}],_ce=[{id:"livreur-dashboard",kicker:"Terrain",title:"Le compagnon de route de vos livreurs",lead:"Statut en un tap (disponible / occupé / hors ligne), position GPS en direct, et un cycle de livraison guidé étape par étape jusqu’à la remise au client.",points:["Cycle complet : Démarrer → J’arrive → Terminer","Appel client et itinéraire en un tap","Gestion des cas « client absent » avec compte à rebours"],mockup:s.jsx(yce,{})},{id:"livreur-alertes",kicker:"Sécurité",title:"Un bouton d’urgence, toujours à portée de main",lead:"En cas de contrôle de police ou de situation dangereuse, le livreur alerte l’équipe admin en 2 taps — avec des consignes de sécurité affichées immédiatement.",points:["Deux types d’alerte : contrôle de police / guet-apens","Confirmation avant envoi pour éviter les fausses alertes","Consignes de sécurité affichées après envoi"],mockup:s.jsx(bce,{}),reverse:!0},{id:"livreur-avis",kicker:"Reconnaissance",title:"Chaque livreur voit ses propres avis clients",lead:"Note moyenne et commentaires clients, pour valoriser le travail de vos livreurs et repérer rapidement un souci de service.",points:["Note moyenne calculée automatiquement","Commentaires clients horodatés"],mockup:s.jsx(Sce,{})},{id:"livreur-stats",kicker:"Performance",title:"Un livreur qui suit sa propre performance reste motivé",lead:"Nombre de livraisons, taux de complétion, évolution jour / semaine / mois : chaque livreur a une vision claire de son activité.",points:["Bascule Jour / Semaine / Mois","Totaux recalculés automatiquement"],mockup:s.jsx(Cce,{}),reverse:!0}],dk=[{key:"admin",label:"Espace Admin",icon:Lle,features:jce,blurb:"Contrôle total de la plateforme."},{key:"cabine",label:"Espace Cabine",icon:Sle,features:Pce,blurb:"Équipe de préparation, accès restreint."},{key:"livreur",label:"Espace Livreur",icon:qm,features:_ce,blurb:"Application dédiée aux livreurs."}];function Tce(){const[e,t]=m.useState("admin"),n=dk.find(r=>r.key===e);return s.jsxs(ne,{children:[s.jsx(ne,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:14,md:20},children:s.jsx(fn,{maxW:"container.lg",children:s.jsxs(we,{spacing:5,textAlign:"center",align:"center",children:[s.jsxs(ge,{spacing:2,children:[s.jsx(ne,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",bg:"primary.500",color:"white",children:"3 espaces, 1 seule plateforme"}),s.jsx(ne,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",borderWidth:"1px",children:"Démo interactive"})]}),s.jsx(ct,{size:"2xl",children:"Admin, cabine, livreur : chacun son espace"}),s.jsx(K,{fontSize:"lg",color:"gray.500",maxW:"2xl",children:"Chaque rôle a exactement les écrans dont il a besoin — rien de plus. Choisissez un espace ci-dessous et essayez les aperçus : ils sont interactifs, comme dans l'application réelle."})]})})}),s.jsx(ne,{borderTopWidth:"1px",borderBottomWidth:"1px",bg:"chakra-subtle-bg",position:"sticky",top:0,zIndex:2,children:s.jsxs(fn,{maxW:"container.lg",py:{base:2,md:3},children:[s.jsx(ge,{spacing:2,mb:{base:0,md:2},overflowX:"auto",children:dk.map(r=>s.jsx(xe,{size:"sm",leftIcon:s.jsx(We,{icon:r.icon}),colorScheme:e===r.key?"primary":void 0,variant:e===r.key?"solid":"outline",onClick:()=>t(r.key),flexShrink:0,children:r.label},r.key))}),s.jsx(ST,{spacing:4,shouldWrapChildren:!0,display:{base:"none",md:"flex"},children:n.features.map(r=>s.jsx(Wb,{children:s.jsx(K,{as:"a",href:`#${r.id}`,fontSize:"xs",fontWeight:"medium",color:"gray.500",whiteSpace:"nowrap",_hover:{color:"primary.500",textDecoration:"underline"},children:r.kicker})},r.id))})]})}),s.jsxs(fn,{maxW:"container.lg",children:[s.jsx(ne,{py:6,children:s.jsx(K,{color:"gray.500",fontSize:"sm",textAlign:"center",children:n.blurb})}),n.features.map(r=>s.jsxs(we,{id:r.id,direction:{base:"column",md:r.reverse?"row-reverse":"row"},spacing:{base:10,md:16},align:"center",py:{base:14,md:20},borderBottomWidth:"1px",scrollMarginTop:"120px",children:[s.jsxs(ne,{flex:"0.9",minW:0,children:[s.jsx(K,{fontSize:"xs",fontWeight:"extrabold",letterSpacing:"wide",textTransform:"uppercase",color:"primary.500",mb:2,children:r.kicker}),s.jsx(ct,{size:"lg",mb:4,children:r.title}),s.jsx(K,{color:"gray.500",mb:5,children:r.lead}),s.jsx(Mu,{spacing:2,children:r.points.map(i=>s.jsxs($b,{fontSize:"sm",color:"gray.600",display:"flex",children:[s.jsx(U_,{as:()=>s.jsx(We,{icon:Ta}),color:"green.400",mt:1,mr:2}),s.jsx("span",{children:i})]},i))})]}),s.jsx(ne,{flex:"1",minW:0,w:"full",children:r.mockup})]},r.id))]}),s.jsx(ne,{bg:"gray.900",color:"white",py:20,textAlign:"center",children:s.jsxs(fn,{maxW:"container.md",children:[s.jsx(ct,{size:"xl",mb:4,children:"Prêt à essayer votre propre espace admin ?"}),s.jsx(K,{color:"whiteAlpha.700",mb:8,children:"Une démo dédiée et isolée, prête en quelques minutes, pour tester la plateforme en conditions réelles."}),s.jsxs(bn,{columns:{base:1,sm:2},spacing:4,maxW:"sm",mx:"auto",children:[s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",size:"lg",children:"Créer un compte"}),s.jsx(xe,{as:Zt,to:"/tarifs",variant:"outline",colorScheme:"whiteAlpha",size:"lg",children:"Voir les tarifs"})]})]})})]})}const V7="http://localhost:8080",jx="omnex.token";function r1(){return localStorage.getItem(jx)}function fk(e){localStorage.setItem(jx,e)}function pk(){localStorage.removeItem(jx)}class Ie extends Error{constructor(n,r){super(r);Hx(this,"status");this.status=n}}async function qe(e,t,n){const r={"Content-Type":"application/json"},i=r1();i&&(r.Authorization=`Bearer ${i}`);const o=await fetch(`${V7}/api/v1${t}`,{method:e,headers:r,body:n?JSON.stringify(n):void 0});if(!o.ok){const a=await o.json().catch(()=>({error:`HTTP ${o.status}`}));throw new Ie(o.status,a.error??`HTTP ${o.status}`)}return o.status===204?void 0:await o.json()}const je={login:(e,t,n)=>qe("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>qe("POST","/auth/register",{username:e,password:t}),me:()=>qe("GET","/auth/me"),logout:()=>qe("POST","/auth/logout"),listDemos:()=>qe("GET","/demos"),listMyDemos:()=>qe("GET","/demos/mine"),getDemo:e=>qe("GET",`/demos/${e}`),createDemo:e=>qe("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.tomtomApiKey?{tomtom_api_key:e.tomtomApiKey}:{},...e.tomtomApiKey1?{tomtom_api_key_1:e.tomtomApiKey1}:{},...e.tomtomApiKey2?{tomtom_api_key_2:e.tomtomApiKey2}:{},...e.tomtomApiKey3?{tomtom_api_key_3:e.tomtomApiKey3}:{},...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=>qe("POST",`/demos/${e}/extend`),deleteDemo:e=>qe("DELETE",`/demos/${e}`),setDemoDomain:(e,t)=>qe("POST",`/demos/${e}/domain`,{domain:t}),transferDemoToPremium:e=>qe("POST",`/demos/${e}/premium`),listCodes:()=>qe("GET","/codes"),listPremiumUsers:()=>qe("GET","/premium"),createCode:e=>qe("POST","/codes",{username:e}),addCode:e=>qe("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>qe("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>qe("GET","/messages"),getDemoDetails:e=>qe("POST","/demos/details",{namespace:e}),updateUsername:e=>qe("POST","/profile/username",{username:e}),updatePassword:e=>qe("POST","/profile/password",{password:e}),getTelegram:()=>qe("GET","/profile/telegram"),setTelegram:e=>qe("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>qe("GET","/profile/alerts"),setAlertSettings:e=>qe("POST","/profile/alerts",e),testAlertSettings:e=>qe("POST","/profile/alerts/test",e),listAppDownloads:()=>qe("GET","/apps")};function Ece(e){return`${V7}/api/v1/apps/${encodeURIComponent(e)}`}const U7=m.createContext(null);function Ace({children:e}){const[t,n]=m.useState(r1()),[r,i]=m.useState(null),[o,a]=m.useState(null),[l,c]=m.useState(!!r1());m.useEffect(()=>{if(!t){c(!1);return}let v=!0;return je.me().then(b=>{v&&(i(b.role),a(b.type_abonnement))}).catch(()=>{v&&(pk(),n(null),i(null),a(null))}).finally(()=>{v&&c(!1)}),()=>{v=!1}},[]);const u=m.useCallback(async(v,b,x)=>{const y=await je.login(v,b,x);fk(y.token),n(y.token),i(y.role);const g=await je.me();a(g.type_abonnement)},[]),d=m.useCallback(async(v,b)=>{const x=await je.register(v,b);fk(x.token),n(x.token),i(x.role);const y=await je.me();a(y.type_abonnement)},[]),f=m.useCallback(async()=>{try{await je.logout()}finally{pk(),n(null),i(null),a(null)}},[]),p=m.useCallback(async()=>{const v=await je.me();a(v.type_abonnement)},[]),h=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:r==="admin",isClient:r==="client",isPremium:o==="premium",role:r,typeAbo:o,initializing:l,login:u,register:d,logout:f,refreshAbo:p}),[t,r,o,l,u,d,f,p]);return s.jsx(U7.Provider,{value:h,children:e})}function zo(){const e=m.useContext(U7);if(!e)throw new Error("useAuth doit être utilisé dans ");return e}function Ea(e){const{toggleColorMode:t}=Pu(),n=gp("Passer en mode sombre","Passer en mode clair");return s.jsx(vn,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:gp(s.jsx(zce,{}),s.jsx($ce,{}))})}function $ce(){return s.jsxs(At,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[s.jsx("circle",{cx:"12",cy:"12",r:"4"}),s.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 zce(){return s.jsx(At,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:s.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}const sn=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return s.jsxs(Eb,{children:[s.jsx(bt,{ref:t,type:n?"text":"password",...e}),s.jsx(Em,{children:s.jsx(vn,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(We,{icon:n?Mle:hle}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(i=>!i)})})]})});sn.displayName="PasswordInput";function Rce(){const{login:e}=zo(),t=Qn(),n=pr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ie?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(fn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(ne,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(ne,{textAlign:"center",children:[s.jsx(ct,{size:"lg",children:"Espace client"}),s.jsx(K,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),s.jsx(db,{children:s.jsx(fb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(bt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(sn,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(xe,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsxs(ge,{justify:"center",spacing:1,children:[s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),s.jsx(xe,{as:Zt,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),s.jsx(xe,{as:Zt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function Ice(){const{login:e}=zo(),t=Qn(),n=pr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ie?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(fn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(ne,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(ne,{textAlign:"center",children:[s.jsx(ct,{size:"lg",children:"Espace admin"}),s.jsx(K,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),s.jsx(db,{children:s.jsx(fb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(bt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(sn,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(xe,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsx(xe,{as:Zt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function Mce(){const{register:e}=zo(),t=Qn(),n=pr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(""),[u,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=o.length>=10,h=o===l,v=f&&p&&h,b=async x=>{if(x.preventDefault(),!!v){d(!0);try{await e(r.trim(),o),t("/app",{replace:!0})}catch(y){const g=y instanceof Ie?y.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:g})}finally{d(!1)}}};return s.jsxs(fn,{maxW:"sm",py:16,position:"relative",children:[s.jsx(ne,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(ne,{textAlign:"center",children:[s.jsx(ct,{size:"lg",children:"Créer un compte"}),s.jsx(K,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),s.jsx(db,{children:s.jsx(fb,{children:s.jsx("form",{onSubmit:b,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,isInvalid:r.length>0&&!f,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(bt,{value:r,onChange:x=>i(x.target.value),autoComplete:"username"}),s.jsx(ru,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:o.length>0&&!p,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(sn,{value:o,onChange:x=>a(x.target.value),autoComplete:"new-password"}),s.jsx(ru,{children:"10 caractères minimum."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:l.length>0&&!h,children:[s.jsx(Ce,{children:"Confirmer le mot de passe"}),s.jsx(sn,{value:l,onChange:x=>c(x.target.value),autoComplete:"new-password"})]}),s.jsx(xe,{type:"submit",colorScheme:"primary",isLoading:u,isDisabled:!v,children:"Créer mon compte"})]})})})}),s.jsxs(ge,{justify:"center",spacing:1,children:[s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),s.jsx(xe,{as:Zt,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}const qu=_m({displayName:"EditIcon",path:s.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[s.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),H7=_m({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"}),G7=_m({viewBox:"0 0 14 14",path:s.jsx("g",{fill:"currentColor",children:s.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 Qm(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 Zm(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function mk(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 Lce(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function hk(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${i} h`;const o=Math.floor(n%36e5/6e4);return`${i} h ${o} min`}function Nce(e){if(e<1024)return`${e} o`;const t=["Ko","Mo","Go"];let n=e/1024,r=0;for(;n>=1024&&r{o(""),l("admin"),u(""),f(!1),h(""),b(""),y(!1),S(""),k(""),_(!1),z(""),W(""),ee(""),L(""),R(!1),M(""),Z(""),oe(""),ue(""),Be("failover"),te(""),ze(""),ot("local"),ut(""),$t("")},mr=()=>{Se||(Ot(),t())},ei=async()=>{if(!i.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||c.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(ye==="s3"&&(!ve.trim()||!Ve.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(N&&!F.trim()&&!ae.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}if(P&&!j.trim()){r({status:"warning",title:"La clé API TomTom principale est requise"});return}const se={username:i.trim(),adminUsername:a.trim(),adminPassword:c.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&v.trim()||void 0,nowPaymentsApiKey:x&&g.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:ye,...ye==="s3"?{s3Bucket:ve.trim(),s3Endpoint:Ve.trim()}:{},...P?{tomtomApiKey:j.trim(),tomtomApiKey1:$.trim()||void 0,tomtomApiKey2:Y.trim()||void 0,tomtomApiKey3:I.trim()||void 0}:{},...N?{lbBot1Username:F.trim()||void 0,lbBot1Token:G.trim()||void 0,lbBot2Username:ae.trim()||void 0,lbBot2Token:Q.trim()||void 0,lbStrategy:ce,lbJwtTtlSeconds:Ze.trim()||void 0,lbHealthCheckInterval:re.trim()||void 0}:{}};kn(!0);try{await je.createDemo(se),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),Ot(),n(),t()}catch(ti){const Ro=ti instanceof Ie?ti.message:"Erreur";r({status:"error",title:"Lancement impossible",description:Ro})}finally{kn(!1)}};return s.jsxs(Du,{isOpen:e,onClose:mr,size:"lg",closeOnOverlayClick:!Se,children:[s.jsx(yl,{}),s.jsxs(zm,{children:[s.jsx(vl,{children:"Nouvelle démo"}),s.jsx(Ou,{isDisabled:Se}),s.jsx(gl,{children:s.jsxs(we,{spacing:5,children:[s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{children:"Username"}),s.jsx(bt,{placeholder:"ex: acme-corp",value:i,onChange:se=>o(se.target.value)})]}),s.jsxs(we,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[s.jsx(K,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),s.jsx(K,{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."}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Username"}),s.jsx(bt,{value:a,onChange:se=>l(se.target.value)})]}),s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Mot de passe"}),s.jsx(sn,{placeholder:"8 caractères min.",value:c,onChange:se=>u(se.target.value),autoComplete:"off"})]})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"Bot Telegram"}),s.jsx(nc,{isChecked:d,onChange:se=>f(se.target.checked)})]})}),d&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Nom du bot (username)"}),s.jsx(bt,{placeholder:"mon_bot",value:p,onChange:se=>h(se.target.value)})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Token bot Telegram"}),s.jsx(sn,{placeholder:"123456:ABC-DEF...",value:v,onChange:se=>b(se.target.value),autoComplete:"off"})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"NowPayments (paiement crypto)"}),s.jsx(nc,{isChecked:x,onChange:se=>y(se.target.checked)})]})}),x&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API NowPayments"}),s.jsx(sn,{placeholder:"clé API du compte marchand",value:g,onChange:se=>S(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Secret IPN NowPayments"}),s.jsx(sn,{placeholder:"secret configuré côté NowPayments",value:w,onChange:se=>k(se.target.value),autoComplete:"off"}),s.jsx(K,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"TomTom (GPS livreur)"}),s.jsx(nc,{isChecked:P,onChange:se=>_(se.target.checked)})]})}),P&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(K,{fontSize:"xs",color:"gray.500",children:"Géocodage, itinéraire et ETA des livreurs. Jusqu'à 4 clés — le backend bascule automatiquement sur la suivante si une clé atteint son quota."}),s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom (principale)"}),s.jsx(sn,{placeholder:"clé API TomTom",value:j,onChange:se=>z(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #2 (optionnelle)"}),s.jsx(sn,{placeholder:"clé de secours",value:$,onChange:se=>W(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #3 (optionnelle)"}),s.jsx(sn,{placeholder:"clé de secours",value:Y,onChange:se=>ee(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #4 (optionnelle)"}),s.jsx(sn,{placeholder:"clé de secours",value:I,onChange:se=>L(se.target.value),autoComplete:"off"})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"Load-balancer Telegram"}),s.jsx(nc,{isChecked:N,onChange:se=>R(se.target.checked)})]})}),N&&s.jsxs(we,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(K,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 1 — username"}),s.jsx(bt,{placeholder:"mon_bot_1",value:F,onChange:se=>M(se.target.value)})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 1 — token"}),s.jsx(sn,{placeholder:"123456:ABC-DEF...",value:G,onChange:se=>Z(se.target.value),autoComplete:"off"})]})]}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),s.jsx(bt,{placeholder:"mon_bot_2",value:ae,onChange:se=>oe(se.target.value)})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 2 — token"}),s.jsx(sn,{placeholder:"123456:ABC-DEF...",value:Q,onChange:se=>ue(se.target.value),autoComplete:"off"})]})]}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Stratégie de répartition"}),s.jsxs(gT,{value:ce,onChange:se=>Be(se.target.value),children:[s.jsx("option",{value:"failover",children:"Failover"}),s.jsx("option",{value:"roundrobin",children:"Round-robin"}),s.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"TTL JWT (secondes)"}),s.jsx(bt,{placeholder:"300",value:Ze,onChange:se=>te(se.target.value),type:"number"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Intervalle health-check (s)"}),s.jsx(bt,{placeholder:"30",value:re,onChange:se=>ze(se.target.value),type:"number"})]})]})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{children:"Stockage des fichiers"}),s.jsx(mT,{value:ye,onChange:se=>ot(se),children:s.jsxs(we,{direction:"row",spacing:6,children:[s.jsx(Av,{value:"local",children:"Local (disque du cluster)"}),s.jsx(Av,{value:"s3",children:"S3"})]})})]}),ye==="s3"&&s.jsxs(we,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Nom du bucket"}),s.jsx(bt,{placeholder:"mon-bucket-demo",value:ve,onChange:se=>ut(se.target.value)})]}),s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Endpoint S3"}),s.jsx(bt,{placeholder:"https://s3.exemple.com",value:Ve,onChange:se=>$t(se.target.value)})]})]})]})}),s.jsxs(Rm,{children:[s.jsx(xe,{variant:"ghost",mr:3,onClick:mr,isDisabled:Se,children:"Annuler"}),s.jsx(xe,{colorScheme:"primary",onClick:ei,isLoading:Se,children:"Lancer la démo"})]})]})]})}function q7({demo:e,onClose:t,onSaved:n}){const r=pr(),[i,o]=m.useState(""),[a,l]=m.useState(!1);m.useEffect(()=>{o((e==null?void 0:e.custom_domain)??"")},[e]);const c=()=>{a||t()},u=async()=>{if(e){l(!0);try{await je.setDemoDomain(e.id,i.trim()),r({status:"success",title:"Domaine mis à jour"}),n(),t()}catch(d){const f=d instanceof Ie?d.message:"Erreur";r({status:"error",title:"Mise à jour impossible",description:f})}finally{l(!1)}}};return s.jsxs(Du,{isOpen:!!e,onClose:c,closeOnOverlayClick:!a,children:[s.jsx(yl,{}),s.jsxs(zm,{children:[s.jsx(vl,{children:"Domaine de la plateforme"}),s.jsx(Ou,{isDisabled:a}),s.jsx(gl,{children:s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Domaine personnalisé"}),s.jsx(bt,{placeholder:"boutique.mon-domaine.com",value:i,onChange:d=>o(d.target.value),isDisabled:a,fontFamily:"mono"}),s.jsxs(ru,{children:["Laissez vide pour revenir au domaine par défaut (",e==null?void 0:e.namespace,".). 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."]})]})}),s.jsxs(Rm,{children:[s.jsx(xe,{variant:"ghost",mr:3,onClick:c,isDisabled:a,children:"Annuler"}),s.jsx(xe,{colorScheme:"primary",onClick:u,isLoading:a,children:"Enregistrer"})]})]})]})}const Dce=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}],Oce=[{key:"lb",label:"Load-balancer Telegram"}];function Px({state:e}){const t=Oce.filter(o=>e[o.key].phase!==""),n=[...Dce,...t],r=n.every(o=>e[o.key].phase==="Running"),i=n.filter(o=>e[o.key].phase!=="Running").length;return s.jsxs(we,{spacing:3,children:[s.jsxs(ge,{spacing:2,children:[s.jsx(ne,{w:"8px",h:"8px",borderRadius:"full",bg:r?"green.400":"red.400",flexShrink:0}),s.jsx(K,{fontSize:"sm",fontWeight:"medium",children:r?"Tous les services sont opérationnels":`${i} service${i>1?"s":""} indisponible${i>1?"s":""}`})]}),s.jsx(bn,{columns:{base:1,lg:4},spacing:3,children:n.map(o=>s.jsx(Fce,{title:o.label,cs:e[o.key]},o.key))})]})}function Fce({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 s.jsxs(ne,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",minW:0,children:[s.jsxs(ge,{justify:"space-between",mb:3,children:[s.jsx(K,{fontSize:"sm",fontWeight:"semibold",noOfLines:1,children:e}),s.jsxs(ge,{spacing:1.5,children:[s.jsx(ne,{w:"7px",h:"7px",borderRadius:"full",bg:`${mk(t.phase)}.400`,flexShrink:0}),s.jsx(dn,{colorScheme:mk(t.phase),fontSize:"10px",children:Lce(t.phase)})]})]}),s.jsxs(we,{spacing:2,children:[s.jsxs(ne,{children:[s.jsxs(St,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(K,{children:"CPU"}),s.jsxs(K,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),s.jsx(_p,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),s.jsxs(ne,{children:[s.jsxs(St,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(K,{children:"Mémoire"}),s.jsxs(K,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),s.jsx(_p,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function _x(e){return s.jsx(At,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}function X7({demo:e,isOpen:t,onToggle:n,detailsLoading:r,details:i,onEditDomain:o,expiresLabel:a,actions:l}){return s.jsxs(ne,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",bg:"bg-surface",children:[s.jsxs(ne,{p:4,cursor:"pointer",onClick:n,_active:{bg:"chakra-subtle-bg"},children:[s.jsxs(ge,{justify:"space-between",align:"start",children:[s.jsxs(ge,{spacing:2,minW:0,flex:"1",children:[s.jsx(At,{as:_x,boxSize:3,color:"gray.400",flexShrink:0,transform:t?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{fontFamily:"mono",fontSize:"sm",noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",children:e.namespace})]}),s.jsx(dn,{colorScheme:Qm(e.status),flexShrink:0,children:Zm(e.status)})]}),s.jsxs(we,{spacing:1,mt:3,fontSize:"sm",children:[s.jsxs(ge,{justify:"space-between",children:[s.jsx(K,{color:"gray.500",children:"Client"}),s.jsx(K,{children:e.username||"—"})]}),s.jsxs(ge,{justify:"space-between",align:"start",children:[s.jsx(K,{color:"gray.500",flexShrink:0,children:"URL"}),s.jsxs(ge,{spacing:1,minW:0,flex:"1",justify:"flex-end",children:[e.status==="ready"?s.jsx(_o,{href:e.url,color:"primary.500",isExternal:!0,noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",onClick:c=>c.stopPropagation(),children:e.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(vn,{"aria-label":"Modifier le domaine",icon:s.jsx(qu,{}),size:"xs",variant:"ghost",flexShrink:0,onClick:c=>{c.stopPropagation(),o()}})]})]}),a&&s.jsxs(ge,{justify:"space-between",children:[s.jsx(K,{color:"gray.500",children:"Expire dans"}),s.jsx(K,{children:a})]})]}),l&&s.jsx(ge,{mt:3,spacing:2,flexWrap:"wrap",rowGap:2,onClick:c=>c.stopPropagation(),children:l})]}),s.jsx(zu,{in:t,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ne,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:r&&!i?s.jsx(ge,{justify:"center",py:2,children:s.jsx(yn,{size:"sm"})}):i?s.jsx(Px,{state:i.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})]})}const Bce=5e3,Wce=5e3;function Vce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(null),[p,h]=m.useState(null),[v,b]=m.useState(!1),[x,y]=m.useState(null),[g,S]=m.useState(null),[w,k]=m.useState(null),[P,_]=m.useState(!1),j=m.useCallback(async()=>{try{const L=await je.listDemos();r((L.items??[]).filter(N=>N.type_abonnement!=="premium"&&N.status!=="expired"))}catch(L){L instanceof Ie&&L.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{j();const L=setInterval(()=>void j(),Bce);return()=>clearInterval(L)},[j]);const z=async()=>{if(!p)return;const L=p;l(L.id);try{await je.extendDemo(L.id),e({status:"success",title:"Démo prolongée de 30 jours"}),h(null),await j()}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:R})}finally{l(null)}},$=async()=>{if(!c)return;const L=c;l(L.id);try{await je.deleteDemo(L.id),e({status:"success",title:"Démo détruite"}),u(null),await j()}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"Destruction impossible",description:R})}finally{l(null)}},W=async()=>{if(!d)return;const L=d;l(L.id);try{await je.transferDemoToPremium(L.id),e({status:"success",title:"Démo passée en premium",description:"La migration des données tourne en tâche de fond."}),f(null),await j()}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"Passage en premium impossible",description:R})}finally{l(null)}},Y=async L=>{if(g===L.id){S(null),k(null);return}S(L.id),k(null),_(!0);try{const N=await je.getDemoDetails(L.namespace);k(N)}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:R}),S(null)}finally{_(!1)}};m.useEffect(()=>{const L=n.find(F=>F.id===g);if(!L)return;const N=L.namespace,R=setInterval(()=>{je.getDemoDetails(N).then(k).catch(()=>{})},Wce);return()=>clearInterval(R)},[g]);const ee=L=>L!=="expired"&&L!=="failed",I=L=>s.jsxs(s.Fragment,{children:[s.jsx(xe,{size:"sm",variant:"outline",isDisabled:!ee(L.status)||a===L.id,onClick:N=>{N.stopPropagation(),h(L)},children:"+30 j"}),s.jsx(xe,{size:"sm",colorScheme:"purple",variant:"outline",isDisabled:!ee(L.status)||a===L.id,onClick:N=>{N.stopPropagation(),f(L)},children:"Passer en premium"}),s.jsx(xe,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!ee(L.status),onClick:N=>{N.stopPropagation(),u(L)},children:"Détruire"})]});return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",gap:4,wrap:"wrap",children:[s.jsx(ct,{size:"md",mr:4,children:"Démos"}),s.jsx(Eo,{}),s.jsx(xe,{colorScheme:"primary",onClick:()=>b(!0),children:"Nouvelle démo"})]}),s.jsx(K7,{isOpen:v,onClose:()=>b(!1),onCreated:()=>void j()}),i?s.jsx(yn,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):s.jsxs(s.Fragment,{children:[s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"Namespace"}),s.jsx(_t,{children:"Client"}),s.jsx(_t,{children:"Statut"}),s.jsx(_t,{children:"URL"}),s.jsx(_t,{children:"Expire dans"}),s.jsx(_t,{})]})}),s.jsx(Ep,{children:n.map(L=>{const N=g===L.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Vr,{cursor:"pointer",bg:N?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>Y(L),children:[s.jsx(xt,{fontFamily:"mono",children:s.jsxs(ge,{spacing:2,children:[s.jsx(At,{as:_x,boxSize:3,color:"gray.400",transform:N?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{children:L.namespace})]})}),s.jsx(xt,{children:L.username?s.jsx(K,{children:L.username}):s.jsx(K,{color:"gray.400",children:"—"})}),s.jsx(xt,{children:s.jsx(dn,{colorScheme:Qm(L.status),children:Zm(L.status)})}),s.jsx(xt,{children:s.jsxs(ge,{spacing:1,children:[L.status==="ready"?s.jsx(_o,{href:L.url,color:"primary.500",isExternal:!0,onClick:R=>R.stopPropagation(),children:L.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(vn,{"aria-label":"Modifier le domaine",icon:s.jsx(qu,{}),size:"xs",variant:"ghost",onClick:R=>{R.stopPropagation(),y(L)}})]})}),s.jsx(xt,{children:ee(L.status)?hk(L.expires_at):"—"}),s.jsx(xt,{textAlign:"right",children:s.jsx(ge,{justify:"flex-end",children:I(L)})})]}),s.jsx(Vr,{children:s.jsx(xt,{p:0,border:N?void 0:"none",colSpan:6,children:s.jsx(zu,{in:N,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ne,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:P&&!w?s.jsx(St,{justify:"center",py:4,children:s.jsx(yn,{size:"sm"})}):w?s.jsx(Px,{state:w.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},L.id)})})]})}),s.jsx(we,{spacing:3,display:{base:"flex",md:"none"},children:n.map(L=>s.jsx(X7,{demo:L,isOpen:g===L.id,onToggle:()=>Y(L),detailsLoading:P,details:g===L.id?w:null,onEditDomain:()=>y(L),expiresLabel:ee(L.status)?hk(L.expires_at):"—",actions:I(L)},L.id))})]}),s.jsxs(Of,{isOpen:!!p,title:"Prolonger la démo de 30 jours ?",confirmLabel:"Prolonger",confirmColorScheme:"primary",isLoading:!!p&&a===p.id,onConfirm:z,onClose:()=>h(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:p==null?void 0:p.namespace})," ","verra sa date d'expiration repoussée de 30 jours."]}),s.jsxs(Of,{isOpen:!!c,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:$,onClose:()=>u(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]}),s.jsxs(Of,{isOpen:!!d,title:"Passer cette démo en premium ?",confirmLabel:"Passer en premium",confirmColorScheme:"purple",isLoading:!!d&&a===d.id,onConfirm:W,onClose:()=>f(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:d==null?void 0:d.namespace})," ","n'expirera plus et sera migrée vers un namespace dédié (données conservées). Cette opération tourne en tâche de fond et n'est pas instantanée."]}),s.jsx(q7,{demo:x,onClose:()=>y(null),onSaved:()=>void j()})]})}const Uce=5e3,Hce=5e3;function Gce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[v,b]=m.useState(null),[x,y]=m.useState(null),[g,S]=m.useState(!1),w=m.useCallback(async()=>{try{const j=await je.listDemos();r((j.items??[]).filter(z=>z.type_abonnement==="premium"&&z.status!=="expired"))}catch(j){j instanceof Ie&&j.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{w();const j=setInterval(()=>void w(),Uce);return()=>clearInterval(j)},[w]);const k=async()=>{if(!c)return;const j=c;l(j.id);try{await je.deleteDemo(j.id),e({status:"success",title:"Plateforme détruite"}),u(null),await w()}catch(z){const $=z instanceof Ie?z.message:"Erreur";e({status:"error",title:"Destruction impossible",description:$})}finally{l(null)}},P=async j=>{if(v===j.id){b(null),y(null);return}b(j.id),y(null),S(!0);try{const z=await je.getDemoDetails(j.namespace);y(z)}catch(z){const $=z instanceof Ie?z.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:$}),b(null)}finally{S(!1)}};m.useEffect(()=>{const j=n.find(W=>W.id===v);if(!j)return;const z=j.namespace,$=setInterval(()=>{je.getDemoDetails(z).then(y).catch(()=>{})},Hce);return()=>clearInterval($)},[v]);const _=j=>s.jsx(xe,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:a===j.id,onClick:z=>{z.stopPropagation(),u(j)},children:"Détruire"});return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:2,align:"center",gap:4,wrap:"wrap",children:[s.jsx(ct,{size:"md",mr:4,children:"Plateforme Premium"}),s.jsx(Eo,{}),s.jsx(xe,{colorScheme:"primary",onClick:()=>f(!0),children:"Déployer une plateforme"})]}),s.jsx(K,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),s.jsx(K7,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void w()}),i?s.jsx(yn,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune démo premium pour le moment."}):s.jsxs(s.Fragment,{children:[s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"Namespace"}),s.jsx(_t,{children:"Client"}),s.jsx(_t,{children:"Statut"}),s.jsx(_t,{children:"URL"}),s.jsx(_t,{})]})}),s.jsx(Ep,{children:n.map(j=>{const z=v===j.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Vr,{cursor:"pointer",bg:z?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>P(j),children:[s.jsx(xt,{fontFamily:"mono",children:s.jsxs(ge,{spacing:2,children:[s.jsx(At,{as:_x,boxSize:3,color:"gray.400",transform:z?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{children:j.namespace})]})}),s.jsx(xt,{children:j.username||s.jsx(K,{color:"gray.400",children:"—"})}),s.jsx(xt,{children:s.jsx(dn,{colorScheme:Qm(j.status),children:Zm(j.status)})}),s.jsx(xt,{children:s.jsxs(ge,{spacing:1,children:[j.status==="ready"?s.jsx(_o,{href:j.url,color:"primary.500",isExternal:!0,onClick:$=>$.stopPropagation(),children:j.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(vn,{"aria-label":"Modifier le domaine",icon:s.jsx(qu,{}),size:"xs",variant:"ghost",onClick:$=>{$.stopPropagation(),h(j)}})]})}),s.jsx(xt,{textAlign:"right",children:s.jsx(ge,{justify:"flex-end",children:_(j)})})]}),s.jsx(Vr,{children:s.jsx(xt,{p:0,border:z?void 0:"none",colSpan:5,children:s.jsx(zu,{in:z,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ne,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:g&&!x?s.jsx(yn,{size:"sm"}):x?s.jsx(Px,{state:x.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},j.id)})})]})}),s.jsx(we,{spacing:3,display:{base:"flex",md:"none"},children:n.map(j=>s.jsx(X7,{demo:j,isOpen:v===j.id,onToggle:()=>P(j),detailsLoading:g,details:v===j.id?x:null,onEditDomain:()=>h(j),actions:_(j)},j.id))})]}),s.jsxs(Of,{isOpen:!!c,title:"Détruire la plateforme premium ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:k,onClose:()=>u(null),children:["La plateforme"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données (client payant) seront supprimées définitivement. Cette action est irréversible."]}),s.jsx(q7,{demo:p,onClose:()=>h(null),onSaved:()=>void w()})]})}const Kce=1e4;function gk(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 qce(e){if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:Math.ceil((t.getTime()-Date.now())/(1e3*60*60*24))}function Xce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState([]),[a,l]=m.useState(!0),[c,u]=m.useState(null),[d,f]=m.useState(""),[p,h]=m.useState(null),v=m.useCallback(async()=>{try{const[y,g]=await Promise.all([je.listCodes(),je.listPremiumUsers()]);r(y.items??[]),o(g.items??[])}catch(y){y instanceof Ie&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{v();const y=setInterval(()=>void v(),Kce);return()=>clearInterval(y)},[v]);const b=async y=>{if(y.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}u("generate");try{const g=await je.createCode(d.trim());h(g.code),f(""),e({status:"success",title:"Code généré avec succès !"}),await v()}catch(g){const S=g instanceof Ie?g.message:"Erreur";e({status:"error",title:"Génération impossible",description:S})}finally{u(null)}},x=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const S=document.createElement("textarea");S.value=y,S.style.position="fixed",S.style.opacity="0",document.body.appendChild(S),S.select();const w=document.execCommand("copy");document.body.removeChild(S),e(w?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:"Gestion des codes de souscription"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:s.jsx("form",{onSubmit:b,children:s.jsxs(Fu,{spacing:4,align:"stretch",children:[s.jsxs(we,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d\\'utilisateur"}),s.jsx(bt,{type:"text",value:d,onChange:y=>f(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:c==="generate",maxLength:64})]}),s.jsx(xe,{colorScheme:"primary",type:"submit",isLoading:c==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),p&&s.jsxs(ne,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[s.jsxs(K,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",s.jsx("strong",{children:d})," :"]}),s.jsxs(ge,{children:[s.jsx(K,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:p}),s.jsx(xe,{size:"sm",variant:"outline",onClick:()=>x(p),children:"Copier"})]})]})]})})}),s.jsx(ct,{size:"sm",mb:3,children:"Codes générés (non encore utilisés)"}),a?s.jsx(yn,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucun code de souscription généré."}):s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"ID"}),s.jsx(_t,{children:"Utilisateur"}),s.jsx(_t,{children:"Code"}),s.jsx(_t,{children:"Date de création"}),s.jsx(_t,{})]})}),s.jsx(Ep,{children:n.map(y=>s.jsxs(Vr,{children:[s.jsxs(xt,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),s.jsx(xt,{children:s.jsx(dn,{colorScheme:"gray",px:2,py:1,children:y.username})}),s.jsx(xt,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),s.jsx(xt,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),s.jsx(xt,{textAlign:"right",children:s.jsx(xe,{size:"sm",variant:"outline",onClick:()=>x(y.code_verif),children:"Copier"})})]},y.id))})]})}),s.jsx(ct,{size:"sm",mt:10,mb:3,children:"Clients premium"}),a?s.jsx(yn,{}):i.length===0?s.jsx(K,{color:"gray.500",children:"Aucun client premium pour le moment."}):s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"Client"}),s.jsx(_t,{children:"Code activé le"}),s.jsx(_t,{children:"Abonnement expire le"}),s.jsx(_t,{children:"Statut"})]})}),s.jsx(Ep,{children:i.map(y=>{const g=qce(y.expired_at);return s.jsxs(Vr,{children:[s.jsx(xt,{children:s.jsx(dn,{colorScheme:"purple",px:2,py:1,children:y.username})}),s.jsx(xt,{fontSize:"sm",color:"gray.400",children:gk(y.activated_at)}),s.jsx(xt,{fontSize:"sm",color:"gray.400",children:gk(y.expired_at)}),s.jsx(xt,{children:g===null?s.jsx(K,{color:"gray.400",children:"—"}):g<0?s.jsx(dn,{colorScheme:"red",children:"Expiré"}):s.jsxs(dn,{colorScheme:g<=7?"orange":"green",children:[g," j restant",g>1?"s":""]})})]},y.username)})})]})})]})}function Yce(){const e=pr(),t=Qn(),[n,r]=m.useState(null),[i,o]=m.useState(null),[a,l]=m.useState(!0),[c,u]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),v=m.useCallback(async()=>{try{const S=await je.me();r(S.type_abonnement??null),o(S.expired_at?new Date(S.expired_at):null)}catch(S){S instanceof Ie&&S.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{v()},[v]);const b=async S=>{if(S.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}u(!0);try{await je.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await v()}catch(w){const k=w instanceof Ie?w.message:"Erreur";e({status:"error",title:"Code invalide",description:k})}finally{u(!1)}},x=n==="premium",y=!x||p,g=i?Math.ceil((i.getTime()-Date.now())/(1e3*60*60*24)):null;return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:"Mon abonnement"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(yn,{}):s.jsxs(Fu,{align:"stretch",spacing:4,children:[s.jsxs(ge,{flexWrap:"wrap",rowGap:2,children:[s.jsx(K,{color:"gray.400",children:"Statut actuel :"}),s.jsx(dn,{colorScheme:x?"purple":"gray",px:2,py:1,children:x?"Premium":"Demo"}),x&&!p&&s.jsx(xe,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),x&&i&&s.jsx(K,{fontSize:"sm",color:g!==null&&g<=5?"orange.400":"gray.400",children:g!==null&&g>0?`Expire dans ${g} jour${g>1?"s":""} (le ${i.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${i.toLocaleDateString("fr-FR")}`}),y&&s.jsx("form",{onSubmit:b,children:s.jsxs(we,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:x?"Nouveau code de renouvellement":"Code de souscription"}),s.jsx(bt,{type:"text",value:d,onChange:S=>f(S.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:c,fontFamily:"mono",letterSpacing:"wide"})]}),s.jsxs(ge,{flexShrink:0,children:[s.jsx(xe,{colorScheme:"primary",type:"submit",isLoading:c,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:x?"Renouveler":"Activer"}),x&&s.jsx(xe,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:c,children:"Annuler"})]})]})})]})})]})}const Qce=()=>s.jsx(ne,{as:"svg",w:"16px",h:"16px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ne,{as:"path",d:"M12 3v12m0 0-4-4m4 4 4-4M5 21h14"})});function Zce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState(!1),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const u=await je.listAppDownloads();r(u.items??[]),o(u.eligible)}catch(u){u instanceof Ie&&u.status===401?t("/login"):e({status:"error",title:"Chargement des applications impossible"})}finally{l(!1)}},[t,e]);return m.useEffect(()=>{c()},[c]),s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:"Applications"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(yn,{}):i?n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune application disponible pour le moment."}):s.jsx(Fu,{align:"stretch",spacing:3,children:n.map(u=>s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[s.jsxs(we,{spacing:0,children:[s.jsx(K,{fontFamily:"mono",children:u.name}),s.jsx(K,{fontSize:"sm",color:"gray.500",children:Nce(u.size_bytes)})]}),s.jsx(xe,{as:"a",href:Ece(u.name),download:u.name,size:"sm",colorScheme:"primary",leftIcon:s.jsx(Qce,{}),children:"Télécharger"})]},u.name))}):s.jsx(K,{color:"gray.500",children:"Le téléchargement des applications nécessite une démo ou un abonnement actif."})})]})}function vk(e){return e==="admin"?"Administrateur":"Client"}function Jce(e){return e==="admin"?"purple":"blue"}function eue(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function tue(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 W0(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=LG();return e?s.jsxs(Pm,{size:"sm",spacing:1,children:[s.jsx(vn,{"aria-label":"Enregistrer",icon:s.jsx(G7,{}),...t()}),s.jsx(vn,{"aria-label":"Annuler",icon:s.jsx(H7,{}),...n()})]}):s.jsx(vn,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:s.jsx(qu,{}),...r()})}function nue(){const e=pr(),t=Qn(),{logout:n}=zo(),[r,i]=m.useState(null),[o,a]=m.useState(!0),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),[h,v]=m.useState(!1),[b,x]=m.useState(""),[y,g]=m.useState(""),[S,w]=m.useState(!1),[k,P]=m.useState(!1),[_,j]=m.useState(""),[z,$]=m.useState(""),[W,Y]=m.useState(""),[ee,I]=m.useState(!1),[L,N]=m.useState(!1);m.useEffect(()=>{let Q=!1;return(async()=>{try{const[ue,ce]=await Promise.all([je.me(),je.getTelegram()]);if(Q)return;if(i(ue),g(ce.telegram??""),ue.role==="admin"){const Be=await je.getAlertSettings();if(Q)return;j(Be.discord_webhook_url),$(Be.telegram_bot_token),Y(Be.telegram_chat_id)}}catch(ue){if(ue instanceof Ie&&ue.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{Q||a(!1)}})(),()=>{Q=!0}},[t,e]);const R=async()=>{I(!0);try{const Q=await je.setAlertSettings({discord_webhook_url:_.trim(),telegram_bot_token:z.trim(),telegram_chat_id:W.trim()});j(Q.discord_webhook_url),$(Q.telegram_bot_token),Y(Q.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(Q){if(Q instanceof Ie&&Q.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:Q instanceof Ie?Q.message:void 0})}finally{I(!1)}},F=async()=>{N(!0);try{const Q=await je.testAlertSettings({discord_webhook_url:_.trim(),telegram_bot_token:z.trim(),telegram_chat_id:W.trim()}),ue=[Q.discord&&{label:"Discord",...Q.discord},Q.telegram&&{label:"Telegram",...Q.telegram}].filter(ce=>!!ce);ue.every(ce=>ce.ok)?e({status:"success",title:"Notification de test envoyée",description:ue.map(ce=>ce.label).join(" et ")}):e({status:"error",title:"Échec du test",description:ue.filter(ce=>!ce.ok).map(ce=>`${ce.label} : ${ce.error}`).join(" — ")})}catch(Q){if(Q instanceof Ie&&Q.status===401){t("/login");return}e({status:"warning",title:"Test impossible",description:Q instanceof Ie?Q.message:void 0})}finally{N(!1)}},M=async Q=>{const ue=Q.trim();if(!(!r||!ue||ue===r.username)){d(!0);try{const ce=await je.updateUsername(ue);i({...r,username:ce.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(ce){if(ce instanceof Ie&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:ce instanceof Ie?ce.message:void 0})}finally{d(!1)}}},G=async()=>{const Q=b.trim();if(Q.length<8){e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"});return}p(!0);try{await je.updatePassword(Q),e({status:"success",title:"Mot de passe mis à jour"}),v(!1),x("")}catch(ue){if(ue instanceof Ie&&ue.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:ue instanceof Ie?ue.message:void 0})}finally{p(!1)}},Z=()=>{x(""),v(!1)},ae=async Q=>{const ue=Q.trim();if(!ue){P(!1);return}w(!0);try{const ce=await je.setTelegram(ue);g(ce.telegram),P(!1),e({status:"success",title:"Telegram enregistré"})}catch(ce){if(ce instanceof Ie&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:ce instanceof Ie?ce.message:void 0})}finally{w(!1)}},oe=async()=>{c(!0);try{await je.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{c(!1)}};return s.jsx(ne,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:s.jsxs(fn,{maxW:"container.md",children:[s.jsxs(we,{spacing:3,mb:8,children:[s.jsx(ct,{size:"lg",children:"Mon profil"}),s.jsx(K,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),s.jsx(ne,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:o?s.jsx(St,{justify:"center",py:10,children:s.jsx(yn,{})}):r?s.jsxs(we,{spacing:8,children:[s.jsxs(St,{align:"center",gap:5,wrap:"wrap",children:[s.jsx(ub,{name:r.username,size:"xl"}),s.jsxs(ne,{children:[s.jsx(Pf,{defaultValue:r.username,onSubmit:M,isDisabled:u,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tf,{as:ct,size:"md",fontFamily:"mono"}),s.jsx(_f,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),s.jsx(W0,{})]})},r.username),s.jsxs(ge,{mt:2,spacing:2,children:[s.jsx(dn,{colorScheme:Jce(r.role),children:vk(r.role)}),r.type_abonnement&&s.jsx(dn,{colorScheme:eue(r.type_abonnement),children:r.type_abonnement})]})]})]}),s.jsx(da,{borderColor:"chakra-border-color"}),s.jsxs(bn,{columns:{base:1,sm:2},spacing:6,children:[s.jsxs(Go,{children:[s.jsx(Ko,{children:"Identifiant"}),s.jsx(Bi,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Rôle"}),s.jsx(Bi,{fontSize:"md",children:vk(r.role)})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Type d'abonnement"}),s.jsx(Bi,{fontSize:"md",children:r.type_abonnement||"—"})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Mot de passe"}),h?s.jsxs(ge,{spacing:2,children:[s.jsx(sn,{size:"sm",fontFamily:"mono",fontSize:"md",value:b,onChange:Q=>x(Q.target.value),isDisabled:f,autoFocus:!0}),s.jsxs(Pm,{size:"sm",spacing:1,children:[s.jsx(vn,{"aria-label":"Enregistrer",icon:s.jsx(G7,{}),isLoading:f,onClick:G}),s.jsx(vn,{"aria-label":"Annuler",icon:s.jsx(H7,{}),isDisabled:f,onClick:Z})]})]}):s.jsxs(ge,{spacing:2,children:[s.jsx(Bi,{fontSize:"md",fontFamily:"mono",children:"••••••••"}),s.jsx(vn,{"aria-label":"Modifier le mot de passe",size:"sm",variant:"ghost",icon:s.jsx(qu,{}),onClick:()=>v(!0)})]})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Telegram"}),y?s.jsx(Pf,{defaultValue:y,onSubmit:ae,isDisabled:S,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tf,{as:Bi,fontSize:"md",fontFamily:"mono"}),s.jsx(_f,{fontSize:"md",fontFamily:"mono"}),s.jsx(W0,{})]})},y):k?s.jsx(Pf,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:ae,onCancel:()=>P(!1),isDisabled:S,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tf,{as:Bi,fontSize:"md",fontFamily:"mono"}),s.jsx(_f,{fontSize:"md",fontFamily:"mono"}),s.jsx(W0,{})]})}):s.jsx(xe,{size:"sm",variant:"outline",onClick:()=>P(!0),children:"Ajouter mon Telegram"})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Expire le"}),s.jsx(Bi,{fontSize:"md",children:tue(r.expired_at)})]})]}),r.role==="admin"&&s.jsxs(s.Fragment,{children:[s.jsx(da,{borderColor:"chakra-border-color"}),s.jsxs(we,{spacing:4,children:[s.jsxs(ne,{children:[s.jsx(ct,{size:"sm",children:"Alertes monitoring"}),s.jsx(K,{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."})]}),s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Webhook Discord"}),s.jsx(bt,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:_,onChange:Q=>j(Q.target.value),isDisabled:ee})]}),s.jsxs(bn,{columns:{base:1,sm:2},spacing:4,children:[s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Bot Telegram (token)"}),s.jsx(bt,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:z,onChange:Q=>$(Q.target.value),isDisabled:ee})]}),s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Telegram (chat ID)"}),s.jsx(bt,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:W,onChange:Q=>Y(Q.target.value),isDisabled:ee}),s.jsx(ru,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),s.jsxs(St,{justify:"flex-end",gap:2,children:[s.jsx(xe,{size:"sm",variant:"outline",isDisabled:!_.trim()&&!(z.trim()&&W.trim()),isLoading:L,onClick:F,children:"Tester les notifications"}),s.jsx(xe,{size:"sm",colorScheme:"primary",isLoading:ee,onClick:R,children:"Enregistrer les alertes"})]})]})]}),s.jsx(da,{borderColor:"chakra-border-color"}),s.jsx(St,{justify:"flex-end",children:s.jsx(xe,{colorScheme:"red",variant:"outline",isLoading:l,onClick:oe,children:"Se déconnecter"})})]}):s.jsx(K,{color:"gray.500",children:"Aucune information disponible."})})]})})}function yk(e){const t=gp("/omnex-blanc.jpg","/omnex-black.jpg");return s.jsx(W_,{src:t,alt:"Omnex",objectFit:"contain",...e})}const bk=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/documentation",label:"Documentation",end:!1},{to:"/contact",label:"Contact",end:!1}],rue=()=>s.jsx(ne,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ne,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function iue(){const{isOpen:e,onOpen:t,onClose:n}=wu();return s.jsxs(ne,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[s.jsx(fn,{maxW:"container.lg",children:s.jsxs(St,{h:16,align:"center",justify:"space-between",children:[s.jsxs(ge,{spacing:8,children:[s.jsx(ne,{as:Zt,to:"/",display:"flex",alignItems:"center",children:s.jsx(yk,{h:10})}),s.jsx(ge,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:bk.map(r=>s.jsx(xk,{to:r.to,end:r.end,children:r.label},r.to))})]}),s.jsxs(ge,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(Ea,{}),s.jsx(xe,{as:Zt,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),s.jsxs(ge,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(Ea,{}),s.jsx(vn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:s.jsx(rue,{})})]})]})}),s.jsxs(dT,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[s.jsx(yl,{}),s.jsxs(Fb,{bg:"chakra-body-bg",children:[s.jsx(Ou,{size:"lg"}),s.jsx(vl,{borderBottomWidth:"1px",children:s.jsx(yk,{h:9})}),s.jsxs(gl,{py:6,children:[s.jsx(we,{as:"nav",spacing:1,children:bk.map(r=>s.jsx(xk,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),s.jsx(da,{my:6}),s.jsxs(we,{spacing:3,children:[s.jsx(xe,{as:Zt,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function xk({to:e,end:t,children:n,onClick:r,mobile:i=!1}){return s.jsx(xe,{as:y8,to:e,end:t,size:i?"lg":"sm",variant:"ghost",justifyContent:i?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function oue(){return s.jsx(ne,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:s.jsxs(fn,{maxW:"container.lg",py:12,children:[s.jsxs(bn,{columns:{base:1,md:4},spacing:8,children:[s.jsxs(we,{spacing:3,children:[s.jsx(K,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison."})]}),s.jsxs(aue,{title:"Produit",children:[s.jsx(Xd,{to:"/",children:"Présentation"}),s.jsx(Xd,{to:"/tarifs",children:"Tarifs"}),s.jsx(Xd,{to:"/register",children:"Créer un compte"}),s.jsx(Xd,{to:"/documentation",children:"Documentation"})]})]}),s.jsx(da,{my:8}),s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[s.jsxs(K,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),s.jsxs(ge,{spacing:6,fontSize:"sm",color:"gray.500",children:[s.jsx(Sk,{href:"#",children:"Mentions légales"}),s.jsx(Sk,{href:"#",children:"Confidentialité"})]})]})]})})}function aue({title:e,children:t}){return s.jsxs(we,{spacing:2,children:[s.jsx(K,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function Xd({to:e,children:t}){return s.jsx(_o,{as:Zt,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Sk({href:e,children:t}){return s.jsx(_o,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function sue(){return s.jsxs(St,{direction:"column",minH:"100vh",children:[s.jsx(iue,{}),s.jsx(ne,{as:"main",flex:"1",children:s.jsx(g8,{})}),s.jsx(oue,{})]})}const lue=()=>s.jsx(ne,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ne,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),wk="https://t.me/OMNEX_CORP";function cue(){const[e,t]=m.useState(null),{logout:n,isAdmin:r,isClient:i}=zo(),o=Qn(),{isOpen:a,onOpen:l,onClose:c}=wu(),u=e==="premium",d=m.useCallback(async()=>{try{const v=await je.me();t(v.type_abonnement??null)}catch(v){v instanceof Ie&&v.status===401&&o("/login")}},[o]);m.useEffect(()=>{d()},[d]);const f=async()=>{const v=r?"/admin/login":"/login";await n(),o(v,{replace:!0})},p=r?"Admin":i?"Client":"Utilisateur",h=r?"purple":"gray";return s.jsxs(ne,{minH:"100vh",bg:"chakra-subtle-bg",overflowX:"hidden",children:[s.jsxs(St,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[s.jsxs(ct,{size:"sm",as:Zt,to:"/app",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(ge,{spacing:1,display:{base:"none",md:"flex"},children:[i&&s.jsx(Ln,{to:"/app/subscription",children:"Abonnement"}),i&&s.jsx(Ln,{to:"/app/downloads",children:"Applications"}),(r||i)&&s.jsx(Ln,{to:"/app/profile",children:"Profile"}),i&&s.jsx(Ln,{to:"/app/myservices",children:u?"Ma plateforme":"Ma démo"}),r&&s.jsx(Ln,{to:"/app/demos",children:"Démos"}),r&&s.jsx(Ln,{to:"/app/premium",children:"Premium"}),r&&s.jsx(Ln,{to:"/app/codes",children:"Codes"})]}),s.jsx(Eo,{}),s.jsxs(ge,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(dn,{colorScheme:h,children:p}),s.jsx(xe,{as:"a",href:wk,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),s.jsx(Ea,{}),s.jsx(xe,{size:"sm",variant:"outline",onClick:f,children:"Déconnexion"})]}),s.jsxs(ge,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(dn,{colorScheme:h,children:p}),s.jsx(Ea,{}),s.jsx(vn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:l,icon:s.jsx(lue,{})})]})]}),s.jsxs(dT,{isOpen:a,placement:"right",onClose:c,size:"xs",children:[s.jsx(yl,{}),s.jsxs(Fb,{bg:"chakra-body-bg",children:[s.jsx(Ou,{size:"lg"}),s.jsxs(vl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(gl,{py:6,children:[s.jsxs(we,{as:"nav",spacing:1,children:[i&&s.jsx(Ln,{to:"/app/subscription",onClick:c,mobile:!0,children:"Abonnement"}),i&&s.jsx(Ln,{to:"/app/downloads",onClick:c,mobile:!0,children:"Applications"}),r&&s.jsx(Ln,{to:"/app/demos",onClick:c,mobile:!0,children:"Démos"}),r&&s.jsx(Ln,{to:"/app/premium",onClick:c,mobile:!0,children:"Premium"}),r&&s.jsx(Ln,{to:"/app/codes",onClick:c,mobile:!0,children:"Codes"}),(r||i)&&s.jsx(Ln,{to:"/app/profile",onClick:c,mobile:!0,children:"Profile"})]}),s.jsx(da,{my:6}),s.jsxs(we,{spacing:3,children:[s.jsx(xe,{as:"a",href:wk,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:c,children:"Support"}),s.jsx(xe,{variant:"outline",justifyContent:"flex-start",onClick:f,children:"Déconnexion"})]})]})]})]}),s.jsx(fn,{maxW:"container.xl",py:8,children:s.jsx(g8,{})})]})}function Ln({to:e,children:t,onClick:n,mobile:r=!1}){return s.jsx(xe,{as:y8,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}function uue(){return s.jsx(ne,{children:s.jsx(ne,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(fn,{maxW:"container.lg",children:s.jsxs(we,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(ct,{size:"2xl",children:"Contactez-nous"}),s.jsx(K,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Une question ? Notre équipe vous répond directement sur Telegram."}),s.jsx(xe,{as:"a",href:"https://t.me/OMNEX_CORP",target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",size:"lg",children:"Nous contacter sur Telegram"})]})})})})}function due(){const e=pr(),t=Qn(),[n,r]=m.useState(null),[i,o]=m.useState([]),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const f=await je.me();r(f.type_abonnement??null)}catch(f){f instanceof Ie&&f.status===401&&t("/login")}},[t]),u=m.useCallback(async()=>{try{const f=await je.listMyDemos();o(f.items??[])}catch{e({status:"error",title:"Chargement des démos impossible"})}finally{l(!1)}},[e]);m.useEffect(()=>{c(),u()},[c,u]);const d=n==="premium";return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:d?"Ma plateforme":"Ma démo"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(yn,{size:"sm"}):i.length===0?s.jsx(K,{color:"gray.500",children:d?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):s.jsx(Fu,{align:"stretch",spacing:3,children:i.map(f=>s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[f.status==="ready"?s.jsx(_o,{href:f.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:f.url}):s.jsx(K,{color:"gray.400",fontFamily:"mono",children:f.url||"—"}),s.jsx(dn,{colorScheme:Qm(f.status),children:Zm(f.status)})]},f.id))})})]})}const fue=["/app/demos","/app/premium","/app/codes"];function pue({children:e}){const{isAuthenticated:t,initializing:n}=zo(),r=Ma();if(n)return s.jsx(ZP,{h:"100vh",children:s.jsx(yn,{})});if(t)return e;const i=fue.some(o=>r.pathname.startsWith(o));return s.jsx(hu,{to:i?"/admin/login":"/login",replace:!0})}function V0({children:e}){const{isAdmin:t}=zo();return t?e:s.jsx(hu,{to:"/app/subscription",replace:!0})}function mue(){const{role:e}=zo();switch(e){case"admin":return s.jsx(hu,{to:"/app/demos",replace:!0});default:return s.jsx(hu,{to:"/app/subscription",replace:!0})}}function hue(){return s.jsxs(Gre,{children:[s.jsxs(Rt,{element:s.jsx(sue,{}),children:[s.jsx(Rt,{path:"/",element:s.jsx(sie,{})}),s.jsx(Rt,{path:"/tarifs",element:s.jsx(cie,{})}),s.jsx(Rt,{path:"/documentation",element:s.jsx(Tce,{})}),s.jsx(Rt,{path:"/contact",element:s.jsx(uue,{})})]}),s.jsx(Rt,{path:"/login",element:s.jsx(Rce,{})}),s.jsx(Rt,{path:"/admin/login",element:s.jsx(Ice,{})}),s.jsx(Rt,{path:"/register",element:s.jsx(Mce,{})}),s.jsxs(Rt,{path:"/app",element:s.jsx(pue,{children:s.jsx(cue,{})}),children:[s.jsx(Rt,{index:!0,element:s.jsx(mue,{})}),s.jsx(Rt,{path:"demos",element:s.jsx(V0,{children:s.jsx(Vce,{})})}),s.jsx(Rt,{path:"codes",element:s.jsx(V0,{children:s.jsx(Xce,{})})}),s.jsx(Rt,{path:"premium",element:s.jsx(V0,{children:s.jsx(Gce,{})})}),s.jsx(Rt,{path:"subscription",element:s.jsx(Yce,{})}),s.jsx(Rt,{path:"downloads",element:s.jsx(Zce,{})}),s.jsx(Rt,{path:"profile",element:s.jsx(nue,{})}),s.jsx(Rt,{path:"myservices",element:s.jsx(due,{})})]}),s.jsx(Rt,{path:"*",element:s.jsx(hu,{to:"/",replace:!0})})]})}const gue={initialColorMode:"system",useSystemColorMode:!1},kk=hb({config:gue,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"},midnight:{50:"#e9ebf5",100:"#c7cce6",200:"#a3abd6",300:"#7f8ac6",400:"#5b69b6",500:"#2d3a7d",600:"#232e63",700:"#1a2249",800:"#11172f",900:"#080b16"}},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"},"primary.50":{default:"purple.50",_dark:"midnight.50"},"primary.100":{default:"purple.100",_dark:"midnight.100"},"primary.200":{default:"purple.200",_dark:"midnight.200"},"primary.300":{default:"purple.300",_dark:"midnight.300"},"primary.400":{default:"purple.400",_dark:"midnight.400"},"primary.500":{default:"purple.500",_dark:"midnight.500"},"primary.600":{default:"purple.600",_dark:"midnight.600"},"primary.700":{default:"purple.700",_dark:"midnight.700"},"primary.800":{default:"purple.800",_dark:"midnight.800"},"primary.900":{default:"purple.900",_dark:"midnight.900"}}},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"}}}}}},IT);H0.createRoot(document.getElementById("root")).render(s.jsxs(Xt.StrictMode,{children:[s.jsx(zG,{initialColorMode:kk.config.initialColorMode}),s.jsx(Ite,{theme:kk,children:s.jsx(Ace,{children:s.jsx(eie,{children:s.jsx(hue,{})})})})]})); + */var n1={prefix:"fas",iconName:"truck",icon:[576,512,[128666,9951],"f0d1","M0 96C0 60.7 28.7 32 64 32l288 0c35.3 0 64 28.7 64 64l0 32 50.7 0c17 0 33.3 6.7 45.3 18.7L557.3 192c12 12 18.7 28.3 18.7 45.3L576 384c0 35.3-28.7 64-64 64l-3.3 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64l-102.6 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64L64 448c-35.3 0-64-28.7-64-64L0 96zM512 288l0-50.7-45.3-45.3-50.7 0 0 96 96 0zM192 424a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm232 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},vx={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},yx={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},Y3={prefix:"fas",iconName:"trophy",icon:[512,512,[127942],"f091","M144.3 0l224 0c26.5 0 48.1 21.8 47.1 48.2-.2 5.3-.4 10.6-.7 15.8l49.6 0c26.1 0 49.1 21.6 47.1 49.8-7.5 103.7-60.5 160.7-118 190.5-15.8 8.2-31.9 14.3-47.2 18.8-20.2 28.6-41.2 43.7-57.9 51.8l0 73.1 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0 0-73.1c-16-7.7-35.9-22-55.3-48.3-18.4-4.8-38.4-12.1-57.9-23.1-54.1-30.3-102.9-87.4-109.9-189.9-1.9-28.1 21-49.7 47.1-49.7l49.6 0c-.3-5.2-.5-10.4-.7-15.8-1-26.5 20.6-48.2 47.1-48.2zM101.5 112l-52.4 0c6.2 84.7 45.1 127.1 85.2 149.6-14.4-37.3-26.3-86-32.8-149.6zM380 256.8c40.5-23.8 77.1-66.1 83.3-144.8L411 112c-6.2 60.9-17.4 108.2-31 144.8z"]},ale={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M321.5 68.8C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40s-17.9 40-40 40l-73.3 0 34.8-59.2zm-131 0l34.8 59.2-73.3 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zm89.6-24.3l-24.1 41-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0c-48.6 0-88 39.4-88 88 0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-32c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40 0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4zM480 272l-200 0 0 208 136 0c35.3 0 64-28.7 64-64l0-144zm-248 0l-200 0 0 144c0 35.3 28.7 64 64 64l136 0 0-208z"]},_7={prefix:"fas",iconName:"power-off",icon:[512,512,[9211],"f011","M288 0c0-17.7-14.3-32-32-32S224-17.7 224 0l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L288 0zM146.3 98.4c14.5-10.1 18-30.1 7.9-44.6s-30.1-18-44.6-7.9C43.4 92.1 0 169 0 256 0 397.4 114.6 512 256 512S512 397.4 512 256c0-87-43.4-163.9-109.7-210.1-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6c49.8 34.8 82.3 92.4 82.3 157.6 0 106-86 192-192 192S64 362 64 256c0-65.2 32.5-122.9 82.3-157.6z"]},sle={prefix:"fas",iconName:"cash-register",icon:[512,512,[],"f788","M96 0C60.7 0 32 28.7 32 64s28.7 64 64 64l48 0 0 32-57 0c-31.6 0-58.5 23.1-63.3 54.4L1.1 364.1C.4 368.8 0 373.6 0 378.4L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-69.6c0-4.8-.4-9.6-1.1-14.4L488.2 214.4C483.5 183.1 456.6 160 425 160l-217 0 0-32 48 0c35.3 0 64-28.7 64-64S291.3 0 256 0L96 0zm0 48l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L96 80c-8.8 0-16-7.2-16-16s7.2-16 16-16zM64 424c0-13.3 10.7-24 24-24l336 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm48-160a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm120-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM160 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM328 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM256 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM424 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM352 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48z"]},lle={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},cle={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},ule={prefix:"fas",iconName:"boxes-stacked",icon:[512,512,[62625,"boxes","boxes-alt"],"f468","M224 0l0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 5.5-.7 10.9-2 16l-252 0c-1.3-5.1-2-10.5-2-16l0-128c0-35.3 28.7-64 64-64l32 0zm96 512c-11.2 0-21.8-2.9-31-8 9.5-16.5 15-35.6 15-56l0-128c0-20.4-5.5-39.5-15-56 9.2-5.1 19.7-8 31-8l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64l-128 0zM0 320c0-35.3 28.7-64 64-64l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 320z"]},T7={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},Q3={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},dle={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"]},E7={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},fle={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},A7={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Ku={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},ple={prefix:"fas",iconName:"paper-plane",icon:[576,512,[61913],"f1d8","M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z"]},mle={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},hle={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M160.5-26.4c9.3-7.8 23-7.5 31.9 .9 12.3 11.6 23.3 24.4 33.9 37.4 13.5 16.5 29.7 38.3 45.3 64.2 5.2-6.8 10-12.8 14.2-17.9 1.1-1.3 2.2-2.7 3.3-4.1 7.9-9.8 17.7-22.1 30.8-22.1 13.4 0 22.8 11.9 30.8 22.1 1.3 1.7 2.6 3.3 3.9 4.8 10.3 12.4 24 30.3 37.7 52.4 27.2 43.9 55.6 106.4 55.6 176.6 0 123.7-100.3 224-224 224S0 411.7 0 288c0-91.1 41.1-170 80.5-225 19.9-27.7 39.7-49.9 54.6-65.1 8.2-8.4 16.5-16.7 25.5-24.2zM225.7 416c25.3 0 47.7-7 68.8-21 42.1-29.4 53.4-88.2 28.1-134.4-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5-17.3-22.1-49.1-62.4-65.3-83-5.4-6.9-15.2-8-21.5-1.9-18.3 17.8-51.5 56.8-51.5 104.3 0 68.6 50.6 109.2 113.7 109.2z"]},$7={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},z7={prefix:"fas",iconName:"location-arrow",icon:[512,512,[],"f124","M477.9 75.5c4.5-11.8 1.7-25.2-7.2-34.1s-22.3-11.8-34.1-7.2l-416 160C7.9 199-.3 211.2 0 224.7s9.1 25.4 21.9 29.6l176.8 58.9 58.9 176.8c4.3 12.8 16.1 21.6 29.6 21.9s25.7-7.9 30.6-20.5l160-416z"]},gle={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M96 64c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L96 64zM464 336l73.5 58.8c4.2 3.4 9.4 5.2 14.8 5.2 13.1 0 23.7-10.6 23.7-23.7l0-240.6c0-13.1-10.6-23.7-23.7-23.7-5.4 0-10.6 1.8-14.8 5.2L464 176 464 336z"]},vle={prefix:"fas",iconName:"utensils",icon:[512,512,[127860,61685,"cutlery"],"f2e7","M63.9 14.4C63.1 6.2 56.2 0 48 0s-15.1 6.2-16 14.3L17.9 149.7c-1.3 6-1.9 12.1-1.9 18.2 0 45.9 35.1 83.6 80 87.7L96 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224.4c44.9-4.1 80-41.8 80-87.7 0-6.1-.6-12.2-1.9-18.2L223.9 14.3C223.1 6.2 216.2 0 208 0s-15.1 6.2-15.9 14.4L178.5 149.9c-.6 5.7-5.4 10.1-11.1 10.1-5.8 0-10.6-4.4-11.2-10.2L143.9 14.6C143.2 6.3 136.3 0 128 0s-15.2 6.3-15.9 14.6L99.8 149.8c-.5 5.8-5.4 10.2-11.2 10.2-5.8 0-10.6-4.4-11.1-10.1L63.9 14.4zM448 0C432 0 320 32 320 176l0 112c0 35.3 28.7 64 64 64l32 0 0 128c0 17.7 14.3 32 32 32s32-14.3 32-32l0-448c0-17.7-14.3-32-32-32z"]},yle={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},bx={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},ble={prefix:"fas",iconName:"image",icon:[448,512,[],"f03e","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 80a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM272 224c8.4 0 16.1 4.4 20.5 11.5l88 144c4.5 7.4 4.7 16.7 .5 24.3S368.7 416 360 416L88 416c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l26.4 37.8 61.4-100.5c4.4-7.1 12.1-11.5 20.5-11.5z"]},xle={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M285.7 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L77.7 512C61.3 512 48 498.7 48 482.3 48 383.8 127.8 304 226.3 304l59.4 0zM528 80c13.3 0 24 10.7 24 24l0 48 48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0 0 48c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-48-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0 0-48c0-13.3 10.7-24 24-24zM256 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},R7={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},I7={prefix:"fas",iconName:"bicycle",icon:[640,512,[128690],"f206","M331.7 43.3C336 36.3 343.7 32 352 32l104 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-65.6 0 72.2 148.4c10.7-2.9 21.9-4.4 33.4-4.4 70.7 0 128 57.3 128 128s-57.3 128-128 128-128-57.3-128-128c0-42 20.2-79.2 51.4-102.6l-20.4-41.9-73.5 147c-2.3 4.8-6.3 8.8-11.4 11.2-.6 .3-1.2 .5-1.8 .7-2.9 1.1-5.9 1.6-8.9 1.5L271 368c-7.9 63.1-61.7 112-127 112-70.7 0-128-57.3-128-128S73.3 224 144 224c10.8 0 21.2 1.3 31.2 3.8l28.5-56.9-11.5-26.9-40.2 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l56 0c9.6 0 18.3 5.7 22.1 14.5l14.3 33.5 123.7 0-37.7-77.5c-3.6-7.4-3.2-16.2 1.2-23.2zM228.5 228.7l-45.6 91.3 84.8 0-39.1-91.3zM305.7 287l47.5-95-88.2 0 40.7 95zm168.7 75.5l-29.7-61c-12.8 13-20.7 30.8-20.7 50.5 0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72c-2.7 0-5.5 .2-8.1 .5l29.7 61c5.8 11.9 .8 26.3-11.1 32.1s-26.3 .8-32.1-11.1zM149.2 368c-20.2 0-33.4-21.3-24.3-39.4l24.2-48.5c-1.7-.1-3.4-.2-5.1-.2-39.8 0-72 32.2-72 72s32.2 72 72 72c34.3 0 62.9-23.9 70.2-56l-65 0z"]},Sle={prefix:"fas",iconName:"bell-concierge",icon:[512,512,[128718,"concierge-bell"],"f562","M216 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l16 0 0 33.3C124.8 156.7 40.2 243.7 32.6 352l446.9 0C471.8 243.7 387.2 156.7 280 145.3l0-33.3 16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zM24 400c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 400z"]},Ta={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},xx={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"]},wle={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},kle={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"]},Cle={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"]},jle={prefix:"fas",iconName:"phone",icon:[512,512,[128222,128379],"f095","M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z"]},M7={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Ple={prefix:"fas",iconName:"hourglass-half",icon:[384,512,["hourglass-2"],"f252","M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z"]},_le={prefix:"fas",iconName:"credit-card",icon:[512,512,[128179,62083,"credit-card-alt"],"f09d","M0 128l0 32 512 0 0-32c0-35.3-28.7-64-64-64L64 64C28.7 64 0 92.7 0 128zm0 80L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-176-512 0zM64 360c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24zm144 0c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24z"]},Tle={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Np={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},Km={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},qm={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0zm0 66.8l0 378.1c138-66.8 175.1-214.8 176-303.4l-176-74.6 0 0z"]},Ele={prefix:"fas",iconName:"check-double",icon:[384,512,[],"f560","M249.9 66.8c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-106 145.7-37.5-37.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l128-176zm128 136c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-170 233.7-69.5-69.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l192-264z"]},Sx={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},L7={prefix:"fas",iconName:"box",icon:[448,512,[128230],"f466","M335.1 16c20.7 0 40.1 10 52.1 26.8l48.9 68.5c7.7 10.8 11.9 23.9 11.9 37.2L448 416c0 35.3-28.7 64-64 64l-320 0-6.5-.3C25.2 476.4 0 449.1 0 416L0 148.5c0-11.7 3.2-23.1 9.2-33l2.7-4.2 48.9-68.5c10.5-14.7 26.7-24.2 44.4-26.3l7.7-.5 222.1 0zM248 128l121.3 0-34.3-48-87.1 0 0 48zM78.7 128l121.3 0 0-48-87.1 0-34.3 48z"]},N7={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","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-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},Ale={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"]},$le={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"]},Dp={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},zle={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},Rle={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},Xm={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z"]},wx={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Ile={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M96.5 0c-35.3 0-64 28.7-64 64l0 384c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-96 78.1 0-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9l-72-72c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-78.1 0 0-133.5c0-17-6.7-33.3-18.7-45.3L291.2 18.7C279.2 6.7 263 0 246 0L96.5 0zM358 176l-93.5 0c-13.3 0-24-10.7-24-24L240.5 58.5 358 176zM224.5 328c0-13.3 10.7-24 24-24l104 0 0 48-104 0c-13.3 0-24-10.7-24-24z"]},Mle={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"]},Lle=Mle;const A={bg:"#0a0a0a",card:"#1e1e1e",border:"#333333",text:"rgba(255,255,255,.87)",text2:"rgba(255,255,255,.6)",text3:"rgba(255,255,255,.4)",accent:"#7c3aed",accentLight:"#8b5cf6",secondary:"#22d3ee",success:"#4ade80",danger:"#ef4444",warning:"#f59e0b",info:"#3b82f6"};function Dt({children:e}){return s.jsx(ne,{bg:A.bg,borderRadius:"24px",p:"14px",maxW:"380px",mx:"auto",boxShadow:"0 30px 60px -20px rgba(60,20,110,.45)",border:"1px solid",borderColor:"whiteAlpha.100",children:s.jsx(ne,{bg:A.bg,borderRadius:"16px",p:"16px 14px 20px",minH:"220px",children:e})})}function wn({title:e,subtitle:t,action:n}){return s.jsxs(St,{justify:"space-between",align:"flex-start",mb:4,children:[s.jsxs(ne,{children:[s.jsx(K,{color:A.text,fontSize:"1rem",fontWeight:"800",mb:0,children:e}),t&&s.jsx(K,{color:A.text3,fontSize:"0.72rem",children:t})]}),n]})}function He({children:e,mb:t=2.5,onClick:n,active:r=!1}){return s.jsx(ne,{bg:A.card,border:"1px solid",borderColor:r?A.accent:A.border,borderRadius:"12px",p:3,mb:t,cursor:n?"pointer":void 0,transition:"border-color .15s, transform .1s",onClick:n,_hover:n?{borderColor:A.accentLight}:void 0,_active:n?{transform:"scale(0.99)"}:void 0,children:e})}function Xe({icon:e,value:t,label:n,color:r=A.accentLight}){return s.jsxs(ne,{bg:A.card,border:"1px solid",borderColor:A.border,borderRadius:"12px",p:2.5,children:[s.jsx(St,{w:"26px",h:"26px",borderRadius:"full",align:"center",justify:"center",bg:`${r}30`,mb:2,children:s.jsx(We,{icon:e,style:{color:r,fontSize:"0.7rem"}})}),s.jsx(K,{color:A.text,fontSize:"1.15rem",fontWeight:"800",lineHeight:"1",children:t}),s.jsx(K,{color:A.text3,fontSize:"0.62rem",mt:1,textTransform:"uppercase",letterSpacing:"0.02em",children:n})]})}function q({children:e,variant:t="primary",mono:n=!1,size:r}){const i={primary:A.text,secondary:A.text2,muted:A.text3,success:A.success,danger:A.danger};return s.jsx(K,{color:i[t],fontSize:r??"0.78rem",fontFamily:n?"mono":void 0,as:"span",children:e})}function Pt({children:e}){return s.jsx(ge,{justify:"space-between",align:"center",children:e})}function Nle({value:e,color:t=A.accent}){return s.jsx(_p,{value:e,size:"xs",borderRadius:"full",mt:1,sx:{"& > div":{background:t,transition:"width .4s ease"},background:"#2a2a2a"}})}function ll({color:e,size:t="9px"}){return s.jsx(ne,{as:"span",display:"inline-block",w:t,h:t,borderRadius:"full",bg:e,mr:1.5,flexShrink:0})}function D7({icon:e,color:t,size:n="0.75rem"}){return s.jsx(We,{icon:e,style:{color:t??A.text2,fontSize:n,marginRight:6}})}function Te({children:e,tone:t="outline",icon:n,onClick:r,isActive:i=!1}){const o={accent:{bg:A.accent,color:"white",border:"none"},outline:{bg:"transparent",color:A.text2,border:`1px solid ${A.border}`},outlineDanger:{bg:"transparent",color:A.danger,border:`1px solid ${A.danger}`},success:{bg:A.success,color:"#0a0a0a",border:"none"}}[t];return s.jsxs(ne,{as:"button",type:"button",display:"inline-flex",alignItems:"center",borderRadius:"8px",px:3,py:1.5,fontSize:"0.68rem",fontWeight:"700",cursor:r?"pointer":"default",transition:"filter .15s, transform .1s",opacity:i?1:.92,_hover:r?{filter:"brightness(1.15)"}:void 0,_active:r?{transform:"scale(0.96)"}:void 0,onClick:r,...o,children:[n&&s.jsx(We,{icon:n,style:{marginRight:6,fontSize:"0.68rem"}}),e]})}function kx({tabs:e,active:t,onChange:n}){return s.jsx(ge,{spacing:1.5,mb:3,flexWrap:"wrap",children:e.map(r=>{const i=r.key===t;return s.jsx(ne,{as:"button",type:"button",onClick:()=>n(r.key),px:2.5,py:1,borderRadius:"999px",fontSize:"0.66rem",fontWeight:"700",cursor:"pointer",transition:"all .15s",bg:i?A.accent:"transparent",color:i?"white":A.text3,border:"1px solid",borderColor:i?A.accent:A.border,_hover:{borderColor:A.accentLight,color:i?"white":A.text2},children:r.label},r.key)})})}function Dle({value:e,onChange:t,placeholder:n}){return s.jsxs(ne,{position:"relative",my:2,children:[s.jsx(We,{icon:cle,style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",color:A.text3,fontSize:"0.65rem"}}),s.jsx(ne,{as:"input",value:e,onChange:r=>t(r.target.value),placeholder:n,w:"100%",bg:A.bg,border:"1px solid",borderColor:A.border,borderRadius:"8px",color:A.text,fontSize:"0.7rem",py:1.5,pl:"26px",pr:2,outline:"none"})]})}function Ym({children:e}){return s.jsx(ne,{border:"1px dashed",borderColor:A.border,borderRadius:"10px",p:2.5,mt:2,children:s.jsx(K,{color:A.text3,fontSize:"0.64rem",fontStyle:"italic",children:e})})}function Ole({isOn:e,onToggle:t}){return s.jsx(ne,{as:"button",type:"button",onClick:t,w:"34px",h:"20px",borderRadius:"full",bg:e?A.accent:A.border,position:"relative",cursor:"pointer",transition:"background .2s",flexShrink:0,children:s.jsx(ne,{position:"absolute",top:"2px",left:e?"16px":"2px",w:"16px",h:"16px",borderRadius:"full",bg:"white",transition:"left .2s"})})}function Fle(){const[e,t]=m.useState(!0);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Bonjour, Admin",subtitle:"Vue d'ensemble"}),s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:L7,value:312,label:"Total commandes",color:A.accentLight}),s.jsx(Xe,{icon:Ku,value:8,label:"En attente",color:A.warning}),s.jsx(Xe,{icon:z7,value:5,label:"En route",color:A.info}),s.jsx(Xe,{icon:Ta,value:299,label:"Terminées",color:A.success}),s.jsx(Xe,{icon:xx,value:184,label:"Clients",color:A.accentLight}),s.jsx(Xe,{icon:$7,value:6,label:"Livreurs",color:A.secondary})]}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(D7,{icon:yx,color:A.secondary}),"Notifications Telegram"]}),s.jsx(Te,{tone:e?"outlineDanger":"accent",icon:e?N7:R7,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]}),s.jsx(q,{variant:"muted",size:"0.68rem",children:e?"Compte Telegram lié — alertes actives.":"Aucun compte lié — cliquez pour connecter."})]})]})}const Z3=[{id:"#1042",client:"client_marie · 12 rue des Lilas",extra:"il y a 4 min",tone:"warning",label:"En attente",amount:"46,00 €"},{id:"#1041",client:"client_paul · Livreur: lucas_d",extra:"Net après parrainage",tone:"info",label:"En route",amount:"33,00 €"},{id:"#1040",client:"client_lea · 8 avenue Foch",extra:"en attente d’assignation",tone:"accent",label:"Livreur arrivé",amount:"58,50 €"}],J3=[{id:"#1038",client:"client_sam · 3 rue Victor Hugo",extra:"Terminée il y a 1 h",tone:"info",label:"Livrée",amount:"27,00 €"},{id:"#1036",client:"client_ana · 21 bd Voltaire",extra:"Terminée hier",tone:"info",label:"Livrée",amount:"41,00 €"},{id:"#1030",client:"client_marie · 5 rue de Rivoli",extra:"Terminée il y a 3 j",tone:"info",label:"Livrée",amount:"22,00 €"}],ek=[{id:"#1029",client:"client_theo · adresse introuvable",extra:"Annulée par le livreur",tone:"warning",label:"Annulée",amount:"19,00 €"}],tk={warning:A.warning,info:A.info,accent:A.accentLight};function nk({o:e,isOpen:t,onClick:n,children:r}){return s.jsxs(He,{active:t,onClick:n,children:[s.jsxs(Pt,{children:[s.jsx(q,{mono:!0,children:e.id}),s.jsx("span",{style:{background:`${tk[e.tone]}26`,color:tk[e.tone],padding:"2px 9px",borderRadius:999,fontWeight:800,fontSize:"0.62rem"},children:e.label})]}),s.jsx(q,{variant:"secondary",size:"0.7rem",children:e.client}),s.jsxs(Pt,{children:[s.jsx(q,{variant:"muted",size:"0.65rem",children:e.extra}),s.jsx(q,{variant:"primary",size:"0.75rem",children:e.amount})]}),r]})}function Ble(){const[e,t]=m.useState("#1040"),[n,r]=m.useState(null),[i,o]=m.useState(""),a=n==="approuvees"?J3:n==="annulees"?ek:[],l=m.useMemo(()=>a.filter(u=>u.client.toLowerCase().includes(i.toLowerCase())),[a,i]),c=u=>{r(d=>d===u?null:u),o("")};return s.jsxs(Dt,{children:[s.jsxs(Pt,{children:[s.jsx(Te,{tone:"outline",icon:Lle,children:"Actualiser"}),s.jsx(Te,{tone:"outline",icon:Ile,children:"Export CSV"})]}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10,marginBottom:6},children:[s.jsxs("div",{onClick:()=>c("approuvees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="approuvees"?A.success:A.border}`,background:n==="approuvees"?`${A.success}22`:"transparent",color:n==="approuvees"?A.success:A.text3},children:["Approuvées (",J3.length,")"]}),s.jsxs("div",{onClick:()=>c("annulees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="annulees"?A.danger:A.border}`,background:n==="annulees"?`${A.danger}22`:"transparent",color:n==="annulees"?A.danger:A.text3},children:["Annulées (",ek.length,")"]})]}),n&&s.jsxs("div",{style:{marginBottom:10},children:[s.jsx(Dle,{value:i,onChange:o,placeholder:"Rechercher par username..."}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:[l.length," résultat",l.length>1?"s":""]}),l.map(u=>s.jsx(nk,{o:u,isOpen:!1,onClick:()=>{}},u.id)),s.jsx("div",{style:{borderTop:`1px solid ${A.border}`,margin:"10px 0"}})]}),s.jsxs(q,{size:"0.78rem",variant:"primary",children:["Commandes actives (",Z3.length,")"]}),s.jsx("div",{style:{marginTop:8},children:Z3.map(u=>{const d=e===u.id;return s.jsx(nk,{o:u,isOpen:d,onClick:()=>t(d?null:u.id),children:d&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${A.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"accent",icon:vx,children:"Assigner livreur"}),s.jsx(Te,{tone:"outline",icon:n1,children:"Passer en route"}),s.jsx(Te,{tone:"outline",icon:Ale,children:"Proposer adresse"})]})},u.id)})})]})}const rk=[{name:"lucas_d",status:"busy",queue:1,today:14,total:512,distance:"1,8 km",eta:"6 min"},{name:"emma_l",status:"available",queue:0,today:9,total:340,distance:"0,6 km",eta:"2 min"},{name:"yanis_b",status:"offline",queue:0,today:5,total:128,distance:"—",eta:"—"}],Ka={available:A.success,busy:A.warning,offline:A.text3},Wle={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function Vle(){const[e,t]=m.useState("lucas_d"),n=rk.find(r=>r.name===e);return s.jsxs(Dt,{children:[s.jsxs(bn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:Xm,value:1,label:"Dispo",color:A.success}),s.jsx(Xe,{icon:Ku,value:1,label:"Occupés",color:A.warning}),s.jsx(Xe,{icon:_7,value:1,label:"Hors ligne",color:A.text3})]}),s.jsxs(He,{children:[s.jsx("div",{style:{height:110,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${Ka[n.status]}26`,color:Ka[n.status],fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(ll,{color:Ka[n.status],size:"7px"}),n.name," — ",n.distance," · ",n.eta]})}),s.jsx(q,{variant:"muted",size:"0.62rem",children:"Cliquez un livreur ci-dessous pour suivre son trajet en direct"})]}),rk.map(r=>{const i=r.name===e;return s.jsxs(He,{active:i,onClick:()=>t(r.name),children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(ll,{color:Ka[r.status]}),r.name]}),s.jsx("span",{style:{background:`${Ka[r.status]}26`,color:Ka[r.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:Wle[r.status]})]}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:[r.queue," en attente · ",r.today," aujourd'hui · ",r.total," total"]}),i&&s.jsxs("div",{style:{marginTop:8,display:"flex",gap:6},children:[s.jsx(Te,{tone:"outline",icon:Np,children:"Avis"}),s.jsx(Te,{tone:r.status!=="offline"?"accent":"outline",icon:wx,children:r.status!=="offline"?"Suivre l'itinéraire":"Indisponible"})]})]},r.name)})]})}const Ule=[{label:"1u",price:"12€",active:!0},{label:"3u",price:"30€",active:!0},{label:"5u",price:"45€",active:!1}];function Hle(){const[e,t]=m.useState(Ule),n=r=>{t(i=>i.map((o,a)=>a===r?{...o,active:!o.active}:o))};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Produits (48)",action:s.jsx(Te,{tone:"accent",icon:Sx,children:"Créer"})}),s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"primary",size:"0.82rem",children:"Pack Découverte"}),s.jsx("span",{style:{background:`${A.accentLight}26`,color:A.accentLight,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"Premium"})]}),s.jsxs(q,{variant:"muted",size:"0.65rem",children:[s.jsx(We,{icon:ble,style:{marginRight:4}}),"3 images ·"," ",s.jsx(We,{icon:gle,style:{marginRight:4}}),"1 vidéo · Stock: 24 u"]}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"Cliquez un tarif pour l'activer / le désactiver"}),s.jsx("div",{style:{display:"flex",gap:6,marginTop:6,flexWrap:"wrap"},children:e.map((r,i)=>s.jsxs("div",{onClick:()=>n(i),style:{cursor:"pointer",display:"flex",alignItems:"center",gap:5,padding:"4px 9px",borderRadius:8,border:`1px solid ${A.border}`,opacity:r.active?1:.5,textDecoration:r.active?"none":"line-through"},children:[s.jsx(We,{icon:r.active?kle:yle,style:{color:r.active?A.success:A.danger,fontSize:"0.7rem"}}),s.jsxs("span",{style:{color:A.text,fontSize:"0.72rem"},children:[r.label," = ",r.price]})]},r.label))}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx(Te,{tone:"outline",icon:Cle,children:"Modifier"}),s.jsx(Te,{tone:"outlineDanger",icon:E7,children:"Supprimer"})]})]}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"primary",size:"0.82rem",children:"Édition Limitée"}),s.jsx("span",{style:{background:`${A.warning}26`,color:A.warning,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"À venir"})]}),s.jsx(q,{variant:"muted",size:"0.65rem",children:"Stock: 0 u — masqué du catalogue tant que le stock est vide"})]})]})}const Gle=[{id:"a",name:"Fleurs",color:"#10b981"},{id:"b",name:"Résines",color:"#9333ea"},{id:"c",name:"Comestibles",color:"#3dc2f7",soon:!0}];function Kle(){const[e,t]=m.useState(Gle),n=(r,i)=>{const o=r+i;o<0||o>=e.length||t(a=>{const l=[...a];return[l[r],l[o]]=[l[o],l[r]],l})};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Catégories",action:s.jsx(Te,{tone:"accent",icon:Sx,children:"Ajouter"})}),e.map((r,i)=>s.jsx(He,{children:s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(ll,{color:r.color}),r.name,r.soon&&s.jsx("span",{style:{marginLeft:8,background:`${A.warning}26`,color:A.warning,fontSize:"0.58rem",fontWeight:800,padding:"2px 7px",borderRadius:999},children:"Prochainement"})]}),s.jsxs("div",{style:{display:"flex",gap:4},children:[s.jsx("button",{onClick:()=>n(i,-1),disabled:i===0,style:{background:"transparent",border:"none",cursor:i===0?"default":"pointer",color:i===0?A.border:A.text2,padding:4},"aria-label":"Monter",children:s.jsx(We,{icon:A7,style:{fontSize:"0.7rem"}})}),s.jsx("button",{onClick:()=>n(i,1),disabled:i===e.length-1,style:{background:"transparent",border:"none",cursor:i===e.length-1?"default":"pointer",color:i===e.length-1?A.border:A.text2,padding:4},"aria-label":"Descendre",children:s.jsx(We,{icon:M7,style:{fontSize:"0.7rem"}})})]})]})},r.id)),s.jsx(q,{variant:"muted",size:"0.62rem",children:"Essayez les flèches ↑ / ↓ pour réordonner"})]})}function Bl({title:e,onReset:t,since:n,children:r}){return s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:e}),t&&s.jsx(Te,{tone:"outlineDanger",icon:Dp,onClick:t,children:"Réinitialiser"})]}),n&&s.jsxs(q,{variant:"muted",size:"0.58rem",children:["Depuis le ",n]}),s.jsx("div",{style:{marginTop:8},children:r})]})}function Fo({label:e,value:t,pct:n,color:r,highlight:i}){return s.jsxs("div",{style:{marginBottom:6},children:[s.jsxs(Pt,{children:[s.jsxs(q,{variant:i?"primary":"muted",size:"0.64rem",children:[i&&s.jsx(We,{icon:hle,style:{color:A.warning,marginRight:4}}),e]}),s.jsx(q,{variant:i?"primary":"muted",size:"0.64rem",children:t})]}),s.jsx(Nle,{value:n,color:i?A.warning:r})]})}const qa=["Mai 2026","Juin 2026","Juillet 2026","Août 2026"],qle=[{day:"02/08",orders:14,revenue:"312€",best:!1},{day:"01/08",orders:22,revenue:"498€",best:!0},{day:"31/07",orders:9,revenue:"201€",best:!1}],Xle=[{key:"quantite",label:"Quantité"},{key:"commandes",label:"Commandes"},{key:"revenus",label:"Revenus"}],Yle={quantite:[{name:"Pack Découverte",value:210,display:"210"},{name:"Édition Standard",value:140,display:"140"},{name:"Format Duo",value:96,display:"96"}],commandes:[{name:"Pack Découverte",value:86,display:"86"},{name:"Édition Standard",value:54,display:"54"},{name:"Format Duo",value:41,display:"41"}],revenus:[{name:"Pack Découverte",value:1032,display:"1032€"},{name:"Édition Standard",value:648,display:"648€"},{name:"Format Duo",value:492,display:"492€"}]},N0=[{label:"10h",value:4},{label:"12h",value:18},{label:"14h",value:9},{label:"18h",value:22},{label:"20h",value:31},{label:"22h",value:12}],D0=[{label:"Lun",value:32},{label:"Mar",value:28},{label:"Mer",value:35},{label:"Jeu",value:41},{label:"Ven",value:58},{label:"Sam",value:71},{label:"Dim",value:47}],ik=[{label:"1g",value:40},{label:"3.5g",value:86},{label:"5g",value:22},{label:"10g",value:12}];function Qle(){const[e,t]=m.useState(qa.length-1),[n,r]=m.useState("revenus"),i=m.useMemo(()=>[...Yle[n]].sort((f,p)=>p.value-f.value),[n]),o=i[0].value,a=Math.max(...N0.map(f=>f.value)),l=N0.reduce((f,p)=>p.value>f.value?p:f),c=Math.max(...D0.map(f=>f.value)),u=D0.reduce((f,p)=>p.value>f.value?p:f),d=Math.max(...ik.map(f=>f.value));return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Statistiques",subtitle:"Activité globale & produits"}),s.jsxs("div",{style:{maxHeight:560,overflowY:"auto",paddingRight:2},children:[s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:fle,value:312,label:"Commandes totales",color:A.accentLight}),s.jsx(Xe,{icon:sle,value:"6,4k€",label:"Revenus (terminées)",color:A.success}),s.jsx(Xe,{icon:Ku,value:"10,4",label:"Moy. commandes/jour",color:A.info}),s.jsx(Xe,{icon:Y3,value:"Samedi",label:"Jour de pointe",color:A.warning})]}),s.jsxs(He,{children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:"Activité du jour"}),s.jsxs("div",{style:{display:"flex",gap:10,margin:"6px 0 8px"},children:[s.jsx(q,{variant:"muted",size:"0.6rem",children:"18 commandes"}),s.jsx(q,{variant:"muted",size:"0.6rem",children:"420g vendus"}),s.jsx(q,{variant:"muted",size:"0.6rem",children:"312€"})]}),s.jsx(Fo,{label:"Fleurs — Pack Découverte",value:"86 · 1032€",pct:90,color:A.accent}),s.jsx(Fo,{label:"Résines — Format Duo",value:"41 · 492€",pct:45,color:A.info})]}),s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsx("button",{onClick:()=>t(f=>Math.max(0,f-1)),disabled:e===0,style:{background:"none",border:"none",cursor:e===0?"default":"pointer",color:e===0?A.border:A.text2},children:s.jsx(We,{icon:Tle})}),s.jsx(q,{variant:"primary",size:"0.72rem",children:qa[e]}),s.jsx("button",{onClick:()=>t(f=>Math.min(qa.length-1,f+1)),disabled:e===qa.length-1,style:{background:"none",border:"none",cursor:e===qa.length-1?"default":"pointer",color:e===qa.length-1?A.border:A.text2},children:s.jsx(We,{icon:mle})})]}),s.jsx(q,{variant:"muted",size:"0.6rem",children:"Historique mensuel — cliquez les flèches"}),s.jsx("div",{style:{marginTop:8},children:qle.map(f=>s.jsx(Fo,{label:f.day,value:`${f.orders} cmd · ${f.revenue}`,pct:f.orders/22*100,color:A.accent,highlight:f.best},f.day))})]}),s.jsx(Bl,{title:"30 derniers jours — commandes",onReset:()=>{},since:"15/07/2026",children:s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50},children:[4,8,6,10,7,12,9,14,6,11].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/14*100}%`,background:A.accent,borderRadius:2}},p))})}),s.jsxs(Bl,{title:"Revenus par jour (30j)",onReset:()=>{},since:"15/07/2026",children:[s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50,marginBottom:6},children:[120,240,180,300,210,360,260,410,190,330].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/410*100}%`,background:A.success,borderRadius:2}},p))}),s.jsxs(q,{variant:"muted",size:"0.6rem",children:[s.jsx(We,{icon:Y3,style:{color:A.warning,marginRight:4}}),"Meilleure journée : 01/08 — 498€"]})]}),s.jsxs(Bl,{title:"Heures d'affluence",onReset:()=>{},since:"15/07/2026",children:[N0.map(f=>s.jsx(Fo,{label:f.label,value:String(f.value),pct:f.value/a*100,color:A.info,highlight:f.label===l.label},f.label)),s.jsxs(q,{variant:"muted",size:"0.6rem",children:["Heure de pointe : ",l.label," (",l.value," commandes)"]})]}),s.jsxs(Bl,{title:"Jours d'affluence",onReset:()=>{},since:"15/07/2026",children:[D0.map(f=>s.jsx(Fo,{label:f.label,value:String(f.value),pct:f.value/c*100,color:A.accent,highlight:f.label===u.label},f.label)),s.jsxs(q,{variant:"muted",size:"0.6rem",children:["Pic d'activité : ",u.label]})]}),s.jsx(Bl,{title:"Doses populaires — Pack Découverte",onReset:()=>{},since:"15/07/2026",children:ik.map(f=>s.jsx(Fo,{label:f.label,value:String(f.value),pct:f.value/d*100,color:A.secondary,highlight:f.value===d},f.label))}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:"Top produits"}),s.jsx(Te,{tone:"outlineDanger",icon:Dp,onClick:()=>{},children:"Réinitialiser"})]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(kx,{tabs:Xle,active:n,onChange:r})}),i.map((f,p)=>s.jsx(Fo,{label:f.name,value:f.display,pct:f.value/o*100,color:A.accent,highlight:p===0},f.name)),s.jsxs(q,{variant:"muted",size:"0.6rem",children:["Moins vendu : ",i[i.length-1].name]})]})]})]})}const ok=[{name:"client_marie",role:"clients",icon:xx,tone:A.info,detail:"Cmd: 12 · Points: 340 · Parrain: +8€"},{name:"lucas_d",role:"livreurs",icon:I7,tone:A.success,detail:"512 livraisons · connecté aujourd’hui"},{name:"admin_yas",role:"admins",icon:qm,tone:A.accentLight,detail:"Accès complet à la plateforme"}],Zle=[{key:"tous",label:"Tous",icon:$7,count:3},{key:"clients",label:"Clients",icon:xx,count:1},{key:"livreurs",label:"Livreurs",icon:I7,count:1},{key:"admins",label:"Admins",icon:qm,count:1}];function Jle(){const[e,t]=m.useState("tous"),n=e==="tous"?ok:ok.filter(r=>r.role===e);return s.jsxs(Dt,{children:[s.jsx(bn,{columns:4,spacing:1.5,mb:2.5,children:Zle.map(r=>{const i=r.key===e;return s.jsxs("div",{onClick:()=>t(r.key),style:{cursor:"pointer",textAlign:"center",padding:"8px 2px",borderRadius:10,border:`1px solid ${i?A.accent:A.border}`,background:i?`${A.accent}22`:A.card},children:[s.jsx(We,{icon:r.icon,style:{color:i?A.accentLight:A.text3,fontSize:"0.75rem"}}),s.jsx("div",{style:{color:A.text,fontSize:"0.72rem",fontWeight:800,marginTop:4},children:r.count}),s.jsx("div",{style:{color:A.text3,fontSize:"0.55rem"},children:r.label})]},r.key)})}),n.map(r=>s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(We,{icon:r.icon,style:{color:r.tone,marginRight:6,fontSize:"0.72rem"}}),r.name]}),s.jsx("span",{style:{background:`${r.tone}26`,color:r.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999,textTransform:"capitalize"},children:r.role==="clients"?"Client":r.role==="livreurs"?"Livreur":"Admin"})]}),s.jsx(q,{variant:"muted",size:"0.65rem",children:r.detail})]},r.name))]})}const ak=[{id:"perso",icon:Q3,title:"Personnalisation",body:"Nom du shop affiché dans l’app · dégradé de couleur du titre (2 couleurs, aperçu en direct)."},{id:"amendes",icon:T7,title:"Amendes",body:"Barème par nombre d’annulations : 0 → 20€, 1 → 50€, 2 → 100€, 3 → 150€. Score affichable au client ou non.",hasSwitch:!0},{id:"parrainage",icon:xle,title:"Parrainage",body:"Active le solde de parrainage, utilisable directement au moment du paiement par le filleul.",hasSwitch:!0},{id:"points",icon:Np,title:"Système de points",body:"Créez vos propres types de points (nom + couleur), chacun avec son propre barème €→points.",hasSwitch:!0},{id:"attribution",icon:wle,title:"Attribution catégories → points",body:"Chaque catégorie de produit peut être reliée à un type de points précis, ou à aucun."},{id:"baremes",icon:Np,title:"Barème — Points Fidélité",body:"Paliers Min € / Max € / Points : ex. 0–20€ = 5 pts, 20–50€ = 15 pts, 50€+ = 40 pts."},{id:"recompense",icon:ale,title:"Récompenses par palier",body:"Seuil de points → produit offert ou à -50%. Récapitulatif généré automatiquement.",hasSwitch:!0},{id:"horaires",icon:n1,title:"Horaires de livraison",body:"Lundi → Vendredi : 11h00–22h30 · Samedi : 12h00–23h00 · Dimanche : fermé."},{id:"zones",icon:lle,title:"Zones de livraison",body:"3 zones actives · minimum de commande et liste de codes postaux par zone, ajout en masse."},{id:"crypto",icon:_le,title:"Paiement crypto",body:"BTC, ETH, LTC, USDT acceptés (NowPayments). Clé API et secret IPN masqués.",hasSwitch:!0},{id:"telegram",icon:ple,title:"Notifications Telegram",body:"Bot configuré — @votre_bot · authentification à deux facteurs activée.",hasSwitch:!0},{id:"mode-livraison",icon:n1,title:"Mode de livraison",body:"« Par catégorie » : chaque livreur ne reçoit que les commandes des catégories qui lui sont assignées."},{id:"couleurs",icon:Q3,title:"Couleurs de l'interface",body:"Palette séparée pour l’espace admin et pour l’app client — 5 couleurs, restaurables en un clic."}];function ece(){const[e,t]=m.useState("crypto"),[n,r]=m.useState(!0),[i,o]=m.useState(!0);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Paramètres",subtitle:`${ak.length} sections — cliquez pour ouvrir`}),s.jsx("div",{style:{maxHeight:480,overflowY:"auto",paddingRight:2},children:ak.map(a=>{const l=e===a.id,c=a.id==="crypto"?n:a.id==="telegram"?i:!0,u=a.id==="crypto"?r:o;return s.jsxs(He,{onClick:()=>t(l?null:a.id),children:[s.jsxs(Pt,{children:[s.jsxs(q,{size:"0.72rem",children:[s.jsx(We,{icon:a.icon,style:{color:A.accentLight,marginRight:8,fontSize:"0.68rem"}}),a.title]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.hasSwitch&&(a.id==="crypto"||a.id==="telegram")&&s.jsx("span",{onClick:d=>d.stopPropagation(),children:s.jsx(Ole,{isOn:c,onToggle:()=>u(d=>!d)})}),a.hasSwitch&&a.id!=="crypto"&&a.id!=="telegram"&&s.jsx(We,{icon:yx,style:{color:A.success,fontSize:"0.55rem"}}),s.jsx(We,{icon:l?A7:M7,style:{color:A.text3,fontSize:"0.6rem"}})]})]}),l&&s.jsx("div",{style:{marginTop:8,paddingTop:8,borderTop:`1px solid ${A.border}`},children:s.jsx(q,{variant:"muted",size:"0.66rem",children:a.body})})]},a.id)})})]})}const tce=[{id:"1",driver:"lucas_d",message:"Guet-apens",time:"03/08/2026, 14:32",active:!0},{id:"2",driver:"emma_l",message:"Contrôle de police",time:"02/08/2026, 19:05",active:!1}];function nce(){const[e,t]=m.useState(tce),n=r=>{t(i=>i.map(o=>o.id===r?{...o,active:!1}:o))};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Alertes",subtitle:"Cliquez « Résoudre » pour tester"}),e.map(r=>s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsxs(q,{variant:r.active?"danger":"secondary",children:[s.jsx(We,{icon:Km,style:{color:r.active?A.danger:A.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${A.danger}26`:`${A.success}26`,color:r.active?A.danger:A.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(q,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsxs(Pt,{children:[s.jsx(q,{variant:"muted",size:"0.62rem",children:r.time}),r.active&&s.jsx(Te,{tone:"success",icon:Ta,onClick:()=>n(r.id),children:"Résoudre"})]})]},r.id))]})}const rce=[{id:"1",wrong:"10 rue de la paix",right:"10 Rue de la Paix, 75001 Paris"}];function ice(){const[e,t]=m.useState(rce),[n,r]=m.useState(!1),[i,o]=m.useState(""),[a,l]=m.useState(""),c=()=>{!i.trim()||!a.trim()||(t(u=>[...u,{id:String(u.length+1),wrong:i,right:a}]),o(""),l(""),r(!1))};return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Corrections d'adresses",action:s.jsx(Te,{tone:"accent",icon:Sx,onClick:()=>r(u=>!u),children:n?"Fermer":"Ajouter"})}),n&&s.jsxs(He,{children:[s.jsx("input",{placeholder:"Adresse invalide (ex: 10 rue de la paix)",value:i,onChange:u=>o(u.target.value),style:{width:"100%",background:A.bg,border:`1px solid ${A.border}`,borderRadius:8,color:A.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:6,outline:"none"}}),s.jsx("input",{placeholder:"Adresse correcte (ex: 10 Rue de la Paix, 75001 Paris)",value:a,onChange:u=>l(u.target.value),style:{width:"100%",background:A.bg,border:`1px solid ${A.border}`,borderRadius:8,color:A.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:8,outline:"none"}}),s.jsx(Te,{tone:"accent",onClick:c,children:"Ajouter la correction"})]}),e.map(u=>s.jsxs(He,{children:[s.jsx(q,{variant:"danger",size:"0.72rem",children:u.wrong}),s.jsx("div",{style:{margin:"3px 0"},children:s.jsx(We,{icon:Rle,style:{color:A.text3,fontSize:"0.62rem"}})}),s.jsx(q,{variant:"success",size:"0.72rem",children:u.right})]},u.id))]})}function oce(){const[e,t]=m.useState(!1);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Cabine — Nadia",subtitle:"Suivi des opérations"}),s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:L7,value:11,label:"Commandes actives",color:A.info}),s.jsx(Xe,{icon:z7,value:4,label:"En route",color:A.warning}),s.jsx(Xe,{icon:Ku,value:3,label:"En attente",color:A.accentLight}),s.jsx(Xe,{icon:vx,value:4,label:"Livreurs dispo",color:A.success}),s.jsx(Xe,{icon:bx,value:2,label:"Livreurs occupés",color:A.warning}),s.jsx(Xe,{icon:Ele,value:299,label:"Total terminées",color:A.success})]}),s.jsx(He,{mb:0,children:s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(D7,{icon:yx,color:A.secondary}),"Notifications Telegram"]}),s.jsx(Te,{tone:e?"outlineDanger":"accent",icon:e?N7:R7,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]})})]})}const ace=[{id:"#1042",client:"client_marie",address:"12 rue des Lilas",total:"46,00 €",label:"En attente",tone:A.warning},{id:"#1040",client:"client_lea",address:"8 avenue Foch",total:"58,50 €",label:"Livreur arrivé",tone:A.accentLight}];function sce(){const[e,t]=m.useState("#1042");return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Commandes actives",subtitle:"Cliquez une commande"}),ace.map(n=>{const r=e===n.id;return s.jsxs(He,{active:r,onClick:()=>t(r?null:n.id),children:[s.jsxs(Pt,{children:[s.jsx(q,{mono:!0,children:n.id}),s.jsx("span",{style:{background:`${n.tone}26`,color:n.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:n.label})]}),s.jsxs(q,{variant:"secondary",size:"0.7rem",children:[n.client," · ",n.address]}),s.jsx(q,{variant:"primary",size:"0.75rem",children:n.total}),r&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${A.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"accent",icon:Sle,children:"Le livreur est là"}),s.jsx(Te,{tone:"outline",icon:vx,children:"Assigner livreur"}),s.jsx(Te,{tone:"outline",icon:Xm,children:"Proposer adresse"}),s.jsx(Te,{tone:"outlineDanger",icon:E7,children:"Supprimer"})]})]},n.id)}),s.jsx(Ym,{children:"Contrairement à l'espace admin, la cabine ne peut pas modifier le contenu d'une commande — seulement la faire avancer ou la supprimer."})]})}const lce=[{name:"lucas_d",status:"busy",queue:1,total:512},{name:"emma_l",status:"available",queue:0,total:340}],O0={available:A.success,busy:A.warning,offline:A.text3},cce={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function uce(){const[e,t]=m.useState("lucas_d");return s.jsxs(Dt,{children:[s.jsxs(bn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:Xm,value:1,label:"Dispo",color:A.success}),s.jsx(Xe,{icon:bx,value:1,label:"Occupés",color:A.warning}),s.jsx(Xe,{icon:_7,value:0,label:"Offline",color:A.text3})]}),lce.map(n=>{const r=e===n.name;return s.jsxs(He,{active:r,children:[s.jsxs(Pt,{children:[s.jsxs(q,{children:[s.jsx(ll,{color:O0[n.status]}),n.name]}),s.jsx("span",{style:{background:`${O0[n.status]}26`,color:O0[n.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:cce[n.status]})]}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:["Queue: ",n.queue," · Total: ",n.total]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Te,{tone:r?"accent":"outline",icon:wx,onClick:()=>t(r?null:n.name),children:r?"Arrêter le suivi":"Suivre"})})]},n.name)}),s.jsx(Ym,{children:"La cabine visualise et suit les livreurs en direct, mais l'assignation d'une commande se fait depuis l'écran Commandes."})]})}const sk=[{id:"1",driver:"lucas_d",message:"Accès bloqué, portail fermé",time:"14:32",active:!0},{id:"2",driver:"emma_l",message:"Client injoignable",time:"hier 19:05",active:!1}];function dce(){const[e,t]=m.useState("toutes"),n=e==="toutes"?sk:sk.filter(r=>r.active);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Alertes livreurs"}),s.jsx(kx,{tabs:[{key:"toutes",label:"Toutes"},{key:"actives",label:"Actives"}],active:e,onChange:t}),n.map(r=>s.jsxs(He,{children:[s.jsxs(Pt,{children:[s.jsxs(q,{variant:r.active?"danger":"secondary",children:[s.jsx(We,{icon:Km,style:{color:r.active?A.danger:A.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${A.danger}26`:`${A.success}26`,color:r.active?A.danger:A.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(q,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsx(q,{variant:"muted",size:"0.62rem",children:r.time})]},r.id)),s.jsx(Ym,{children:"La résolution des alertes reste réservée à l'espace admin."})]})}function fce(){const[e,t]=m.useState("35 €"),[n,r]=m.useState(340);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Clients",subtitle:"Réinitialisations rapides"}),s.jsxs(He,{mb:0,children:[s.jsx(q,{variant:"primary",size:"0.82rem",children:"client_marie"}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"Marie D. · 06 12 34 56 78"}),s.jsxs("div",{style:{display:"flex",gap:12,margin:"8px 0"},children:[s.jsx(q,{variant:"danger",size:"0.68rem",children:"Annul.: 2"}),s.jsxs(q,{variant:"secondary",size:"0.68rem",mono:!0,children:["Amende: ",e]}),s.jsxs(q,{variant:"success",size:"0.68rem",mono:!0,children:["Points: ",n]})]}),s.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"outline",icon:Dp,onClick:()=>t("0 €"),children:"Reset pénalités"}),s.jsx(Te,{tone:"outline",icon:Dp,onClick:()=>r(0),children:"Reset points"})]})]}),s.jsx(Ym,{children:"Pas de création, modification ni suppression de compte ici — uniquement des remises à zéro ponctuelles."})]})}const F0=["pending","in_progress","arrived","completed"],B0={pending:{label:"En attente",tone:A.info},in_progress:{label:"En cours",tone:A.warning},arrived:{label:"Arrivé",tone:A.accentLight},completed:{label:"Terminée",tone:A.success}},pce=[{key:"available",label:"Disponible",tone:A.success},{key:"busy",label:"Occupé",tone:A.warning},{key:"offline",label:"Hors ligne",tone:A.text3}];function mce(){const[e,t]=m.useState("available"),[n,r]=m.useState("in_progress"),i=()=>{const o=F0.indexOf(n);o{const a=e===o.key;return s.jsxs("div",{onClick:()=>t(o.key),style:{cursor:"pointer",display:"flex",alignItems:"center",padding:"5px 10px",borderRadius:999,fontSize:"0.65rem",fontWeight:700,border:`1px solid ${a?o.tone:A.border}`,background:a?`${o.tone}22`:"transparent",color:a?o.tone:A.text3},children:[s.jsx(ll,{color:o.tone,size:"7px"}),o.label]},o.key)})}),s.jsx(He,{children:s.jsx("div",{style:{height:96,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${A.success}26`,color:A.success,fontSize:"0.6rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(ll,{color:A.success,size:"7px"}),"GPS actif — 48.85, 2.35"]})})}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"Mes livraisons (1) — cliquez « avancer » pour tester le cycle complet"}),s.jsxs(He,{mb:0,children:[s.jsxs(Pt,{children:[s.jsx(q,{mono:!0,children:"Commande #1041"}),s.jsx("span",{style:{background:`${B0[n].tone}26`,color:B0[n].tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:B0[n].label})]}),s.jsx(q,{variant:"secondary",size:"0.7rem",children:"client_paul · 12 rue des Lilas"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,flexWrap:"wrap"},children:[s.jsx(Te,{tone:"outline",icon:Xm,children:"Itinéraire"}),s.jsx(Te,{tone:"outline",icon:jle,children:"Appeler"})]}),s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${A.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[n==="pending"&&s.jsx(Te,{tone:"success",icon:wx,onClick:i,children:"Démarrer la livraison"}),n==="in_progress"&&s.jsx(Te,{tone:"accent",icon:bx,onClick:i,children:"J'arrive"}),n==="arrived"&&s.jsxs(s.Fragment,{children:[s.jsx(Te,{tone:"accent",icon:Ta,onClick:i,children:"Terminer"}),s.jsx(Te,{tone:"outlineDanger",icon:T7,children:"Annuler"})]}),n==="completed"&&s.jsxs(q,{variant:"success",size:"0.7rem",children:[s.jsx(We,{icon:Ta,style:{marginRight:6}}),"Livraison terminée"]})]})]})]})}const Bo={police:{title:"Contrôle de police",icon:qm,hint:"Restez calme, coopérez avec les forces de l’ordre. L’équipe est prévenue."},ambush:{title:"Guet-apens",icon:Km,hint:"Éloignez-vous du danger si possible. L’équipe et les secours sont prévenus."}};function hce(){const[e,t]=m.useState("idle"),[n,r]=m.useState("police");return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Alerte",subtitle:"Bouton d'urgence pour les livreurs"}),e==="idle"&&s.jsx(Te,{tone:"outlineDanger",icon:Km,onClick:()=>t("pick"),children:"Déclencher alerte police"}),e==="pick"&&s.jsxs(He,{mb:0,children:[s.jsx(q,{size:"0.78rem",variant:"primary",children:"Type d'alerte"}),s.jsx(q,{variant:"muted",size:"0.65rem",children:"Sélectionnez la raison de l'alerte."}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginTop:8},children:Object.keys(Bo).map(i=>s.jsxs("div",{onClick:()=>{r(i),t("confirm")},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:8,padding:"8px 10px",borderRadius:8,border:`1px solid ${A.border}`},children:[s.jsx(We,{icon:Bo[i].icon,style:{color:A.danger,fontSize:"0.8rem"}}),s.jsx("span",{style:{color:A.text,fontSize:"0.74rem"},children:Bo[i].title})]},i))}),s.jsx("div",{style:{marginTop:10},children:s.jsx(Te,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"})})]}),e==="confirm"&&s.jsxs(He,{mb:0,children:[s.jsxs(q,{size:"0.78rem",variant:"danger",children:[s.jsx(We,{icon:Bo[n].icon,style:{marginRight:6}}),"Alerte — ",Bo[n].title]}),s.jsx(q,{variant:"muted",size:"0.66rem",children:Bo[n].hint}),s.jsx(q,{variant:"primary",size:"0.74rem",children:"Confirmez-vous le déclenchement ?"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx(Te,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"}),s.jsx(Te,{tone:"outlineDanger",onClick:()=>t("sent"),children:"Déclencher"})]})]}),e==="sent"&&s.jsxs(He,{mb:0,children:[s.jsx(We,{icon:Ta,style:{color:A.success,fontSize:"1.4rem",marginBottom:8}}),s.jsx(q,{size:"0.8rem",variant:"success",children:"Alerte envoyée"}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"L'équipe admin a été notifiée immédiatement."}),s.jsx(q,{variant:"secondary",size:"0.66rem",children:Bo[n].hint}),s.jsx("div",{style:{marginTop:10},children:s.jsx(Te,{tone:"accent",onClick:()=>t("idle"),children:"Compris"})})]})]})}function lk({value:e}){return s.jsx("span",{children:[1,2,3,4,5].map(t=>s.jsx(We,{icon:Np,style:{color:t<=e?A.warning:A.border,fontSize:"0.7rem",marginRight:2}},t))})}const gce=[{client:"client_marie",order:"#1038",rating:5,comment:"Livraison rapide et sympa, merci !"},{client:"client_theo",order:"#1029",rating:4,comment:"Tout est arrivé nickel."}];function vce(){return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Mes avis"}),s.jsxs(He,{children:[s.jsx(q,{size:"1.5rem",variant:"primary",children:"4.7"}),s.jsx("div",{style:{marginTop:4},children:s.jsx(lk,{value:5})}),s.jsx(q,{variant:"muted",size:"0.66rem",children:"38 avis clients"})]}),gce.map(e=>s.jsxs(He,{children:[s.jsx(q,{size:"0.74rem",variant:"primary",children:e.client}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:["Commande ",e.order]}),s.jsx("div",{style:{margin:"4px 0"},children:s.jsx(lk,{value:e.rating})}),s.jsxs(q,{variant:"secondary",size:"0.68rem",children:["« ",e.comment," »"]})]},e.order))]})}const yce={jour:[2,4,3,6,5,8,4],semaine:[18,24,21,27,15,30,22],mois:[80,92,76,101]},bce={jour:["L","M","M","J","V","S","D"],semaine:["S1","S2","S3","S4","S5","S6","S7"],mois:["Mai","Juin","Juil","Août"]};function xce(){const[e,t]=m.useState("semaine"),n=yce[e],r=bce[e],i=m.useMemo(()=>Math.max(...n),[n]);return s.jsxs(Dt,{children:[s.jsx(wn,{title:"Mes performances"}),s.jsxs(bn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(Xe,{icon:ule,value:512,label:"Total livraisons",color:A.accentLight}),s.jsx(Xe,{icon:Ta,value:489,label:"Complétées",color:A.success}),s.jsx(Xe,{icon:Ku,value:14,label:"Livraisons du jour",color:A.accentLight}),s.jsx(Xe,{icon:Ple,value:3,label:"En attente",color:A.info})]}),s.jsxs(He,{mb:0,children:[s.jsx(q,{variant:"secondary",size:"0.72rem",children:"Évolution"}),s.jsx("div",{style:{marginTop:8},children:s.jsx(kx,{tabs:[{key:"jour",label:"Jour"},{key:"semaine",label:"Semaine"},{key:"mois",label:"Mois"}],active:e,onChange:t})}),s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:6,height:90,marginTop:6},children:n.map((o,a)=>s.jsxs("div",{style:{flex:1,textAlign:"center"},children:[s.jsx("div",{style:{height:`${o/i*70}px`,background:A.accent,borderRadius:4,transition:"height .3s ease"}}),s.jsx("div",{style:{color:A.text3,fontSize:"0.55rem",marginTop:4},children:r[a]})]},a))}),s.jsxs(q,{variant:"muted",size:"0.62rem",children:[n.reduce((o,a)=>o+a,0)," livraisons sur la période"]})]})]})}const Sce=[{id:"admin-dashboard",kicker:"Vue d'ensemble",title:"Toute votre activité en un coup d’œil",lead:"Dès l'ouverture, vous voyez l'essentiel : commandes en attente ou en route, clients et livreurs actifs — sans avoir à chercher l'information.",points:["Chiffres mis à jour en temps réel","Notifications Telegram liées à votre compte","Accès identique sur mobile et sur ordinateur"],mockup:s.jsx(Fle,{})},{id:"admin-commandes",kicker:"Suivi opérationnel",title:"Suivez chaque commande, de la validation à la livraison",lead:"Chaque commande apparaît avec son statut, son montant et le livreur assigné. Un menu d'actions par commande permet d'assigner un livreur ou de la finaliser en un geste.",points:["Archives des commandes approuvées et annulées, recherche instantanée","Export CSV pour votre comptabilité","Parrainage et fidélité pris en compte automatiquement dans le total"],mockup:s.jsx(Ble,{}),reverse:!0},{id:"admin-livraison",kicker:"Géolocalisation en direct",title:"Localisez vos livreurs en temps réel, sur la carte",lead:"La position de chaque livreur s'affiche en direct, avec la distance et le temps restant estimé. Vue d'ensemble de toute la flotte : disponible, occupée ou hors ligne.",points:["Distance et temps de trajet calculés automatiquement","Avis clients et historique de connexion par livreur",'Notification client en un tap : "le livreur est arrivé"'],mockup:s.jsx(Vle,{})},{id:"admin-produits",kicker:"Catalogue",title:"Un catalogue que vous gérez vous-même",lead:"Ajoutez, modifiez ou retirez un produit en quelques secondes : photos, vidéos, stock, description, et plusieurs tarifs par produit.",points:["Photos et vidéos multiples par produit","Plusieurs paliers de prix, activables indépendamment","Statut « à venir » pour annoncer un produit avant sa mise en vente"],mockup:s.jsx(Hle,{}),reverse:!0},{id:"admin-categories",kicker:"Organisation",title:"Organisez votre catalogue comme vous le souhaitez",lead:"Créez vos propres catégories, attribuez-leur une couleur, réordonnez-les en un clic. Une catégorie peut être marquée « prochainement » avant sa mise en ligne.",points:["Couleur personnalisée par catégorie","Réorganisation manuelle de l'ordre d'affichage","Aperçu immédiat du rendu côté client"],mockup:s.jsx(Kle,{})},{id:"admin-statistiques",kicker:"Pilotage",title:"Des chiffres clairs pour piloter votre activité",lead:"Chiffre d'affaires, produits les plus vendus, heures et jours d'affluence : tout est visualisé simplement, sans éplucher vos commandes une par une.",points:["Historique mensuel navigable, jour par jour","Classement des meilleurs produits (quantité, commandes ou revenus)","Repérage automatique du jour et de l'heure de pointe"],mockup:s.jsx(Qle,{}),reverse:!0},{id:"admin-utilisateurs",kicker:"Équipe & clients",title:"Clients, livreurs, équipe : tout au même endroit",lead:"Un seul espace pour gérer tous les comptes. Ajustez les points de fidélité, appliquez une pénalité ou consultez l'historique d'un client.",points:["Filtre par rôle et recherche instantanée","Gestion des points de fidélité et du parrainage","Suivi des annulations et de l'historique de connexion"],mockup:s.jsx(Jle,{})},{id:"admin-parametres",kicker:"Personnalisation",title:"Une plateforme qui s'adapte à votre activité",lead:"13 sections de réglages : fidélité, parrainage, pénalités, zones et horaires de livraison, paiement crypto, Telegram, couleurs de l’interface... Tout est configurable vous-même.",points:["Zones de livraison par code postal avec minimum de commande","Paiement crypto (NowPayments) et bot Telegram intégrés","Couleurs de l'espace admin et de l'app client personnalisables"],mockup:s.jsx(ece,{}),reverse:!0},{id:"admin-alertes",kicker:"Réactivité",title:"Réagissez immédiatement en cas de problème",lead:"Si un livreur rencontre un souci sur le terrain, l'alerte remonte instantanément — avec son message et l'horodatage — jusqu'à ce qu'elle soit résolue.",points:["Distinction claire entre alerte active et résolue","Historique complet conservé"],mockup:s.jsx(nce,{})},{id:"admin-adresses",kicker:"Fiabilité livraison",title:"Zéro commande perdue à cause d’une adresse mal saisie",lead:"Quand un client tape une adresse imprécise, corrigez-la une bonne fois pour toutes : les prochaines commandes utiliseront automatiquement la bonne adresse.",points:["Association simple « adresse saisie → adresse correcte »","Moins d’erreurs de livraison, moins d’allers-retours"],mockup:s.jsx(ice,{}),reverse:!0}],wce=[{id:"cabine-dashboard",kicker:"Opérations du jour",title:"Un espace dédié pour votre équipe en cuisine",lead:"Vos préparateurs voient uniquement ce qui les concerne : commandes en cours, livreurs disponibles — sans chiffre d'affaires ni réglages sensibles.",points:["Aucune donnée financière exposée","Notifications Telegram propres à chaque compte","Rafraîchissement en direct"],mockup:s.jsx(oce,{})},{id:"cabine-commandes",kicker:"Suivi des commandes",title:"Faire avancer une commande, en toute sécurité",lead:"La cabine assigne un livreur, prévient le client, propose une correction d’adresse — mais ne peut ni modifier ni voir les réglages de la commande.",points:["Actions limitées et guidées, pas de menu complexe","Confirmation demandée avant chaque action sensible","Zéro risque de modification accidentelle"],mockup:s.jsx(sce,{}),reverse:!0},{id:"cabine-livraison",kicker:"Suivi livreurs",title:"Suivre les livreurs en direct, sans les gérer",lead:"La cabine voit la carte, la disponibilité et la position de chaque livreur pour coordonner la préparation — la gestion des comptes reste réservée à l’admin.",points:["Carte et statuts en temps réel","Suivi d’itinéraire en un clic","Aucun accès à la création ou modification de compte"],mockup:s.jsx(uce,{})},{id:"cabine-alertes",kicker:"Information",title:"Rester informé, sans pouvoir de décision",lead:"Les alertes remontées par les livreurs sont visibles par la cabine pour garder tout le monde informé — seule l’équipe admin peut les résoudre.",points:['Filtre "Toutes" / "Actives"',"Lecture seule, aucune action destructrice possible"],mockup:s.jsx(dce,{}),reverse:!0},{id:"cabine-utilisateurs",kicker:"Service client",title:"Un geste commercial, sans accès aux comptes",lead:"Besoin d’annuler une pénalité ou d’offrir des points en guise de geste commercial ? La cabine peut le faire en un clic, sans jamais toucher au reste du compte client.",points:["Reset pénalités et points uniquement","Aucune création, édition ou suppression de compte"],mockup:s.jsx(fce,{})}],kce=[{id:"livreur-dashboard",kicker:"Terrain",title:"Le compagnon de route de vos livreurs",lead:"Statut en un tap (disponible / occupé / hors ligne), position GPS en direct, et un cycle de livraison guidé étape par étape jusqu’à la remise au client.",points:["Cycle complet : Démarrer → J’arrive → Terminer","Appel client et itinéraire en un tap","Gestion des cas « client absent » avec compte à rebours"],mockup:s.jsx(mce,{})},{id:"livreur-alertes",kicker:"Sécurité",title:"Un bouton d’urgence, toujours à portée de main",lead:"En cas de contrôle de police ou de situation dangereuse, le livreur alerte l’équipe admin en 2 taps — avec des consignes de sécurité affichées immédiatement.",points:["Deux types d’alerte : contrôle de police / guet-apens","Confirmation avant envoi pour éviter les fausses alertes","Consignes de sécurité affichées après envoi"],mockup:s.jsx(hce,{}),reverse:!0},{id:"livreur-avis",kicker:"Reconnaissance",title:"Chaque livreur voit ses propres avis clients",lead:"Note moyenne et commentaires clients, pour valoriser le travail de vos livreurs et repérer rapidement un souci de service.",points:["Note moyenne calculée automatiquement","Commentaires clients horodatés"],mockup:s.jsx(vce,{})},{id:"livreur-stats",kicker:"Performance",title:"Un livreur qui suit sa propre performance reste motivé",lead:"Nombre de livraisons, taux de complétion, évolution jour / semaine / mois : chaque livreur a une vision claire de son activité.",points:["Bascule Jour / Semaine / Mois","Totaux recalculés automatiquement"],mockup:s.jsx(xce,{}),reverse:!0}],ck=[{key:"admin",label:"Espace Admin",icon:zle,features:Sce,blurb:"Contrôle total de la plateforme."},{key:"cabine",label:"Espace Cabine",icon:vle,features:wce,blurb:"Équipe de préparation, accès restreint."},{key:"livreur",label:"Espace Livreur",icon:qm,features:kce,blurb:"Application dédiée aux livreurs."}];function Cce(){const[e,t]=m.useState("admin"),n=ck.find(r=>r.key===e);return s.jsxs(ne,{children:[s.jsx(ne,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:14,md:20},children:s.jsx(fn,{maxW:"container.lg",children:s.jsxs(we,{spacing:5,textAlign:"center",align:"center",children:[s.jsxs(ge,{spacing:2,children:[s.jsx(ne,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",bg:"primary.500",color:"white",children:"3 espaces, 1 seule plateforme"}),s.jsx(ne,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",borderWidth:"1px",children:"Démo interactive"})]}),s.jsx(ct,{size:"2xl",children:"Admin, cabine, livreur : chacun son espace"}),s.jsx(K,{fontSize:"lg",color:"gray.500",maxW:"2xl",children:"Chaque rôle a exactement les écrans dont il a besoin — rien de plus. Choisissez un espace ci-dessous et essayez les aperçus : ils sont interactifs, comme dans l'application réelle."})]})})}),s.jsx(ne,{borderTopWidth:"1px",borderBottomWidth:"1px",bg:"chakra-subtle-bg",position:"sticky",top:0,zIndex:2,children:s.jsxs(fn,{maxW:"container.lg",py:{base:2,md:3},children:[s.jsx(ge,{spacing:2,mb:{base:0,md:2},overflowX:"auto",children:ck.map(r=>s.jsx(xe,{size:"sm",leftIcon:s.jsx(We,{icon:r.icon}),colorScheme:e===r.key?"primary":void 0,variant:e===r.key?"solid":"outline",onClick:()=>t(r.key),flexShrink:0,children:r.label},r.key))}),s.jsx(vT,{spacing:4,shouldWrapChildren:!0,display:{base:"none",md:"flex"},children:n.features.map(r=>s.jsx(Bb,{children:s.jsx(K,{as:"a",href:`#${r.id}`,fontSize:"xs",fontWeight:"medium",color:"gray.500",whiteSpace:"nowrap",_hover:{color:"primary.500",textDecoration:"underline"},children:r.kicker})},r.id))})]})}),s.jsxs(fn,{maxW:"container.lg",children:[s.jsx(ne,{py:6,children:s.jsx(K,{color:"gray.500",fontSize:"sm",textAlign:"center",children:n.blurb})}),n.features.map(r=>s.jsxs(we,{id:r.id,direction:{base:"column",md:r.reverse?"row-reverse":"row"},spacing:{base:10,md:16},align:"center",py:{base:14,md:20},borderBottomWidth:"1px",scrollMarginTop:"120px",children:[s.jsxs(ne,{flex:"0.9",minW:0,children:[s.jsx(K,{fontSize:"xs",fontWeight:"extrabold",letterSpacing:"wide",textTransform:"uppercase",color:"primary.500",mb:2,children:r.kicker}),s.jsx(ct,{size:"lg",mb:4,children:r.title}),s.jsx(K,{color:"gray.500",mb:5,children:r.lead}),s.jsx(Mu,{spacing:2,children:r.points.map(i=>s.jsxs(Ab,{fontSize:"sm",color:"gray.600",display:"flex",children:[s.jsx(F_,{as:()=>s.jsx(We,{icon:Ta}),color:"green.400",mt:1,mr:2}),s.jsx("span",{children:i})]},i))})]}),s.jsx(ne,{flex:"1",minW:0,w:"full",children:r.mockup})]},r.id))]}),s.jsx(ne,{bg:"gray.900",color:"white",py:20,textAlign:"center",children:s.jsxs(fn,{maxW:"container.md",children:[s.jsx(ct,{size:"xl",mb:4,children:"Prêt à essayer votre propre espace admin ?"}),s.jsx(K,{color:"whiteAlpha.700",mb:8,children:"Une démo dédiée et isolée, prête en quelques minutes, pour tester la plateforme en conditions réelles."}),s.jsxs(bn,{columns:{base:1,sm:2},spacing:4,maxW:"sm",mx:"auto",children:[s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",size:"lg",children:"Créer un compte"}),s.jsx(xe,{as:Zt,to:"/tarifs",variant:"outline",colorScheme:"whiteAlpha",size:"lg",children:"Voir les tarifs"})]})]})})]})}const O7="";class Ie extends Error{constructor(n,r){super(r);Vx(this,"status");this.status=n}}async function qe(e,t,n){const r={"Content-Type":"application/json"},i=await fetch(`${O7}/api/v1${t}`,{method:e,headers:r,credentials:"include",body:n?JSON.stringify(n):void 0});if(!i.ok){const o=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Ie(i.status,o.error??`HTTP ${i.status}`)}return i.status===204?void 0:await i.json()}const je={login:(e,t,n)=>qe("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>qe("POST","/auth/register",{username:e,password:t}),me:()=>qe("GET","/auth/me"),logout:()=>qe("POST","/auth/logout"),listDemos:()=>qe("GET","/demos"),listMyDemos:()=>qe("GET","/demos/mine"),getDemo:e=>qe("GET",`/demos/${e}`),createDemo:e=>qe("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.tomtomApiKey?{tomtom_api_key:e.tomtomApiKey}:{},...e.tomtomApiKey1?{tomtom_api_key_1:e.tomtomApiKey1}:{},...e.tomtomApiKey2?{tomtom_api_key_2:e.tomtomApiKey2}:{},...e.tomtomApiKey3?{tomtom_api_key_3:e.tomtomApiKey3}:{},...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=>qe("POST",`/demos/${e}/extend`),deleteDemo:e=>qe("DELETE",`/demos/${e}`),setDemoDomain:(e,t)=>qe("POST",`/demos/${e}/domain`,{domain:t}),transferDemoToPremium:e=>qe("POST",`/demos/${e}/premium`),listCodes:()=>qe("GET","/codes"),listPremiumUsers:()=>qe("GET","/premium"),createCode:e=>qe("POST","/codes",{username:e}),addCode:e=>qe("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>qe("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>qe("GET","/messages"),getDemoDetails:e=>qe("POST","/demos/details",{namespace:e}),updateUsername:e=>qe("POST","/profile/username",{username:e}),updatePassword:e=>qe("POST","/profile/password",{password:e}),getTelegram:()=>qe("GET","/profile/telegram"),setTelegram:e=>qe("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>qe("GET","/profile/alerts"),setAlertSettings:e=>qe("POST","/profile/alerts",e),testAlertSettings:e=>qe("POST","/profile/alerts/test",e),listAppDownloads:()=>qe("GET","/apps")};function jce(e){return`${O7}/api/v1/apps/${encodeURIComponent(e)}`}const F7=m.createContext(null);function Pce({children:e}){const[t,n]=m.useState(null),[r,i]=m.useState(null),[o,a]=m.useState(!0);m.useEffect(()=>{let p=!0;return je.me().then(h=>{p&&(n(h.role),i(h.type_abonnement))}).catch(()=>{}).finally(()=>{p&&a(!1)}),()=>{p=!1}},[]);const l=m.useCallback(async(p,h,v)=>{await je.login(p,h,v);const b=await je.me();n(b.role),i(b.type_abonnement)},[]),c=m.useCallback(async(p,h)=>{await je.register(p,h);const v=await je.me();n(v.role),i(v.type_abonnement)},[]),u=m.useCallback(async()=>{try{await je.logout()}finally{n(null),i(null)}},[]),d=m.useCallback(async()=>{const p=await je.me();i(p.type_abonnement)},[]),f=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:t==="admin",isClient:t==="client",isPremium:r==="premium",role:t,typeAbo:r,initializing:o,login:l,register:c,logout:u,refreshAbo:d}),[t,r,o,l,c,u,d]);return s.jsx(F7.Provider,{value:f,children:e})}function zo(){const e=m.useContext(F7);if(!e)throw new Error("useAuth doit être utilisé dans ");return e}function Ea(e){const{toggleColorMode:t}=Pu(),n=gp("Passer en mode sombre","Passer en mode clair");return s.jsx(vn,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:gp(s.jsx(Tce,{}),s.jsx(_ce,{}))})}function _ce(){return s.jsxs(At,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[s.jsx("circle",{cx:"12",cy:"12",r:"4"}),s.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 Tce(){return s.jsx(At,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:s.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}const sn=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return s.jsxs(Tb,{children:[s.jsx(bt,{ref:t,type:n?"text":"password",...e}),s.jsx(Em,{children:s.jsx(vn,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(We,{icon:n?$le:dle}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(i=>!i)})})]})});sn.displayName="PasswordInput";function Ece(){const{login:e}=zo(),t=Qn(),n=pr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ie?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(fn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(ne,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(ne,{textAlign:"center",children:[s.jsx(ct,{size:"lg",children:"Espace client"}),s.jsx(K,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),s.jsx(ub,{children:s.jsx(db,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(bt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(sn,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(xe,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsxs(ge,{justify:"center",spacing:1,children:[s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),s.jsx(xe,{as:Zt,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),s.jsx(xe,{as:Zt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function Ace(){const{login:e}=zo(),t=Qn(),n=pr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ie?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(fn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(ne,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(ne,{textAlign:"center",children:[s.jsx(ct,{size:"lg",children:"Espace admin"}),s.jsx(K,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),s.jsx(ub,{children:s.jsx(db,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(bt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(sn,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(xe,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsx(xe,{as:Zt,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function $ce(){const{register:e}=zo(),t=Qn(),n=pr(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(""),[u,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=o.length>=10,h=o===l,v=f&&p&&h,b=async x=>{if(x.preventDefault(),!!v){d(!0);try{await e(r.trim(),o),t("/app",{replace:!0})}catch(y){const g=y instanceof Ie?y.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:g})}finally{d(!1)}}};return s.jsxs(fn,{maxW:"sm",py:16,position:"relative",children:[s.jsx(ne,{position:"absolute",top:4,right:4,children:s.jsx(Ea,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(ne,{textAlign:"center",children:[s.jsx(ct,{size:"lg",children:"Créer un compte"}),s.jsx(K,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),s.jsx(ub,{children:s.jsx(db,{children:s.jsx("form",{onSubmit:b,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,isInvalid:r.length>0&&!f,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(bt,{value:r,onChange:x=>i(x.target.value),autoComplete:"username"}),s.jsx(ru,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:o.length>0&&!p,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(sn,{value:o,onChange:x=>a(x.target.value),autoComplete:"new-password"}),s.jsx(ru,{children:"10 caractères minimum."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:l.length>0&&!h,children:[s.jsx(Ce,{children:"Confirmer le mot de passe"}),s.jsx(sn,{value:l,onChange:x=>c(x.target.value),autoComplete:"new-password"})]}),s.jsx(xe,{type:"submit",colorScheme:"primary",isLoading:u,isDisabled:!v,children:"Créer mon compte"})]})})})}),s.jsxs(ge,{justify:"center",spacing:1,children:[s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),s.jsx(xe,{as:Zt,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}const qu=_m({displayName:"EditIcon",path:s.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[s.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),B7=_m({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"}),W7=_m({viewBox:"0 0 14 14",path:s.jsx("g",{fill:"currentColor",children:s.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 Qm(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 Zm(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function uk(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 zce(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function dk(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${i} h`;const o=Math.floor(n%36e5/6e4);return`${i} h ${o} min`}function Rce(e){if(e<1024)return`${e} o`;const t=["Ko","Mo","Go"];let n=e/1024,r=0;for(;n>=1024&&r{o(""),l("admin"),u(""),f(!1),h(""),b(""),y(!1),S(""),k(""),_(!1),z(""),W(""),ee(""),L(""),R(!1),M(""),Z(""),oe(""),ue(""),Be("failover"),te(""),ze(""),ot("local"),ut(""),$t("")},mr=()=>{Se||(Ot(),t())},ei=async()=>{if(!i.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||c.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(ye==="s3"&&(!ve.trim()||!Ve.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(N&&!F.trim()&&!ae.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}if(P&&!j.trim()){r({status:"warning",title:"La clé API TomTom principale est requise"});return}const se={username:i.trim(),adminUsername:a.trim(),adminPassword:c.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&v.trim()||void 0,nowPaymentsApiKey:x&&g.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:ye,...ye==="s3"?{s3Bucket:ve.trim(),s3Endpoint:Ve.trim()}:{},...P?{tomtomApiKey:j.trim(),tomtomApiKey1:$.trim()||void 0,tomtomApiKey2:Y.trim()||void 0,tomtomApiKey3:I.trim()||void 0}:{},...N?{lbBot1Username:F.trim()||void 0,lbBot1Token:G.trim()||void 0,lbBot2Username:ae.trim()||void 0,lbBot2Token:Q.trim()||void 0,lbStrategy:ce,lbJwtTtlSeconds:Ze.trim()||void 0,lbHealthCheckInterval:re.trim()||void 0}:{}};kn(!0);try{await je.createDemo(se),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),Ot(),n(),t()}catch(ti){const Ro=ti instanceof Ie?ti.message:"Erreur";r({status:"error",title:"Lancement impossible",description:Ro})}finally{kn(!1)}};return s.jsxs(Du,{isOpen:e,onClose:mr,size:"lg",closeOnOverlayClick:!Se,children:[s.jsx(yl,{}),s.jsxs(zm,{children:[s.jsx(vl,{children:"Nouvelle démo"}),s.jsx(Ou,{isDisabled:Se}),s.jsx(gl,{children:s.jsxs(we,{spacing:5,children:[s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{children:"Username"}),s.jsx(bt,{placeholder:"ex: acme-corp",value:i,onChange:se=>o(se.target.value)})]}),s.jsxs(we,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[s.jsx(K,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),s.jsx(K,{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."}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Username"}),s.jsx(bt,{value:a,onChange:se=>l(se.target.value)})]}),s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Mot de passe"}),s.jsx(sn,{placeholder:"8 caractères min.",value:c,onChange:se=>u(se.target.value),autoComplete:"off"})]})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"Bot Telegram"}),s.jsx(nc,{isChecked:d,onChange:se=>f(se.target.checked)})]})}),d&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Nom du bot (username)"}),s.jsx(bt,{placeholder:"mon_bot",value:p,onChange:se=>h(se.target.value)})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Token bot Telegram"}),s.jsx(sn,{placeholder:"123456:ABC-DEF...",value:v,onChange:se=>b(se.target.value),autoComplete:"off"})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"NowPayments (paiement crypto)"}),s.jsx(nc,{isChecked:x,onChange:se=>y(se.target.checked)})]})}),x&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API NowPayments"}),s.jsx(sn,{placeholder:"clé API du compte marchand",value:g,onChange:se=>S(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Secret IPN NowPayments"}),s.jsx(sn,{placeholder:"secret configuré côté NowPayments",value:w,onChange:se=>k(se.target.value),autoComplete:"off"}),s.jsx(K,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"TomTom (GPS livreur)"}),s.jsx(nc,{isChecked:P,onChange:se=>_(se.target.checked)})]})}),P&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(K,{fontSize:"xs",color:"gray.500",children:"Géocodage, itinéraire et ETA des livreurs. Jusqu'à 4 clés — le backend bascule automatiquement sur la suivante si une clé atteint son quota."}),s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom (principale)"}),s.jsx(sn,{placeholder:"clé API TomTom",value:j,onChange:se=>z(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #2 (optionnelle)"}),s.jsx(sn,{placeholder:"clé de secours",value:$,onChange:se=>W(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #3 (optionnelle)"}),s.jsx(sn,{placeholder:"clé de secours",value:Y,onChange:se=>ee(se.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #4 (optionnelle)"}),s.jsx(sn,{placeholder:"clé de secours",value:I,onChange:se=>L(se.target.value),autoComplete:"off"})]})]}),s.jsx(ke,{isDisabled:Se,children:s.jsxs(ge,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"Load-balancer Telegram"}),s.jsx(nc,{isChecked:N,onChange:se=>R(se.target.checked)})]})}),N&&s.jsxs(we,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(K,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 1 — username"}),s.jsx(bt,{placeholder:"mon_bot_1",value:F,onChange:se=>M(se.target.value)})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 1 — token"}),s.jsx(sn,{placeholder:"123456:ABC-DEF...",value:G,onChange:se=>Z(se.target.value),autoComplete:"off"})]})]}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),s.jsx(bt,{placeholder:"mon_bot_2",value:ae,onChange:se=>oe(se.target.value)})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 2 — token"}),s.jsx(sn,{placeholder:"123456:ABC-DEF...",value:Q,onChange:se=>ue(se.target.value),autoComplete:"off"})]})]}),s.jsxs(ge,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Stratégie de répartition"}),s.jsxs(fT,{value:ce,onChange:se=>Be(se.target.value),children:[s.jsx("option",{value:"failover",children:"Failover"}),s.jsx("option",{value:"roundrobin",children:"Round-robin"}),s.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"TTL JWT (secondes)"}),s.jsx(bt,{placeholder:"300",value:Ze,onChange:se=>te(se.target.value),type:"number"})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Intervalle health-check (s)"}),s.jsx(bt,{placeholder:"30",value:re,onChange:se=>ze(se.target.value),type:"number"})]})]})]}),s.jsxs(ke,{isDisabled:Se,children:[s.jsx(Ce,{children:"Stockage des fichiers"}),s.jsx(uT,{value:ye,onChange:se=>ot(se),children:s.jsxs(we,{direction:"row",spacing:6,children:[s.jsx(Av,{value:"local",children:"Local (disque du cluster)"}),s.jsx(Av,{value:"s3",children:"S3"})]})})]}),ye==="s3"&&s.jsxs(we,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Nom du bucket"}),s.jsx(bt,{placeholder:"mon-bucket-demo",value:ve,onChange:se=>ut(se.target.value)})]}),s.jsxs(ke,{isRequired:!0,isDisabled:Se,children:[s.jsx(Ce,{fontSize:"sm",children:"Endpoint S3"}),s.jsx(bt,{placeholder:"https://s3.exemple.com",value:Ve,onChange:se=>$t(se.target.value)})]})]})]})}),s.jsxs(Rm,{children:[s.jsx(xe,{variant:"ghost",mr:3,onClick:mr,isDisabled:Se,children:"Annuler"}),s.jsx(xe,{colorScheme:"primary",onClick:ei,isLoading:Se,children:"Lancer la démo"})]})]})]})}function U7({demo:e,onClose:t,onSaved:n}){const r=pr(),[i,o]=m.useState(""),[a,l]=m.useState(!1);m.useEffect(()=>{o((e==null?void 0:e.custom_domain)??"")},[e]);const c=()=>{a||t()},u=async()=>{if(e){l(!0);try{await je.setDemoDomain(e.id,i.trim()),r({status:"success",title:"Domaine mis à jour"}),n(),t()}catch(d){const f=d instanceof Ie?d.message:"Erreur";r({status:"error",title:"Mise à jour impossible",description:f})}finally{l(!1)}}};return s.jsxs(Du,{isOpen:!!e,onClose:c,closeOnOverlayClick:!a,children:[s.jsx(yl,{}),s.jsxs(zm,{children:[s.jsx(vl,{children:"Domaine de la plateforme"}),s.jsx(Ou,{isDisabled:a}),s.jsx(gl,{children:s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Domaine personnalisé"}),s.jsx(bt,{placeholder:"boutique.mon-domaine.com",value:i,onChange:d=>o(d.target.value),isDisabled:a,fontFamily:"mono"}),s.jsxs(ru,{children:["Laissez vide pour revenir au domaine par défaut (",e==null?void 0:e.namespace,".). 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."]})]})}),s.jsxs(Rm,{children:[s.jsx(xe,{variant:"ghost",mr:3,onClick:c,isDisabled:a,children:"Annuler"}),s.jsx(xe,{colorScheme:"primary",onClick:u,isLoading:a,children:"Enregistrer"})]})]})]})}const Ice=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}],Mce=[{key:"lb",label:"Load-balancer Telegram"}];function Cx({state:e}){const t=Mce.filter(o=>e[o.key].phase!==""),n=[...Ice,...t],r=n.every(o=>e[o.key].phase==="Running"),i=n.filter(o=>e[o.key].phase!=="Running").length;return s.jsxs(we,{spacing:3,children:[s.jsxs(ge,{spacing:2,children:[s.jsx(ne,{w:"8px",h:"8px",borderRadius:"full",bg:r?"green.400":"red.400",flexShrink:0}),s.jsx(K,{fontSize:"sm",fontWeight:"medium",children:r?"Tous les services sont opérationnels":`${i} service${i>1?"s":""} indisponible${i>1?"s":""}`})]}),s.jsx(bn,{columns:{base:1,lg:4},spacing:3,children:n.map(o=>s.jsx(Lce,{title:o.label,cs:e[o.key]},o.key))})]})}function Lce({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 s.jsxs(ne,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",minW:0,children:[s.jsxs(ge,{justify:"space-between",mb:3,children:[s.jsx(K,{fontSize:"sm",fontWeight:"semibold",noOfLines:1,children:e}),s.jsxs(ge,{spacing:1.5,children:[s.jsx(ne,{w:"7px",h:"7px",borderRadius:"full",bg:`${uk(t.phase)}.400`,flexShrink:0}),s.jsx(dn,{colorScheme:uk(t.phase),fontSize:"10px",children:zce(t.phase)})]})]}),s.jsxs(we,{spacing:2,children:[s.jsxs(ne,{children:[s.jsxs(St,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(K,{children:"CPU"}),s.jsxs(K,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),s.jsx(_p,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),s.jsxs(ne,{children:[s.jsxs(St,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(K,{children:"Mémoire"}),s.jsxs(K,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),s.jsx(_p,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function jx(e){return s.jsx(At,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}function H7({demo:e,isOpen:t,onToggle:n,detailsLoading:r,details:i,onEditDomain:o,expiresLabel:a,actions:l}){return s.jsxs(ne,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",bg:"bg-surface",children:[s.jsxs(ne,{p:4,cursor:"pointer",onClick:n,_active:{bg:"chakra-subtle-bg"},children:[s.jsxs(ge,{justify:"space-between",align:"start",children:[s.jsxs(ge,{spacing:2,minW:0,flex:"1",children:[s.jsx(At,{as:jx,boxSize:3,color:"gray.400",flexShrink:0,transform:t?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{fontFamily:"mono",fontSize:"sm",noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",children:e.namespace})]}),s.jsx(dn,{colorScheme:Qm(e.status),flexShrink:0,children:Zm(e.status)})]}),s.jsxs(we,{spacing:1,mt:3,fontSize:"sm",children:[s.jsxs(ge,{justify:"space-between",children:[s.jsx(K,{color:"gray.500",children:"Client"}),s.jsx(K,{children:e.username||"—"})]}),s.jsxs(ge,{justify:"space-between",align:"start",children:[s.jsx(K,{color:"gray.500",flexShrink:0,children:"URL"}),s.jsxs(ge,{spacing:1,minW:0,flex:"1",justify:"flex-end",children:[e.status==="ready"?s.jsx(_o,{href:e.url,color:"primary.500",isExternal:!0,noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",onClick:c=>c.stopPropagation(),children:e.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(vn,{"aria-label":"Modifier le domaine",icon:s.jsx(qu,{}),size:"xs",variant:"ghost",flexShrink:0,onClick:c=>{c.stopPropagation(),o()}})]})]}),a&&s.jsxs(ge,{justify:"space-between",children:[s.jsx(K,{color:"gray.500",children:"Expire dans"}),s.jsx(K,{children:a})]})]}),l&&s.jsx(ge,{mt:3,spacing:2,flexWrap:"wrap",rowGap:2,onClick:c=>c.stopPropagation(),children:l})]}),s.jsx(zu,{in:t,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ne,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:r&&!i?s.jsx(ge,{justify:"center",py:2,children:s.jsx(yn,{size:"sm"})}):i?s.jsx(Cx,{state:i.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})]})}const Nce=5e3,Dce=5e3;function Oce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(null),[p,h]=m.useState(null),[v,b]=m.useState(!1),[x,y]=m.useState(null),[g,S]=m.useState(null),[w,k]=m.useState(null),[P,_]=m.useState(!1),j=m.useCallback(async()=>{try{const L=await je.listDemos();r((L.items??[]).filter(N=>N.type_abonnement!=="premium"&&N.status!=="expired"))}catch(L){L instanceof Ie&&L.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{j();const L=setInterval(()=>void j(),Nce);return()=>clearInterval(L)},[j]);const z=async()=>{if(!p)return;const L=p;l(L.id);try{await je.extendDemo(L.id),e({status:"success",title:"Démo prolongée de 30 jours"}),h(null),await j()}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:R})}finally{l(null)}},$=async()=>{if(!c)return;const L=c;l(L.id);try{await je.deleteDemo(L.id),e({status:"success",title:"Démo détruite"}),u(null),await j()}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"Destruction impossible",description:R})}finally{l(null)}},W=async()=>{if(!d)return;const L=d;l(L.id);try{await je.transferDemoToPremium(L.id),e({status:"success",title:"Démo passée en premium",description:"La migration des données tourne en tâche de fond."}),f(null),await j()}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"Passage en premium impossible",description:R})}finally{l(null)}},Y=async L=>{if(g===L.id){S(null),k(null);return}S(L.id),k(null),_(!0);try{const N=await je.getDemoDetails(L.namespace);k(N)}catch(N){const R=N instanceof Ie?N.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:R}),S(null)}finally{_(!1)}};m.useEffect(()=>{const L=n.find(F=>F.id===g);if(!L)return;const N=L.namespace,R=setInterval(()=>{je.getDemoDetails(N).then(k).catch(()=>{})},Dce);return()=>clearInterval(R)},[g]);const ee=L=>L!=="expired"&&L!=="failed",I=L=>s.jsxs(s.Fragment,{children:[s.jsx(xe,{size:"sm",variant:"outline",isDisabled:!ee(L.status)||a===L.id,onClick:N=>{N.stopPropagation(),h(L)},children:"+30 j"}),s.jsx(xe,{size:"sm",colorScheme:"purple",variant:"outline",isDisabled:!ee(L.status)||a===L.id,onClick:N=>{N.stopPropagation(),f(L)},children:"Passer en premium"}),s.jsx(xe,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!ee(L.status),onClick:N=>{N.stopPropagation(),u(L)},children:"Détruire"})]});return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",gap:4,wrap:"wrap",children:[s.jsx(ct,{size:"md",mr:4,children:"Démos"}),s.jsx(Eo,{}),s.jsx(xe,{colorScheme:"primary",onClick:()=>b(!0),children:"Nouvelle démo"})]}),s.jsx(V7,{isOpen:v,onClose:()=>b(!1),onCreated:()=>void j()}),i?s.jsx(yn,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):s.jsxs(s.Fragment,{children:[s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"Namespace"}),s.jsx(_t,{children:"Client"}),s.jsx(_t,{children:"Statut"}),s.jsx(_t,{children:"URL"}),s.jsx(_t,{children:"Expire dans"}),s.jsx(_t,{})]})}),s.jsx(Ep,{children:n.map(L=>{const N=g===L.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Vr,{cursor:"pointer",bg:N?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>Y(L),children:[s.jsx(xt,{fontFamily:"mono",children:s.jsxs(ge,{spacing:2,children:[s.jsx(At,{as:jx,boxSize:3,color:"gray.400",transform:N?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{children:L.namespace})]})}),s.jsx(xt,{children:L.username?s.jsx(K,{children:L.username}):s.jsx(K,{color:"gray.400",children:"—"})}),s.jsx(xt,{children:s.jsx(dn,{colorScheme:Qm(L.status),children:Zm(L.status)})}),s.jsx(xt,{children:s.jsxs(ge,{spacing:1,children:[L.status==="ready"?s.jsx(_o,{href:L.url,color:"primary.500",isExternal:!0,onClick:R=>R.stopPropagation(),children:L.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(vn,{"aria-label":"Modifier le domaine",icon:s.jsx(qu,{}),size:"xs",variant:"ghost",onClick:R=>{R.stopPropagation(),y(L)}})]})}),s.jsx(xt,{children:ee(L.status)?dk(L.expires_at):"—"}),s.jsx(xt,{textAlign:"right",children:s.jsx(ge,{justify:"flex-end",children:I(L)})})]}),s.jsx(Vr,{children:s.jsx(xt,{p:0,border:N?void 0:"none",colSpan:6,children:s.jsx(zu,{in:N,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ne,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:P&&!w?s.jsx(St,{justify:"center",py:4,children:s.jsx(yn,{size:"sm"})}):w?s.jsx(Cx,{state:w.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},L.id)})})]})}),s.jsx(we,{spacing:3,display:{base:"flex",md:"none"},children:n.map(L=>s.jsx(H7,{demo:L,isOpen:g===L.id,onToggle:()=>Y(L),detailsLoading:P,details:g===L.id?w:null,onEditDomain:()=>y(L),expiresLabel:ee(L.status)?dk(L.expires_at):"—",actions:I(L)},L.id))})]}),s.jsxs(Of,{isOpen:!!p,title:"Prolonger la démo de 30 jours ?",confirmLabel:"Prolonger",confirmColorScheme:"primary",isLoading:!!p&&a===p.id,onConfirm:z,onClose:()=>h(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:p==null?void 0:p.namespace})," ","verra sa date d'expiration repoussée de 30 jours."]}),s.jsxs(Of,{isOpen:!!c,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:$,onClose:()=>u(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]}),s.jsxs(Of,{isOpen:!!d,title:"Passer cette démo en premium ?",confirmLabel:"Passer en premium",confirmColorScheme:"purple",isLoading:!!d&&a===d.id,onConfirm:W,onClose:()=>f(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:d==null?void 0:d.namespace})," ","n'expirera plus et sera migrée vers un namespace dédié (données conservées). Cette opération tourne en tâche de fond et n'est pas instantanée."]}),s.jsx(U7,{demo:x,onClose:()=>y(null),onSaved:()=>void j()})]})}const Fce=5e3,Bce=5e3;function Wce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[v,b]=m.useState(null),[x,y]=m.useState(null),[g,S]=m.useState(!1),w=m.useCallback(async()=>{try{const j=await je.listDemos();r((j.items??[]).filter(z=>z.type_abonnement==="premium"&&z.status!=="expired"))}catch(j){j instanceof Ie&&j.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{w();const j=setInterval(()=>void w(),Fce);return()=>clearInterval(j)},[w]);const k=async()=>{if(!c)return;const j=c;l(j.id);try{await je.deleteDemo(j.id),e({status:"success",title:"Plateforme détruite"}),u(null),await w()}catch(z){const $=z instanceof Ie?z.message:"Erreur";e({status:"error",title:"Destruction impossible",description:$})}finally{l(null)}},P=async j=>{if(v===j.id){b(null),y(null);return}b(j.id),y(null),S(!0);try{const z=await je.getDemoDetails(j.namespace);y(z)}catch(z){const $=z instanceof Ie?z.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:$}),b(null)}finally{S(!1)}};m.useEffect(()=>{const j=n.find(W=>W.id===v);if(!j)return;const z=j.namespace,$=setInterval(()=>{je.getDemoDetails(z).then(y).catch(()=>{})},Bce);return()=>clearInterval($)},[v]);const _=j=>s.jsx(xe,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:a===j.id,onClick:z=>{z.stopPropagation(),u(j)},children:"Détruire"});return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:2,align:"center",gap:4,wrap:"wrap",children:[s.jsx(ct,{size:"md",mr:4,children:"Plateforme Premium"}),s.jsx(Eo,{}),s.jsx(xe,{colorScheme:"primary",onClick:()=>f(!0),children:"Déployer une plateforme"})]}),s.jsx(K,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),s.jsx(V7,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void w()}),i?s.jsx(yn,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune démo premium pour le moment."}):s.jsxs(s.Fragment,{children:[s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"Namespace"}),s.jsx(_t,{children:"Client"}),s.jsx(_t,{children:"Statut"}),s.jsx(_t,{children:"URL"}),s.jsx(_t,{})]})}),s.jsx(Ep,{children:n.map(j=>{const z=v===j.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Vr,{cursor:"pointer",bg:z?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>P(j),children:[s.jsx(xt,{fontFamily:"mono",children:s.jsxs(ge,{spacing:2,children:[s.jsx(At,{as:jx,boxSize:3,color:"gray.400",transform:z?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{children:j.namespace})]})}),s.jsx(xt,{children:j.username||s.jsx(K,{color:"gray.400",children:"—"})}),s.jsx(xt,{children:s.jsx(dn,{colorScheme:Qm(j.status),children:Zm(j.status)})}),s.jsx(xt,{children:s.jsxs(ge,{spacing:1,children:[j.status==="ready"?s.jsx(_o,{href:j.url,color:"primary.500",isExternal:!0,onClick:$=>$.stopPropagation(),children:j.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(vn,{"aria-label":"Modifier le domaine",icon:s.jsx(qu,{}),size:"xs",variant:"ghost",onClick:$=>{$.stopPropagation(),h(j)}})]})}),s.jsx(xt,{textAlign:"right",children:s.jsx(ge,{justify:"flex-end",children:_(j)})})]}),s.jsx(Vr,{children:s.jsx(xt,{p:0,border:z?void 0:"none",colSpan:5,children:s.jsx(zu,{in:z,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ne,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:g&&!x?s.jsx(yn,{size:"sm"}):x?s.jsx(Cx,{state:x.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},j.id)})})]})}),s.jsx(we,{spacing:3,display:{base:"flex",md:"none"},children:n.map(j=>s.jsx(H7,{demo:j,isOpen:v===j.id,onToggle:()=>P(j),detailsLoading:g,details:v===j.id?x:null,onEditDomain:()=>h(j),actions:_(j)},j.id))})]}),s.jsxs(Of,{isOpen:!!c,title:"Détruire la plateforme premium ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:k,onClose:()=>u(null),children:["La plateforme"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données (client payant) seront supprimées définitivement. Cette action est irréversible."]}),s.jsx(U7,{demo:p,onClose:()=>h(null),onSaved:()=>void w()})]})}const Vce=1e4;function fk(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 Uce(e){if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:Math.ceil((t.getTime()-Date.now())/(1e3*60*60*24))}function Hce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState([]),[a,l]=m.useState(!0),[c,u]=m.useState(null),[d,f]=m.useState(""),[p,h]=m.useState(null),v=m.useCallback(async()=>{try{const[y,g]=await Promise.all([je.listCodes(),je.listPremiumUsers()]);r(y.items??[]),o(g.items??[])}catch(y){y instanceof Ie&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{v();const y=setInterval(()=>void v(),Vce);return()=>clearInterval(y)},[v]);const b=async y=>{if(y.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}u("generate");try{const g=await je.createCode(d.trim());h(g.code),f(""),e({status:"success",title:"Code généré avec succès !"}),await v()}catch(g){const S=g instanceof Ie?g.message:"Erreur";e({status:"error",title:"Génération impossible",description:S})}finally{u(null)}},x=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const S=document.createElement("textarea");S.value=y,S.style.position="fixed",S.style.opacity="0",document.body.appendChild(S),S.select();const w=document.execCommand("copy");document.body.removeChild(S),e(w?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:"Gestion des codes de souscription"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:s.jsx("form",{onSubmit:b,children:s.jsxs(Fu,{spacing:4,align:"stretch",children:[s.jsxs(we,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d\\'utilisateur"}),s.jsx(bt,{type:"text",value:d,onChange:y=>f(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:c==="generate",maxLength:64})]}),s.jsx(xe,{colorScheme:"primary",type:"submit",isLoading:c==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),p&&s.jsxs(ne,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[s.jsxs(K,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",s.jsx("strong",{children:d})," :"]}),s.jsxs(ge,{children:[s.jsx(K,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:p}),s.jsx(xe,{size:"sm",variant:"outline",onClick:()=>x(p),children:"Copier"})]})]})]})})}),s.jsx(ct,{size:"sm",mb:3,children:"Codes générés (non encore utilisés)"}),a?s.jsx(yn,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucun code de souscription généré."}):s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"ID"}),s.jsx(_t,{children:"Utilisateur"}),s.jsx(_t,{children:"Code"}),s.jsx(_t,{children:"Date de création"}),s.jsx(_t,{})]})}),s.jsx(Ep,{children:n.map(y=>s.jsxs(Vr,{children:[s.jsxs(xt,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),s.jsx(xt,{children:s.jsx(dn,{colorScheme:"gray",px:2,py:1,children:y.username})}),s.jsx(xt,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),s.jsx(xt,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),s.jsx(xt,{textAlign:"right",children:s.jsx(xe,{size:"sm",variant:"outline",onClick:()=>x(y.code_verif),children:"Copier"})})]},y.id))})]})}),s.jsx(ct,{size:"sm",mt:10,mb:3,children:"Clients premium"}),a?s.jsx(yn,{}):i.length===0?s.jsx(K,{color:"gray.500",children:"Aucun client premium pour le moment."}):s.jsx(Tp,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(uu,{children:[s.jsx(Ap,{children:s.jsxs(Vr,{children:[s.jsx(_t,{children:"Client"}),s.jsx(_t,{children:"Code activé le"}),s.jsx(_t,{children:"Abonnement expire le"}),s.jsx(_t,{children:"Statut"})]})}),s.jsx(Ep,{children:i.map(y=>{const g=Uce(y.expired_at);return s.jsxs(Vr,{children:[s.jsx(xt,{children:s.jsx(dn,{colorScheme:"purple",px:2,py:1,children:y.username})}),s.jsx(xt,{fontSize:"sm",color:"gray.400",children:fk(y.activated_at)}),s.jsx(xt,{fontSize:"sm",color:"gray.400",children:fk(y.expired_at)}),s.jsx(xt,{children:g===null?s.jsx(K,{color:"gray.400",children:"—"}):g<0?s.jsx(dn,{colorScheme:"red",children:"Expiré"}):s.jsxs(dn,{colorScheme:g<=7?"orange":"green",children:[g," j restant",g>1?"s":""]})})]},y.username)})})]})})]})}function Gce(){const e=pr(),t=Qn(),[n,r]=m.useState(null),[i,o]=m.useState(null),[a,l]=m.useState(!0),[c,u]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),v=m.useCallback(async()=>{try{const S=await je.me();r(S.type_abonnement??null),o(S.expired_at?new Date(S.expired_at):null)}catch(S){S instanceof Ie&&S.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{v()},[v]);const b=async S=>{if(S.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}u(!0);try{await je.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await v()}catch(w){const k=w instanceof Ie?w.message:"Erreur";e({status:"error",title:"Code invalide",description:k})}finally{u(!1)}},x=n==="premium",y=!x||p,g=i?Math.ceil((i.getTime()-Date.now())/(1e3*60*60*24)):null;return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:"Mon abonnement"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(yn,{}):s.jsxs(Fu,{align:"stretch",spacing:4,children:[s.jsxs(ge,{flexWrap:"wrap",rowGap:2,children:[s.jsx(K,{color:"gray.400",children:"Statut actuel :"}),s.jsx(dn,{colorScheme:x?"purple":"gray",px:2,py:1,children:x?"Premium":"Demo"}),x&&!p&&s.jsx(xe,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),x&&i&&s.jsx(K,{fontSize:"sm",color:g!==null&&g<=5?"orange.400":"gray.400",children:g!==null&&g>0?`Expire dans ${g} jour${g>1?"s":""} (le ${i.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${i.toLocaleDateString("fr-FR")}`}),y&&s.jsx("form",{onSubmit:b,children:s.jsxs(we,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:x?"Nouveau code de renouvellement":"Code de souscription"}),s.jsx(bt,{type:"text",value:d,onChange:S=>f(S.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:c,fontFamily:"mono",letterSpacing:"wide"})]}),s.jsxs(ge,{flexShrink:0,children:[s.jsx(xe,{colorScheme:"primary",type:"submit",isLoading:c,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:x?"Renouveler":"Activer"}),x&&s.jsx(xe,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:c,children:"Annuler"})]})]})})]})})]})}const Kce=()=>s.jsx(ne,{as:"svg",w:"16px",h:"16px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ne,{as:"path",d:"M12 3v12m0 0-4-4m4 4 4-4M5 21h14"})});function qce(){const e=pr(),t=Qn(),[n,r]=m.useState([]),[i,o]=m.useState(!1),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const u=await je.listAppDownloads();r(u.items??[]),o(u.eligible)}catch(u){u instanceof Ie&&u.status===401?t("/login"):e({status:"error",title:"Chargement des applications impossible"})}finally{l(!1)}},[t,e]);return m.useEffect(()=>{c()},[c]),s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:"Applications"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(yn,{}):i?n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune application disponible pour le moment."}):s.jsx(Fu,{align:"stretch",spacing:3,children:n.map(u=>s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[s.jsxs(we,{spacing:0,children:[s.jsx(K,{fontFamily:"mono",children:u.name}),s.jsx(K,{fontSize:"sm",color:"gray.500",children:Rce(u.size_bytes)})]}),s.jsx(xe,{as:"a",href:jce(u.name),download:u.name,size:"sm",colorScheme:"primary",leftIcon:s.jsx(Kce,{}),children:"Télécharger"})]},u.name))}):s.jsx(K,{color:"gray.500",children:"Le téléchargement des applications nécessite une démo ou un abonnement actif."})})]})}function pk(e){return e==="admin"?"Administrateur":"Client"}function Xce(e){return e==="admin"?"purple":"blue"}function Yce(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function Qce(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 W0(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=zG();return e?s.jsxs(Pm,{size:"sm",spacing:1,children:[s.jsx(vn,{"aria-label":"Enregistrer",icon:s.jsx(W7,{}),...t()}),s.jsx(vn,{"aria-label":"Annuler",icon:s.jsx(B7,{}),...n()})]}):s.jsx(vn,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:s.jsx(qu,{}),...r()})}function Zce(){const e=pr(),t=Qn(),{logout:n}=zo(),[r,i]=m.useState(null),[o,a]=m.useState(!0),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),[h,v]=m.useState(!1),[b,x]=m.useState(""),[y,g]=m.useState(""),[S,w]=m.useState(!1),[k,P]=m.useState(!1),[_,j]=m.useState(""),[z,$]=m.useState(""),[W,Y]=m.useState(""),[ee,I]=m.useState(!1),[L,N]=m.useState(!1);m.useEffect(()=>{let Q=!1;return(async()=>{try{const[ue,ce]=await Promise.all([je.me(),je.getTelegram()]);if(Q)return;if(i(ue),g(ce.telegram??""),ue.role==="admin"){const Be=await je.getAlertSettings();if(Q)return;j(Be.discord_webhook_url),$(Be.telegram_bot_token),Y(Be.telegram_chat_id)}}catch(ue){if(ue instanceof Ie&&ue.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{Q||a(!1)}})(),()=>{Q=!0}},[t,e]);const R=async()=>{I(!0);try{const Q=await je.setAlertSettings({discord_webhook_url:_.trim(),telegram_bot_token:z.trim(),telegram_chat_id:W.trim()});j(Q.discord_webhook_url),$(Q.telegram_bot_token),Y(Q.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(Q){if(Q instanceof Ie&&Q.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:Q instanceof Ie?Q.message:void 0})}finally{I(!1)}},F=async()=>{N(!0);try{const Q=await je.testAlertSettings({discord_webhook_url:_.trim(),telegram_bot_token:z.trim(),telegram_chat_id:W.trim()}),ue=[Q.discord&&{label:"Discord",...Q.discord},Q.telegram&&{label:"Telegram",...Q.telegram}].filter(ce=>!!ce);ue.every(ce=>ce.ok)?e({status:"success",title:"Notification de test envoyée",description:ue.map(ce=>ce.label).join(" et ")}):e({status:"error",title:"Échec du test",description:ue.filter(ce=>!ce.ok).map(ce=>`${ce.label} : ${ce.error}`).join(" — ")})}catch(Q){if(Q instanceof Ie&&Q.status===401){t("/login");return}e({status:"warning",title:"Test impossible",description:Q instanceof Ie?Q.message:void 0})}finally{N(!1)}},M=async Q=>{const ue=Q.trim();if(!(!r||!ue||ue===r.username)){d(!0);try{const ce=await je.updateUsername(ue);i({...r,username:ce.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(ce){if(ce instanceof Ie&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:ce instanceof Ie?ce.message:void 0})}finally{d(!1)}}},G=async()=>{const Q=b.trim();if(Q.length<8){e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"});return}p(!0);try{await je.updatePassword(Q),e({status:"success",title:"Mot de passe mis à jour"}),v(!1),x("")}catch(ue){if(ue instanceof Ie&&ue.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:ue instanceof Ie?ue.message:void 0})}finally{p(!1)}},Z=()=>{x(""),v(!1)},ae=async Q=>{const ue=Q.trim();if(!ue){P(!1);return}w(!0);try{const ce=await je.setTelegram(ue);g(ce.telegram),P(!1),e({status:"success",title:"Telegram enregistré"})}catch(ce){if(ce instanceof Ie&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:ce instanceof Ie?ce.message:void 0})}finally{w(!1)}},oe=async()=>{c(!0);try{await je.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{c(!1)}};return s.jsx(ne,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:s.jsxs(fn,{maxW:"container.md",children:[s.jsxs(we,{spacing:3,mb:8,children:[s.jsx(ct,{size:"lg",children:"Mon profil"}),s.jsx(K,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),s.jsx(ne,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:o?s.jsx(St,{justify:"center",py:10,children:s.jsx(yn,{})}):r?s.jsxs(we,{spacing:8,children:[s.jsxs(St,{align:"center",gap:5,wrap:"wrap",children:[s.jsx(cb,{name:r.username,size:"xl"}),s.jsxs(ne,{children:[s.jsx(Pf,{defaultValue:r.username,onSubmit:M,isDisabled:u,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tf,{as:ct,size:"md",fontFamily:"mono"}),s.jsx(_f,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),s.jsx(W0,{})]})},r.username),s.jsxs(ge,{mt:2,spacing:2,children:[s.jsx(dn,{colorScheme:Xce(r.role),children:pk(r.role)}),r.type_abonnement&&s.jsx(dn,{colorScheme:Yce(r.type_abonnement),children:r.type_abonnement})]})]})]}),s.jsx(da,{borderColor:"chakra-border-color"}),s.jsxs(bn,{columns:{base:1,sm:2},spacing:6,children:[s.jsxs(Go,{children:[s.jsx(Ko,{children:"Identifiant"}),s.jsx(Bi,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Rôle"}),s.jsx(Bi,{fontSize:"md",children:pk(r.role)})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Type d'abonnement"}),s.jsx(Bi,{fontSize:"md",children:r.type_abonnement||"—"})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Mot de passe"}),h?s.jsxs(ge,{spacing:2,children:[s.jsx(sn,{size:"sm",fontFamily:"mono",fontSize:"md",value:b,onChange:Q=>x(Q.target.value),isDisabled:f,autoFocus:!0}),s.jsxs(Pm,{size:"sm",spacing:1,children:[s.jsx(vn,{"aria-label":"Enregistrer",icon:s.jsx(W7,{}),isLoading:f,onClick:G}),s.jsx(vn,{"aria-label":"Annuler",icon:s.jsx(B7,{}),isDisabled:f,onClick:Z})]})]}):s.jsxs(ge,{spacing:2,children:[s.jsx(Bi,{fontSize:"md",fontFamily:"mono",children:"••••••••"}),s.jsx(vn,{"aria-label":"Modifier le mot de passe",size:"sm",variant:"ghost",icon:s.jsx(qu,{}),onClick:()=>v(!0)})]})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Telegram"}),y?s.jsx(Pf,{defaultValue:y,onSubmit:ae,isDisabled:S,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tf,{as:Bi,fontSize:"md",fontFamily:"mono"}),s.jsx(_f,{fontSize:"md",fontFamily:"mono"}),s.jsx(W0,{})]})},y):k?s.jsx(Pf,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:ae,onCancel:()=>P(!1),isDisabled:S,submitOnBlur:!1,children:s.jsxs(ge,{spacing:2,children:[s.jsx(Tf,{as:Bi,fontSize:"md",fontFamily:"mono"}),s.jsx(_f,{fontSize:"md",fontFamily:"mono"}),s.jsx(W0,{})]})}):s.jsx(xe,{size:"sm",variant:"outline",onClick:()=>P(!0),children:"Ajouter mon Telegram"})]}),s.jsxs(Go,{children:[s.jsx(Ko,{children:"Expire le"}),s.jsx(Bi,{fontSize:"md",children:Qce(r.expired_at)})]})]}),r.role==="admin"&&s.jsxs(s.Fragment,{children:[s.jsx(da,{borderColor:"chakra-border-color"}),s.jsxs(we,{spacing:4,children:[s.jsxs(ne,{children:[s.jsx(ct,{size:"sm",children:"Alertes monitoring"}),s.jsx(K,{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."})]}),s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Webhook Discord"}),s.jsx(bt,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:_,onChange:Q=>j(Q.target.value),isDisabled:ee})]}),s.jsxs(bn,{columns:{base:1,sm:2},spacing:4,children:[s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Bot Telegram (token)"}),s.jsx(bt,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:z,onChange:Q=>$(Q.target.value),isDisabled:ee})]}),s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Telegram (chat ID)"}),s.jsx(bt,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:W,onChange:Q=>Y(Q.target.value),isDisabled:ee}),s.jsx(ru,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),s.jsxs(St,{justify:"flex-end",gap:2,children:[s.jsx(xe,{size:"sm",variant:"outline",isDisabled:!_.trim()&&!(z.trim()&&W.trim()),isLoading:L,onClick:F,children:"Tester les notifications"}),s.jsx(xe,{size:"sm",colorScheme:"primary",isLoading:ee,onClick:R,children:"Enregistrer les alertes"})]})]})]}),s.jsx(da,{borderColor:"chakra-border-color"}),s.jsx(St,{justify:"flex-end",children:s.jsx(xe,{colorScheme:"red",variant:"outline",isLoading:l,onClick:oe,children:"Se déconnecter"})})]}):s.jsx(K,{color:"gray.500",children:"Aucune information disponible."})})]})})}function mk(e){const t=gp("/omnex-blanc.jpg","/omnex-black.jpg");return s.jsx(D_,{src:t,alt:"Omnex",objectFit:"contain",...e})}const hk=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/documentation",label:"Documentation",end:!1},{to:"/contact",label:"Contact",end:!1}],Jce=()=>s.jsx(ne,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ne,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function eue(){const{isOpen:e,onOpen:t,onClose:n}=wu();return s.jsxs(ne,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[s.jsx(fn,{maxW:"container.lg",children:s.jsxs(St,{h:16,align:"center",justify:"space-between",children:[s.jsxs(ge,{spacing:8,children:[s.jsx(ne,{as:Zt,to:"/",display:"flex",alignItems:"center",children:s.jsx(mk,{h:10})}),s.jsx(ge,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:hk.map(r=>s.jsx(gk,{to:r.to,end:r.end,children:r.label},r.to))})]}),s.jsxs(ge,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(Ea,{}),s.jsx(xe,{as:Zt,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),s.jsxs(ge,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(Ea,{}),s.jsx(vn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:s.jsx(Jce,{})})]})]})}),s.jsxs(sT,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[s.jsx(yl,{}),s.jsxs(Ob,{bg:"chakra-body-bg",children:[s.jsx(Ou,{size:"lg"}),s.jsx(vl,{borderBottomWidth:"1px",children:s.jsx(mk,{h:9})}),s.jsxs(gl,{py:6,children:[s.jsx(we,{as:"nav",spacing:1,children:hk.map(r=>s.jsx(gk,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),s.jsx(da,{my:6}),s.jsxs(we,{spacing:3,children:[s.jsx(xe,{as:Zt,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),s.jsx(xe,{as:Zt,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function gk({to:e,end:t,children:n,onClick:r,mobile:i=!1}){return s.jsx(xe,{as:m8,to:e,end:t,size:i?"lg":"sm",variant:"ghost",justifyContent:i?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function tue(){return s.jsx(ne,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:s.jsxs(fn,{maxW:"container.lg",py:12,children:[s.jsxs(bn,{columns:{base:1,md:4},spacing:8,children:[s.jsxs(we,{spacing:3,children:[s.jsx(K,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison."})]}),s.jsxs(nue,{title:"Produit",children:[s.jsx(Xd,{to:"/",children:"Présentation"}),s.jsx(Xd,{to:"/tarifs",children:"Tarifs"}),s.jsx(Xd,{to:"/register",children:"Créer un compte"}),s.jsx(Xd,{to:"/documentation",children:"Documentation"})]})]}),s.jsx(da,{my:8}),s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[s.jsxs(K,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),s.jsxs(ge,{spacing:6,fontSize:"sm",color:"gray.500",children:[s.jsx(vk,{href:"#",children:"Mentions légales"}),s.jsx(vk,{href:"#",children:"Confidentialité"})]})]})]})})}function nue({title:e,children:t}){return s.jsxs(we,{spacing:2,children:[s.jsx(K,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function Xd({to:e,children:t}){return s.jsx(_o,{as:Zt,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function vk({href:e,children:t}){return s.jsx(_o,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function rue(){return s.jsxs(St,{direction:"column",minH:"100vh",children:[s.jsx(eue,{}),s.jsx(ne,{as:"main",flex:"1",children:s.jsx(f8,{})}),s.jsx(tue,{})]})}const iue=()=>s.jsx(ne,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ne,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),yk="https://t.me/OMNEX_CORP";function oue(){const[e,t]=m.useState(null),{logout:n,isAdmin:r,isClient:i}=zo(),o=Qn(),{isOpen:a,onOpen:l,onClose:c}=wu(),u=e==="premium",d=m.useCallback(async()=>{try{const v=await je.me();t(v.type_abonnement??null)}catch(v){v instanceof Ie&&v.status===401&&o("/login")}},[o]);m.useEffect(()=>{d()},[d]);const f=async()=>{const v=r?"/admin/login":"/login";await n(),o(v,{replace:!0})},p=r?"Admin":i?"Client":"Utilisateur",h=r?"purple":"gray";return s.jsxs(ne,{minH:"100vh",bg:"chakra-subtle-bg",overflowX:"hidden",children:[s.jsxs(St,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[s.jsxs(ct,{size:"sm",as:Zt,to:"/app",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(ge,{spacing:1,display:{base:"none",md:"flex"},children:[i&&s.jsx(Ln,{to:"/app/subscription",children:"Abonnement"}),i&&s.jsx(Ln,{to:"/app/downloads",children:"Applications"}),(r||i)&&s.jsx(Ln,{to:"/app/profile",children:"Profile"}),i&&s.jsx(Ln,{to:"/app/myservices",children:u?"Ma plateforme":"Ma démo"}),r&&s.jsx(Ln,{to:"/app/demos",children:"Démos"}),r&&s.jsx(Ln,{to:"/app/premium",children:"Premium"}),r&&s.jsx(Ln,{to:"/app/codes",children:"Codes"})]}),s.jsx(Eo,{}),s.jsxs(ge,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(dn,{colorScheme:h,children:p}),s.jsx(xe,{as:"a",href:yk,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),s.jsx(Ea,{}),s.jsx(xe,{size:"sm",variant:"outline",onClick:f,children:"Déconnexion"})]}),s.jsxs(ge,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(dn,{colorScheme:h,children:p}),s.jsx(Ea,{}),s.jsx(vn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:l,icon:s.jsx(iue,{})})]})]}),s.jsxs(sT,{isOpen:a,placement:"right",onClose:c,size:"xs",children:[s.jsx(yl,{}),s.jsxs(Ob,{bg:"chakra-body-bg",children:[s.jsx(Ou,{size:"lg"}),s.jsxs(vl,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(gl,{py:6,children:[s.jsxs(we,{as:"nav",spacing:1,children:[i&&s.jsx(Ln,{to:"/app/subscription",onClick:c,mobile:!0,children:"Abonnement"}),i&&s.jsx(Ln,{to:"/app/downloads",onClick:c,mobile:!0,children:"Applications"}),r&&s.jsx(Ln,{to:"/app/demos",onClick:c,mobile:!0,children:"Démos"}),r&&s.jsx(Ln,{to:"/app/premium",onClick:c,mobile:!0,children:"Premium"}),r&&s.jsx(Ln,{to:"/app/codes",onClick:c,mobile:!0,children:"Codes"}),(r||i)&&s.jsx(Ln,{to:"/app/profile",onClick:c,mobile:!0,children:"Profile"})]}),s.jsx(da,{my:6}),s.jsxs(we,{spacing:3,children:[s.jsx(xe,{as:"a",href:yk,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:c,children:"Support"}),s.jsx(xe,{variant:"outline",justifyContent:"flex-start",onClick:f,children:"Déconnexion"})]})]})]})]}),s.jsx(fn,{maxW:"container.xl",py:8,children:s.jsx(f8,{})})]})}function Ln({to:e,children:t,onClick:n,mobile:r=!1}){return s.jsx(xe,{as:m8,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}function aue(){return s.jsx(ne,{children:s.jsx(ne,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(fn,{maxW:"container.lg",children:s.jsxs(we,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(ct,{size:"2xl",children:"Contactez-nous"}),s.jsx(K,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Une question ? Notre équipe vous répond directement sur Telegram."}),s.jsx(xe,{as:"a",href:"https://t.me/OMNEX_CORP",target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",size:"lg",children:"Nous contacter sur Telegram"})]})})})})}function sue(){const e=pr(),t=Qn(),[n,r]=m.useState(null),[i,o]=m.useState([]),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const f=await je.me();r(f.type_abonnement??null)}catch(f){f instanceof Ie&&f.status===401&&t("/login")}},[t]),u=m.useCallback(async()=>{try{const f=await je.listMyDemos();o(f.items??[])}catch{e({status:"error",title:"Chargement des démos impossible"})}finally{l(!1)}},[e]);m.useEffect(()=>{c(),u()},[c,u]);const d=n==="premium";return s.jsxs(s.Fragment,{children:[s.jsxs(St,{mb:6,align:"center",children:[s.jsx(ct,{size:"md",children:d?"Ma plateforme":"Ma démo"}),s.jsx(Eo,{})]}),s.jsx(ne,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(yn,{size:"sm"}):i.length===0?s.jsx(K,{color:"gray.500",children:d?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):s.jsx(Fu,{align:"stretch",spacing:3,children:i.map(f=>s.jsxs(ge,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[f.status==="ready"?s.jsx(_o,{href:f.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:f.url}):s.jsx(K,{color:"gray.400",fontFamily:"mono",children:f.url||"—"}),s.jsx(dn,{colorScheme:Qm(f.status),children:Zm(f.status)})]},f.id))})})]})}const lue=["/app/demos","/app/premium","/app/codes"];function cue({children:e}){const{isAuthenticated:t,initializing:n}=zo(),r=Ma();if(n)return s.jsx(qP,{h:"100vh",children:s.jsx(yn,{})});if(t)return e;const i=lue.some(o=>r.pathname.startsWith(o));return s.jsx(hu,{to:i?"/admin/login":"/login",replace:!0})}function V0({children:e}){const{isAdmin:t}=zo();return t?e:s.jsx(hu,{to:"/app/subscription",replace:!0})}function uue(){const{role:e}=zo();switch(e){case"admin":return s.jsx(hu,{to:"/app/demos",replace:!0});default:return s.jsx(hu,{to:"/app/subscription",replace:!0})}}function due(){return s.jsxs(Wre,{children:[s.jsxs(Rt,{element:s.jsx(rue,{}),children:[s.jsx(Rt,{path:"/",element:s.jsx(rie,{})}),s.jsx(Rt,{path:"/tarifs",element:s.jsx(oie,{})}),s.jsx(Rt,{path:"/documentation",element:s.jsx(Cce,{})}),s.jsx(Rt,{path:"/contact",element:s.jsx(aue,{})})]}),s.jsx(Rt,{path:"/login",element:s.jsx(Ece,{})}),s.jsx(Rt,{path:"/admin/login",element:s.jsx(Ace,{})}),s.jsx(Rt,{path:"/register",element:s.jsx($ce,{})}),s.jsxs(Rt,{path:"/app",element:s.jsx(cue,{children:s.jsx(oue,{})}),children:[s.jsx(Rt,{index:!0,element:s.jsx(uue,{})}),s.jsx(Rt,{path:"demos",element:s.jsx(V0,{children:s.jsx(Oce,{})})}),s.jsx(Rt,{path:"codes",element:s.jsx(V0,{children:s.jsx(Hce,{})})}),s.jsx(Rt,{path:"premium",element:s.jsx(V0,{children:s.jsx(Wce,{})})}),s.jsx(Rt,{path:"subscription",element:s.jsx(Gce,{})}),s.jsx(Rt,{path:"downloads",element:s.jsx(qce,{})}),s.jsx(Rt,{path:"profile",element:s.jsx(Zce,{})}),s.jsx(Rt,{path:"myservices",element:s.jsx(sue,{})})]}),s.jsx(Rt,{path:"*",element:s.jsx(hu,{to:"/",replace:!0})})]})}const fue={initialColorMode:"system",useSystemColorMode:!1},bk=mb({config:fue,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"},midnight:{50:"#e9ebf5",100:"#c7cce6",200:"#a3abd6",300:"#7f8ac6",400:"#5b69b6",500:"#2d3a7d",600:"#232e63",700:"#1a2249",800:"#11172f",900:"#080b16"}},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"},"primary.50":{default:"purple.50",_dark:"midnight.50"},"primary.100":{default:"purple.100",_dark:"midnight.100"},"primary.200":{default:"purple.200",_dark:"midnight.200"},"primary.300":{default:"purple.300",_dark:"midnight.300"},"primary.400":{default:"purple.400",_dark:"midnight.400"},"primary.500":{default:"purple.500",_dark:"midnight.500"},"primary.600":{default:"purple.600",_dark:"midnight.600"},"primary.700":{default:"purple.700",_dark:"midnight.700"},"primary.800":{default:"purple.800",_dark:"midnight.800"},"primary.900":{default:"purple.900",_dark:"midnight.900"}}},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"}}}}}},AT);H0.createRoot(document.getElementById("root")).render(s.jsxs(Xt.StrictMode,{children:[s.jsx(TG,{initialColorMode:bk.config.initialColorMode}),s.jsx(Ate,{theme:bk,children:s.jsx(Pce,{children:s.jsx(Yre,{children:s.jsx(due,{})})})})]})); diff --git a/web/dist/index.html b/web/dist/index.html index 62f17f0..04fb6d7 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ Omnex — Plateforme de gestion de commandes & livraison - +
diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts index 04d15cc..c8d6eec 100644 --- a/web/src/lib/api.ts +++ b/web/src/lib/api.ts @@ -1,19 +1,8 @@ -// Client HTTP vers l'API Omnex. -const BASE = import.meta.env.VITE_API_URL ?? 'http://localhost:8080' - -const TOKEN_KEY = 'omnex.token' - - -export function getToken(): string | null { - return localStorage.getItem(TOKEN_KEY) -} -export function setToken(t: string) { - localStorage.setItem(TOKEN_KEY, t) -} -export function clearToken() { - localStorage.removeItem(TOKEN_KEY) -} - +// Client HTTP vers l'API Omnex. "" (chemin relatif) par défaut : same-origin +// en prod (nginx proxy /api/ vers l'API, voir docker/waf/nginx.conf) et en +// dev (proxy Vite, voir vite.config.ts) — nécessaire pour que le cookie de +// session SameSite=Lax soit envoyé (jamais cross-origin, voir lib/auth.tsx). +const BASE = import.meta.env.VITE_API_URL ?? '' export class ApiError extends Error { status: number @@ -23,14 +12,19 @@ export class ApiError extends Error { } } +// Authentification exclusivement via le cookie de session HttpOnly (posé par +// le backend sur /auth/login et /auth/register) — jamais de JWT lu/stocké en +// JS. Le dupliquer en localStorage (comme avant) annulait la protection +// HttpOnly contre le vol de session par XSS (pentest F-003) : le SPA et +// l'API étant same-origin, le cookie authentifie déjà chaque fetch() sans +// qu'aucun en-tête Authorization manuel ne soit nécessaire. async function request(method: string, path: string, body?: unknown): Promise { const headers: Record = { 'Content-Type': 'application/json' } - const token = getToken() - if (token) headers.Authorization = `Bearer ${token}` const res = await fetch(`${BASE}/api/v1${path}`, { method, headers, + credentials: 'include', body: body ? JSON.stringify(body) : undefined, }) if (!res.ok) { @@ -177,16 +171,9 @@ export interface AppDownloadsResponse { export const api = { login: (username: string, password: string, role: Role) => - request<{ token: string; token_type: string; role: Role }>('POST', '/auth/login', { - username, - password, - role, - }), + request<{ role: Role }>('POST', '/auth/login', { username, password, role }), register: (username: string, password: string) => - request<{ token: string; token_type: string; role: Role }>('POST', '/auth/register', { - username, - password, - }), + request<{ role: Role }>('POST', '/auth/register', { username, password }), me: () => request<{ user_id: string diff --git a/web/src/lib/auth.tsx b/web/src/lib/auth.tsx index 6c60382..e00e22f 100644 --- a/web/src/lib/auth.tsx +++ b/web/src/lib/auth.tsx @@ -7,7 +7,7 @@ import { useState, type ReactNode, } from 'react' -import { api, clearToken, getToken, setToken, type Role } from './api' +import { api, type Role } from './api' interface AuthState { isAuthenticated: boolean @@ -26,16 +26,15 @@ interface AuthState { const AuthContext = createContext(null) export function AuthProvider({ children }: { children: ReactNode }) { - const [token, setTok] = useState(getToken()) const [role, setRole] = useState(null) const [typeAbo, setTypeAbo] = useState(null) - const [initializing, setInitializing] = useState(!!getToken()) + const [initializing, setInitializing] = useState(true) + // Le cookie de session est HttpOnly : impossible à lire en JS pour savoir + // à l'avance si l'utilisateur est connecté. On tente donc systématiquement + // /auth/me au montage — le cookie (s'il existe et est valide) l'authentifie + // automatiquement ; un 401 signifie simplement "pas de session". useEffect(() => { - if (!token) { - setInitializing(false) - return - } let active = true api .me() @@ -46,12 +45,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { } }) .catch(() => { - if (active) { - clearToken() - setTok(null) - setRole(null) - setTypeAbo(null) - } + /* pas de session valide — état par défaut (déconnecté) */ }) .finally(() => { if (active) setInitializing(false) @@ -59,24 +53,19 @@ export function AuthProvider({ children }: { children: ReactNode }) { return () => { active = false } - // eslint-disable-next-line react-hooks/exhaustive-deps }, []) const login = useCallback(async (username: string, password: string, role: Role) => { - const res = await api.login(username, password, role) - setToken(res.token) - setTok(res.token) - setRole(res.role) + await api.login(username, password, role) const me = await api.me() + setRole(me.role) setTypeAbo(me.type_abonnement) }, []) const register = useCallback(async (username: string, password: string) => { - const res = await api.register(username, password) - setToken(res.token) - setTok(res.token) - setRole(res.role) + await api.register(username, password) const me = await api.me() + setRole(me.role) setTypeAbo(me.type_abonnement) }, []) @@ -84,8 +73,6 @@ export function AuthProvider({ children }: { children: ReactNode }) { try { await api.logout() } finally { - clearToken() - setTok(null) setRole(null) setTypeAbo(null) } @@ -99,7 +86,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { const value = useMemo( () => ({ - isAuthenticated: !!token, + isAuthenticated: !!role, isAdmin: role === 'admin', isClient: role === 'client', isPremium: typeAbo === 'premium', @@ -111,7 +98,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { logout, refreshAbo, }), - [token, role, typeAbo, initializing, login, register, logout, refreshAbo], + [role, typeAbo, initializing, login, register, logout, refreshAbo], ) return {children} diff --git a/web/vite.config.ts b/web/vite.config.ts index b86ffa0..b389832 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -4,6 +4,17 @@ import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [react()], + server: { + // Fait passer l'API par la même origine que le SPA en dev (localhost:5173) + // au lieu d'un appel cross-origin direct vers localhost:8080 — nécessaire + // depuis le passage à l'authentification 100% cookie HttpOnly (plus de + // fallback Authorization: Bearer, voir lib/api.ts) : un cookie + // SameSite=Lax n'est pas envoyé sur un fetch() cross-site. + proxy: { + '/api': { target: 'http://localhost:8080', changeOrigin: true }, + '/healthz': { target: 'http://localhost:8080', changeOrigin: true }, + }, + }, test: { globals: true, environment: 'jsdom',